Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert to yuv420p pixel format #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

geoffoxholm
Copy link

@geoffoxholm geoffoxholm commented May 21, 2020

Updated the convertVideo function's use of ffmpeg to ensure the pixel format is yuv420p. This is a more common format, and is required by the OMX player. OMX is the hardware accelerated video player that is becoming standard for Retropie.

I encountered a need for this with some MAME rom videos.

This may fix #194

Here's a video to try with https://clone.screenscraper.fr/api/mediaVideoJeu.php?devid=sselph&devpassword=ROMHasher20160916&softname=sselph-scraper&crc=&md5=&sha1=&systemeid=158&jeuid=43783&media=video&mediaformat=mp4

Its stream info (reported by ffmpeg) is:
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 224x768 [SAR 18:7 DAR 3:4], 136 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc (default)

With this PR the new stream info is:
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 320x1098 [SAR 1647:640 DAR 3:4], 238 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default)

…at is expected by the OMX player (hardware accelerated player for raspberry pi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No video snaps for MAME or Neo Geo games.
1 participant