[FFmpeg-user] Convert some hundreds files to a H264

Andy Sheen sheen.andy at googlemail.com
Wed May 18 00:31:56 CEST 2011



Mark Blain wrote on Tue 17 May at 23:25 UK time
> ffmpeg -i test.avi -vf "scale=640:-1" -vcodec libx264 -preset slow -crf 26
> -an -f mp4 test.mp4
>
> ffmpeg version git-N-29970-ge280a4d, Copyright (c) 2000-2011 the FFmpeg
> developers
>    built on May 17 2011 02:28:56 with gcc 4.5.0 20100414 (Fedora MinGW
> 4.5.0-1.fc14)
>    configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build
> --arch=x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw
> 32- --cc='ccache i686-pc-mingw32-gcc' --enable-w32threads
> --enable-memalign-hack --enable-runtime-cpudetect --enable-cross-compile -
> -enable-static --disable-shared --extra-libs='-lws2_32 -lwinmm'
> --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/
> build/include' --extra-ldflags='-static
> -L/var/www/users/research/ffmpeg/snapshots/build/lib' --enable-bzlib
> --enable-zlib --enable-
> gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libspeex
> --enable-libtheora --enable-libvorbis --enable-libfaac --e
> nable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
>    libavutil    51.  2. 1 / 51.  2. 1
>    libavcodec   53.  6. 0 / 53.  6. 0
>    libavformat  53.  1. 0 / 53.  1. 0
>    libavdevice  53.  0. 0 / 53.  0. 0
>    libavfilter   2.  5. 0 /  2.  5. 0
>    libswscale    0. 14. 0 /  0. 14. 0
>    libpostproc  51.  2. 0 / 51.  2. 0
> Input #0, avi, from 'test.avi':
>    Duration: 00:06:00.12, start: 0.000000, bitrate: 938 kb/s
>      Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 29.97
> tbr, 29.97 tbn, 29.97 tbc
>      Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
> [buffer @ 0x190aea0] w:624 h:352 pixfmt:yuv420p tb:1/1000000 sar:1/1
> [scale @ 0x39e73e0] w:624 h:352 fmt:yuv420p ->  w:640 h:361 fmt:yuv420p
> flags:0xe2000004
> [libx264 @ 0x1909e20] width or height not divisible by 2 (640x361)
> Output #0, mp4, to 'test.mp4':
>      Stream #0.0: Video: libx264, yuv420p, 640x361 [PAR 1:1 DAR 640:361],
> q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
> Stream mapping:
>    Stream #0.0 ->  #0.0
> Error while opening encoder for output stream #0.0 - maybe incorrect
> parameters such as bit_rate, rate, width or height

I have to say it doesn't look like a scaling problem but the 90k tbn 
looks suspicious to me. No idea why it thinks that, but the value should 
probably be 29.97...


More information about the ffmpeg-user mailing list