Cinder icon indicating copy to clipboard operation
Cinder copied to clipboard

Video textures bottom pixels are stretched

Open richardeakin opened this issue 8 years ago • 3 comments

I'm not sure what could be the cause of this, but it looks like the last 6-10 horizontal rows (bottom) of the video's texture is stretched:

video video2 video-otter

I created this images by placing the following line in the VideoTest's draw() function, right after it draws the texture:

writeImage( "video.png", texture->createSource() );

Here is the video that I used to create the image with the otter.

richardeakin avatar Apr 30 '16 05:04 richardeakin

It appears to only occur in some videos. Specifically, if you record a .mov with OS X Quicktime's capture screen functionality, you'll see the messed up pixels at the bottom. However if you record a .mp4 with windows 10's game center recording (windows+G), the bottom pixels are correct.

I should note, I have seen mp4's that exhibit the problem too (the ones I have are ~1gb videos).

richardeakin avatar May 04 '16 05:05 richardeakin

Confirmed, I see them too on downloaded video's.

paulhoux avatar Aug 27 '16 21:08 paulhoux

We did discover that the strip appears when the video's "Resolution" and "Display resolution" don't match. For example, I open a video like the one above in VLC, got to tools -> Media Information -> Codec and see the following:

codec_res_mismatch

richardeakin avatar Aug 28 '16 02:08 richardeakin