feat(libSceAvPlayer): accept VP9 video and Opus audio streams #7200
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7200"
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 mrfelek on 2026-10-17T16:04:01Z.
What
sceAvPlayerAddSourcenow accepts VP9 video and Opus audio streams.IsStreamSupportedonly took H.264, HEVC and AAC, so a WebM source had no usable streams, and the player reported an error instead of playing.Metal Gear Solid: Peace Walker (PPSA18216) passes its opening movies to
sceAvPlayerAddSourceas WebM files with VP9 and Opus, for example/app0/mgspw/mlg/data/mov/pw_op_eng.webm(1280x720). Onmainthe movie gets no streams, and the game shows a black screen where it should play. Since the title hands these files to the system player, the console's AvPlayer accepts VP9 and Opus.The bundled FFmpeg already has the VP9 and Opus decoders and the Matroska/WebM demuxer, so the change is the codec list. The decoded frames take the existing paths: video is converted to NV12 at the 256-byte pitch, and audio to 16-bit PCM.
VP8 and other codecs stay out, because I haven't seen a title use them.
guest_avplayergets a VP9/Opus case. The test embeds a 1.6 KB WebM (100x60, 30 fps, 6 frames, silent stereo Opus at 48 kHz) with the same picture as the MP4 test movie. It checks the stream info, then checks every delivered frame with the existing picture and audio checks, until the end of the stream.Tested
Release builds of this branch (
mainf51724078plus this commit):guest_avplayer,guest_avplayer_callback_close(ctest)guest_avplayer_testsrepeatedmain'sSource.cppWebM ready event missingmainc9e6c45dewith #6196, #6014, #6237, #6842 and #7072. With this change the opening movies decode and play through the 4-minute run. Without it the screen stays black after the Kant quote.Not tested on macOS or on a console. The title run was on Linux only.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)AI-assisted; the runs are from my machine.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T16:38:19Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAvPlayer/src/Source.cppcore/libs/tests/GuestAvPlayer.cppcore/libs/tests/GuestAvPlayer.cpp