fix(avplayer): report frame rate and colour info in extended video details #7412
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7412"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by maozdemir on 2026-10-18T05:12:16Z.
What
sceAvPlayerGetStreamInfoExnow fills the video details that titles read fromSceAvPlayerVideoEx:frame_rate: a double at byte 48 of the video details. It was left zero. BloodRayne 2: ReVamped (Unity) reads it,computes
1000 / fps = infand treats the video as ended after the first frame, so it pauses forever on a black screen. Itnow reports the stream's frame rate.
colour_primaries(byte 56) andtransfer_characteristics(byte 60): twouint32fields filled from the codec'scolour primaries and transfer characteristic. The layout follows
KytyPS5.
reserved2[24]became these twofields plus
reserved2[16]. Astatic_assertpins both offsets, andsizeofstays 80.docs/dev/debt/libSceAvPlayer.mdanddocs/dev/debt/libs.mdare updated.Not covered, and listed as technical debt:
sceAvPlayerGetVideoDataEx) does not fillframe_rateor the colour fields.Tested
guest_avplayer_testspassed (ctest -R guest_avplayer, 1/1). It does not assert the colour fields, becausethe test video's colour tags are unknown.
GetStreamInfoExcall anddumped the struct. For the 1280x960 video stream:
frame_rateis 29.970029, matching ffprobe.colour_primariesandtransfer_characteristicsare both 2 (ffmpeg "unspecified"), matching ffprobe'sunknownforthese untagged videos.
pitchis 0x500, and the padding is zero.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library'stechnical debt file
.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-18T05:12:21Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T05:33:03Z.
The conventions run on head
7a0cba2dis failing because the PR body still has the template placeholders:WhatandTestedare empty, all checklist items are unchecked, andAI-assisted/Depends onare unanswered. The titleFix/avplayer video ex frame ratealso fails the repository’s Conventional Commits title check. The full output is in the failed job. Please fill the template and retitle it (for example,fix(avplayer): ...) to get the conventions check green.Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-18T21:04:11Z.
Review: COMMENTED
Head
7a0cba2decontains a change tocore/libs/prx/libSceNpManager/Export.cppthat the description does not mention. It looks unrelated to the AvPlayer fix:Export.cpp:97-101:sceNpGetAccountIdAused to returnSCE_NP_ERROR_SIGNED_OUT. It now sleeps 100 ms (line 99) and returns success with a made-up id,0x1000000000000000 | user_id(line 100).sceNpGetStatewritesNP_STATE_SIGNED_OUT(line 126), andsceNpGetNpId,sceNpGetOnlineId,sceNpGetAccountCountryAandsceNpCheckPremiumstill returnSCE_NP_ERROR_SIGNED_OUT. A title that checks the account id therefore sees a signed-in user, and every other NP query says the opposite.docs/dev/debt/libSceUserService.md:5still says thatsceNpGetAccountIdA"answers the same question withSCE_NP_ERROR_SIGNED_OUT". No test covers the new return value or the delay, and neither has a source in the debt files.If this was left over from debugging BloodRayne 2, I'd drop the
libSceNpManagerhunk, along with the<chrono>and<thread>includes. If a title does need it, it would fit better as its own PR, with the title that needs it, a source for the id format and the delay, and thelibSceUserService.mdentry updated.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T14:36:12Z.
Review: CHANGES_REQUESTED
Thanks for the PR. Points to fix:
core/libs/prx/libSceNpManager/Export.cpp:97-101(commitf9f8a24f5, "stub sceNpGetAccountIdA"): unrelated to AvPlayer and not in the description. It returns success with an invented account id plus a 100 ms sleep, whilesceNpGetState,sceNpGetNpId, etc. still report signed-out. Offline/PSN calls return the documented offline error, not success. Please drop this commit; if a title really needs it, open a separate PR with the evidence and a test.frame_rateat byte 48 is already filled onmain(Source.cpp:583-584for stream info,static_asserton offset 48 inSceTypes.hpp). Please check the claim "it was left zero" against currentmain; if the black screen persists onmain, say what the debugger shows there. Replacingav_guess_frame_ratewith avg/r_frame_rate also changes behaviour and the description does not justify it; keepav_guess_frame_rateunless you can show a case where it is wrong.main; please rebase after the above.Pull request closed