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

Supporting -profile:v #108

Closed
davodm opened this issue Nov 15, 2021 · 1 comment
Closed

Supporting -profile:v #108

davodm opened this issue Nov 15, 2021 · 1 comment

Comments

@davodm
Copy link

davodm commented Nov 15, 2021

Hi, I just added these flags to video options and I can't generate the video cause it gives me this error:

Error: Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

And my flags are (to be supported in whatsapp):
.flags(['-profile:v baseline','-preset ultrafast','-movflags +faststart','-level 3.0'])

Is there any solution to fix this problem?

@davodm
Copy link
Author

davodm commented Nov 28, 2021

I fixed it with this trick:
1- unset pixelFormat attribute from videoOptions
2- set flags like this:
.flags(['-pix_fmt', 'yuv420p','-profile:v baseline','-preset ultrafast','-movflags +faststart','-level 3.0'])

@davodm davodm closed this as completed Nov 28, 2021
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

1 participant