[FFmpeg-user] Problem reducing resolution

Tim Kinnel tim at genarts.com
Tue Jun 5 17:57:47 CEST 2012


I think I see the culprit in the output:

"Incompatible pixel format 'rgb24' for codec 'libx264', auto-selecting format 'yuv420p'"

However, I didn't explicitly set the pixel format.

Log output:
---------------------
ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers
  built on Apr 20 2012 14:16:23 with clang 3.0 (tags/Apple/clang-211.10.1)
  configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/tim/Presets/Collections/Collection-2012-May/Sapphire/cleaned/clips/S_FilmEffect_Green_20Night_20Vision.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2012-06-01 16:05:54
  Duration: 00:00:04.66, start: 0.000000, bitrate: 37132 kb/s
    Stream #0.0(eng): Video: png, rgb24, 640x360, 37118 kb/s, PAR 640:640 DAR 16:9, 15 fps, 15 tbr, 15 tbn, 15 tbc
    Metadata:
      creation_time   : 2012-06-01 16:05:54
    Stream #0.1(eng): Data: tmcd / 0x64636D74, 0 kb/s
    Metadata:
      creation_time   : 2012-06-01 16:06:03
Incompatible pixel format 'rgb24' for codec 'libx264', auto-selecting format 'yuv420p'
[buffer @ 0x105033c80] w:640 h:360 pixfmt:rgb24 tb:1/1000000 sar:640/640 sws_param:
[scale @ 0x105033840] w:640 h:360 fmt:rgb24 -> w:320 h:180 fmt:yuv420p flags:0x4
[libx264 @ 0x7faf88844600] using SAR=1/1
[libx264 @ 0x7faf88844600] using cpu capabilities: none!
[libx264 @ 0x7faf88844600] profile Main, level 2.0
[libx264 @ 0x7faf88844600] 264 - core 119 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_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=abr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41 aq=1:1.00
Output #0, mp4, to '/Users/tim/Presets/Collections/Collection-2012-May/Sapphire/for-web/clips/S_FilmEffect_Green_20Night_20Vision_320x180.mp4':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2012-06-01 16:05:54
    encoder         : Lavf52.111.0
    Stream #0.0(eng): Video: libx264, yuv420p, 320x180 [PAR 1:1 DAR 16:9], q=10-51, 1000 kb/s, 15 tbn, 15 tbc
    Metadata:
      creation_time   : 2012-06-01 16:05:54
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
frame=   52 fps=  0 q=16.0 size=      26kB time=00:00:00.-6 bitrate=-3232.8kbits/s    ^Mframe=   70 fps= 46 q=14.0 Lsize=     501kB time=00:00:04.53 bitrate= 905.6kbits/s    
video:499kB audio:0kB global headers:0kB muxing overhead 0.373993%
frame I:1     Avg QP:12.71  size: 26224
[libx264 @ 0x7faf88844600] frame P:20    Avg QP:13.38  size: 12573
[libx264 @ 0x7faf88844600] frame B:49    Avg QP:16.11  size:  4752
[libx264 @ 0x7faf88844600] consecutive B-frames:  2.9%  5.7% 17.1% 74.3%
[libx264 @ 0x7faf88844600] mb I  I16..4:  0.4%  0.0% 99.6%
[libx264 @ 0x7faf88844600] mb P  I16..4: 16.3%  0.0%  0.0%  P16..4: 82.8%  0.0%  0.0%  0.0%  0.0%    skip: 0.9%
[libx264 @ 0x7faf88844600] mb B  I16..4:  4.0%  0.0%  0.0%  B16..8: 57.2%  0.0%  0.0%  direct:29.5%  skip: 9.4%  L0:26.6% L1:28.7% BI:44.7%
[libx264 @ 0x7faf88844600] final ratefactor: 11.74
[libx264 @ 0x7faf88844600] direct mvs  spatial:98.0% temporal:2.0%
[libx264 @ 0x7faf88844600] coded y,uvDC,uvAC intra: 84.6% 91.2% 80.8% inter: 66.7% 48.3% 24.1%
[libx264 @ 0x7faf88844600] i16 v,h,dc,p: 26% 31% 34%  9%
[libx264 @ 0x7faf88844600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 20% 15%  4%  8%  6%  6%  7% 11%
[libx264 @ 0x7faf88844600] i8c dc,h,v,p: 45% 28% 20%  7%
[libx264 @ 0x7faf88844600] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7faf88844600] kb/s:875.20
On Jun 5, 2012, at 11:39 AM, Carl Eugen Hoyos wrote:

> Tim Kinnel <tim <at> genarts.com> writes:
> 
>> However, the video comes out at 480x270. I am using the following command:
>> 
>> ffmpeg -y -i "source.mov" -vcodec libx264 -s 320x180 -b 1000k 
>> -r 15 -vpre slow_firstpass -an "output_320x180.mp4"
> 
> Complete, uncut console output missing.
> Why do you think the resulting file is not 320x180?
> 
> 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