我想把一个1024x768的MP4视频切掉左边的一部分
使用ffmpeg命令
ffmpeg -i aaaa.mp4 -vf crop=849:768:175:0 output1.mp4
输出为
FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 18 2010 04:06:45 with gcc 4.4.2
configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-
libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect --enable
-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --ext
ra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisyn
th --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign
-hack
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.83. 0 / 52.83. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.52. 0 / 1.52. 0
libswscale 0.12. 0 / 0.12. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0197c300] max_analyze_duration reached
Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (18
0000/1) -> 90000.00 (180000/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aaaa.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
Duration: 00:00:57.57, start: 0.000000, bitrate: 622 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 1024x768, 466 kb/s, 14.28 fps, 90k t
br, 90k tbn, 180k tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 156 kb/s
[buffer @ 018b2ce0] w:1024 h:768 pixfmt:yuv420p
[mpeg4 @ 018b2880] removing common factors from framerate
[mpeg4 @ 018b2880] timebase not supported by mpeg 4 standard
Output #0, mp4, to 'output1.mp4':
Stream #0.0(eng): Video: mpeg4, yuv420p, 340x768, q=2-31, 200 kb/s, 90k tbn,
90k tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect parameters
such as bit_rate, rate, width or height
错误原因是什么呢?