Skip to content
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

Open
tuarua opened this issue Jul 22, 2017 · 3 comments
Open

VideoTexture display issue with some mp4s #9

tuarua opened this issue Jul 22, 2017 · 3 comments

Comments

@tuarua
Copy link

tuarua commented Jul 22, 2017

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.

@PrimaryFeather
Copy link
Contributor

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!

@tuarua
Copy link
Author

tuarua commented Jul 24, 2017

Tested Platforms: AIR desktop (Windows + OSX)
Not tested on Android or iOS or Flash Player.

@PrimaryFeather
Copy link
Contributor

Thx!

This was referenced Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants