Color/gamma shift on exported video at DVinfo.net
DV Info Net

Go Back   DV Info Net > Cross-Platform Post Production Solutions > CineForm Software Showcase
Register FAQ Today's Posts Buyer's Guides

CineForm Software Showcase
Cross platform digital intermediates for independent filmmakers.

Reply
 
Thread Tools Search this Thread
Old June 20th, 2007, 03:23 PM   #1
Regular Crew
 
Join Date: Jun 2005
Posts: 66
Color/gamma shift on exported video

I'm back to seeing something I was experiencing a while back and never got a satisfactory understanding of. Now that I'm exporting (supposedly final) color-corrected sequences, I'm seeing it again, so I thought I'd ask for some general input in case I'm just completely missing something obvious.

Sequences are Cineform 720p/23.98. Color correction is done in After Effects, and exported to CFHD. When I bring the exported sequence back into the same AE project for comparison, there's a color/gamma(?) shift.

Attached are three images for comparison. The first is the original frame from AE. The second is the exported footage brought back into AE. The third is split with the original on the left and the exported on the right. (The split is most obvious on the side of the building.)
Attached Thumbnails
Color/gamma shift on exported video-original.png   Color/gamma shift on exported video-export.png  

Color/gamma shift on exported video-split.png  
K. Tessman is offline   Reply With Quote
Old June 20th, 2007, 04:02 PM   #2
CTO, CineForm Inc.
 
Join Date: Jul 2003
Location: Cardiff-by-the-Sea, California
Posts: 8,095
Which version of software, number (v3, v4, v5) and product (AHD va NEO vs PHD vs P2K).
Which exporter Video for Windows or the "CineForm AVI" output module.
Which pixel format in AE, 8-bit, 16-bit, 32-bit linear.

I just tested you image with 16-bit mode out to "CineForm AVI" output module. No difference, the attached image is split where yours was.
Attached Thumbnails
Color/gamma shift on exported video-comp-1_00000.png  
__________________
David Newman -- web: www.gopro.com
blog: cineform.blogspot.com -- twitter: twitter.com/David_Newman
David Newman is offline   Reply With Quote
Old June 20th, 2007, 07:23 PM   #3
Regular Crew
 
Join Date: Jun 2005
Posts: 66
Aspect HD 4.2.4 Build 72. (I thought I kept pretty up to date, but that seem old. From what I've read, however, I'm going to guess that this wasn't something that was intentionally fixed, since then, if it's a Cineform issue at all.)

The Cineform AVI output module.

16-bit composition.

I'm going to re-post this in the After Effects forum in the event that it's something application-wise that someone's seen before.
K. Tessman is offline   Reply With Quote
Old June 20th, 2007, 08:00 PM   #4
CTO, CineForm Inc.
 
Join Date: Jul 2003
Location: Cardiff-by-the-Sea, California
Posts: 8,095
Yes that Aspect HD is several versions old, now at 5.0.2, even version 4 got to 4.3.x, you should at least update to 4.3. While you are using the 16-bit mode in AE, your only using an 8-bit Video for Windows decoding because on Aspect HD itself -- Prospect HD adds 10+ bit decodes. That shouldn't result in a shift, just less gradient precision. Was you composite the 640x272 in size or have you just scaled for web presentation? The reason I ask is you might have some 601 vs 709 colorspace issues.
__________________
David Newman -- web: www.gopro.com
blog: cineform.blogspot.com -- twitter: twitter.com/David_Newman
David Newman is offline   Reply With Quote
Old June 21st, 2007, 12:03 AM   #5
Regular Crew
 
Join Date: Jun 2005
Posts: 66
The image size was reduced and cropped from 1280x720 just for attaching. Yeah, I didn't think the 8-bit-vs.-16-bit issue should result in that sort of a shift. The 601-vs.-709-colorspace did occur to me (or rather, any colorspace mismatch in general) but I wasn't sure where or when or what.
K. Tessman is offline   Reply With Quote
Old June 30th, 2007, 10:48 PM   #6
Regular Crew
 
Join Date: Jun 2005
Posts: 66
All right, despite the mounting evidence that I'm either hallucinating or incompetent, I thought I'd take one more crack at this. Here are two files, the first an 8-bit TIFF image sequence

http://www.generalcoffee.com/temp/Sc...1-023_TIFF.zip (21 MB)

and the second a CFHD AVI generated by importing the image sequence into AE, in an 8-bit project, creating a simple composition where it's the only layer, and outputting via the Cineform AVI output module setting.

http://www.generalcoffee.com/temp/Sc...1-023_CFHD.avi (3.5 MB)

Finally, to be sure it's not a playback/media player thing, I did an uncompressed AVI output from the TIFF sequence:

http://www.generalcoffee.com/temp/Sc...compressed.avi (88 MB)

The uncompressed AVI looks identical to the TIFF sequence. The CFHD AVI is brighter gamma-wise and less saturated.

Attached is a splitscreen of the first TIFF frame on the left and a capture from WMP of the first CFHD frame on the right.
Attached Thumbnails
Color/gamma shift on exported video-scene_021-023_comparison.png  

Last edited by K. Tessman; July 1st, 2007 at 12:15 AM.
K. Tessman is offline   Reply With Quote
Old July 1st, 2007, 10:14 AM   #7
CTO, CineForm Inc.
 
Join Date: Jul 2003
Location: Cardiff-by-the-Sea, California
Posts: 8,095
Good news, there is nothing wrong with your CineForm AVI renders, the uncompressed AVI and CineForm AVI are identical. The issue is you have setup your Video for Window decoding to default to "Video Systems RGB" (black 16, white at 235), rather than computer graphic RGB (the default for AE, black at 0.) You need to open the VFW CineForm control panel, via the "Configure" button shown in the attachment, restore the top two checkboxes to off. You can do this in the Render Output module controls (yes it impacts decoding as well.)
Attached Thumbnails
Color/gamma shift on exported video-vsrgbcontrols.png  
__________________
David Newman -- web: www.gopro.com
blog: cineform.blogspot.com -- twitter: twitter.com/David_Newman
David Newman is offline   Reply With Quote
Old July 1st, 2007, 02:22 PM   #8
Regular Crew
 
Join Date: Jun 2005
Posts: 66
Hmm. I considered that. My CFHD encoder settings look like this (attached).

(I assume the difference in dialogs is due to the fact that I haven't upgraded to Aspect HD 5?)
Attached Images
 
K. Tessman is offline   Reply With Quote
Old July 1st, 2007, 03:55 PM   #9
CTO, CineForm Inc.
 
Join Date: Jul 2003
Location: Cardiff-by-the-Sea, California
Posts: 8,095
No, this is not as simple as Aspect HD vs Prospect HD thing, you simply using the wrong dialogs which are available in both. I said to access Video for Window controls, not the CineForm AVI controls under the Output render settings. While using CineForm AVI control is best for export, Aspect HD still uses VFW for the importer, at some point you got into that control and set the decoding for Video System RGB, and the controls are sticky -- it has been causing you this issue ever since.

1) Add something to render queue
2) Select Video for Windows
3) Select Cinform compression in VfW
4) Click on "Configure"
5) turn off Decoding as VSRGB
6) Click OK

you are now done.
__________________
David Newman -- web: www.gopro.com
blog: cineform.blogspot.com -- twitter: twitter.com/David_Newman
David Newman is offline   Reply With Quote
Old July 1st, 2007, 04:16 PM   #10
Regular Crew
 
Join Date: Jun 2005
Posts: 66
Ah! I read "Video for Windows", registered it, and then promptly went and checked the Cineform AVI settings instead. Sorry about that.

I was all excited that it was (as expected) my own incompetence and that this would solve my problem, until I saw the attached.

(I had wondered previously if I was missing some decode setting(s), so I looked under HKEY_CURRENT_USER\Software\CineForm\VfW. There were only Encode* settings. I added a DecodeVSRGB 0 of my own (good guess), to no effect. Now of course, having accessed that dialog, the Decode* settings are there, as well.)

Changing the Decode VSRGB value has no effect on what playback looks like.
Attached Thumbnails
Color/gamma shift on exported video-cf_vfw_settings.png  
K. Tessman is offline   Reply With Quote
Old July 1st, 2007, 04:41 PM   #11
CTO, CineForm Inc.
 
Join Date: Jul 2003
Location: Cardiff-by-the-Sea, California
Posts: 8,095
Restart you app, and your settings will take hold, otherwise AE will cache. You point you have missed is that your AVIs are the same on my computer (and anyone else who cares to try) -- it is completely a local to your setup.

