YVU420 format

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
ranshalit
Blank Cone
Blank Cone
Posts: 29
Joined: 07 Jul 2012 15:46

YVU420 format

Postby ranshalit » 31 Mar 2015 00:31

Hello,

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

Thank you,
Ran

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: YVU420 format

Postby Rémi Denis-Courmont » 31 Mar 2015 09:09

Yes.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ranshalit
Blank Cone
Blank Cone
Posts: 29
Joined: 07 Jul 2012 15:46

Re: YVU420 format

Postby ranshalit » 31 Mar 2015 09:33

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: YVU420 format

Postby Rémi Denis-Courmont » 31 Mar 2015 10:40

You cannot have YUV or YVU inside MPEG-TS to begin with.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ranshalit
Blank Cone
Blank Cone
Posts: 29
Joined: 07 Jul 2012 15:46

Re: YVU420 format

Postby ranshalit » 31 Mar 2015 10:54

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: YVU420 format

Postby Rémi Denis-Courmont » 31 Mar 2015 12:45

You cannot carry raw video inside MPEG-TS. At least VLC does not allow it.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ranshalit
Blank Cone
Blank Cone
Posts: 29
Joined: 07 Jul 2012 15:46

Re: YVU420 format

Postby ranshalit » 31 Mar 2015 17:30

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 23 guests