How to treat XAVC S file in Vegas?

rgr wrote on 1/2/2023, 4:05 PM

How should XAVC S files be treated correctly in Vegas?

Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.403
Color Range : Limited
Color primaries : BT.709
Transfer characteristics : xvYCC
Matrix coefficients : BT.709
Finish : 3
Codec configuration box: avcC

In Videoscope, the files (when set to Full range) show a range of 16-255. I use the Brightness&Contrast filter and set the Contrast to 0.060 -- so the image fills the 0-255 range. Of course, I save it as full range.

Is this correct and optimal?

P.S. Original files, displayed as limited-range in MPC-HC, are heavily overexposed.

Comments

fr0sty wrote on 1/2/2023, 6:16 PM

That says "color range: Limited", which indicates a 16-235 source. Best to leave it there. If you do this in VEGAS, and you see overexposure, use the color grading panel color curves to dial the highlights back into range. but VEGAS should properly display it as long as you do not have the range set to full.

MPC-HC is overexposing the originals probably because it is trying to display it full range, when it is not. If you use the default 8 bit project mode in VEGAS, everything should render out correctly.

Last changed by fr0sty on 1/2/2023, 6:20 PM, changed a total of 4 times.

Systems:

Desktop

AMD Ryzen 7 1800x 8 core 16 thread at stock speed

64GB 3000mhz DDR4

Geforce RTX 3090

Windows 10

Laptop:

ASUS Zenbook Pro Duo 32GB (9980HK CPU, RTX 2060 GPU, dual 4K touch screens, main one OLED HDR)

john_dennis wrote on 1/2/2023, 6:58 PM

No one can give learned responses about Vegas Pro levels handling without knowing your Vegas Pro version. The methodology changed in Vegas Pro 18.

Musicvid wrote on 1/2/2023, 7:48 PM

In Videoscope, the files (when set to Full range) show a range of 16-255. I use the Brightness&Contrast filter and set the Contrast to 0.060 -- so the image fills the 0-255 range. Of course, I save it as full range.

Is this correct and optimal?

No, you would set them to true 16-235 using the Levels filter. You would see these using the Histogram in an 8-bit Legacy Project.

I was about to write a lengthy explanation of video levels, with cautionary advice.

Instead, here is a free LUT you can use to conform 16-255 to 16-235, which are the legal YUV 709 Limited levels for rendering without clipping.

https://drive.google.com/open?id=10phnBR0LkFiGZcuTJedZi8PJ8W391LIH&authuser=musicvid%40gmail.com&usp=drive_fs

Please do not adjust your levels to 0-255 RGB, because then they will be clipped, illegal for delivery, or both. You want 16-235 YUV for any imaginable delivery in this century.

That said, if you would like some background on the subject without needing to overthink, here is a slightly whimsical article I wrote sometime back, before VP18 was released.

https://www.vegascreativesoftware.info/us/forum/pc-to-tv-levels-a-comedy-of-errors--107325/

 

RogerS wrote on 1/2/2023, 10:23 PM

I don't know what Sony you are using but suggest using a profile where the color range is actually limited. That's the reason I use Cine 2 over Cine 1. Otherwise you get to deal with LUTs or levels filters, etc. as described above.

MH7 wrote on 1/3/2023, 12:26 AM

@rgr | This may seem like a silly question, but how did you get that info you have about your XAVC-S video File? My Sony FDR-AX700 films in the Sony XAVC-S video format and I have been wondering the same as you with your question that you titled this thread with?

Last changed by MH7 on 1/3/2023, 12:26 AM, changed a total of 1 times.

John 14:6 | Romans 10:9-10, 13, 10:17 | Ephesians 2:8-9
————————————————————————————————————

Aussie VEGAS Post 20 User as of 9th February 2023 — Build 411 (Upgraded from VEGAS Pro 18)

VEGAS Pro Help: VEGAS Pro FAQs and TROUBLESHOOTING GUIDES

My YouTube Channel: https://www.youtube.com/@TechWiredGeek

