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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: ayang, Assigned: ayang)

References

Details

Attachments

(2 files, 7 obsolete files)

Blocks: 974297
Attached patch aspect_ratio_omx (obsolete) — Splinter Review
gstreamer backend also has the same problem.
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)
(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.
Attachment #8380537 - Flags: feedback+
Attachment #8380537 - Flags: feedback?(bechen)
Attached patch aspect_test (obsolete) — Splinter Review
Alfredo, Does this problem only exist in OMX decoding pipeline? How about other platform decoder?
(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.
Attached patch aspect_ratio_omxSplinter Review
Assignee: nobody → ayang
Attachment #8380537 - Attachment is obsolete: true
Attachment #8381130 - Attachment is obsolete: true
Attachment #8381173 - Flags: review?(cpearce)
Attached patch aspect_test (obsolete) — Splinter Review
Attachment #8381174 - Flags: review?(cpearce)
Attachment #8381173 - Flags: review?(cpearce) → review+
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+
(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.
(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.
Attached patch aspect_test (obsolete) — Splinter Review
Attachment #8381174 - Attachment is obsolete: true
Attached patch aspect_test (obsolete) — Splinter Review
Attachment #8382006 - Attachment is obsolete: true
Attached patch aspect_test (obsolete) — Splinter Review
Rebase carry r+.
Attachment #8382019 - Attachment is obsolete: true
Attachment #8382033 - Flags: review+
Attached patch aspect_test (obsolete) — Splinter Review
Attachment #8382033 - Attachment is obsolete: true
Attachment #8384507 - Flags: review+
Attached patch aspect_testSplinter Review
Attachment #8384507 - Attachment is obsolete: true
Attachment #8392648 - Flags: review+
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: