Is HuffyUV a truly "lossless" codec?
- Kearly
- Joined: Mon Oct 27, 2003 4:28 am
- Location: The Pool (of LCL)
Is HuffyUV a truly "lossless" codec?
HuffyUV is considered a lossless codec. In my many AMV exports from premiere, I've consistently exported with HuffyUV. I then take my HuffyUV file, which supposedly is perfect quality, and process it further in Virtual dub (I use XVID compression).
But even before processing in Virtualdub, I've looked at my HuffyUV files. The quality looks good, theres no splotchyness or major video problems. However, the video seems a little dark, and the colors somehow don't quite jump off the screen quite the same way.
Maybe its just my imagination, but I have never truly "felt" that HuffyUV has given me a perfect looking video. I would use "uncompressed" before sending the processing to Vdub, I have the Memory. Unfortunately, uncompressed is not an available export option.
But even before processing in Virtualdub, I've looked at my HuffyUV files. The quality looks good, theres no splotchyness or major video problems. However, the video seems a little dark, and the colors somehow don't quite jump off the screen quite the same way.
Maybe its just my imagination, but I have never truly "felt" that HuffyUV has given me a perfect looking video. I would use "uncompressed" before sending the processing to Vdub, I have the Memory. Unfortunately, uncompressed is not an available export option.
- Zarxrax
- Joined: Sun Apr 01, 2001 6:37 pm
- Contact:
- AMVfreak
- Joined: Sun Mar 14, 2004 2:43 pm
- Location: LalalalaBoinkBoink, bouncing in my head.
- Kearly
- Joined: Mon Oct 27, 2003 4:28 am
- Location: The Pool (of LCL)
Thank you Zarxrax.Zarxrax wrote:Huffyuv is lossless, but you may be noticing lost color data due to RGB<=>YUV conversions. DVDs are natively YV12, but footage has to be edited in RGB... then it must be converted back to YV12 yet again for xvid.
It sounds like the color is lost when the YV12 is converted to RGB in avisynth. Is the loss of color recovered from moving back to YV12? Or is it lost no matter what?
Actually, my big question is, how do I convert back to YV12 at all? Is it done in the "virtual dub stage" or do I have to make the YV12 conversion in premiere, after editing but before exporting in HuffyUV?
I did not see any color conversion options in XVID or in virtualdub's filters, but I did see something like it in HuffyUV: a "convert to YUY2" option. Its not YV12, but its as close as I've been able to figure out so far.
How do you execute the conversion? And does the conversion recover the lost color?
- AbsoluteDestiny
- Joined: Wed Aug 15, 2001 1:56 pm
- Location: Oxford, UK
- Contact:
Xvid will convert anything it gets to YV12. It's not optional, it's mandatory.
There is no way to regain the information that you have lost with a colourspace conversion.
There is no way to regain the information that you have lost with a colourspace conversion.
Last edited by AbsoluteDestiny on Wed Oct 13, 2004 3:02 am, edited 1 time in total.
- AbsoluteDestiny
- Joined: Wed Aug 15, 2001 1:56 pm
- Location: Oxford, UK
- Contact:
Oh also, remember that when you are watching a DVD etc you are watching it being played back in direct show, probably using hardware assisted decompression and gamma control due to the overlay layer. This will give a different representation of the brightness and colours of the source than looking at the Video for Windows image with huffyuv.
Most of the colorspace conversion losses are not actually noticable, I'm guessing you are noticing the difference in the original image versus the way the image is presented when played via directshow on your video card.
Most of the colorspace conversion losses are not actually noticable, I'm guessing you are noticing the difference in the original image versus the way the image is presented when played via directshow on your video card.
- Scintilla
- (for EXTREME)
- Joined: Mon Mar 31, 2003 8:47 pm
- Status: Quo
- Location: New Jersey
- Contact:
Or in Premiere itself, if you don't throw any conversions into your script.Kearly wrote:It sounds like the color is lost when the YV12 is converted to RGB in avisynth.
As AD said, no.Kearly wrote:Is the loss of color recovered from moving back to YV12?
"Convert to YUY2" just means that the HuffYUV file you save will be in YUY2 instead of RGB, which means that exporting from Premiere in that mode will be very slightly lossy. Personally, I do it anyway, because I enjoy the smaller filesizes, and all the postprocessing filters I use work in YUV space anyway. (Though nowadays some, like deen, require YV12, which means another conversion... but oh well.)Kearly wrote:I did not see any color conversion options in XVID or in virtualdub's filters, but I did see something like it in HuffyUV: a "convert to YUY2" option. Its not YV12, but its as close as I've been able to figure out so far.
How do you execute the conversion? And does the conversion recover the lost color?