I'm creating QT files out of .dpx sequence. Due to other party requirements
the video needs to be in RGB colorspace so I'm using libx264rgb codec as
suggested here. Previously I used libx264 and I had no such issues. Now,
with libx264rgb my videos are not playing in any web browser. Here's the
whole command + output.
> ffmpeg -start_number 1000 -f image2 -r 24 -i ARR_106_0070_v000.%04d.dpx
> -movflags +faststart -c:v libx264rgb -crf 10 -s 1920x1080 hello2.mov
> ffmpeg version 3.4.6 Copyright (c) 2000-2019 the FFmpeg developers
> built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
> configuration: --prefix=/usr --bindir=/usr/bin
> --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg
> --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
> --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
> -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro '
> --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libvo-amrwbenc --enable-version3 --enable-bzlib
> --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls
> --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio
> --enable-libdrm --enable-indev=jack --enable-libfreetype
> --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc
> --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg
> --enable-libopus --disable-encoder=libopus --enable-libpulse
> --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libx264
> --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter
> --enable-avresample --enable-postproc --enable-pthreads --disable-static
> --enable-shared --enable-gpl --disable-debug --disable-stripping
> --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
> libavutil 55. 78.100 / 55. 78.100
> libavcodec 57.107.100 / 57.107.100
> libavformat57. 83.100 / 57. 83.100
> libavdevice57. 10.100 / 57. 10.100
> libavfilter 6.107.100 / 6.107.100
> libavresample 3. 7. 0 / 3. 7. 0
> libswscale 4. 8.100 / 4. 8.100
> libswresample 2. 9.100 / 2. 9.100
> libpostproc54. 7.100 / 54. 7.100
> Input #0, image2, from 'ARR_106_0070_v000.%04d.dpx':
> Duration: 00:00:04.13, start: 0.00, bitrate: N/A
> Stream #0:0: Video: dpx, rgb48be, 1920x1080 [SAR 1:1 DAR 16:9], 24
> tbr, 24 tbn, 24 tbc
> Stream mapping:
> Stream #0:0 -> #0:0 (dpx (native) -> h264 (libx264rgb))
> Press [q] to stop, [?] for help
> [libx264rgb @ 0x2083a20] using SAR=1/1
> [libx264rgb @ 0x2083a20] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
> [libx264rgb @ 0x2083a20] profile High 4:4:4 Predictive, level 4.0, 4:4:4
> 8-bit
> [libx264rgb @ 0x2083a20] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC
> codec - Copyleft 2003-2017 - 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=-2 threads=34
> lookahead_threads=5 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=24
> scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=10.0
> qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
> Output #0, mov, to 'hello2.mov':
> Metadata:
> encoder : Lavf57.83.100
> Stream #0:0: Video: h264 (libx264rgb) (avc1 / 0x31637661), rgb24,
> 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 24 fps, 12288 tbn, 24 tbc
> Metadata:
> encoder : Lavc57.107.100 libx264rgb
> Side data:
> cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
> [mov @ 0x2082760] Starting second pass: moving the moov atom to the
> beginning of the file0.0195x
> frame= 99 fps=2.4 q=-1.0 Lsize= 19687kB time=00:00:04.00
> bitrate=40317.3kbits/s speed=0.0952x
> video:19684kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 0.010622%
> [libx264rgb @ 0x2083a20] frame I:1 Avg QP: 2.83 size: 64459
> [libx264rgb @ 0x2083a20] frame P:25Avg QP: 9.45 size:359486
> [libx264rgb @ 0x2083a20] frame B:73Avg QP:11.33 size:152118
> [libx264rgb @ 0x2083a20] consecutive B-frames: 1.0% 2.0% 0.0% 97.0%
> [libx264rgb @ 0x2083a20] mb I I16..4: 87.5% 7.0% 5.5%
> [libx264rgb @ 0x2083a20] mb P I16..4: 5.6% 15.4% 3.4% P16..4: 19.3%
> 24.2% 25.6% 0.0% 0.0%skip: 6.4%
> [libx264rgb @ 0x2083a20] mb B I16..4: 1.8% 2.8% 0.1% B16..8: 24.4%
> 4.7% 2.0% direct:31.7% skip:32.5% L0:39.1% L1:32.7% BI:28.2%
> [libx264rgb @ 0x2083a20] 8x8 transform intra:56.7% inter:40.1%
> [libx264rgb @ 0x2083a20] coded y,u,v