[FFmpeg-user] The Start time is wrong when use -ss 00:00:00.00
Steven Liu
lingjiujianke at gmail.com
Mon Nov 19 12:02:21 CET 2012
>
> Try moving -t to immediately before the output file. And make sure you're
> using the latest git version. The order of these commands seems to have been
> changed recently. If that doesn't work, then re-post the command, with full
> uncut console output, and provide a sample so the developers can look at it.
>
Hi Rodney Baker,
Thanks for your help, I'm a fish.
I have tried with your suggestion, but the problem also, I'm sure i
using newset code, i use git pull today.
The input is :
ffmpeg -y -i a/kaka.mkv -scodec copy -vcodec copy -acodec copy -t 10
-bsf h264_mp4toannexb -f mpegts output.ts
the console output is:
ffmpeg version N-46881-g45d8537 Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 19 2012 17:53:01 with gcc 4.4.4 (GCC) 20100726 (Red Hat 4.4.4-13)
configuration: --enable-libx264 --enable-gpl --disable-yasm
--libdir=/usr/local/lib --enable-debug --enable-debug=3
--enable-avfilter --disable-stripping
libavutil 52. 8.100 / 52. 8.100
libavcodec 54. 73.100 / 54. 73.100
libavformat 54. 37.100 / 54. 37.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 23.101 / 3. 23.101
libswscale 2. 1.102 / 2. 1.102
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from 'a/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 @ 0x1e36040] st:0 PTS: 116640 DTS: 116640 < 121951 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 117540 DTS: 117540 < 121952 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 118440 DTS: 118440 < 121953 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 119340 DTS: 119340 < 121954 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 120240 DTS: 120240 < 121955 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 121140 DTS: 121140 < 121956 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 240480 DTS: 240480 < 245791 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 241380 DTS: 241380 < 245792 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 242280 DTS: 242280 < 245793 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 243180 DTS: 243180 < 245794 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 244080 DTS: 244080 < 245795 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 244980 DTS: 244980 < 245796 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 379620 DTS: 379620 < 384031 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 380520 DTS: 380520 < 384032 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 381420 DTS: 381420 < 384033 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 382320 DTS: 382320 < 384034 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 383220 DTS: 383220 < 384035 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 466020 DTS: 466020 < 470431 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 466920 DTS: 466920 < 470432 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 467820 DTS: 467820 < 470433 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 468720 DTS: 468720 < 470434 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 469620 DTS: 469620 < 470435 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 574560 DTS: 574560 < 579871 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 575460 DTS: 575460 < 579872 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 576360 DTS: 576360 < 579873 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 577260 DTS: 577260 < 579874 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 578160 DTS: 578160 < 579875 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 579060 DTS: 579060 < 579876 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 668610 DTS: 668610 < 673021 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 669510 DTS: 669510 < 673022 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 670410 DTS: 670410 < 673023 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 671310 DTS: 671310 < 673024 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 672210 DTS: 672210 < 673025 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 755010 DTS: 755010 < 759421 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 755910 DTS: 755910 < 759422 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 756810 DTS: 756810 < 759423 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 757710 DTS: 757710 < 759424 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 758610 DTS: 758610 < 759425 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 828000 DTS: 828000 < 830431 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 828900 DTS: 828900 < 830432 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 829800 DTS: 829800 < 830433 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 878850 DTS: 878850 < 880381 invalid, clipping
[mpegts @ 0x1e36040] st:0 PTS: 879750 DTS: 879750 < 880382 invalid, clipping
frame= 241 fps=0.0 q=-1.0 Lsize= 16863kB time=00:00:10.00
bitrate=13801.1kbits/s
video:13585kB audio:1849kB subtitle:0 global headers:0kB muxing
overhead 9.260478%
When i use ffmpeg to see the start time:
ffmpeg -i output.ts
the output is:
ffmpeg version N-46881-g45d8537 Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 19 2012 17:53:01 with gcc 4.4.4 (GCC) 20100726 (Red Hat 4.4.4-13)
configuration: --enable-libx264 --enable-gpl --disable-yasm
--libdir=/usr/local/lib --enable-debug --enable-debug=3
--enable-avfilter --disable-stripping
libavutil 52. 8.100 / 52. 8.100
libavcodec 54. 73.100 / 54. 73.100
libavformat 54. 37.100 / 54. 37.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 23.101 / 3. 23.101
libswscale 2. 1.102 / 2. 1.102
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 2.100 / 52. 2.100
Input #0, mpegts, from 'output.ts':
Duration: 00:00:10.01, start: 1.400000, bitrate: 13800 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p, 1920x796, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x101](eng): Audio: dts (DTS) ([6][0][0][0] / 0x0006),
48000 Hz, 5.1(side), fltp, 1536 kb/s
At least one output file must be specified
Thanks
More information about the ffmpeg-user
mailing list