Page 1 of 1

Problem with colors

PostPosted: Thu Aug 10, 2017 1:29 pm
by ExpBones
Hi.
I have a raw source file (mov)
Image

I need mp4 HD. I do the same output with different programms: TMPGEnc, Adobe Encoder, ffmpeg 3.3.3
And there isn't any difference in colors between TMPGEnc's and Adobe Encoder's output files.
But ffmpeg changes colors. Why?
Image

my command line:
ffmpeg.exe -i input.mov -c:v libx264 -r 25 -profile:v main -level 4.1 -vf format=yuv420p -b:v 10M -s 1920x1080 -y output.mp4

I cann't find any global differnce in mediainfo of all output files
Media info all output files
Image
Please help.

Re: Problem with colors

PostPosted: Fri Aug 18, 2017 11:36 am
by ExpBones
One more an intersting history...
I have input file mov raw 1080p. I did 3 output mp4 files with difference picture size 1080p, 720p, 576p

Command line:
"C:\ffmpeg\bin\ffmpeg.exe" -i input.mov -c:v libx264 -b:v 5M -s 1920x1080 -y "C:\ffmpeg\bin\output_1080.mp4"
"C:\ffmpeg\bin\ffmpeg.exe" -i input.mov -c:v libx264 -b:v 5M -s 1280x720 -y "C:\ffmpeg\bin\output_720.mp4"
"C:\ffmpeg\bin\ffmpeg.exe" -i input.mov -c:v libx264 -b:v 5M -s 1024x576 -y "C:\ffmpeg\bin\output_576.mp4"

Please look at the result

Image
Image
Image

Why colors were changed in 720 and 1080 cases and didn't change in 576 case ?

Wrong colors. Why?

PostPosted: Fri Sep 08, 2017 1:27 pm
by ExpBones
An intersting history...
I have input file mov raw 1080p. I did 3 output mp4 files with difference picture size 1080p, 720p, 576p

Command line:
"C:\ffmpeg\bin\ffmpeg.exe" -i input.mov -c:v libx264 -b:v 5M -s 1920x1080 -y "C:\ffmpeg\bin\output_1080.mp4"
"C:\ffmpeg\bin\ffmpeg.exe" -i input.mov -c:v libx264 -b:v 5M -s 1280x720 -y "C:\ffmpeg\bin\output_720.mp4"
"C:\ffmpeg\bin\ffmpeg.exe" -i input.mov -c:v libx264 -b:v 5M -s 1024x576 -y "C:\ffmpeg\bin\output_576.mp4"

Please look at the result

Image
Image
Image

Why colors were changed in 720 and 1080 cases and didn't change in 576 case ?

Re: Problem with colors

PostPosted: Sun Sep 10, 2017 4:46 pm
by llogan
What player are you using? Show the complete console output from the 720 or 1080 commands. Make sure to format it properly with the code button.

Re: Problem with colors

PostPosted: Mon Sep 11, 2017 11:04 am
by ExpBones
I check the difference in colors with Adobe After Affects and Adobe Premier.

Information from concole:
Code: Select all
C:\ffmpeg\bin>"C:\ffmpeg\bin\ffmpeg.exe" -i input.mov -c:v libx264 -b:v 5M -s 1920x1080 -y "C:\ffmpeg\bin\output_1080.mp4"
ffmpeg version N-86950-g1bef008 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.1.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth  --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca  --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex\ --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 70.100 / 55. 70.100
  libavcodec     57.102.100 / 57.102.100
  libavformat    57. 76.100 / 57. 76.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 98.100 /  6. 98.100
  libswscale      4.  7.102 /  4.  7.102
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2017-08-08T11:29:50.000000Z
    timecode        : 01:02:07:03
  Duration: 00:00:01.00, start: 0.000000, bitrate: 1660459 kb/s
    Stream #0:0(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, stereo, s1
6, 1536 kb/s (default)
    Metadata:
      creation_time   : 2017-08-08T11:29:50.000000Z
      handler_name    : ╬сЁрсюЄўшъ яёхтфюэшьют Apple
    Stream #0:1(eng): Video: rawvideo (raw  / 0x20776172), argb, 1920x1080, 1658
880 kb/s, 25 fps, 25 tbr, 25k tbn, 25k tbc (default)
    Metadata:
      creation_time   : 2017-08-08T11:29:50.000000Z
      handler_name    : ╬сЁрсюЄўшъ яёхтфюэшьют Apple
      encoder         : ┬б├В├Б
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2017-08-08T11:29:51.000000Z
      handler_name    : ╬сЁрсюЄўшъ яёхтфюэшьют Apple
      timecode        : 01:02:07:03
Stream mapping:
  Stream #0:1 -> #0:0 (rawvideo (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (pcm_s16be (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 00000000003628e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 00000000003628e0] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
[libx264 @ 00000000003628e0] 264 - core 152 r2851 ba24899 - 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=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00
  mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pski p=1 chroma_qp_offset=4 threads=9 lookahead_threads=1 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=abr mbtree=1 bitrate=5000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'C:\ffmpeg\bin\output_1080.mp4':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    timecode        : 01:02:07:03
    encoder         : Lavf57.76.100
    Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 1920x1
080, q=-1--1, 5000 kb/s, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2017-08-08T11:29:50.000000Z
      handler_name    : ╬сЁрсюЄўшъ яёхтфюэшьют Apple
      encoder         : Lavc57.102.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/5000000 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, flt
p, 128 kb/s (default)
    Metadata:
      creation_time   : 2017-08-08T11:29:50.000000Z
      handler_name    : ╬сЁрсюЄўшъ яёхтфюэшьют Apple
      encoder         : Lavc57.102.100 aac
frame=   23 fps=0.0 q=0.0 size=       0kB time=00:00:00.93 bitrate=   0.0kbits/s
frame=   25 fps= 20 q=-1.0 Lsize=     275kB time=00:00:01.00 bitrate=2245.7kbits
/s speed=0.814x
video:272kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: 0.913172%
[libx264 @ 00000000003628e0] frame I:1     Avg QP:12.75  size:273973
[libx264 @ 00000000003628e0] frame P:6     Avg QP:14.85  size:   309
[libx264 @ 00000000003628e0] frame B:18    Avg QP:19.61  size:   116
[libx264 @ 00000000003628e0] consecutive B-frames:  4.0%  0.0%  0.0% 96.0%
[libx264 @ 00000000003628e0] mb I  I16..4: 11.2%  0.0% 88.8%
[libx264 @ 00000000003628e0] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  1.2%  0.2
%  0.1%  0.0%  0.0%    skip:98.5%
[libx264 @ 00000000003628e0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.7%  0.0
%  0.0%  direct: 0.0%  skip:99.3%  L0:10.8% L1:89.2% BI: 0.0%
[libx264 @ 00000000003628e0] final ratefactor: 11.38
[libx264 @ 00000000003628e0] coded y,u,v intra: 96.9% 72.6% 69.8% inter: 0.0% 0.
0% 0.0%
[libx264 @ 00000000003628e0] i16 v,h,dc,p: 70%  1% 16% 13%
[libx264 @ 00000000003628e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 77%  4%  6%  2%  2%
 4%  1%  4%  1%
[libx264 @ 00000000003628e0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 00000000003628e0] ref P L0: 74.9%  0.0% 23.3%  1.8%
[libx264 @ 00000000003628e0] ref B L0: 47.2% 51.9%  0.9%
[libx264 @ 00000000003628e0] ref B L1: 97.7%  2.3%
[libx264 @ 00000000003628e0] kb/s:2223.26
[aac @ 0000000000365840] Qavg: 65536.000