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

Feature request: Render configuration option for GOP size #4002

Open
atticoos opened this issue Jun 15, 2024 · 2 comments
Open

Feature request: Render configuration option for GOP size #4002

atticoos opened this issue Jun 15, 2024 · 2 comments
Labels
filed by customer The problem affects a company license holder

Comments

@atticoos
Copy link

atticoos commented Jun 15, 2024

Feature Request 🛍️

Allow configuring the GOP size of the output video.

Use Case

As Remotion becomes used in more places and its output integrated with more services -- making additional encoding options available will be helpful to avoid re encoding the output video to achieve certain video requirements.

We use Mux for video delivery, and they have a set of standard input properties for video to minimize processing time and avoid re encoding. One requirement is a maximum GOP size of 239

We've been able to satisfy the request of the requirements, such as yup420p pixel format, and specific bitrates with Remotion's existing configuration options. However, longer videos have been flagged as having too high of a GOP size, and end up processing a full re encode:

"non_standard_input_reasons": {
  "video_gop_size": "high"
}

This would be a helpful setting, as we aim to reduce time to availability as much as possible.

Possible Solution

Add gopSize: number as an option to:

  • @remotion/renderer:renderMedia
  • @remotion/lambda/client: renderMediaOnLambda
@JonnyBurger JonnyBurger added the filed by customer The problem affects a company license holder label Jun 15, 2024
@JonnyBurger
Copy link
Member

Good idea, I am just not familiar with it. Which FFmpeg flags would this expose exactly? What should be the defaults? Which codecs out of the ones that we support support this parameter as well?

@atticoos
Copy link
Author

This is ffmpeg's -g flag, and by default, can be omitted unless otherwise specified by a value. While all video codecs that use I/P/B frames have GOPs, different codecs may prefer different GOP configurations but generally have the same implications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filed by customer The problem affects a company license holder
Projects
None yet
Development

No branches or pull requests

2 participants