[FFmpeg-user] Why the ffmpeg split the video have more than some timestamp use -t

Steven Liu lingjiujianke at gmail.com
Tue Nov 27 10:51:56 CET 2012


2012/11/27 ypatios <ypatios at gmail.com>:
> hallo!
>
>
> have you tried putting -ss after -i ? like so:
>
> $ ffmpeg -i input.mkv -ss 00:00:10.000 ...
>
> hope it helps
>

When i use the command :
./ffmpeg -y -i ../kaka.mkv -ss 00:00:10.00 -scodec copy -vcodec copy
-acodec copy  -f mpegts -bsf h264_mp4toannexb -copyts -t 20 output.ts

output:
ffmpeg version N-47117-g4079210 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 27 2012 17:44:27 with gcc 4.4.4 (GCC) 20100726 (Red Hat 4.4.4-13)
  configuration: --enable-libx264 --enable-gpl --libdir=/usr/local/lib
--enable-debug --enable-debug=3 --enable-avfilter --disable-stripping
  libavutil      52.  9.102 / 52.  9.102
  libavcodec     54. 77.100 / 54. 77.100
  libavformat    54. 37.100 / 54. 37.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 23.102 /  3. 23.102
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 17.101 /  0. 17.101
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from '../kaka.mkv':
  Metadata:
    creation_time   : 2009-10-07 15:23:35
  Duration: 00:01:02.44, start: 0.000000, bitrate: 13589 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x796, SAR 1:1
DAR 480:199, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Transformers.Revenge.of.the.Fallen.2009
    Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp,
1536 kb/s (default)
    Metadata:
      title           : DTS-HDMA core 1536k
    Stream #0:2(chi): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Metadata:
      title           : DD2.0 192K
    Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, s16, 224 kb/s
    Metadata:
      title           : DD2.0 224K
Output #0, mpegts, to 'output.ts':
  Metadata:
    encoder         : Lavf54.37.100
    Stream #0:0(eng): Video: h264, yuv420p, 1920x796 [SAR 1:1 DAR
480:199], q=2-31, 23.98 fps, 90k tbn, 23.98 tbc (default)
    Metadata:
      title           : Transformers.Revenge.of.the.Fallen.2009
    Stream #0:1(eng): Audio: dts, 48000 Hz, 5.1(side), 1536 kb/s (default)
    Metadata:
      title           : DTS-HDMA core 1536k
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x1fc3040] st:0 PTS: 69120 DTS: 69120 < 69661 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 189090 DTS: 189090 < 190621 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 189990 DTS: 189990 < 190622 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 256320 DTS: 256320 < 256861 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 329220 DTS: 329220 < 331741 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 330120 DTS: 330120 < 331742 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 331020 DTS: 331020 < 331743 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 406980 DTS: 406980 < 412381 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 407880 DTS: 407880 < 412382 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 408780 DTS: 408780 < 412383 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 409680 DTS: 409680 < 412384 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 410580 DTS: 410580 < 412385 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 411480 DTS: 411480 < 412386 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 412380 DTS: 412380 < 412387 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 458820 DTS: 458820 < 459361 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 515520 DTS: 515520 < 518941 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 516420 DTS: 516420 < 518942 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 517320 DTS: 517320 < 518943 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 518220 DTS: 518220 < 518944 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 586530 DTS: 586530 < 590941 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 587430 DTS: 587430 < 590942 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 588330 DTS: 588330 < 590943 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 589230 DTS: 589230 < 590944 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 590130 DTS: 590130 < 590945 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 669060 DTS: 669060 < 669601 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 792900 DTS: 792900 < 797311 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 793800 DTS: 793800 < 797312 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 794700 DTS: 794700 < 797313 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 795600 DTS: 795600 < 797314 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 796500 DTS: 796500 < 797315 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 864900 DTS: 864900 < 868321 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 865800 DTS: 865800 < 868322 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 866700 DTS: 866700 < 868323 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 867600 DTS: 867600 < 868324 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 913860 DTS: 913860 < 917281 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 914760 DTS: 914760 < 917282 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 915660 DTS: 915660 < 917283 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 916560 DTS: 916560 < 917284 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 969570 DTS: 969570 < 973981 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 970470 DTS: 970470 < 973982 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 971370 DTS: 971370 < 973983 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 972270 DTS: 972270 < 973984 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 973170 DTS: 973170 < 973985 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1116450 DTS: 1116450 < 1120861 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1117350 DTS: 1117350 < 1120862 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1118250 DTS: 1118250 < 1120863 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1119150 DTS: 1119150 < 1120864 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1120050 DTS: 1120050 < 1120865 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1168290 DTS: 1168290 < 1168831 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1242180 DTS: 1242180 < 1243711 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1243080 DTS: 1243080 < 1243712 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1299780 DTS: 1299780 < 1302301 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1300680 DTS: 1300680 < 1302302 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1301580 DTS: 1301580 < 1302303 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1405440 DTS: 1405440 < 1405981 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1498500 DTS: 1498500 < 1503901 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1499400 DTS: 1499400 < 1503902 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1500300 DTS: 1500300 < 1503903 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1501200 DTS: 1501200 < 1503904 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1502100 DTS: 1502100 < 1503905 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1503000 DTS: 1503000 < 1503906 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1503900 DTS: 1503900 < 1503907 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1588770 DTS: 1588770 < 1589311 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1682820 DTS: 1682820 < 1687231 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1683720 DTS: 1683720 < 1687232 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1684620 DTS: 1684620 < 1687233 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1685520 DTS: 1685520 < 1687234 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1686420 DTS: 1686420 < 1687235 invalid, clipping
[mpegts @ 0x1fc3040] st:0 PTS: 1773090 DTS: 1773090 < 1773631 invalid, clipping
frame=  469 fps=0.0 q=-1.0 Lsize=   37861kB time=00:00:20.02
bitrate=15484.8kbits/s
video:31028kB audio:3682kB subtitle:0 global headers:0kB muxing
overhead 9.077939%


================================================



perhaps the copyts have problem in the newest ffmpeg code, or i have
use wrong parameter ?
git pull from git://source.ffmpeg.org/ffmpeg.git:


:)


More information about the ffmpeg-user mailing list