[FFmpeg-user] ffmpeg splite mkv file and transcode to a new file

Steven Liu lingjiujianke at gmail.com
Thu Oct 25 09:53:44 CEST 2012


Hi Guys,


            Use the command to split the mkv file and transcode it to
a new mpegts file,
            for example:

            input mkv:  00:01:00.00,   i want to split the mkv from
10s to 20s (duration is 10s),
            split the move from input mkv 00:00:10.00 duration 10s,
and copy the timestamp from input mkv.
            but the dest mpegts file's start time always from
00:00:00.00 or error time (e.g. 00:00:01.400000).
            Perhaps the ffmpeg comput the pts error?

            -copyts perhaps is nouse?

            I have try the command :
            ffmpeg -v debug -y -ss 00:00:10.00 -t 00:00:10.00 -i
input.mkv -strict -2  -scodec copy -f mpegts -bsf h264_mp4toannexb
output.ts

            and

             ffmpeg -v debug -y -ss 00:00:10.00 -t 00:00:10.00 -i
input.mkv -strict -2  -copyts -scodec copy -f mpegts -bsf
h264_mp4toannexb  output.ts


            The result is same




Thanks


More information about the ffmpeg-user mailing list