Page 1 of 1

YVU420 format

Posted: 31 Mar 2015 00:31
by ranshalit
Hello,

I know that vlc can play raw YUV420 format, but can it also play YVU420 format (UV swapped) ?

Thank you,
Ran

Re: YVU420 format

Posted: 31 Mar 2015 09:09
by Rémi Denis-Courmont
Yes.

Re: YVU420 format

Posted: 31 Mar 2015 09:33
by ranshalit
Hi,

One more if I may, when I play mpeg-ts bitstream , how does vlc knows the exact format (if it is YUV420 or YVU420), is it part of some header ? which ?

Thank you,
Ran

Re: YVU420 format

Posted: 31 Mar 2015 10:40
by Rémi Denis-Courmont
You cannot have YUV or YVU inside MPEG-TS to begin with.

Re: YVU420 format

Posted: 31 Mar 2015 10:54
by ranshalit
Hi Rémi,

Thanks you very much for the time,
I think I found the answer it is in SPS chroma field.
As to what you mentioned "You cannot have YUV or YVU inside MPEG-TS to begin with" : Do you mean by that, to say that only frame before encoding has chroma format - while bitsream (ES - elementary stream) does not have any chroma format ?

Thank you,
Ran

Re: YVU420 format

Posted: 31 Mar 2015 12:45
by Rémi Denis-Courmont
You cannot carry raw video inside MPEG-TS. At least VLC does not allow it.

Re: YVU420 format

Posted: 31 Mar 2015 17:30
by ranshalit
I wander why vlc shows in tools->media code, "Decoded format: YUV420" in a stream which I was told was encoded in YVU420.
Is it because it actually show in the information details the format after decoding ?
Does VLC do swap UV after decoding in this case ?

This is the sample:
https://drive.google.com/file/d/0B22GsW ... sp=sharing

Regards,
Ran