+ Reply to Thread
Results 31 to 43 of 43
-
Now I see where the problem lay.
Does this work any better for you? It is full range.
Code:ffmpeg -y -i One_shot.mp4 -pix_fmt yuvj420p -c:v libx265 -vf eq=brightness=.11:contrast=0.75:gamma=0.5,scale=out_color_matrix=bt709:out_range=full -color_primaries bt709 -color_trc bt709 -colorspace bt709 -c:a copy One_shot_limited.mp4
-
Code:
ffmpeg -y -i One_shot.mp4 -pix_fmt yuvj420p -c:v libx265 -vf eq=brightness=.11:contrast=0.75:gamma=0.5,scale=out_color_matrix=bt709:out_range=full -color_primaries bt709 -color_trc bt709 -colorspace bt709 -c:a copy One_shot_limited.mp4
5,12,75,210,236 -Y values coming out from ffmpeg
your original cmd line in your first post, it is coming out from ffmpeg as:
16,23,82,198,220 -
It's not for "me" ; but general public with full range video applying this filter might encounter issues.
The 4 patches become Y=5,12,210,236
Full range flag is less ideal, because of inconsistency in handling - In most video editors, this will cause it to be treated as full range by default, this will compress the range farther eg in resolve, instead of a range of 0-1023 RGB, you'd get 20-947 . But some programs ignore the flag, and take the actual range. Yes, you can override range handling in the clip attributes, or make adjustments, but ideally, it should come in around 0-1023 RGB if using resolve , otherwise why do this in ffmpeg ? it's easier in a program with a GUI -
I can make it limited range but that will involve adjusting the eq parameters and that can take a lot of time.
-
ffmpeg is a useful tool, but it's the wrong tool for these types of task
Some NLE GUI is better where you can make adjustments, keyframes, per shot . You're not going to use the same eq or filter parameters per shot anyways and it's a lot of back and forth -
If they add curves, it would help. It's been requested many times
Your chart is supported in resolve, so makes sense to do it there. Even if it's a bit off, the auto color match is a great starting point if it was properly shot
But for a typical consumer, consumer camera, typical usage scenario - they don't (or can't) adjust exposure ideally during the shoot - so the errors in color match tend to be larger . -
Even if it's a bit off, the auto color match is a great starting point if it was properly shot
I'd still have to get Resolve to re-flag it as limited. -
Code:
ffmpeg -y -i One_shot.mp4 -pix_fmt yuv420p -c:v libx265 -vf eq=brightness=0.04:contrast=0.98:gamma=0.63,scale=out_color_matrix=bt709:out_range=limited -color_primaries bt709 -color_trc bt709 -colorspace bt709 -c:a copy One_shot_limited.mp4
Note: the black level and gamma are likely to read differently if tested on a test signal. -
On input Y=0,16,235,255 , it becomes Y=7,14,211,237
Yes, of course different video, different camera, or same camera different shot will have different values
A ramp will show where range compression occurs and potential problematic areas will occur in any camera . A "normal" full to limited conversion becomes Y=16,30,218,235, but that suggests already from 2nd value on that 4 value test pattern that shadow detail will be compressed
If the purpose was to adjust some midtone value up or down to reach some target, but keep the ends anchored at say Y=16,235, in ffmpeg for some reason , another way might be to use -vf lutyuv expression, or create a 3d LUT apply with -vf lut3d, or use the -vf curves filter. ffmpeg curves is like standard curves, like photoshop curves - it takes x,y coordinate points along the curve. It works in RGB like PS (you can probably get around that by casting YUV channels to RGB channel, then casting it back), but it pales in comparison to Resolve's curves. Resolve curves has Y,R,G,B, hue vs.hue , hue vs.sat, hue vs. lum, lum vs. sat, etc.. super powerful , so you can match colors/hue/sat/lum of a color chart using vectorscope and waveform - all realtime, all adjustable/keyframable working in 32bit float. It's the most powerful filter in resolve by a longshotLast edited by poisondeathray; 12th Aug 2020 at 10:05.
Similar Threads
-
MPC-HC: Output dynamic range / black level / color range stuck? Washed out
By vlad992 in forum Newbie / General discussionsReplies: 16Last Post: 10th Nov 2020, 07:54 -
How do I forcibly alter the colour range from RGB full to limited
By bergqvistjl in forum Video ConversionReplies: 2Last Post: 22nd May 2020, 12:45 -
ffmpeg 4.1.4 question regarding "limited color range" output file
By bokeron2020 in forum Newbie / General discussionsReplies: 12Last Post: 1st Aug 2019, 17:28 -
does mjpeg .AVI files a flag that signal the Full/Limited Dynamic range?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 27th Jan 2019, 21:58 -
Looking for best Full HD 25 or 30p shooting camera in 1000$ price range
By Srivas in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 0Last Post: 21st Oct 2017, 12:25