[FFmpeg-user] Fixed GOP encoding for HLS

Andrew Sinclair ajsinclair at gmail.com
Thu Dec 6 00:58:43 CET 2012


What encode and segment commands are you using? And what frame rate is the
video?

The #EXTINF will be 10 secs worth of frames e.g. 250 frames at 25fps


On 6 December 2012 10:53, Christian Ebert <blacktrash at gmx.net> wrote:

> * Christian Ebert on Wednesday, December 05, 2012 at 21:00:43 +0000
> > To me it looks like -force_key_frames is not precise enough, I
> > set it at 10,20,30 etc. and:
> >
> > key_frame=1
> > pkt_pts_time=9.991300
> > key_frame=1
> > pkt_pts_time=10.014511
>
> Oops, that's audio, but it seems the keyframes always are at +1.4
> secs:
>
> ffprobe -show_frames test.ts 2>/dev/null | fgrep -B 14 -A 7 pict_type=I |
> head -45
> [FRAME]
> media_type=video
> key_frame=1
> pkt_pts=126000
> pkt_pts_time=1.400000
> pkt_dts=126000
> pkt_dts_time=1.400000
> pkt_duration=3600
> pkt_duration_time=0.040000
> pkt_pos=564
> width=512
> height=384
> pix_fmt=yuv420p
> sample_aspect_ratio=1:1
> pict_type=I
> coded_picture_number=0
> display_picture_number=0
> interlaced_frame=0
> top_field_first=0
> repeat_pict=0
> reference=0
> [/FRAME]
> --
> [FRAME]
> media_type=video
> key_frame=1
> pkt_pts=1026000
> pkt_pts_time=11.400000
> pkt_dts=1026000
> pkt_dts_time=11.400000
> pkt_duration=3600
> pkt_duration_time=0.040000
> pkt_pos=161116
> width=512
> height=384
> pix_fmt=yuv420p
> sample_aspect_ratio=1:1
> pict_type=I
> coded_picture_number=250
> display_picture_number=0
> interlaced_frame=0
> top_field_first=0
> repeat_pict=0
> reference=0
> [/FRAME]
>
> But the above makes this entry:
>
> #EXTINF:10.030933,
> test-000.ts
>
> even less understandable.
>
> c
> --
>   Was heißt hier Dogma, ich bin Underdogma!
> [ What the hell do you mean dogma, I am underdogma. ]
> free movies       --->>> http://www.blacktrash.org/underdogma
> http://itunes.apple.com/podcast/underdogma-movies/id363423596
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list