5
I'm trying to implement what was suggested here: ffmpeg: adaptively stretch contrast
The method I thought of is:
- Separate the L, U and V channels.
- Apply histeq to the L channel.
- Recombine the channels.
I'm new to ffmpeg, so I've been able to do 1 and 2, but not sure how to implement #3. What I have so far is:
ffmpeg -i in.mkv -vf extractplanes=y,histeq=strength=0.3:intensity=1 out.mkv
Which extracts the L channel and autocontrasts it, but I'm not sure how to recombine it with the U and V channels. Maybe use mergeplanes
?