Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: T-buch on January 20, 2019, 01:17:11 PM

Title: don't understand the Avidemux Wiki about I-frames option
Post by: T-buch on January 20, 2019, 01:17:11 PM
Trying to understand the Wiki-section about Frame -> i-frames (https://www.avidemux.org/admWiki/doku.php?id=tutorial:h.264)


If I want to recode a 25 fps videofile and sets the GOP size to max 25 and min. 25, can I then count on the result to be 25 key-frames per second?
Title: Re: don't understand the Avidemux Wiki about I-frames option
Post by: eumagga0x2a on January 20, 2019, 01:24:07 PM
This would set the GOP size (the interval between two IDR frames) to 25 = 1 second between two seek points (1 keyframe per second) resulting in a significantly worse compression rate than with more moderate settings (longer GOPs).
Title: Re: don't understand the Avidemux Wiki about I-frames option
Post by: T-buch on January 20, 2019, 02:23:31 PM
Quote from: eumagga0x2a on January 20, 2019, 01:24:07 PM
This would set the GOP size (the interval between two IDR frames) to 25 = 1 second between two seek points (1 keyframe per second) resulting in a significantly worse compression rate than with more moderate settings (longer GOPs).

Thanks - It makes sense. So the figure represents a fps?
Title: Re: don't understand the Avidemux Wiki about I-frames option
Post by: eumagga0x2a on January 20, 2019, 02:44:48 PM
No, fps is number of pictures per second (ideally, the time increment between frames is a constant), GOP size is the number of frames between two keyframes plus one.
Title: Re: don't understand the Avidemux Wiki about I-frames option
Post by: T-buch on January 20, 2019, 03:36:35 PM

Quote from: eumagga0x2a on January 20, 2019, 01:24:07 PM
This would set the GOP size (the interval between two IDR frames) to 25 = 1 second between two seek points (1 keyframe per second) resulting in a significantly worse compression rate than with more moderate settings (longer GOPs).

Why is there 1 key frame / I-frame per second?
Title: Re: don't understand the Avidemux Wiki about I-frames option
Post by: eumagga0x2a on January 20, 2019, 03:48:44 PM
Because you specified for some reason a fixed (mix=max) number of frames between keyframes equal 25. At FPS = 25, it means you want 1 keyframe each second. At FPS = 50 it would result in a keyframe every 0.5 seconds. Normally, the encoder decides based on the content of pictures when a keyframe should be used.