Skip to content

Add option to configure b-frames -bf #346

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

Closed
Euklios opened this issue Aug 21, 2024 · 2 comments
Closed

Add option to configure b-frames -bf #346

Euklios opened this issue Aug 21, 2024 · 2 comments

Comments

@Euklios
Copy link
Collaborator

Euklios commented Aug 21, 2024

Is your feature request related to a problem? Please describe.
Sources from the issue #318.
FFmpeg tends to emits b-frames, which are not understood by all parsers.

Describe the solution you'd like
There should be an option to configure bframes, which should allow to disable them entirely -bf 0.

Describe alternatives you've considered
This could also be done using extraArgs

@Euklios
Copy link
Collaborator Author

Euklios commented Aug 21, 2024

@AlexanderSchuetz97 for documentation purposes:
To my understanding, the option -bf specifies how many b-frames ffmpeg is allowed to emit between I/P-Frames.
So -bf 2 allows 2 b frames, while -bf 0 essentially limits the number of b-frames to 0, therefore disabling it.

Euklios added a commit to Euklios/ffmpeg-cli-wrapper that referenced this issue Aug 21, 2024
Euklios added a commit to Euklios/ffmpeg-cli-wrapper that referenced this issue Aug 21, 2024
@AlexanderSchuetz97
Copy link

Your understanding matches mine.
I have to deal with decoders for h264 for example that cannot handle bframes so I have to turn them off. If one of those decoders attempts to decode a video stream with b frames then the video will jitter as it will play the frames in the order that it has read them. This means that the video will appear to playback in reverse sometimes for half a second before jumping forward a second again.

I do not think I will ever set a value other than 0 explicitly, but that is my, someone else may need to set this to 1 or higher forwhatever reason. I have observed that 2 appears to be the default that ffmpeg uses if you specify nothing. (I have seen this in ffprobes output from looking at created files)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants