Mixing HD (709) and SD (601) clips at DVinfo.net
DV Info Net

Go Back   DV Info Net > Windows / PC Post Production Solutions > What Happens in Vegas...
Register FAQ Today's Posts Buyer's Guides

What Happens in Vegas...
...stays in Vegas! This PC-based editing app is a safe bet with these tips.

Reply
 
Thread Tools Search this Thread
Old February 19th, 2008, 04:50 PM   #1
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
Mixing HD (709) and SD (601) clips

What plug in should I use to convert a Rec. 709 clip to Rec. 601 and vice versa?

In my current project there was a cuts-only DVD edit that was done with content from various sources. I have no idea of the processing used. I am now doing an (mostly) HD version, and the levels need to match the DVD version. This is a technical and not an artistic project.

With a mix of clips/tracks on the timeline - some are 16-235, others are 0-255, how do I apply filters that will accurately conform the content to the same colorspace?

Note that a search of the Vegas help file on "601" or "709" yields no results.

Thanks!
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old February 19th, 2008, 09:58 PM   #2
Trustee
 
Join Date: Feb 2004
Location: Brookline, MA
Posts: 1,447
Good question. I would recommend converting the offending 601 clips to 709 using avisynth: http://forum.doom9.org/showthread.php?s=&threadid=82217

Tom Barry has a 709 to 601 filter: http://www6.impacthosting.com/trbarry/

Someone else has the reverse: http://rennfast.dns2go.com/Public/HT...601tobt709.zip

It is too bad that the video world does not yet have proper color management!
Emre Safak is offline   Reply With Quote
Old February 20th, 2008, 12:15 AM   #3
 
Join Date: Jan 2004
Location: Stockton, UT
Posts: 5,648
Downconverting HD to SD automatically sets up the correct color range, but even so, there are presets used in GearShift for this conversion, or you can use the Cineform recommended presets from long ago.
You can use the broadcast filter as well, to clamp everything down, if that's you primary concern.
__________________
Douglas Spotted Eagle/Spot
Author, producer, composer
Certified Sony Vegas Trainer
http://www.vasst.com
Douglas Spotted Eagle is offline   Reply With Quote
Old February 20th, 2008, 12:39 AM   #4
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
Thanks everybody.

I've been working on a spreadsheet with all of the coefficients. Once I confirm the values, I'll plug them into the Channel Blend plug-in. I'll create presets for 0-255 to 16-235 and back, as well as various flavors of 709 and 601 conversions. I'll post my results to this thread.

One example would be if somebody took a 0-255 709 stream and squished it to 16-235 without converting to 601 color space. I'll make a preset to fix that sort of stuff.

Since I don't know what conversions and tools my source video has been through, I'll need to do some trial and error checks in order to get things to match. There are only so many combinations. Hopefully my presets will do the trick.

One thing for sure, just messing with offsets and gains doesn't work. And I don't believe that anybody applied gamma changes or other artistic tweaks.

I'm booked with other work all day tomorrow. I should get to try it out on Thursday...
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old February 22nd, 2008, 01:32 PM   #5
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
Well, I calculated and confirmed my values using Excel. I plugged the values into the converter, and that wasn't the problem. I'll have to match things by hand as best I can.

However, here are the values I promised. Simply plug these into the Channel Blend plugin to convert between 601 and 709 color spaces. Both assume 0-255 ranges. You can use the Levels plugin before/after as needed to convert between 0-255 and 16-235. There is also a very slight saturation difference between 0-255 and 16-236 to consider.

709 to 601
R = 1.086*R - 0.072*G - 0.014*B
G = 0.097*R + 0.845*G + 0.058*B
B = -0.014*R - 0.028*G +1.041*B

601 to 709
R = 0.914*R + 0.079*G + 0.008*B
G = -0.105*R + 1.172*G - 0.067*B
B = 0.010*R + 0.032*G + 0.958*B

You can confirm these by using full field color bars and running these conversions back to back. The two conversions cancel one another, and the bars look normal.

