Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"06-11-11 - God damn YUV"

5 Comments -

1 – 5 of 5
Anonymous Anonymous said...

x264 --dump-yuv is close; it's raw YUV rather than Y4M though.

mplayer -vo yuv4mpeg:file= will give you a Y4M without doing any filtering/conversion of the decoded bytes.

June 13, 2011 at 9:08 AM

Blogger cbloom said...

"mplayer -vo yuv4mpeg:file= will give you a Y4M without doing any filtering/conversion of the decoded bytes. "

Oh yeah, I forgot, I was using that for a while. Unfortunately MPlayer has a bug where it cuts off one frame of the video (appears to be the last frame). In particular if you make a video with only one frame in it, MPlayer outputs nothing at all.

Other than losing the last frame, this pipeline does in fact work for arbitrary y4m.

June 13, 2011 at 1:07 PM

Blogger cbloom said...

Thanks for the notes BTW.

On my todo wishlist now is to make my own simple YUV-LZ format, because the lossless formats we have for video right now are so borked.

Actually I shouldn't call it "YUV-LZ" it's just Bytes-LZ and you can put whatever you want in the bytes.

June 13, 2011 at 1:11 PM

Blogger Jeff Roberts said...

We could probably figure out the colorspace a lot of the time (absence of 0-16 and 235-255, etc) and display a warning...

->Jeff

June 13, 2011 at 7:10 PM

Blogger Jeff Roberts said...

I guess you still have the matrix mismatch problem, though...

June 13, 2011 at 7:14 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.