You should provide timing list, rather than durations - 0,2,4,7,10..... On Thu, Oct 23, 2014 at 7:06 PM, Diogo Serrano <[email protected]> wrote:
> 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 > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
