[FFmpeg-user] Color matching to source a problem for ProRes
Pete Willis
pete at flatgrey.com
Mon Aug 13 13:56:21 EEST 2018
I’ve made some adjustments based on suggestions.
Also here is the output screen grabs showing difference in colour
https://www.dropbox.com/s/kjjrbozvnfhpzyo/Compare%20Color.png?dl=0 <https://www.dropbox.com/s/kjjrbozvnfhpzyo/Compare%20Color.png?dl=0>
Still are getting a colour shift between the source and the output.
Any help much appreciated
Thanks
Here is the full CMD
ffmpeg -t 5 -loop 1 -framerate 24000/1001 -i
/videos/gmglobalresourcesslates-CLIENT Slate October 2017.png -t
0.041999999999999996 -loop 1 -framerate 24000/1001 -i
/videos/gmglobalresourcesslates-CLIENT_Beep October_2017.png -t 1.958
-loop 1 -framerate 24000/1001 -i
/videos/gmglobalresourcesslates-black.png -t 17 -ss 00:00:07.000 -i
/videos/gmglobalresourcesfootagebookends-GMMD0777000H.mov -t 10 -ss
00:00:07.000 -i /videos/gmglobalresourcesfootagecores-GMMD1096000H.mov
-t 3 -ss 00:00:07.000 -i
/videos/gmglobalresourcesfootagetags-GMMD1616000H.mov -t 32 -ss
00:00:00.000 -i /videos/gmglobalresourcesaudio-GMMS0148000H-FM.wav -i
/videos/gmglobalresourcesartcards-GMMS7057000H art card lease.psd -y
-filter_complex [0] drawtext=text='© 2018. All
Rights
Reserved':x=555:y=128:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none,drawtext=text='General
Motors':x=555:y=192:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none,drawtext=text=‘XXX':x=555:y=256:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none,drawtext=text=‘XXX_':x=555:y=352:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSansBold.otf:fontcolor=2d3233:expansion=none,drawtext=text=‘XXX
':x=555:y=384:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSansBold.otf:fontcolor=2d3233:expansion=none,drawtext=text=‘XXX':x=555:y=416:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSansBold.otf:fontcolor=2d3233:expansion=none,drawtext=text='GMMS0138000_100_03':x=555:y=448:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSansBold.otf:fontcolor=2d3233:expansion=none,drawtext=text='USA':x=555:y=544:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none,drawtext=text='English':x=555:y=608:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none,drawtext=text='\:30':x=555:y=673:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none,drawtext=text='HD
16\:9':x=555:y=736:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none,drawtext=text='Stereo':x=555:y=800:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none,drawtext=text='July
26,
2018':x=555:y=864:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none,drawtext=text='9002':x=555:y=929:fontsize=30:fontfile=/app/src/video-encoder/fonts/FreeSans.otf:fontcolor=2d3233:expansion=none
[textImage0];[7]premultiply=inplace=1[overlay7];[4:0][overlay7]overlay[overlay7Video4];[6:0]
adelay=5000|5000 [delayedAudio0];[textImage0] [1:0] [2:0] [3:0]
[overlay7Video4] [5:0] concat=n=6:v=1:a=0
[concatenatedVideo];[delayedAudio0] concat=n=1:v=0:a=1
[a];[concatenatedVideo]
scale=w=1920:h=1080:flags=lanczos,colormatrix=bt601:bt709 [v] -acodec
pcm_s24le -b:a 128k -vcodec prores_ks -r 23.976023976023978 -f mov
-profile:v 3 -qscale 4 -pix_fmt yuv422p -y -map [v] -map [a] -timecode
00:59:53:00 -movflags write_colr -color_trc bt709 -color_primaries
bt709 -colorspace bt709 /videos/GMMS0138000_100_03HD_Test.mov
> On 18 Jul 2018, at 13:47, Pete Willis <pete at flatgrey.com> wrote:
>
> We are trying to match the output colour to the source content but although the output formats matches the source we cannot get it to match.
>
> Screenshot attached of the 3 outputs plus the original (top right) we have tested with media info for each:
>
>
> Using these settings:
>
>
> flags=lanczos,colormatrix=bt601:bt709 [v] -acodec pcm_s24le -b:a 128k -b:v 512k -vcodec prores_ks -r 23.976023976023978 -f mov -profile:v 3 -qscale 4 -pix_fmt yuv422p -y -map [v] -map [a] -timecode 00:59:53:00 /videos/C1234_100_12HD_TestRaw.mov
>
>
> We have also tried -pix_fmt yuv422p10le (number 4 in the image)
>
> Removing the flags=lanczos (Number 3)
>
>
> Below is the media info for each
>
> 1. (Top left) output
> Video
> ID : 1
> Format : ProRes
> Format version : Version 0
> Format profile : 422 HQ
> Codec ID : apch
> Duration : 37s 37ms
> Bit rate mode : Variable
> Bit rate : 124 Mbps
> Width : 1 920 pixels
> Height : 1 080 pixels
> Display aspect ratio : 16:9
> Frame rate mode : Constant
> Frame rate : 23.976 (24000/1001) fps
> Color space : YUV
> Chroma subsampling : 4:2:2
> Scan type : Progressive
> Bits/(Pixel*Frame) : 2.485
> Stream size : 546 MiB (98%)
> Writing library : Lavc
> Language : English
> Color primaries : BT.709
> Transfer characteristics : BT.709
> Matrix coefficients : BT.709
>
>
> 2. (Top right) source content
>
> ID : 1
> Format : ProRes
> Format version : Version 0
> Format profile : 422 HQ
> Codec ID : apch
> Duration : 37s 37ms
> Bit rate mode : Variable
> Bit rate : 89.7 Mbps
> Width : 1 920 pixels
> Height : 1 080 pixels
> Display aspect ratio : 16:9
> Frame rate mode : Constant
> Frame rate : 23.976 (24000/1001) fps
> Color space : YUV
> Chroma subsampling : 4:2:2
> Scan type : Progressive
> Bits/(Pixel*Frame) : 1.805
> Stream size : 396 MiB (98%)
> Writing library : aut0
> Language : English
> Encoded date : UTC 2017-04-26 17:06:27
> Tagged date : UTC 2017-04-26 17:06:27
> Color primaries : BT.709
> Transfer characteristics : BT.709
> Matrix coefficients : BT.709
> matrix_coefficients_Original : BT.709
>
>
> 3. (Bottom left)
>
> ID : 1
> Format : ProRes
> Format version : Version 0
> Format profile : 422 HQ
> Codec ID : apch
> Duration : 37s 37ms
> Bit rate mode : Variable
> Bit rate : 123 Mbps
> Width : 1 920 pixels
> Height : 1 080 pixels
> Display aspect ratio : 16:9
> Frame rate mode : Constant
> Frame rate : 23.976 (24000/1001) fps
> Color space : YUV
> Chroma subsampling : 4:2:2
> Scan type : Progressive
> Bits/(Pixel*Frame) : 2.478
> Stream size : 544 MiB (98%)
> Writing library : Lavc
> Language : English
>
> 4. Bottom (right)
>
> ID : 1
> Format : ProRes
> Format version : Version 0
> Format profile : 422 HQ
> Codec ID : apch
> Duration : 37s 37ms
> Bit rate mode : Variable
> Bit rate : 119 Mbps
> Width : 1 920 pixels
> Height : 1 080 pixels
> Display aspect ratio : 16:9
> Frame rate mode : Constant
> Frame rate : 23.976 (24000/1001) fps
> Color space : YUV
> Chroma subsampling : 4:2:2
> Scan type : Progressive
> Bits/(Pixel*Frame) : 2.398
> Stream size : 526 MiB (98%)
> Writing library : Lavc
> Language : English
> Matrix coefficients : BT.709
>
>
>
More information about the ffmpeg-user
mailing list