Go Back    Forum > Digital Video > Video Project Help > Restore, Filter, Improve Quality

Reply
 
LinkBack Thread Tools
  #1  
09-28-2021, 07:48 PM
KubaVideo KubaVideo is offline
Free Member
 
Join Date: Feb 2020
Posts: 10
Thanked 1 Time in 1 Post
I am in the process of learning how to use AviSynth+ to process my capture files. Source video is Video8 captured using ATI AIW 9600 uncompressed lossless AVI YUY2 at 720x480. Some of the plugins I have been experimenting with no longer directly support the YUY2 colorspace and require conversion to YV16. I have been attempting to learn more about colorspaces. According to the AviSynth wiki site "YV16 is the planar equivalent of YUY2". Based on this description it would seem that this is a very minor conversion. However, one thing that my reading has taught me, be very careful about each and every conversion as they often have unintended consequences. My question is thus a simple one, how consequential is converting from YUY2 to YV16 with regards to affecting the quality of my video? Once I'm in YV16 should I convert back to YUY2? The AviSynth files that I am working with are being prepared for streaming. I anticipate eventually converting to h.264 or h.265. I intend on keeping my original lossless AVI files which are YUY2 untouched.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
09-29-2021, 03:51 AM
lollo2 lollo2 is offline
Free Member
 
Join Date: Mar 2013
Location: Italy
Posts: 673
Thanked 189 Times in 163 Posts
I never used AviSynth+, but a conversion YUY2 <-> YV16 is lossless (YV16 is its the planar equivalent of YUY2 interleaved).

In my scripts, once filtering requiring planar format is done I convert back to YUY2.
Reply With Quote
  #3  
09-29-2021, 07:55 AM
hodgey hodgey is offline
Free Member
 
Join Date: Dec 2017
Location: Norway
Posts: 1,684
Thanked 450 Times in 386 Posts
To expand/clarify, the difference between YUY2 and YV16 is just how the data is laid out in memory, the actual image data is exactly the same, so converting between them will not cause any degradation or loss of data.

The only thing to note if working with avisynth is that there are some old plugins that can think the input is YV12 (which has half the horizontal color resolution) if the input is YV16 due to how they check the data format of the input (YV16 is a newer addition). This usually gives pretty obvious artifacts though.

Also the h.264/h.265 files intended playback will usually have to be encoded in the equivalent of YV12 (4:2:0 chroma subsampling) as most devices don't support 4:2:2. This may or may not be done automatically depending on what you use for encoding.
Reply With Quote
  #4  
09-29-2021, 01:28 PM
KubaVideo KubaVideo is offline
Free Member
 
Join Date: Feb 2020
Posts: 10
Thanked 1 Time in 1 Post
Quote:
Originally Posted by lollo2 View Post
I never used AviSynth+, but a conversion YUY2 <-> YV16 is lossless (YV16 is its the planar equivalent of YUY2 interleaved).

In my scripts, once filtering requiring planar format is done I convert back to YUY2.
Quote:
Originally Posted by hodgey View Post
To expand/clarify, the difference between YUY2 and YV16 is just how the data is laid out in memory, the actual image data is exactly the same, so converting between them will not cause any degradation or loss of data.

The only thing to note if working with avisynth is that there are some old plugins that can think the input is YV12 (which has half the horizontal color resolution) if the input is YV16 due to how they check the data format of the input (YV16 is a newer addition). This usually gives pretty obvious artifacts though.

Also the h.264/h.265 files intended playback will usually have to be encoded in the equivalent of YV12 (4:2:0 chroma subsampling) as most devices don't support 4:2:2. This may or may not be done automatically depending on what you use for encoding.

Greatly appreciate your replies. The fact that most devices do not support 4:2:2 was useful information although these videos will likely be streamed directly from a laptop computer. That does bring up the question of just how much of a difference in video quality is there between 4:2:2 and 4:2:0 given that my original source was Video8? I am also looking for opinions about h.264 vs h.265 in this setting. I know the advantages for h.265 for high definition video but, am curious about the advantages/disadvantages for an SD source.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
N00b question about Avisynth+ drzapp Restore, Filter, Improve Quality 1 12-16-2018 12:57 PM
Huffyuv YUY2 AVI to Blu-ray conversion? (and TBC samples!) vhsdigital34 Project Planning, Workflows 264 04-19-2018 05:14 AM
Editing YUY2 footage in Adobe Premiere - Will colorspace conversion occur? hysteriah Edit Video, Audio 0 03-08-2015 04:28 PM
60i to 24p/30p video conversion question Winsordawson Encode, Convert for streaming 3 10-30-2013 12:04 AM
Question about VCR for VHS to DVD conversion pete General Discussion 9 03-14-2012 03:48 PM




 
All times are GMT -5. The time now is 05:05 PM