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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th August 2015, 16:10   #1  |  Link
chilledinsanity
Registered User
 
Join Date: Jan 2002
Posts: 226
Script to convert and "restore" color from YUV to RGB?

First off, I'll say I'm not an expert at all when it comes to color, but I want to attempt to improve it for some videos I make. I work a lot with computer game footage, which outputs at RGB, however most capture software is done using the YUV colorspace. Now this might not matter since Youtube displays at 4:2:0, so there's going to be some loss anyway. The thing is, if I record at RGB v. YUV, I can actually see the difference in the end video. Take a look at the red lantern at the top of the screen in these videos:

(Originally recorded in lossless RGB):
https://www.youtube.com/watch?v=DAK_thNnwIE

(Originally recorded in YUV):
https://www.youtube.com/watch?v=QYRQzp_PR3I

The difference is subtle, but it's definitely there. Now the obvious solution would be to just record everything in RGB to begin with before upload, but that's not always practical for some situations. So my question is, is there any sort of script out there that can take its "best guess" at restoring the color converting back to RGB in editing that was originally recorded at YUV? I'm not expecting miracles and realize this would just be guesswork, but I wanted to see if there was any method I could use to try and restore a little more of the color in post-production for YUV footage.



Short version: I'm looking for a script to convert YUV footage to RGB and take its "best guess" at trying to make the color a little more vibrant for RGB colorspace.
chilledinsanity is offline   Reply With Quote
Old 25th August 2015, 21:03   #2  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Unfortunately, in 4:2:0, color resolution is cut in half, both in width and height. This means three-fourths of the color information has been lost forever.

Long ago, I tried sharpening the color channels in different ways (here's one), but it doesn't help much. I never bother with it anymore.
raffriff42 is offline   Reply With Quote
Old 5th September 2015, 13:32   #3  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Good news:
http://forum.doom9.org/showthread.ph...01#post1737201
This routine was written for antialiasing, and it works OK for that - but it also has a definite sharpening effect on color detail.
raffriff42 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.