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 April 2014, 10:22 | #1 | Link |
Registered User
Join Date: Feb 2014
Posts: 16
|
10-bit YUV Level Adjustments
I have a 10-bit YUV video that I want to perform luma and chroma level adjustments on, and then down-sample to 8-bit video.
Can anyone advise on a good way to do this? I primarily use Linux if that makes any difference, I see mention of avs2yuv when Googling. Last edited by Guest; 20th April 2014 at 13:22. Reason: rule 12 |
20th April 2014, 17:07 | #2 | Link |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,664
|
I don't have any experience with AviSynth under Linux but this thread seems to have the appropriate information: http://ubuntuforums.org/showthread.php?t=1333264
To do high bit depth color correction SmoothAdjust is the tool to use and to convert to 8-bit you can either use Dither or f3kdb_dither (part of flash3kyuu_deband). |
20th April 2014, 20:53 | #3 | Link |
Registered User
Join Date: Feb 2014
Posts: 16
|
Thanks for the input. That filter is just what I was looking for.
There is one more question. The YUV video format is v210 y422p10le. How can I read this into Avisynth, ensuring that it is processed in 10-bit? Last edited by magikarp99; 22nd April 2014 at 21:37. |
22nd April 2014, 21:46 | #5 | Link | ||
Registered User
Join Date: Feb 2014
Posts: 16
|
Thank you. This leads to some confusion though.
It opens saying: Quote:
Quote:
That wiki page is a mess of information. |
||
23rd April 2014, 01:09 | #6 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
|
Avisynth only supports 8-bit.
The patched ffms2/ffms2-ffmbc can use a fake 16-bit (it is a stacked format, double height with LSB in the bottom half). The Avisynth 2.6 color spaces are not needed for the bit depth but the 4:2:2 and 4:4:4 color spaces. The >8 bit workflow is fairly mature now, at least all the pieces I have needed are present and work, and it is relatively well documented but it is all still convoluted compared to 8 bit. Note: you will need to pipe (I use AVS2pipemod) to x264 to pass it >8 bit data. Last edited by Asmodian; 23rd April 2014 at 01:12. |
23rd April 2014, 01:33 | #7 | Link | |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,664
|
Quote:
This means in AviSynth 2.5 you're limited to only processing high bit depth data in YV12 while in 2.6 you can process >8-bit in Y8, YV12, YV16, and YV24. Thus 2.6 is highly recommended. Regarding importing >8-bit video, I recommend L-SMASH-Works. You can download r715 here: https://drive.google.com/folderview?...UU&usp=sharing And here's the README that comes with the plugin:https://raw.githubusercontent.com/VF...viSynth/README |
|
23rd April 2014, 09:24 | #8 | Link |
Registered User
Join Date: Feb 2014
Posts: 16
|
How can I make sure the video I am processing is being processed in 10-bit?
If I do open the video with ffms2, then it appears to be YUY2. SmoothAdjust will not accept YUY2, and I assume conversion using ConvertToYV12() will not result in a high bit-depth. |
24th April 2014, 00:48 | #9 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
|
If it is YUY2 it is also 8-bit. It should be YV16.
If you open the avs in VirtualDub you can see the LSB in the bottom half, it doesn't look like an image but if it is uniform the source came in as 8-bit. I would also give L-SMASH-Works a try. Last edited by Asmodian; 24th April 2014 at 00:51. |
24th April 2014, 19:21 | #10 | Link | |
Registered User
Join Date: Feb 2014
Posts: 16
|
LSmash looks really good but I am having problems. Whenever I try to load a video it just echoes the following.
Quote:
I needed to use "LWLibavVideoSource()" instead. For future reference to get 10-bit video working with FFVideoSource you need to pass the argument enable10bithack=true Last edited by magikarp99; 24th April 2014 at 19:44. |
|
26th April 2014, 01:31 | #13 | Link |
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,135
|
Your video will always be opened as 16bit (8bit + 8bit in stacked form), so if you open a 10bit video you will have 8bit for MSB and 2bit (+6 empty bits) for LSB. If you adjust something (deband, resize, adjust levels, curves and so on) the final video will be at full 16bit precision (clearly visible because your LSB will start to "grow").
|
Thread Tools | Search this Thread |
Display Modes | |
|
|