Bug 190464 - [GStreamer][MSE] Fix height calculation for streams with source aspect ratio
Summary: [GStreamer][MSE] Fix height calculation for streams with source aspect ratio
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Enrique Ocaña
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-10-11 03:02 PDT by Enrique Ocaña
Modified: 2018-10-11 05:26 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.82 KB, patch)
2018-10-11 03:10 PDT, Enrique Ocaña
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrique Ocaña 2018-10-11 03:02:39 PDT
(At least) MPEG-DASH videos with Screen Aspect Ration (SAR) different than 1:1 are wrongly displayed when played with dash.js 2.9.0. The code that computes width/height on MSE is applying the SAR correction inversely. The actual result is a back and forth aspect switch between what dash.js (properly) computes as video resolution and what MSE (wrongly) computes as video resolution. For instance, in a video hacked to have SAR 2:1 (so it should have twice its normal width) the video is displayed with double-width, then half-width, then double, etc. Note that the video has double-width when the MPEG-DASH URL is played using a standalone gst-play-1.0 player.
Comment 1 Enrique Ocaña 2018-10-11 03:10:18 PDT
Created attachment 352032 [details]
Patch
Comment 2 WebKit Commit Bot 2018-10-11 04:10:21 PDT
Comment on attachment 352032 [details]
Patch

Clearing flags on attachment: 352032

Committed r237033: <https://trac.webkit.org/changeset/237033>
Comment 3 WebKit Commit Bot 2018-10-11 04:10:23 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2018-10-11 04:11:31 PDT
<rdar://problem/45189891>
Comment 5 Philippe Normand 2018-10-11 04:44:59 PDT
*** Bug 183591 has been marked as a duplicate of this bug. ***
Comment 6 Yacine Bandou 2018-10-11 05:26:59 PDT
(In reply to Philippe Normand from comment #5)
> *** Bug 183591 has been marked as a duplicate of this bug. ***

I think that should be the opposite ;)