Cinder
Cinder copied to clipboard
Video textures bottom pixels are stretched
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:
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.
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).
Confirmed, I see them too on downloaded video's.
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: