[FFmpeg-user] Segment times dynamic. Wrong durations
Diogo Serrano
diogopmserrano at gmail.com
Thu Oct 23 18:06:43 CEST 2014
Hi, i have this command.
I want to generate different times for my ts files.
My command:
ffmpeg -y -i rod.mp4 -force_key_frames
2,2,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9
-codec:v libx264 -r 25 -g 25 -codec:a libfdk_aac -f stream_segment
-segment_times
2,2,3,3,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9
-segment_format mpegts
But this command generate ts files with wrong durations. The espected
result is:
00.ts -> 2 seconds
01.ts -> 2 seconds
02.ts -> 3 seconds
03.ts -> 3 seconds
.....
.....
.....
Last ts file is 9 seconds.
The sum of all this number is the duration of the video.
Thanks
More information about the ffmpeg-user
mailing list