Video Cameras: Sony FDR-AX700 and iPhone 12 Pro Max (iOS 17)

============================================

My New Productivity Workstation/Gaming PC 2024

CPU: AMD R7 7800X3D

Motherboard: ASRock X670E Steel Legend (AM5)

RAM: Corsair Vengeance 32 GB (2 x 16 GB) DDR5-6000 CL30 Memory

Main SSD: Samsung 980 Pro 1 TB SSD
Storage SSD: Western Digital Black SN850X 2 TB SSD

GPU: Asus TUF GAMING OC Radeon RX 7800 XT (16 GB)

OS: Windows 11 (Build: 23H2)

Main Monitor: LG 27UD88-W 4K IPS

Secondary Monitor: LG 27UL850 4K HDR IPS

rgr wrote on 1/3/2023, 6:37 AM

No one can give learned responses about Vegas Pro levels handling without knowing your Vegas Pro version. The methodology changed in Vegas Pro 18.

Vegas 19.

rgr wrote on 1/3/2023, 6:43 AM

@rgr | This may seem like a silly question, but how did you get that info you have about your XAVC-S video File? My Sony FDR-AX700 films in the Sony XAVC-S video format and I have been wondering the same as you with your question that you titled this thread with?

I just played the mp4 file in MPC and looked in the properties.
Then I opened the file in Vegas, changed the range to Full and looked in Videoscope.

(SONY HX-90V)

rgr wrote on 1/3/2023, 6:48 AM

That says "color range: Limited", which indicates a 16-235 source. Best to leave it there. If you do this in VEGAS, and you see overexposure, use the color grading panel color curves to dial the highlights back into range. but VEGAS should properly display it as long as you do not have the range set to full.

MPC-HC is overexposing the originals probably because it is trying to display it full range, when it is not. If you use the default 8 bit project mode in VEGAS, everything should render out correctly.

If the MPC displayed as Full range, I would not have overexposed white, while the black would be grayish.
And MPC reports "Input format: NV12 1920x1080, range: 16-235"

rgr wrote on 1/3/2023, 6:52 AM

In Videoscope, the files (when set to Full range) show a range of 16-255. I use the Brightness&Contrast filter and set the Contrast to 0.060 -- so the image fills the 0-255 range. Of course, I save it as full range.

Is this correct and optimal?

No, you would set them to true 16-235 using the Levels filter. You would see these using the Histogram in an 8-bit Legacy Project.

