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

Issue 597956 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 11
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

videoWidth & videoHeight should always reflect the display width/height specified in the container.

Project Member Reported by acolwell@chromium.org, Mar 25 2016

Issue description

Chrome Version       : Version 50.0.2661.37 beta (64-bit)
URLs (if applicable) :
OS version               :
Audio/Video format (if applicable): WebM for sure. Should probably check for consistency with MP4.


Behavior in Firefox (if known): Firefox appears to always reflect the display width/height.

Video issue, Audio issue, both, neither? Video.

Flash or HTML5? HTML5. Behavior also seems to differ between src= and MSE.

What steps will reproduce the problem?

Play each of the attached files using src= and MSE and notice that videoWidth & videoHeight do not always match the values of the DisplayWidth and DisplayHeight fields specified in the container.

What is the expected result?
mono-src size is 640x480
mono-downsized size is 640x240
stereo-no-scaling size is 640x240
stereo-with-scaling is 640x480

What is the actual result?
For src= playback:
mono-src size is 640x480
mono-downsized size is 1280x480
stereo-no-scaling size is 640x480
stereo-with-scaling is 320x480

I haven't had time to test this with MSE content, but I'm pretty sure the behavior is different because MSE uses a different container parser.

Any additional information (anything else which may help us debug the
issue)?

I generated the test content with ToT ffmpeg modified with the attached patch and the following command-lines.

./ffmpeg -y -f lavfi -i "color=size=640x480,drawtext=text=TOP %{n}:fontsize=50:fontfile=FreeSerif.ttf:fontcolor_expr=ff0000:x=0:y=(h-text_h)/4:x=(w-text_w)/2,drawtext=text=BOTTOM:fontsize=50:fontfile=FreeSerif.ttf:fontcolor_expr=00ff00:x=0:y=(h-text_h)*3/4:x=(w-text_w)/2,drawbox=h=ih/2:color=ffff00,drawbox=y=ih/2:h=ih/2:color=ff00ff" -t 5 mono-src.webm

./ffmpeg -y -i mono-src.webm -metadata:s:v:0 stereo_mode=top_bottom -vcodec copy stereo-no-scaling.webm

./ffmpeg -y -i stereo-no-scaling.webm -metadata:s:v:0 stereo_mode=0 -vcodec copy mono-downsized.webm

./ffmpeg -y -i stereo-no-scaling.webm -vcodec copy -metadata:s:v:0 no_stereo_div=1 stereo-with-scaling.webm



 
mono-src.webm
41.3 KB Download
mono-downsized.webm
41.3 KB Download
stereo-no-scaling.webm
41.3 KB Download
stereo-with-scaling.webm
41.3 KB Download
stereo-changes.patch
1.3 KB Download
Cc: chcunningham@chromium.org wolenetz@chromium.org
Components: -Internals>Media Internals>Media>Source
Labels: OS-All

Comment 2 Deleted

Cc: yini...@chromium.org
Components: -Internals>Media>Source Blink>Media>Video
I am able to repro this bug. I think it's more like a blink bug instead of video bug. can somebody in blink team take a look?


download attached repro videoSize.htm file and the 4 media files in original bug. load videoSize.htm in Chrome, for each video, the container width and height are expected to be the same as videoWidth and videoHeight, but actually they are not the same except the 1st one.
videoSize.htm
1.3 KB View Download
acolwell@ - Friendly ping! Any update on this bug? Is this issue still seen on latest chrome beta M51-51.0.2704.47 ? Could you please respond for the comment #4 and kindly update this bug with latest behavior.

Thanks!
acolwell@ : Could you please update the thread according to the above comment #4, and expected output to triage it further.
Status: Untriaged (was: Unconfirmed)
Based on #4, this looks confirmed. 
Cc: mlamouri@chromium.org foolip@chromium.org
Labels: -Needs-Feedback
Status: Available (was: Untriaged)

Comment 9 by foolip@chromium.org, Jul 23 2016

Components: Internals>Media>Video
videoWidth and videoHeight come from WebMediaPlayer::naturalSize(), so if there's a bug (not respecting DisplayWidth and DisplayHeight?) here I think it must be somewhere in or below WMPI?
Labels: Needs-BlinkMediaTriage
Project Member

Comment 11 by sheriffbot@chromium.org, Aug 9 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold
Still a good p2. I'm just overloaded.
chcunningham@, can you assign it to appropriately?
This bug still repro in Chrome 62
Status: Available (was: Untriaged)
change status to available. please feel free to assign appropriately.
Project Member

Comment 15 by sheriffbot@chromium.org, Aug 16

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: dalecur...@chromium.org
Status: Assigned (was: Untriaged)
Status: Fixed (was: Assigned)
Seems fixed?

Sign in to add a comment