Page 1 of 1

Can't play yuv files

Posted: 07 Jun 2011 16:24
by jeremyDT
Hi!,

I've got some videos sequences in yuv (uncompressed) format that i'd like to play using VLC. When i try to do so, the result is a fuzzy video with lots of coloured lines "floating" around. Does anybody know what the problem is?, am i missing something (like a codec)?.

Thanks in advance!,

Jeremy

P.S.: My VLC version is 1.1.9, and i'm running it on a 64 bit Windows 7.

Re: Can't play yuv files

Posted: 07 Jun 2011 18:35
by VLC_help
If you see video, you aren't missing anything. If same happens with other files (like .avi, .mp4 etc.) then it is most likely a video output issue.
http://wiki.videolan.org/WindowsFAQ-1.1 ... _output.3F
If it just happens with YUV files, it is most likely a bug in VLC.

Re: Can't play yuv files

Posted: 07 Jun 2011 22:56
by jeremyDT
I'm able to play almost any kind of file, EXCEPT yuv... it's really weird!, i refuse to believe that i'm the only one with this problem!

Re: Can't play yuv files

Posted: 08 Jun 2011 13:52
by XilasZ
You are not the only one. vlc can output to yuv files (and they are correct, i made a tool to decode them), but fails at playing them correctly, colors are messed up.

Edit:
Hmm, i did some tests, if the first line of the yuv file is

Code: Select all

YUV4MPEG2 W800 H448 F2997:100 Ip A199:200
It plays fine.

if it's something else like

Code: Select all

I420 W800 H448 F2997:100 Ip A199:200
, vlc won't detect the size and will display weird stuff. Forcing the video size in the command line helps,

Code: Select all

"c:\Program Files\VideoLAN\VLC\vlc.exe" stream.yuv --rawvid-width=800 --rawvid-height=448
but the image slides to the right and green lines appears at the top.

Re: Can't play yuv files

Posted: 11 Jun 2011 15:35
by VLC_help
Could you share us one non-working file so I can open a trac ticket for this?