Yes I know about it. But this is a video for my personal use, so having a source in 16-255 I prefer to have a wider range of colors than cropped. And all my video equipment plays YUV correctly in full range (tested), although it may internally convert the image to limited range (I don't know).

Musicvid wrote on 1/3/2023, 6:57 AM

No one can give learned responses about Vegas Pro levels handling without knowing your Vegas Pro version. The methodology changed in Vegas Pro 18.

Vegas 19.

The temptation is to do just what you did. Unfortunately, it is not the best for your hybrid levels. To summarize, you pulled 16-255 out to 0-255 in a default (full range) project. Then, the renderer squeezed them back down to 16-235 for legal 709 delivery.

These are called "redundant" levels, and the stacking has reduced the output bit depth, which in turn reduces the number of colors and increases banding, sometimes dramatically.

The oldschool option in Vegas 19 is to choose an 8 bit Legacy Project, and using the Levels filter and Histogram, adjust the Output End slider until the levels are 16-235, and render. Yes, the Preview will look grayer than before, but the output levels will be correct for delivery and unclipped.

Or, simply apply the LUT I gave you anywhere in the effects chain, and it should work just as well. Yours is not an uncommon situation but honestly, most people just ignore it and pretend their highlights aren't clipped or their shadows aren't muddy.

Musicvid wrote on 1/3/2023, 3:18 PM

An example of highlight and saturation recovery from Sony RX100 III footage, native 16-255.

rgr wrote on 1/3/2023, 5:29 PM

No one can give learned responses about Vegas Pro levels handling without knowing your Vegas Pro version. The methodology changed in Vegas Pro 18.

Vegas 19.

The temptation is to do just what you did. Unfortunately, it is not the best for your hybrid levels. To summarize, you pulled 16-255 out to 0-255 in a default (full range) project. Then, the renderer squeezed them back down to 16-235 for legal 709 delivery.

No, I save as full range.

RogerS wrote on 1/3/2023, 6:11 PM

You should be rendering as video range with few exceptions.

EricLNZ wrote on 1/3/2023, 7:38 PM

You should be rendering as video range with few exceptions.

@RogerS Of interest what are the exceptions?

RogerS wrote on 1/3/2023, 7:53 PM

I think if you are rendering stills or intermediate file types that are intended to be full range. Also prepping for formats like Dolby Vision HDR that are full range. I expect we'll see more of this in the future as standards move beyond legacy ones from the CRT and broadcast era.

Musicvid wrote on 1/3/2023, 8:30 PM

No, I save as full range.

Best of success, and welcome to the forum.

rgr wrote on 1/4/2023, 6:34 AM

No, I save as full range.

Best of success, and welcome to the forum.

I tried using your LUT but it goes out of scale.
https://i.imgur.com/1E2Uddi.png

The upper range is OK.
https://i.imgur.com/NR0ko0G.png

What is the advantage of using a LUT instead of a Brightness&Contrast filter?

RogerS wrote on 1/4/2023, 6:48 AM

You have studio RGB levels checked so it should be 0-100 in that case (= 16-235).
[Edit] Are you in 8-bit full or 8-bit video mode?

In 8-bit video with video-range footage visually it will look dull so if you do further color correction by eye you'd want to use "adjust levels from studio RGB to computer RGB" in preferences/preview device if you're using an external monitor or preview levels from SeMW. https://www.semw-software.com/en/extensions/

In 8-bit full none of this is necessary as Vegas does levels transforms for you. You just need to bring the highlights of your footage into video range.

 

Last changed by RogerS on 1/4/2023, 7:27 PM, changed a total of 2 times.

Custom PC (2022) Intel i5-13600K with UHD 770 iGPU with latest driver, MSI z690 Tomahawk motherboard, 64GB Corsair DDR5 5200 ram, NVIDIA 2080 Super (8GB) with latest studio driver, 2TB Hynix P41 SSD and 2TB Samsung 980 Pro cache drive, Windows 11 Pro 64 bit https://pcpartpicker.com/b/rZ9NnQ

ASUS Zenbook Pro 14 Intel i9-13900H with Intel graphics iGPU with latest ASUS driver, NVIDIA 4060 (8GB) with latest studio driver, 48GB system ram, Windows 11 Home, 1TB Samsung SSD.

VEGAS Pro 21.208
VEGAS Pro 22.239

Try the
VEGAS 4K "sample project" benchmark (works with VP 16+): https://forms.gle/ypyrrbUghEiaf2aC7
VEGAS Pro 20 "Ad" benchmark (works with VP 20+): https://forms.gle/eErJTR87K2bbJc4Q7

Musicvid wrote on 1/4/2023, 10:22 AM

I tried using your LUT but it goes out of scale.

😶

Mindmatter wrote on 1/4/2023, 2:55 PM

I don't know what Sony you are using but suggest using a profile where the color range is actually limited. That's the reason I use Cine 2 over Cine 1. Otherwise you get to deal with LUTs or levels filters, etc. as described above.

I'm not sure what you mean. Cine 1 and 2 merely differ in their respective gamma curve, and to my knowledge have no influence on the actual range.

That said, I did encounter some confusion in Vegas when dealing with footage from my FS7 and older A7s1 at the time, as vegas would sometimes treat the footage as full range, sometimes not, regardless of the codec or gamma settings, which , ASAIK, can't deliberately be set to full or limited in camera.

Last changed by Mindmatter on 1/4/2023, 3:24 PM, changed a total of 2 times.

AMD Ryzen 9 5900X, 12x 3.7 GHz
32 GB DDR4-3200 MHz (2x16GB), Dual-Channel
NVIDIA GeForce RTX 3070, 8GB GDDR6, HDMI, DP, studio drivers
ASUS PRIME B550M-K, AMD B550, AM4, mATX
7.1 (8-chanel) Surround-Sound, Digital Audio, onboard
Samsung 970 EVO Plus 250GB, NVMe M.2 PCIe x4 SSD
be quiet! System Power 9 700W CM, 80+ Bronze, modular
2x WD red 6TB
2x Samsung 2TB SSD

Howard-Vigorita wrote on 1/4/2023, 5:31 PM

@rgrI tried rendering limited-range projects with a customized full-range template. Didn't look right uploaded to YouTube. Easiest approach is to set the project to full and leave the render-range at the default limited-range. When I feel I need to edit with the project set to limited-range, I use the PC preset of the free SeMW Vegas extension and render preset defaults.

RogerS wrote on 1/4/2023, 6:32 PM

Cine 1 is 109% video levels and Cine 2 100% as documented by Sony. (Aka Hypergamma in the cinema line)

Cine 1 actually has slightly greater highlight range per tests I and Paul Leeming did for his Pro LUT but it's not worth the hassle of dealing with 16 to 255 flagged as limited.

Some formats are full range like Slog and that's how you "choose" it. It's easy to forget what profile something was shot in and Vegas doesn't know either, it just knows the flags.

Last changed by RogerS on 1/4/2023, 7:26 PM, changed a total of 1 times.

Custom PC (2022) Intel i5-13600K with UHD 770 iGPU with latest driver, MSI z690 Tomahawk motherboard, 64GB Corsair DDR5 5200 ram, NVIDIA 2080 Super (8GB) with latest studio driver, 2TB Hynix P41 SSD and 2TB Samsung 980 Pro cache drive, Windows 11 Pro 64 bit https://pcpartpicker.com/b/rZ9NnQ

ASUS Zenbook Pro 14 Intel i9-13900H with Intel graphics iGPU with latest ASUS driver, NVIDIA 4060 (8GB) with latest studio driver, 48GB system ram, Windows 11 Home, 1TB Samsung SSD.

VEGAS Pro 21.208
VEGAS Pro 22.239

Try the
VEGAS 4K "sample project" benchmark (works with VP 16+): https://forms.gle/ypyrrbUghEiaf2aC7
VEGAS Pro 20 "Ad" benchmark (works with VP 20+): https://forms.gle/eErJTR87K2bbJc4Q7

Mindmatter wrote on 1/5/2023, 9:44 AM

Cine 1 is 109% video levels and Cine 2 100% as documented by Sony. (Aka Hypergamma in the cinema line)

Cine 1 actually has slightly greater highlight range per tests I and Paul Leeming did for his Pro LUT but it's not worth the hassle of dealing with 16 to 255 flagged as limited.

Some formats are full range like Slog and that's how you "choose" it. It's easy to forget what profile something was shot in and Vegas doesn't know either, it just knows the flags.

Thanks, that explains quite a few things!
I had never seen that table with the extra range info of the PPs, and wasn't awere that cine1 is 109% and cine 2 is 100%. The info I had at the time just explained the difference in gamma ( contrast, highlight rollof etc) between the cine modes in the A7s1.

AMD Ryzen 9 5900X, 12x 3.7 GHz
32 GB DDR4-3200 MHz (2x16GB), Dual-Channel
NVIDIA GeForce RTX 3070, 8GB GDDR6, HDMI, DP, studio drivers
ASUS PRIME B550M-K, AMD B550, AM4, mATX
7.1 (8-chanel) Surround-Sound, Digital Audio, onboard
Samsung 970 EVO Plus 250GB, NVMe M.2 PCIe x4 SSD
be quiet! System Power 9 700W CM, 80+ Bronze, modular
2x WD red 6TB
2x Samsung 2TB SSD

john_dennis wrote on 1/6/2023, 4:55 PM

For those who don't have a camera that can generate this stuff.

Cine1

Cine2

S-Log2

S-Log3