[FFmpeg-user] to crop the bottom

Jim Shupert jshupert at pps-inc.com
Fri Nov 18 00:16:41 CET 2011


friends,

I wish to crop off the bottom 40 lines of a 720x480 video  and have the 
output 720x480
actually i wish to simply crop off the bottom 5 or 8 lines - but used 40 
so the effect would be bold.
i think my command is not doing anything.

I do not wish to reencode - but simply trim off the bottom.

I found the "old way( -cropbottom NN " simple - but i seem to not be 
able to make the -vf way work
Thanks


ffmpeg -i 1.mp4 -vf crop=720:480:0:40 -vcodec copy -acodec copy 2.mp


D:\VidC_05_shr\vmp4\j>ffmpeg -i 1.mp4 -vf crop=720:480:0:40 -vcodec copy 
-acodec copy 2.mp4
ffmpeg version N-34549-g13b7781, Copyright (c) 2000-2011 the FFmpeg 
developers
   built on Nov  6 2011 22:02:08 with gcc 4.6.1
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib 
--enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libfreetype --enable-libgsm --enable-libmp3lame --en
able-libopenjpeg --enable-librtmp --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-libvo-aacenc 
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx 
--enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil    51. 24. 0 / 51. 24. 0
   libavcodec   53. 28. 0 / 53. 28. 0
   libavformat  53. 19. 0 / 53. 19. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 47. 0 /  2. 47. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
[aac @ 021B8860] channel element 3.0 is not allocated
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 1
     compatible_brands: isomiso2avc1mp41mp423gp5
     creation_time   : 2011-11-03 15:46:00
     encoder         : FFmbc 0.6
   Duration: 00:04:22.82, start: 0.000000, bitrate: 3437 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 
720x480 [SAR 8:9 DAR 4:3], 3060 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 
59.94 tbc
     Metadata:
       creation_time   : 2011-11-03 15:46:00
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 4.0, 
s16, 223 kb/s
     Metadata:
       creation_time   : 2011-11-03 15:46:00
       handler_name    : SoundHandler
     Stream #0:2(und): Data: none (mp4s / 0x7334706D)
     Metadata:
       creation_time   : 2011-11-16 21:38:21
       handler_name    : GPAC MPEG-4 OD Handler
     Stream #0:3(und): Data: none (mp4s / 0x7334706D)
     Metadata:
       creation_time   : 2011-11-16 21:38:21
       handler_name    : GPAC MPEG-4 BIFS Handler
     Stream #0:4(und): Data: none (rtp  / 0x20707472)
     Metadata:
       creation_time   : 2011-11-16 21:38:21
       handler_name    : GPAC ISO Hint Handler
     Stream #0:5(und): Data: none (rtp  / 0x20707472)
     Metadata:
       creation_time   : 2011-11-16 21:38:22
       handler_name    :
strptime() unavailable on this system, cannot convert the date string.
Output #0, mp4, to '2.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 1
     compatible_brands: isomiso2avc1mp41mp423gp5
     creation_time   : 2011-11-03 15:46:00
     encoder         : Lavf53.19.0
     Stream #0:0(und): Video: h264 (![0][0][0] / 0x0021), yuv420p, 
720x480 [SAR 8:9 DAR 4:3], q=2-31, 3060 kb/s, 29.97 fps, 30k tbn, 29.97 tbc
     Metadata:
       creation_time   : 2011-11-03 15:46:00
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 4.0, 
223 kb/s
     Metadata:
       creation_time   : 2011-11-03 15:46:00
       handler_name    : SoundHandler
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 7875 fps=3111 q=-1.0 Lsize=  105551kB time=00:04:22.76 
bitrate=3290.7kbits/s
video:98173kB audio:7184kB global headers:0kB muxing overhead 0.183468%

thanks
j


More information about the ffmpeg-user mailing list