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

Mark Blain mblainml at earthlink.net
Wed May 18 01:08:24 CEST 2011


Andy Sheen <sheen.andy at googlemail.com> wrote:

>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...

Good observation.  I think the output tbn shown is just a side-effect.

If I use -vf "scale=640:360" or just remove the scale filter, the output
shows 30k tbn and encoding begins.  See below.
With either -vf "scale=640:-1" or -vf "scale=640:361" (just for testing, of
course) it shows 90k tbn and the program exits.  


ffmpeg -i test.avi -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 @ 0x31386c0] w:624 h:352 pixfmt:yuv420p tb:1/1000000 sar:1/1
[libx264 @ 0x3137960] using SAR=1/1
[libx264 @ 0x3137960] using cpu capabilities: MMX2 SSE2Fast FastShuffle
SSEMisalign LZCNT
[libx264 @ 0x3137960] profile High, level 3.0
[libx264 @ 0x3137960] 264 - core 115 r1995 c1e60b9 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2011 - http://www.videolan.org/x264.html
 - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1
trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 blu
ray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0
direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_
min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=26.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:
1.00
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf53.1.0
    Stream #0.0: Video: libx264, yuv420p, 624x352 [PAR 1:1 DAR 39:22],
q=2-31, 200 kb/s, 30k tbn, 29.97 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
frame=  308 fps= 24 q=32.0 size=     182kB time=8.51 bitrate= 175.3kbits/s 
  bits/s


More information about the ffmpeg-user mailing list