[FFmpeg-user] Fixed GOP encoding for HLS

Christian Ebert blacktrash at gmx.net
Thu Dec 6 00:53:52 CET 2012


* 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


More information about the ffmpeg-user mailing list