question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid aspect ratio

See original GitHub issue

Have you read the FAQ and checked for duplicate open issues?

  • Yes

What version of Shaka Player are you using?

  • 2.5.2

Can you reproduce the issue with our latest release version?

  • Yes

Can you reproduce the issue with the latest code from master?

  • Yes

Are you using the demo app or your own custom app?

  • Demo and custom

If custom app, can you reproduce the issue using our demo app?

  • Yes

What browser and OS are you using?

  • Chrome 75.0.3770.80

For embedded devices (smart TVs, etc.), what model and firmware version are you using?

  • none

What are the manifest and license server URIs?

  • Sent to shaka-player-issues@google.com

What did you do?

  • Try to play stream

What did you expect to happen?

  • I expected the video resolution to be correct =)

What actually happened?

When viewing some of the HLS streams, there is an inappropriate aspect ratio in the ShakaPlayer. The image is stretched vertically (or compressed horizontally).

The same stream is correctly displayed on the jwPlayer and hls.js players. Also i test it with Android ExoPlayer.

ShakaPlayer 2.5.2 Screenshot at Jun 11 13-11-32

hls.js v0.12.1-23a07d9 Screenshot at Jun 11 13-11-47

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joeyparrishcommented, Jun 11, 2019

In case it’s relevant, see https://github.com/videojs/mux.js/pull/275

0reactions
joeyparrishcommented, Jun 12, 2019

If a box is missing in the MP4, and it is needed to properly initialize a hardware decoder, then you will need to fix the content itself. Shaka Player does not manipulate or fix content on-the-fly (except for TS=>MP4 transmuxing through mux.js).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Displays images with incorrect aspect ratio
If a rendered image has an aspect ratio that's significantly different to the aspect ratio in its source file (the natural aspect ratio), ......
Read more >
Fix The Visuals That Have Incorrect Aspect Ratio
Changing the aspect ratio of the image you use may cause the image to become poor quality, which negatively affects the user experience,...
Read more >
Displays images with incorrect aspect ratio - BUG #7643
Lighthouse is reporting a bug 'Displays images with incorrect aspect ratio' - ratio in question is when the image crops to a much...
Read more >
Logo image displaying at incorrect aspect ratio?
Here is the Lighthouse report: Displays images with incorrect aspect ratio Image display dimensions should match natural aspect ratio. Aspect ...
Read more >
Instagram's accepted aspect ratio ranges
For portrait images and videos, the aspect ratio must be between 0.8 and 0.99. 800 x 1000 pixels (aspect ratio 0.8); 1200 x...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found