[FFmpeg-user] Command Line Args identical to VLC's Profile "Video - H.264 + MP3 (MP4)"?

Gan Uesli Starling gan at starling.us
Fri Jan 24 12:50:38 CET 2014


The command as used now to compile a directory of stills into video...

ffmpeg -f image2 -y -i "foo/bar/frame_%09d.$ext_fm" -r 30 -s 960x720
-qmin 0 -qmax 40 "foo/bar/name.mp4"

The output is...

ffmpeg version git-2014-01-19-0500623 Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jan 19 2014 12:36:41 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/home/aplonis/ffmpeg_build
--extra-cflags=-I/home/aplonis/ffmpeg_build/include
--extra-ldflags=-L/home/aplonis/ffmpeg_build/lib
--bindir=/home/aplonis/bin --extra-libs=-ldl --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-nonfree --enable-x11grab
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 48.101 / 55. 48.101
  libavformat    55. 24.100 / 55. 24.100
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  1.100 /  4.  1.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, image2, from './bannered/frame_%09d.png':
  Duration: 00:07:12.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba, 960x720 [SAR 3543:3543 DAR 4:3], 25
fps, 25 tbr, 25 tbn, 25 tbc
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x331c360] using SAR=1/1
[libx264 @ 0x331c360] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x331c360] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit
[libx264 @ 0x331c360] 264 - core 140 r2 1ca7bb9 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2013 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 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=4 threads=12
lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=40 qpstep=4 ip_ratio=1.40
aq=1:1.00
Output #0, mp4, to './finished/foo.mp4':
  Metadata:
    encoder         : Lavf55.24.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv444p, 960x720 [SAR 1:1 DAR 4:3], q=0-40, 15360 tbn, 30 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png -> libx264)
Press [q] to stop, [?] for help
frame=  104 fps=0.0 q=29.0 size=      28kB time=00:00:01.53 bitrate=
149.4kbits/s dup=17 drop=0     frame=  144 fps=142 q=29.0 size=     
30kB time=00:00:02.86 bitrate=  85.3kbits/s dup=24 drop=0     frame= 
177 fps=116 q=29.0 size=     258kB time=00:00:03.96 bitrate=
533.7kbits/s dup=29 drop=0 

....many more such lines...

frame=12894 fps= 69 q=29.0 size=  115538kB time=00:07:07.86
bitrate=2212.1kbits/s dup=2149 drop=0     frame=12930 fps= 69 q=29.0
size=  115943kB time=00:07:09.06 bitrate=2213.6kbits/s dup=2155
drop=0     frame=12961 fps= 69 q=-1.0 Lsize=  116765kB time=00:07:11.96
bitrate=2214.4kbits/s dup=2160 drop=0    
video:116611kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.131863%
[libx264 @ 0x331c360] frame I:53    Avg QP:21.54  size:113312
[libx264 @ 0x331c360] frame P:4467  Avg QP:24.27  size: 21178
[libx264 @ 0x331c360] frame B:8441  Avg QP:28.12  size:  2227
[libx264 @ 0x331c360] consecutive B-frames:  1.9%  2.1% 95.1%  0.9%
[libx264 @ 0x331c360] mb I  I16..4:  7.5% 73.2% 19.3%
[libx264 @ 0x331c360] mb P  I16..4:  1.2%  5.9%  0.1%  P16..4: 41.9%
13.9% 11.2%  0.0%  0.0%    skip:25.9%
[libx264 @ 0x331c360] mb B  I16..4:  0.1%  0.8%  0.0%  B16..8: 19.9% 
0.6%  0.1%  direct: 0.6%  skip:78.0%  L0:42.9% L1:54.8% BI: 2.3%
[libx264 @ 0x331c360] 8x8 transform intra:82.3% inter:86.7%
[libx264 @ 0x331c360] coded y,u,v intra: 61.5% 42.1% 43.5% inter: 13.4%
11.1% 10.1%
[libx264 @ 0x331c360] i16 v,h,dc,p: 21% 36% 19% 24%
[libx264 @ 0x331c360] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 12% 44%  4% 
5%  5%  5%  5%  6%
[libx264 @ 0x331c360] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 13% 21%  5% 
7%  6%  6%  6%  5%
[libx264 @ 0x331c360] Weighted P-Frames: Y:0.4% UV:0.1%
[libx264 @ 0x331c360] ref P L0: 41.4%  8.2% 22.9% 27.5%  0.0%
[libx264 @ 0x331c360] ref B L0: 62.2% 21.6% 16.3%
[libx264 @ 0x331c360] ref B L1: 90.8%  9.2%
[libx264 @ 0x331c360] kb/s:2211.10


On 01/23/2014 11:19 PM, Carl Eugen Hoyos wrote:
> Gan Uesli Starling <gan <at> starling.us> writes:
>
>> The way I'm doing MP4's now works fine on Linux (both 
>> MoivePlayer and VLC) and also on Windows for VLC but 
>> not at all for WMP.
> Please provide your failing command line together with 
> the complete, uncut console output.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list