oo_void
18th August 2004, 18:44
Okay, I'm getting to the point of desperation ... After many months of trial and error; I finally have a script (http://www.badassgeek.com/files/starwars_disc-1.avs) (comments welcome) that takes an immensely crappy, 4:3 source, the 'Star Wars Definitive Edition Laser Disc', and outputs an amazing 16:9 image ready for encoding an anamorphic DVD.
My problem though lies in the levels, after countless test burns using CCE as the encoder, I just can’t seem to get it right. Using the process outlined I’ve outlined in this thread (http://forum.doom9.org/showthread.php?s=&threadid=80020), my correction routine looks as follows –
chroma_u_input = UtoY()
chroma_u_fixed = YLevels(chroma_u_input, 14, 1, 251, 16 , 240)
chroma_v_input = VtoY()
chroma_v_fixed = YLevels(chroma_v_input, 16, 1, 239, 16 , 240)
chroma_y_fixed = YLevels(15, 1, 255, 16, 235)
YtoUV(chroma_u_fixed, chroma_v_fixed)
MergeLuma(chroma_y_fixed)
The color and saturation look great; it’s just that the image is much too bright when the resulting DVD is viewed on an NTSC monitor… About 20% too bright based on correction I have to make to the NTSC monitor to get it to look right. Sure, I can toy with the brightness levels within the script, but then I’d just be sliding everything in the luma channel down and loosing the whites (correct?). Any recommendations? Here are a few sample images …
Frame 4500 (Source) (http://www.badassgeek.com/files/starwars_disc-1_4500-source.png)
Frame 4500 (Processed) (http://www.badassgeek.com/files/starwars_disc-1_4500.png)
Frame 5100 (Source) (http://www.badassgeek.com/files/starwars_disc-1_5100-source.png)
Frame 5100 (Processed) (http://www.badassgeek.com/files/starwars_disc-1_5100.png)
Frame 8200 (Source) (http://www.badassgeek.com/files/starwars_disc-1_8200-source.png)
Frame 8200 (Processed) (http://www.badassgeek.com/files/starwars_disc-1_8200.png)
Frame 9195 (Source) (http://www.badassgeek.com/files/starwars_disc-1_9195-source.png)
Frame 9195 (Processed) (http://www.badassgeek.com/files/starwars_disc-1_9195.png)
edit: Corrected the aspect ratio of the output samples (Virtual Dub was set to 1:1).
Additionally, you'll notice that I'm using Didee's YLevels instead of the built in AviSynth Levels() command. If you look at the curved bulkhead in the lower right hand portion of the screen, it looks a little washed out in the source. Levels() didn't fix it (nor some playing in Photoshop), but YLevels seems to restore the it showing more of a curve as seen in the processed file. Additionally, the detail (http://www.badassgeek.com/files/ylevels.png) within the black bars under R2's head seems to be restored with YLevels() and not with a standard Levels() function.
------
oo_void
My problem though lies in the levels, after countless test burns using CCE as the encoder, I just can’t seem to get it right. Using the process outlined I’ve outlined in this thread (http://forum.doom9.org/showthread.php?s=&threadid=80020), my correction routine looks as follows –
chroma_u_input = UtoY()
chroma_u_fixed = YLevels(chroma_u_input, 14, 1, 251, 16 , 240)
chroma_v_input = VtoY()
chroma_v_fixed = YLevels(chroma_v_input, 16, 1, 239, 16 , 240)
chroma_y_fixed = YLevels(15, 1, 255, 16, 235)
YtoUV(chroma_u_fixed, chroma_v_fixed)
MergeLuma(chroma_y_fixed)
The color and saturation look great; it’s just that the image is much too bright when the resulting DVD is viewed on an NTSC monitor… About 20% too bright based on correction I have to make to the NTSC monitor to get it to look right. Sure, I can toy with the brightness levels within the script, but then I’d just be sliding everything in the luma channel down and loosing the whites (correct?). Any recommendations? Here are a few sample images …
Frame 4500 (Source) (http://www.badassgeek.com/files/starwars_disc-1_4500-source.png)
Frame 4500 (Processed) (http://www.badassgeek.com/files/starwars_disc-1_4500.png)
Frame 5100 (Source) (http://www.badassgeek.com/files/starwars_disc-1_5100-source.png)
Frame 5100 (Processed) (http://www.badassgeek.com/files/starwars_disc-1_5100.png)
Frame 8200 (Source) (http://www.badassgeek.com/files/starwars_disc-1_8200-source.png)
Frame 8200 (Processed) (http://www.badassgeek.com/files/starwars_disc-1_8200.png)
Frame 9195 (Source) (http://www.badassgeek.com/files/starwars_disc-1_9195-source.png)
Frame 9195 (Processed) (http://www.badassgeek.com/files/starwars_disc-1_9195.png)
edit: Corrected the aspect ratio of the output samples (Virtual Dub was set to 1:1).
Additionally, you'll notice that I'm using Didee's YLevels instead of the built in AviSynth Levels() command. If you look at the curved bulkhead in the lower right hand portion of the screen, it looks a little washed out in the source. Levels() didn't fix it (nor some playing in Photoshop), but YLevels seems to restore the it showing more of a curve as seen in the processed file. Additionally, the detail (http://www.badassgeek.com/files/ylevels.png) within the black bars under R2's head seems to be restored with YLevels() and not with a standard Levels() function.
------
oo_void