[FFmpeg-user] Problems cutting out part of video with ffmpeg

Jim Holmström jim.holmstroem at gmail.com
Sat Feb 4 19:15:14 CET 2012


Hi guys,

I'm having some troubles cutting out a part of video with ffmpeg and have
tried asking about it at superuser forum without any luck.
http://superuser.com/questions/385303/unable-to-cut-out-part-of-video-with-ffmpeg

I'm trying with:

ffmpeg -ss 01:58 -t 21 -i row.avi -vcodec copy row_cut.avi
and
ffmpeg -ss 1 -i row.avi -vcodec copy -t 3 row_cut.avi

and getting this output with the latest ffmpeg (with a slight variation
since the second one is a shorter cut)

ffmpeg version git-2012-02-02-c853124 Copyright (c) 2000-2012 the
FFmpeg developers
built on Feb  2 2012 23:17:50 with gcc 4.6.1
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable --libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvorbis --enable-libx264
--enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
 libavutil      51. 37.100 / 51. 37.100
 libavcodec     54.  0.102 / 54.  0.102
 libavformat    54.  0.100 / 54.  0.100
 libavdevice    53.  4.100 / 53.  4.100
 libavfilter     2. 61.100 /  2. 61.100
 libswscale      2.  1.100 /  2.  1.100
 libswresample   0.  6.100 /  0.  6.100
 libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from 'row.avi':
 Duration: 00:03:13.93, start: 0.000000, bitrate: 46210 kb/s
  Stream #0:0: Video: rawvideo, pal8, 640x300, 30 tbr, 30 tbn, 30 tbc
File 'row_cut.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'row_cut.avi':
 Metadata:
  ISFT            : Lavf54.0.100
  Stream #0:0: Video: rawvideo, pal8, 640x300, q=2-31, 30 tbn, 30 tbc
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=  631 fps=125 q=-1.0 Lsize=  118334kB time=00:00:21.03
bitrate=46088.4kbits/s
video:118312kB audio:0kB global headers:0kB muxing overhead 0.018043%


Where I get at least a 21s (or 3s in the second case) video as output and
no apparent errors but the video won't play in VLC (ticker rolls but only
displays VLC-logo) nor mplayer ("Internal data stream error").
Posted the output file on my homepage
http://www.slimjim.name/video/row_cut.avi if you want to check the file and
I'm sorry but can't post the input file.

Thanks beforehand and ffmpeg rocks! //Jim


More information about the ffmpeg-user mailing list