Closed
Bug 975978
Opened 11 years ago
Closed 11 years ago
OmxDecoder needs to check display size for aspect-ratio change video
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: ayang, Assigned: ayang)
References
Details
Attachments
(2 files, 7 obsolete files)
5.86 KB,
patch
|
cpearce
:
review+
|
Details | Diff | Splinter Review |
2.21 MB,
patch
|
ayang
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
gstreamer backend also has the same problem.
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8380537 [details] [diff] [review]
aspect_ratio_omx
Hi Benjamin, could you please check if this patch is ok for RTSP streaming? Thanks.
Attachment #8380537 -
Flags: feedback?(bechen)
Comment 4•11 years ago
|
||
(In reply to Alfredo Yang from comment #3)
> Comment on attachment 8380537 [details] [diff] [review]
> aspect_ratio_omx
>
> Hi Benjamin, could you please check if this patch is ok for RTSP streaming?
> Thanks.
It looks fine if there is default value for display width/height.
Updated•11 years ago
|
Attachment #8380537 -
Flags: feedback+
Updated•11 years ago
|
Attachment #8380537 -
Flags: feedback?(bechen)
Assignee | ||
Comment 5•11 years ago
|
||
Alfredo,
Does this problem only exist in OMX decoding pipeline? How about other platform decoder?
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to C.J. Ku[:CJKu] from comment #6)
> Alfredo,
> Does this problem only exist in OMX decoding pipeline? How about other
> platform decoder?
gstreamer backend also has the same problem.
Assignee | ||
Comment 8•11 years ago
|
||
Assignee: nobody → ayang
Attachment #8380537 -
Attachment is obsolete: true
Attachment #8381130 -
Attachment is obsolete: true
Attachment #8381173 -
Flags: review?(cpearce)
Assignee | ||
Comment 9•11 years ago
|
||
Attachment #8381174 -
Flags: review?(cpearce)
Updated•11 years ago
|
Attachment #8381173 -
Flags: review?(cpearce) → review+
Comment 10•11 years ago
|
||
Comment on attachment 8381174 [details] [diff] [review]
aspect_test
Review of attachment 8381174 [details] [diff] [review]:
-----------------------------------------------------------------
r=cpearce with changes addressed below.
::: content/media/test/mochitest.ini
@@ +185,5 @@
> wavedata_u8.wav
>
> [test_access_control.html]
> +[test_aspectratio_mp4.html]
> +run-if = toolkit == "gonk"
This test should pass on all platforms that support MP4 right? It may not work everywhere yet, but we should fix that. I think it should pass on Windows at least, can you make this test also run on Windows, and on any other platforms on which it passes, and file bugs for the platforms that don't pass. Thanks!
::: content/media/test/test_aspectratio_mp4.html
@@ +17,5 @@
> +<script class="testbody" type="text/javascript">
> +
> +SimpleTest.waitForExplicitFinish();
> +
> +var v = document.createElement("video"), resource = getPlayableVideo(gMP4AspectRatioTests);
I think you can link to this directly, rather than adding another set of videos (gMP4AspectRatioTests) to manifest.js. Unless you intend to add more files to the test test, other than pixel_aspect_ratio.mp4?
@@ +19,5 @@
> +SimpleTest.waitForExplicitFinish();
> +
> +var v = document.createElement("video"), resource = getPlayableVideo(gMP4AspectRatioTests);
> +
> +function bodyLoaded(){
You can do this in an "loadedmetadata" event handler.
@@ +26,5 @@
> + SimpleTest.finish();
> +}
> +
> +if (resource) {
> + v.src = "http://mochi.test:8888/tests/content/media/test/" + resource.name;
you should not need the "http://mochi.test:8888/tests/content/media/test/" here.
Attachment #8381174 -
Flags: review?(cpearce) → review+
Assignee | ||
Comment 11•11 years ago
|
||
(In reply to Chris Pearce (:cpearce) from comment #10)
> Comment on attachment 8381174 [details] [diff] [review]
> aspect_test
>
> Review of attachment 8381174 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r=cpearce with changes addressed below.
>
> ::: content/media/test/mochitest.ini
> @@ +185,5 @@
> > wavedata_u8.wav
> >
> > [test_access_control.html]
> > +[test_aspectratio_mp4.html]
> > +run-if = toolkit == "gonk"
>
> This test should pass on all platforms that support MP4 right? It may not
> work everywhere yet, but we should fix that. I think it should pass on
> Windows at least, can you make this test also run on Windows, and on any
> other platforms on which it passes, and file bugs for the platforms that
> don't pass. Thanks!
>
WMF backend is good. Gstreamer is not good, Randy has filled a bug 976510 for it.
Firefox on Mac seems not support MP4 so far?
> ::: content/media/test/test_aspectratio_mp4.html
> @@ +17,5 @@
> > +<script class="testbody" type="text/javascript">
> > +
> > +SimpleTest.waitForExplicitFinish();
> > +
> > +var v = document.createElement("video"), resource = getPlayableVideo(gMP4AspectRatioTests);
>
> I think you can link to this directly, rather than adding another set of
> videos (gMP4AspectRatioTests) to manifest.js. Unless you intend to add more
> files to the test test, other than pixel_aspect_ratio.mp4?
>
Fixed.
> @@ +19,5 @@
> > +SimpleTest.waitForExplicitFinish();
> > +
> > +var v = document.createElement("video"), resource = getPlayableVideo(gMP4AspectRatioTests);
> > +
> > +function bodyLoaded(){
>
> You can do this in an "loadedmetadata" event handler.
>
Fixed.
> @@ +26,5 @@
> > + SimpleTest.finish();
> > +}
> > +
> > +if (resource) {
> > + v.src = "http://mochi.test:8888/tests/content/media/test/" + resource.name;
>
> you should not need the "http://mochi.test:8888/tests/content/media/test/"
> here.
Fixed.
Comment 12•11 years ago
|
||
(In reply to Alfredo Yang from comment #11)
> Firefox on Mac seems not support MP4 so far?
Correct, Firefox on Mac does not yet support MP4.
Assignee | ||
Comment 13•11 years ago
|
||
Attachment #8381174 -
Attachment is obsolete: true
Assignee | ||
Comment 14•11 years ago
|
||
Attachment #8382006 -
Attachment is obsolete: true
Assignee | ||
Comment 15•11 years ago
|
||
Rebase carry r+.
Attachment #8382019 -
Attachment is obsolete: true
Attachment #8382033 -
Flags: review+
Assignee | ||
Comment 16•11 years ago
|
||
Attachment #8382033 -
Attachment is obsolete: true
Attachment #8384507 -
Flags: review+
Assignee | ||
Comment 17•11 years ago
|
||
Rebase, carry r+.
https://tbpl.mozilla.org/?tree=Try&rev=c38866a4f04a
Attachment #8384507 -
Attachment is obsolete: true
Attachment #8392648 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 18•11 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/e3e3c262bfa3
https://hg.mozilla.org/integration/b2g-inbound/rev/8196bd736d67
Flags: in-testsuite+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/e3e3c262bfa3
https://hg.mozilla.org/mozilla-central/rev/8196bd736d67
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•