[FFmpeg-user] -ss -t defining frams as start and frame accurate

Jim Shupert jshupert at pps-inc.com
Mon Jun 11 19:40:17 CEST 2012


Friends.
I have dv25 avi that i wish to cut up into smaller files  and transcode 
to mpg2

I seem to not be able to define a frame number as a start time

-ss 00:01:01:00  [ hh:mm:ss:ff ] seems to fail only

with Invalid duration specification for ss: 00:01:01:00

-ss 00:01:01 [ hh:mm:ss ] seems to work


I was thinking I could do frames from a dv25 file

console below

D:\m>ffmpeg -ss 00:01:01:00 -t 00:00:15 -y -i D:\m\T-C_Test.avi -vcodec
eo -b:V 6500000 -async 1 -aspect 4:3 -r 30000/101 -ab 224k -acodec mp2
.mpg
ffmpeg version N-41416-g718607b Copyright (c) 2000-2012 the FFmpeg deve
   built on Jun  8 2012 12:46:19 with gcc 4.6.3
   configuration: --enable-gpl --enable-version3 --disable-w32threads --
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enab
  --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enab
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --ena
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
libvorbis --enable-libvpx --ena  libavutil      51. 56.100 / 51. 56.100
   libavcodec     54. 25.100 / 54. 25.100
   libavformat    54.  6.101 / 54.  6.101
   libavdevice    54.  0.100 / 54.  0.100
   libavfilter     2. 78.101 /  2. 78.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
Invalid duration specification for ss: 00:01:01:00

?? so i cannot put in 00 frames -- i cannot put in any frame num?


D:\m>ffmpeg -ss 00:01:01 -t 00:00:15 -y -i D:\m\T-C_Test.avi -vcodec mp
-b:v 6500000 -async 1 -aspect 4:3 -r 30000/101 -b:a 224k -acodec mp2 
D:\1.mpg
ffmpeg version N-41416-g718607b Copyright (c) 2000-2012 the FFmpeg deve
   built on Jun  8 2012 12:46:19 with gcc 4.6.3
   configuration: --enable-gpl --enable-version3 --disable-w32threads --
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enab
  --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enab
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --ena
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
libvorbis --enable-libvpx --ena  libavutil      51. 56.100 / 51. 56.100
   libavcodec     54. 25.100 / 54. 25.100
   libavformat    54.  6.101 / 54.  6.101
   libavdevice    54.  0.100 / 54.  0.100
   libavfilter     2. 78.101 /  2. 78.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
[avi @ 0227d400] non-interleaved AVI
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'D:\m\T-C_Test.avi':
   Duration: 00:15:00.90, start: 0.000000, bitrate: 30392 kb/s
     Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv411p, 720x480 [
AR 4:3], 29.97 tbr, 29.97 tbn, 29.97 tbc
     Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, st
, 1536 kb/s
[mpeg @ 02376020] Invalid stream specifier: V.
     Last message repeated 1 times
[buffer @ 0227c220] w:720 h:480 pixfmt:yuv411p tb:1001/30000 sar:8/9 sw
lags=2
[ffmpeg_buffersink @ 0227bf00] No opaque field provided
[format @ 02460460] auto-inserting filter 'auto-inserted scaler 0' betw
ilter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 02389440] w:720 h:480 fmt:yuv411p sar:8/9 ->
80 fmt:yuv422p sar:8/9 flags:0x4
-async is forwarded to lavfi similarly to -af aresample=min_comp=0.001:
comp=0.100000.
[aresample @ 023bb900] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s
0Hz
[mpeg @ 02376020] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'D:\m\115b.mpg':
   Metadata:
     encoder         : Lavf54.6.101
     Stream #0:0: Video: mpeg2video, yuv422p, 720x480 [SAR 8:9 DAR 4:3],
200 kb/s, 90k tbn, 60 tbc
     Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
   Stream #0:0 -> #0:0 (dvvideo -> mpeg2video)
   Stream #0:1 -> #0:1 (pcm_s16le -> mp2)
Press [q] to stop, [?] for help
frame=   63 fps=0.0 q=24.8 size=     166kB time=00:00:01.01 bitrate=133
...
frame=  900 fps=116 q=31.0 Lsize=    1528kB time=00:00:14.98 bitrate= 8
/s dup=450 drop=0
video:1279kB audio:234kB global headers:0kB muxing overhead 0.952247%



More information about the ffmpeg-user mailing list