Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Thread Tools Search this Thread Display Modes
Old 12th November 2015, 10:53   #1  |  Link
Registered User
Join Date: Sep 2015
Posts: 4
ffmpeg: setting IDR frames option.

Hi all,

Can somebody help me regarding IDR frames in ffmpeg.

My client wants the below :

H.264 elementary stream + AAC audio stream muxed in mpeg 2 transport stream.
H.264 Video bitrate : CBR@1.5mbps
Frame rate = 29.97 fps.
Resolution = 720x480 Anamorphic.
Profile = Main@L3.2 , CABAC.
GOP length = 15, Every I frame must be an IDR.

I think this requires the use of keyint=15:keyint_min=15:no-scenecut in ffmpeg to force a closed gop right??

How do i verify that every I frame is an IDR?

Also, the client has stated that the H.264 stream must be in streaming format. i.e SPS and other sequence headers must be repeated throughout the stream.

How do i ensure my H.264 stream is streaming format? do i need to use annex B filter : -bsf:v h264_mp4toannexb?

My source is Apple ProRes 422 HQ @ 25 fps.

I would appreciate any help you guys can provide.
Prathamesh is offline   Reply With Quote
Old 17th November 2015, 23:07   #2  |  Link
Registered User
Join Date: Nov 2004
Location: UK
Posts: 2,415
On Mac/Linux:

ffprobe -show_frames -of compact -i "source" | grep 'key_frame=1'

Someone may translate this to PC.

Switch player from Telestream has now very neat feature called Timeline, which nicely shows GOP structure:


but this costs money.
kolak is offline   Reply With Quote
Old 19th November 2015, 00:05   #3  |  Link
Registered User
Join Date: Mar 2006
Posts: 1,044
Should work with most decent formats:
@ffprobe -v quiet -pretty -print_format json -show_entries "format=size,bit_rate:frame=coded_picture_number,pict_type,key_frame" -select_streams v:0 %1 > %1.json
pandy is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 10:16.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.