With color bars, the green bars show the most difference. On natural video, I see the main differences as the red tones shift to/from magenta and orange.

This is all based on these equations:

Y' = 0.587*G' + 0.114*B' + 0.299*R' (601), and
Y' = 0.7152*G' + 0.0722*B' + 0.2126*R' (709).

(The ' indicates the gamma corrected domain.)
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old February 22nd, 2008, 02:03 PM   #6
Inner Circle
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,750
Jon, Vegas should be handling the luma co-efficients for you.

Bring color bars from your camera and check them on Vegas' scopes. If they line up, you don't have a problem.

*Vegas 7 has a bug with some JVC cameras. I calculated the numbers some while back, but it's easier to use Vegas 8.

2- In regards to 16-235 range versus 0-255 (or studio versus computer RGB), see my article about that:
http://glennchan.info/articles/vegas...or/v8color.htm

3- Modern HD (i.e. 709) and SD material also differ in their transfer functions and primaries. I would pretend that these differences don't exist and you'll get reasonable results that way. This is the way it's done in many high-end facilities. (To do things right can create more problems, whereas it doesn't really solve any problems because no one will tell the difference.)
Glenn Chan is offline   Reply With Quote
Old February 22nd, 2008, 02:31 PM   #7
 
Join Date: Nov 2001
Location: santa fe, nm
Posts: 3,264
Images: 10
whoa!
I bring the color bars in from my camera, either an HD110 or an EX1...they line up fine in the vegas wfm; and I got BIG problems after rendering to an SD format....well, big is a relative term. lets just say the colors are off by ~10-15 R'G'B' value
Bill Ravens is offline   Reply With Quote
Old February 22nd, 2008, 03:03 PM   #8
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
Quote:
Originally Posted by Glenn Chan View Post
Jon, Vegas should be handling the luma co-efficients for you.
Glenn, as I wrote above, I'm working on a unique project. The content isn't from my camera. I have some SD source material that went through unknown processes. I also have the same material in HD, and again the process is unknown. And for technical reasons, I have to get the levels to match.

In my case, I need manual control. This has become more of a forensic task than anything.

To give you an idea of how divergent the SD and HD materials are, I have some stuff from BBC Research that seems to have been converted from 50 Hz to 60 Hz. The SD and HD cuts have the frames a different phases! I have one scene with a slow moving train. The spokes of the wheels don't even line up on individual frames between the cuts!

And that's before I even get to cropping, levels and gamma curves.

The equations above aren't needed in normal use, but can be helpful in case the content went through an NLE that applied (or failed to apply) the conversion appropriately.
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old February 22nd, 2008, 07:09 PM   #9
 
Join Date: Nov 2001
Location: santa fe, nm
Posts: 3,264
Images: 10
Jon...

I tried your coefficients. Beleive me, they make matters worse.
I may not have much credibility with you, but, Vegas is really hosed. In the end, it's made me crazy trying to figure it all out. Glenn has tried to help, but, he doesn't want to admit to the problems with Vegas.
Bill Ravens is offline   Reply With Quote
Old February 22nd, 2008, 09:25 PM   #10
Trustee
 
Join Date: Feb 2004
Location: Brookline, MA
Posts: 1,447
Bill, let's be fair: how many video editing applications support ICC profiles--and not just for previewing, but assigning to clips?
Emre Safak is offline   Reply With Quote
Old February 22nd, 2008, 11:25 PM   #11
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
Quote:
Originally Posted by Bill Ravens View Post
I tried your coefficients. Beleive me, they make matters worse.
If the problem isn't a 601 <-> 709 color shift, these coefficients definitely won't help.

Still, they're nice to have in the toolbox in the case that you get stuff from another NLE that processed things wrong.

I used to think that in a pure digital workflow it wasn't important to lay down bars. Now that we have 0-255 and 16-235 as well as 601 and 709 color space, bars are as important as ever.
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old February 23rd, 2008, 12:31 AM   #12
Inner Circle
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,750
Quote:
Originally Posted by Jon Fairhurst View Post
Glenn, as I wrote above, I'm working on a unique project. The content isn't from my camera. I have some SD source material that went through unknown processes. I also have the same material in HD, and again the process is unknown. And for technical reasons, I have to get the levels to match.
In that case there is a small possibility that you are working with HD material that's not 709... e.g. the footage might be using SMPTE 240M luma co-efficients. (I've encountered this myself because it's possible to set some cameras up wrong.)

Your numbers seem to match mine (actually I just realized that I copied my original numbers into a forum post wrong). I would round differently (e.g. round and not truncate), but that may or may not be important.

2- If there aren't bars on the source tapes, then... it might be difficult to know what the original colors are supposed to be. On top of that, there are color inaccuracies inherent to many video systems (e.g. metamerism, video knee, gamma 'correction', cheating in the color matrix, etc.).

Quote:
With a mix of clips/tracks on the timeline - some are 16-235, others are 0-255, how do I apply filters that will accurately conform the content to the same colorspace?
You might (or might not) need to apply the studio<-->computer RGB presets in the Color Corrector filter (or Levels; levels may be less accurate in 8-bit).

The article I mentioned earlier explains it:
http://glennchan.info/articles/vegas...or/v8color.htm

The whole 16-235 studio RGB versus 0-255 computer RGB issue is a Vegas thing / unique to Vegas.

Quote:
Glenn has tried to help, but, he doesn't want to admit to the problems with Vegas.
The problem with Vegas is that:
A- You have to do the color space conversions manually.
B- You have to know what color space conversion (if any) is appropriate.

I don't think it's fair to characterize me as not "admitting" to the problems with Vegas... I think I've always been clear that you have to do color space conversions manually sometimes.
Glenn Chan is offline   Reply With Quote
Old February 23rd, 2008, 08:24 AM   #13
 
Join Date: Nov 2001
Location: santa fe, nm
Posts: 3,264
Images: 10
Emre...

I surely can't argue with you about Vegas' seeming good points. It has many. However, it has one fatal flaw. There's NO WAY to do CCing in Vegas and have the ability to see what your final output will be. It's confirmed that the scopes are wrong and the preview window is wrong. So, how is one to do any kind of CC with finesse? Sure vegas can take the sledge hammer approach. But, it's certainly not the precision that a professional app needs to have.
Bill Ravens is offline   Reply With Quote
Old February 23rd, 2008, 02:16 PM   #14
Inner Circle
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,750
Quote:
There's NO WAY to do CCing in Vegas and have the ability to see what your final output will be.
That's simply not true.

Anyways, I'm getting sick and tired of discussing this.

I've laid out how to get correct results in Vegas in my article(s). And I've checked my results against hardware scopes. I haven't seen any compelling evidence that what I've written is wrong.
Glenn Chan is offline   Reply With Quote
Old February 23rd, 2008, 03:26 PM   #15
 
Join Date: Nov 2001
Location: santa fe, nm
Posts: 3,264
Images: 10
Well, tell ya what. Nothing you've told me has helped.
Now what?The monitor is wrong and the scope is wrong. I'm supposed to CC on pure faith? I don't think so.
Maybe I'm just too dumb to be using Vegas. In that case there should be a disclaimer on the box, "dumb people need not waste their money".
Or, maybe, Sony should issue hardware scopes to all users so the users can figure out how to get decent output from their software.
Bill Ravens is offline   Reply
Reply

DV Info Net refers all where-to-buy and where-to-rent questions exclusively to these trusted full line dealers and rental houses...

B&H Photo Video
(866) 521-7381
New York, NY USA

Scan Computers Int. Ltd.
+44 0871-472-4747
Bolton, Lancashire UK


DV Info Net also encourages you to support local businesses and buy from an authorized dealer in your neighborhood.
  You are here: DV Info Net > Windows / PC Post Production Solutions > What Happens in Vegas...


 



All times are GMT -6. The time now is 08:28 AM.


DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network