[FFmpeg-user] deprecated pixel format used, make sure you did set range correctly

Thomas Worth dev at rarevision.com
Fri Oct 18 20:49:13 CEST 2013


When using the yuvj420p pixel format, I get the following from ffmpeg:

"deprecated pixel format used, make sure you did set range correctly"

However, using yuv420p along with -color_range, as instructed by pixfmt.h:

AV_PIX_FMT_YUVJ420P,  ///< planar YUV 4:2:0, 12bpp, full scale (JPEG),
deprecated in favor of PIX_FMT_YUV420P and setting color_range

Changes absolutely nothing.

Of course, no ffmpeg email would be worth reading without the
complete, uncut console output so without further ado, here it is:

MacPro:test user$ ffmpeg -i my_awesome_movie.mov -an -vcodec libx264
-tune film -vb 12000k -pix_fmt yuv420p -color_range 0 -x264opts
bframes=3:keyint=72:8x8dct=1 -y out.mkv
ffmpeg version 2.0-8d9c1b3 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 15 2013 21:56:22 with gcc 4.8.1 (GCC)
  configuration: --prefix=/Users/user/Documents/SOURCE/ffinstall
--disable-doc --enable-static --disable-shared --enable-gpl
--enable-nonfree --enable-version3 --enable-libfaac
--enable-libfdk-aac --enable-libvpx --enable-libmp3lame
--enable-libvorbis --enable-libx264 --cc=/Users/user/usr/bin/gcc
--disable-vda --enable-pthreads --arch=x86_64 --target-os=darwin
--extra-cflags='-I/Users/user/Documents/SOURCE/ffinstall/include -m64'
--extra-ldflags='-L/Users/user/Documents/SOURCE/ffinstall/lib
-static-libgcc -Wl,-arch,x86_64'
  libavutil      52. 39.100 / 52. 39.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.102 / 55. 12.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 81.101 /  3. 81.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'my_awesome_movie.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2013-10-18 17:57:28
  Duration: 00:00:20.02, start: 0.000000, bitrate: 23996 kb/s
    Stream #0:0(eng): Video: qtrle (rle  / 0x20656C72), rgb24,
1920x1080, 22457 kb/s, SAR 1920:1920 DAR 16:9, 23.98 fps, 23.98 tbr,
24k tbn, 24k tbc
    Metadata:
      creation_time   : 2013-10-18 17:57:28
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:00:00
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
stereo, s16, 1536 kb/s
    Metadata:
      creation_time   : 2013-10-18 17:57:28
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:00:00
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
    Metadata:
      creation_time   : 2013-10-18 17:57:47
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:00:00
[libx264 @ 0x7fd32101f200] using SAR=1/1
[libx264 @ 0x7fd32101f200] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.1 Cache64
[libx264 @ 0x7fd32101f200] profile High, level 4.0
[libx264 @ 0x7fd32101f200] 264 - core 135 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2013 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:-1:-1 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.15 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3
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=72
keyint_min=7 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr
mbtree=1 bitrate=12000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69
qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'out.mkv':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    encoder         : Lavf55.12.102
    Stream #0:0(eng): Video: h264 (libx264) (H264 / 0x34363248),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 12000 kb/s, 1k tbn,
23.98 tbc
    Metadata:
      creation_time   : 2013-10-18 17:57:28
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:00:00
Stream mapping:
  Stream #0:0 -> #0:0 (qtrle -> libx264)
Press [q] to stop, [?] for help
frame=  480 fps= 42 q=-1.0 Lsize=     472kB time=00:00:19.93 bitrate=
193.8kbits/s
video:467kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.883026%
[libx264 @ 0x7fd32101f200] frame I:7     Avg QP: 0.42  size: 40739
[libx264 @ 0x7fd32101f200] frame P:120   Avg QP: 0.31  size:  1090
[libx264 @ 0x7fd32101f200] frame B:353   Avg QP: 1.87  size:   176
[libx264 @ 0x7fd32101f200] consecutive B-frames:  1.5%  0.0%  4.4% 94.2%
[libx264 @ 0x7fd32101f200] mb I  I16..4: 92.8%  0.5%  6.6%
[libx264 @ 0x7fd32101f200] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:
1.8%  0.0%  0.0%  0.0%  0.0%    skip:98.2%
[libx264 @ 0x7fd32101f200] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:
0.5%  0.0%  0.0%  direct: 0.1%  skip:99.4%  L0:61.3% L1:38.7% BI: 0.0%
[libx264 @ 0x7fd32101f200] final ratefactor: -34.58
[libx264 @ 0x7fd32101f200] 8x8 transform intra:0.5% inter:41.0%
[libx264 @ 0x7fd32101f200] coded y,uvDC,uvAC intra: 3.7% 0.0% 0.0%
inter: 0.2% 0.0% 0.0%
[libx264 @ 0x7fd32101f200] i16 v,h,dc,p: 90%  9%  2%  0%
[libx264 @ 0x7fd32101f200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 68% 28%  5%
0%  0%  0%  0%  0%  0%
[libx264 @ 0x7fd32101f200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 31% 17%
4%  2%  3%  2%  3%  2%
[libx264 @ 0x7fd32101f200] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x7fd32101f200] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fd32101f200] ref P L0: 95.0%  0.0%  4.9%  0.1%
[libx264 @ 0x7fd32101f200] ref B L0: 87.6% 12.3%  0.1%
[libx264 @ 0x7fd32101f200] ref B L1: 97.8%  2.2%
[libx264 @ 0x7fd32101f200] kb/s:190.99


More information about the ffmpeg-user mailing list