Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
20th May 2017, 05:30 | #2 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
One way is to use -vf lutyuv with an expression https://ffmpeg.org/ffmpeg-filters.ht...gb_002c-lutyuv https://ffmpeg.org/ffmpeg-utils.html...ion-Evaluation eg. if the Y value is greater than 50, then return the value, otherwise zero Code:
ffmpeg -i INPUT.ext -vf lutyuv=y='if(gte(val,50),val,0)' -c:v utvideo -an OUTPUT.avi Last edited by poisondeathray; 20th May 2017 at 05:32. |
|
20th May 2017, 05:55 | #4 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
"Clip" in video and image processing (and audio) terminology usually means "cut off" To clarify, are you wanting to adjust a certain range of values ? Maybe a shadow boost etc....? Or did you mean raise the pedestal to a certain value ? - It's tricky because there are non linear ways to do it ffmpeg filters used to be 8bit only. Not sure what the current status is. |
|
20th May 2017, 06:15 | #5 | Link | |
Cary Knoop
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 397
|
Quote:
But if the filters are 8 bit only it is not going to be useful, unless they would leave the actual bits alone and only set everything below 32 to 32 and still remain 10 bit integrity. Do you have any alternatives you can think of? Thanks for your help! |
|
20th May 2017, 15:57 | #7 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Good to know richardpl
I verified valid 10bit is retained with lutyuv . (1023 in 10bit) -vf "lutyuv='clip(val,128,1023)'" One possible "gotcha" is the YUV<=>RGB mapping in other programs, especially with log, might not be what you expect it to be (e.g. when viewing LUT or reverse transform is applied). So double check with some tests if that "128" is the value you actually want it to be |
|
|