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. |
|
|
Thread Tools | Search this Thread | Display Modes |
24th August 2015, 16:10 | #1 | Link |
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. |
25th August 2015, 21:03 | #2 | Link |
Retried Guesser
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. |
5th September 2015, 13:32 | #3 | Link |
Retried Guesser
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. |
|
|