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

Accept ProRes files (need -pix_fmt). Fix scale expression. #41

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

Conversation

stuartnlevy
Copy link

ffmpeg could fail to create a "baseline"-profile MP4 if the source movie uses a pixel format other than 4:2:0 (many but not all formats use 4:2:0).
ffmpeg's error report is buried in lots of other output, but it looks like:
x264 [error]: baseline profile doesn't support 4:2:2

For example, movies in one of the Apple ProRes formats have 4:2:2 or 4:4:4 pixel formats. Though these might be acceptable in non-"baseline" MP4 profiles, the ffmpeg H.264 wiki page ( https://trac.ffmpeg.org/wiki/Encode/H.264 ) warns that some players won't be able to play them. It suggests the "-pix_fmt yuv420p" ffmpeg option to convert to the baseline pixel format.

Also, in trying to run the ffmpeg command in the Dockerfile, we get errors related to parsing the option
-scale -1:'min(ih,360)'
This mysteriously seems to work if the above is changed to
-scale -1:'min(ih,360)'

@CLAassistant
Copy link

CLAassistant commented May 28, 2024

CLA assistant check
All committers have signed the CLA.

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.

2 participants