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

Confusing ffmpeg flags #3

Closed
rikai opened this issue Sep 9, 2016 · 2 comments
Closed

Confusing ffmpeg flags #3

rikai opened this issue Sep 9, 2016 · 2 comments

Comments

@rikai
Copy link
Contributor

rikai commented Sep 9, 2016

So I was looking at the bit of code that defines the ffmpeg output...

I assume that -f rawvideo -vcodec rawvideois defining the input formats for the input file being piped in?

Is the -pix_fmt rgb24 also for that?

I find the ordering of the flags a bit confusing, as -s 1280x720, -r 30& -y are all settings related to the output format, at least i believe, that are intermixed with input format settings, unless i'm misunderstanding?

Additionally, is the matroska container used for a specific reason, or is that just personal preference? I'm looking to increase compatibility in various ways and just want to make sure that's not some sort of hard requirement. :)

Any clarification you might be able to give on these things would be wonderful. 👍

@rikai rikai changed the title ffmpeg settings Confusing ffmpeg flags Sep 9, 2016
@djfun
Copy link
Owner

djfun commented Sep 9, 2016

The pixel format, frame rate and frame size should be input parameters, so that ffmpeg knows how to interpret the raw input data.
-y obviously is related to the output, but also different from all the other parameters.
You should also be able to other other container formats than matroska.

I would not consider myself a ffmpeg expert, but that's at least how I understand this command ;)

@rikai
Copy link
Contributor Author

rikai commented Sep 10, 2016

Gotcha, thanks. I was unsure about that, but in hindsight i suppose that is needed because a raw video stream doesn't define any of that itself, eh? Thanks for the clarification. :)

@rikai rikai closed this as completed Sep 10, 2016
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

No branches or pull requests

2 participants