[FFmpeg-devel] cutting an FLV
Cyrus A
lists
Mon Jul 16 00:02:50 CEST 2007
I'm trying to cut a small portion out of a larger FLV file. I have an
FLV file that is 156 seconds long. The command...
ffmpeg -ss 6 -t 100 -y -vcodec copy -acodec copy -i
/home/cyrus/Desktop/test.flv /home/cyrus/Desktop/cut.flv
...should create a file that is 94 seconds long (seeking 6 seconds,
duration for 100 seconds). Instead, it creates a file 150 seconds long.
That is, it seems to be seeking for 6 seconds, then giving me the rest
of the clip. Any ideas why that's happening?
Cyrus
----------------------------
Longer output:
ffmpeg -ss 6 -t 100 -y -vcodec copy -acodec copy -i
/home/cyrus/Desktop/test.flv /home/cyrus/Desktop/cut.flv
FFmpeg version SVN-r9690, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-libmp3lame
libavutil version: 49.4.1
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jul 15 2007 17:51:50, gcc: 4.1.1 20070105 (Red Hat 4.1.1-51)
Seems stream 0 codec frame rate differs from container frame rate:
1000.00 (1000/1) -> 29.92 (359/12)
Input #0, flv, from '/home/cyrus/Desktop/test.flv':
Duration: 00:02:36.0, start: 0.000000, bitrate: 64 kb/s
Stream #0.0: Video: flv, yuv420p, 480x384, 29.92 fps(r)
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Output #0, flv, to '/home/cyrus/Desktop/cut.flv':
Stream #0.0: Video: flv, yuv420p, 480x384, q=2-31, 1000.00 fps(c)
Stream #0.1: Audio: libmp3lame, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 4664 fps= 0 q=0.0 Lsize= 6105kB time=150.0 bitrate=
333.4kbits/s
video:4723kB audio:1216kB global headers:0kB muxing overhead 2.798869%
More information about the ffmpeg-devel
mailing list