[FFmpeg-user] ffmpeg transcode from input.mkv to segment m3u8, pts have problem
Steven Liu
lingjiujianke at gmail.com
Tue Oct 30 04:30:45 CET 2012
Hi Guys,
When we use ffmpeg to transcode from input mkv to m3u8
mpegts, it have a problem,
The first segment mpegts's first packet "audio pts" is
wrong, the pts is very large, maybe i have used wrong parameter?
the command line is
ffmpeg -i input.mkv -force_key_frames 1,4,8,13,18,24
-strict experimental -acodec aac -vcodec libx264 -map 0:0 -map 0:1
-b:v 2000k -r 25 -b:a 88k -ar 44100 -preset ultrafast -vprofile main
-vlevel 2.0 -f segment -segment_format mpegts -segment_list a.m3u8
-segment_times 1,4,8,13,18,24 -segment_time_delta 0.05 -bsf
h264_mp4toannexb -v debug -s 1280x720 -async 1 test-%d.ts
Look at the test-0.ts file use ffprobe
ffprobe -show_packets test-0.ts |less
[PACKET]
codec_type=audio
stream_index=1
pts=8589932502
pts_time=95443.694467
dts=8589932502
dts_time=95443.694467
duration=2089
duration_time=0.023211
convergence_duration=N/A
convergence_duration_time=N/A
size=124
pos=564
flags=K
[/PACKET]
[PACKET]
codec_type=audio
stream_index=1
pts=0
pts_time=0.000000
dts=0
dts_time=0.000000
duration=2089
duration_time=0.023211
convergence_duration=N/A
convergence_duration_time=N/A
size=155
pos=42112
flags=K
[/PACKET]
The first packet pts is wrong ,it's very large,
perhaps i need input some other parameters?
Thanks
More information about the ffmpeg-user
mailing list