New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 839536 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Can not upload a high resolution video as a texture to WebGL

Reported by erik.ziv...@gmail.com, May 3 2018

Issue description

Steps to reproduce the problem:
* Use a high end device such as Xperia X Performance or Samsung Galaxy S8
* Make sure the device supports 4096 textures

1. Load a high resolution (3840 * 2160) HLS stream using HLS.js into a video element that is not attached to the DOM
2. Try to upload the video to WebGL using texImage2D
3. Upload fails with an error

What is the expected behavior?
The video to be successfully uploaded to WebGL for further use

What went wrong?
Instead of uploading the video as a texture it fails with the following error log (adb logcat)

SurfaceUtils: set up nativeWindow 0xc9ef2008 for 3840x2160, color 0x7fa30c04, rotation 0, usage 0x20002900

chromium: [INFO:CONSOLE(11818)] "WebGL: INVALID_VALUE: texImage2D: width or height out of range"

Did this work before? N/A 

Chrome version: 66.0.3359.126  Channel: stable
OS Version: 8.0.0
Flash Version: 

* Using a lower resolution video such as 1920 * 1080 works well.
* Constructing a custom texture of size 3840 * 2160 and uploading it also works well
* Playing the video in a <video> element attached to the DOM works well

Same information was cross posted on S/O https://stackoverflow.com/questions/50156639/webgl-video-texture-size-limits-on-android-how-to-use-3840-2160
 
Labels: Needs-triage-Mobile
Cc: sandeepkumars@chromium.org
Labels: Triaged-Mobile Needs-Feedback
@erik.zivkovic: Thanks for the report!!

Could you please help us with a sample URL or file where you're seeing this issue, details of your device and if possible attach a screencast as well for triaging of the issue?

Thanks!!
This report can be closed -

During the week we have made some effort to understand the problem, and it is now clear the error was on our end.

The video was indeed created as 3840 x 2160, but was created from a source video with a resolution of 3840 x 4320. When converting the video to 3840 x 2160, ffmpeg was setting the aspect ratio to (3840/4320), leading Android to inflate the video back to that size. The inflated size has a height > 4096 and that was the reason for the texture not being able to be created.

We didn't see this issue on other platforms (native apps) so it might be some quirk of the Android media player.

We have fixed the issue on our end by setting the "correct" aspect ratio of (3840/2160) manually as an ffmpeg parameter.
Project Member

Comment 4 by sheriffbot@chromium.org, May 12 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by kojii@chromium.org, May 16 2018

Status: WontFix (was: Unconfirmed)
Thank you!

Sign in to add a comment