Also try loading the two AVIs in two vuirtual dub sessions, and see how perfectly they match.
__________________
David Newman -- web: www.gopro.com
blog: cineform.blogspot.com -- twitter: twitter.com/David_Newman
David Newman is offline   Reply With Quote
Old July 1st, 2007, 04:48 PM   #12
CTO, CineForm Inc.
 
Join Date: Jul 2003
Location: Cardiff-by-the-Sea, California
Posts: 8,095
Have you been playing with other registry settings? If so please stop it -- causes suport issues that would not otherwise exist. We probably have people reading this thinking that something is wrong with CineForm -- rather than we gave a customer too much rope. ;) Start AE and hold down "Ctrl+Shift" during the startup, if you see a CineForm control panel you running the Prospect HD importer, not VfW. You can turn it off, or leave it on. If you use this CineForm (non-VfW) importer, use Interpret Footage "More Options" to get this control:
Attached Thumbnails
Color/gamma shift on exported video-aeimporter.png  
__________________
David Newman -- web: www.gopro.com
blog: cineform.blogspot.com -- twitter: twitter.com/David_Newman
David Newman is offline   Reply With Quote
Old July 1st, 2007, 08:39 PM   #13
Regular Crew
 
Join Date: Jun 2005
Posts: 66
Quote:
Originally Posted by David Newman
Have you been playing we other registry settings? If so please stop it -- causes suport issue that would not otherwise exist. We probably have people reading this thinking that something is wrong with CineForm -- rather than we gave a customer too much rope.
No, the only registry change I made was to add (then remove) the then-non-existent DecodeVSRGB value when I wasn't able to see such an option in the (as it turns out, wrong on my part) settings dialog. That exact value has now been added programmatically along with the other Decode* values now that I've accessed the proper Cineform VfW settings panel.

I'm fully willing to believe that this is solely an issue somehow with my setup, uniquely related to me. For anyone reading this: Cineform works just splendidly.

Anyway, here's where I'm at: I haven't been a VirtualDub user, but I downloaded it at your suggestion, and it works exactly as you described. It plays back both the CFHD and uncompressed AVIs the same, and with the same color/gamma characteristics as the TIFF sequence.

It's Windows Media Player (or Media Player Classic) that seems to play them back differently. If you're curious, I uploaded a comparison PSD file to

http://www.generalcoffee.com/temp/various_renderers.psd

The two VD-rendered layers are visually identical to the TIFF-sourced layer. The MP CFHD layer is noticeably less saturated/lighter, and the MP uncompressed is closer but still just a little off (visible flicking the upper layer on and off, or using Difference blending).

For whatever reason, for me (and on my setup, here, not to be extrapolated to anything another user and/or setup may experience!), Windows Media Player, Media Player Classic, and apparently other DirectShow playback (since I see the same thing in my own simple-DShow-based applications) render CFHD AVI files somewhat inaccurately. If I could figure out why that is, I'd be happier and have one less thing to work around in my workflow, but in the meantime, David, thanks for all your help, especially on a Sunday. Happy Canada Day!
K. Tessman is offline   Reply With Quote
Old July 1st, 2007, 09:00 PM   #14
CTO, CineForm Inc.
 
Join Date: Jul 2003
Location: Cardiff-by-the-Sea, California
Posts: 8,095
Did you try the AE suggestion? "Start AE and hold down "Ctrl+Shift" during the startup,..."

End the end it is going to be one of two RGB type setting, or something with that older codec, but there have been no reports of any bugs in that area. You should test the latest to rule that out.
__________________
David Newman -- web: www.gopro.com
blog: cineform.blogspot.com -- twitter: twitter.com/David_Newman
David Newman is offline   Reply With Quote
Old July 1st, 2007, 09:25 PM   #15
Regular Crew
 
Join Date: Jun 2005
Posts: 66
Sorry, David: I'd meant to mention that I tried that and saw nothing special when starting up AE with Ctrl+Shift down (nor do I have the option to select More Options from Interpret Footage).

I'm using Aspect HD.

(Since that earlier post, I've updated to Aspecthdv432b77dl070329.zip.)
K. Tessman 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 > Cross-Platform Post Production Solutions > CineForm Software Showcase


 



All times are GMT -6. The time now is 12:00 PM.


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