-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VideoTexture display issue with some mp4s #9
Labels
Comments
On which platforms did you test this, i.e. does it make any difference if the code is running on iOS / Android / Desktop, and Flash Player vs. AIR? Thx! |
Tested Platforms: AIR desktop (Windows + OSX) |
Thx! |
This was referenced Jan 24, 2020
This was referenced Jan 31, 2020
This was referenced Aug 31, 2020
ghost
mentioned this issue
Sep 21, 2020
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem Description
Some mp4s are rendered incorrectly when using VideoTexture. 8pixels at the bottom of the video frame are repeated.
https://tracker.adobe.com/#/view/AIR-4054613
Steps to Reproduce
Minimal example provided here
https://www.dropbox.com/sh/rr9atk0kl51wqfi/AADDAOkz2-xwalpBrEjjCtCua/src?dl=0
The video on the left utilises a VideoTexture and on the right, a traditional flash Video object.
Both are using the same Big Buck Bunny asset from http://bbb3d.renderfarming.net/
A screenshot example from a different user http://seanduffy.pipeten.co.uk/img/feathers_videoplayer.jpg
Further technical details
"It's very common to code 1080p video in 1920x1088. That's because most
encoders works in macroblock of 16x16."
So coded_height is usually a multiple of 16. VideoTexture doesn't appear to handle video which has a coded_height and height which is different.
So the height of the big Buck Bunny is marked as 1080 but it's coded_height is 1088
The difference is added as 'banding' at the bottom of a video (8px)
Known Workarounds
Re-encode video using FFmpeg or other tool to encode at a height which is a multiple of 16, padding with white/black border as needed.
The text was updated successfully, but these errors were encountered: