Граф коммитов

98 Коммитов

Автор SHA1 Сообщение Дата
JW Wang bb286ff881 Bug 1307055. Part 2 - remove unnecessary pref settings and unused functions. r=cpearce
MozReview-Commit-ID: IQHrWAwrMMZ

--HG--
extra : rebase_source : 04e5c65b386270e1231e6720f1635f19c0a58e24
2016-10-03 15:20:31 +08:00
JW Wang 7ed352f6b6 Bug 1305336. Part 5 - use manifestVideo() so pref changes can take effect as expected. r=pehrsons
MozReview-Commit-ID: 2YXn4jSfivh

--HG--
extra : rebase_source : af98c0e8291caaae41e1a4e4dcd7b1b3b3b5654a
2016-09-26 11:59:44 +08:00
Kilik Kuo cb76db051f Bug 1257116 - Shorten media files to make mochitest faster. r=cpearce
MozReview-Commit-ID: ArMrUBvPMct

--HG--
extra : rebase_source : 5d86c92c8cb3c6c4e3b7632b3d10f578c20fc0fa
2016-09-13 15:20:12 +08:00
Chris Pearce c34ab00fb4 Bug 1274498 - Refuse to play H.264 files which have one or more dimensions less than 48 pixels. r=jya
We've had large numbers of shutdown hangs with the Windows H.264 decoder stuck
calling IMFTransform::ProcessOutput(), blocking shutdown. I can reproduce this
with videos with dimensions less than 32 pixels.

Chrome also encountered this with the WMF decoder:
https://bugs.chromium.org/p/chromium/issues/detail?id=373288

The WMF H.264 Decoder is documented to have a minimum resolution of 48x48 pixels.

So this patch causes us to reject H.264 files with either width or height less
than 48 pixels.

I have been able to play files down to 34x34 pixels on Windows 10, but it seems
safest to just follow the what's documented in MSDN, and reject files that are
smaller than the documented minimum.

MozReview-Commit-ID: 5peP6UGnAaB

--HG--
extra : rebase_source : 6e29812642bc3f8ca0f5b39b36064a6d50e09ea7
2016-09-07 14:16:29 +12:00
Dan Glastonbury 0f59ea17ee Bug 1295844 - Add webm testing files to video decode suspend tests. r=gerald
Test files transcoded from gizmo.mp4 using:
ffmpeg -i gizmo.mp4 -vcodec vp9 -acodec opus gizmo.webm
ffmpeg -i gizmo.webm -vcodec copy -an gizmo-noaudio.webm

MozReview-Commit-ID: 4OB8G9NtS7A

--HG--
extra : rebase_source : e43b586371fae927d0e997064169e2e56de6b476
2016-08-17 13:04:35 +10:00
Jean-Yves Avenard 551e91fa7d Bug 1195723: [flac] P15. Add metadata mochitest. r=kamidphish
MozReview-Commit-ID: vVAA2Gnls8

--HG--
extra : rebase_source : afea7fc313d6178fd44154202c5fcb94ad4ab1e3
2016-08-18 16:34:56 +10:00
Jean-Yves Avenard 6c04460e8c Bug 1195723: [flac] P13. Add mochitest files. r=kamidphish
MozReview-Commit-ID: 34FlM9HcTDo

--HG--
extra : rebase_source : 67ecb3f56f51be797f68cb1b1799d721854b1271
2016-08-18 15:30:52 +10:00
Dan Glastonbury 7650e88a66 Bug 1294358 - P3: Added test video with no audio. r=jya
--HG--
extra : rebase_source : 13de5edaf71a3ec19a5f5d697cc93683084003a5
2016-08-22 17:16:10 +10:00
Dan Glastonbury 52d42c9734 Bug 1294358 - P1: Change test files to specify mime type. r=jwwang,jya
Change test files to specify the mime type of the file. This is checked
by media test manager so that changes in mochitest.ini are not needed.

MozReview-Commit-ID: 4hFQmRknBOY

--HG--
extra : rebase_source : b76a8dfe071dec320a7ebef8fc071e671278c1fa
2016-08-22 17:19:57 +10:00
Wes Kocher 24cb21d4f6 Backed out 15 changesets (bug 1195723) for various media test failures/unexpected-passes a=backout
Backed out changeset 2a3b10281c9c (bug 1195723)
Backed out changeset c3775a6225d8 (bug 1195723)
Backed out changeset ba0aeb71c672 (bug 1195723)
Backed out changeset 894061e6037e (bug 1195723)
Backed out changeset 4637f8be98bb (bug 1195723)
Backed out changeset c2664064fa55 (bug 1195723)
Backed out changeset 39908ea4c390 (bug 1195723)
Backed out changeset 3fcb5682049a (bug 1195723)
Backed out changeset 867d6507a381 (bug 1195723)
Backed out changeset c938ad9dd11c (bug 1195723)
Backed out changeset 7bdb9540b60f (bug 1195723)
Backed out changeset a4f7a73c04fa (bug 1195723)
Backed out changeset 7f86beff4263 (bug 1195723)
Backed out changeset efb6bcf743e7 (bug 1195723)
Backed out changeset 04eceefa54c7 (bug 1195723)
2016-08-22 10:07:25 -07:00
Jean-Yves Avenard 2c74818e1f Bug 1195723: [flac] P15. Add metadata mochitest. r=kamidphish
MozReview-Commit-ID: vVAA2Gnls8

--HG--
extra : rebase_source : 842fa2a1e3f0243e3ee4ffc6631fbde46dc6f164
2016-08-18 16:34:56 +10:00
Jean-Yves Avenard 46be523297 Bug 1195723: [flac] P13. Add mochitest files. r=kamidphish
MozReview-Commit-ID: 34FlM9HcTDo

--HG--
extra : rebase_source : 3c7a112863647c7b5ae48fae23294ae2b252c77d
2016-08-18 15:30:52 +10:00
ctai 070831d08f Bug 608634 - Fix redundant comments. r=jwwang.
MozReview-Commit-ID: EYW8O9vZipH

--HG--
extra : rebase_source : 301427f859ff50c32bc28e243f1a606e2ad9ef7a
2016-08-17 16:17:14 +08:00
Wes Kocher 6b3d348f17 Backed out 2 changesets (bug 1294358) for xp mda failures a=backout CLOSED TREE
Backed out changeset 886441076b5f (bug 1294358)
Backed out changeset 848141457f25 (bug 1294358)

--HG--
extra : amend_source : 393a51d18d37246cec3617fb3162478cd98b3bb2
2016-08-17 10:06:40 -07:00
Wes Kocher 6f430a404b Backed out changeset 942b01866756 (bug 1295844) for xp mda failures a=backout 2016-08-17 10:06:27 -07:00
Dan Glastonbury 0c1756a66f Bug 1295844 - Add webm testing files to video decode suspend tests. r=gerald
Test files transcoded from gizmo.mp4 using:
ffmpeg -i gizmo.mp4 -vcodec vp9 -acodec opus gizmo.webm
ffmpeg -i gizmo.webm -vcodec copy -an gizmo-noaudio.webm

MozReview-Commit-ID: 4OB8G9NtS7A

--HG--
extra : rebase_source : e43b586371fae927d0e997064169e2e56de6b476
2016-08-17 13:04:35 +10:00
Dan Glastonbury 1fc6801397 Bug 1294358 - P2: Added test video with no audio. r=jwwang
This exercises the decoder update logic path that doesn't rely on
AudioSink to advance time.

MozReview-Commit-ID: EZ6lb8zsqTu

--HG--
extra : rebase_source : 36f8b33b1aaaba40ca378a4da4d9dfda311c571c
2016-08-11 16:49:36 +08:00
Jean-Yves Avenard 5c81ca837f Bug 1288329: [ogg] P6. Adjust mochitests. r=gerald
There are various differences between the new ogg player and the old OggReader that leads to inconsistencies on how durations are reported.

1- The old OggReader only use the end time as duration of the video, ignoring the start time of the first sample. This leads to incorrect duration calculation.
2- The OggReader do not ignore undecodable frames located at the beginning of the video, and those are used by the MDSM to calculate the start time. This leads to durations sometimes being shorter than they ought to.

MozReview-Commit-ID: 6yi1P4N6tPE

--HG--
extra : rebase_source : 93e678aa762519d27444a57f8a12d2bd569b025d
2016-07-28 22:52:08 +10:00
Wes Kocher 8f0a108b9a Backed out 6 changesets (bug 1288329) for wpt failures a=backout
Backed out changeset f33cb032cc9f (bug 1288329)
Backed out changeset 49ea83d00a77 (bug 1288329)
Backed out changeset 1406c14098f1 (bug 1288329)
Backed out changeset 936b73eb37c6 (bug 1288329)
Backed out changeset a1c4d9b9de32 (bug 1288329)
Backed out changeset a76b6e559777 (bug 1288329)

--HG--
extra : amend_source : 4e054fc4af62693934a4ae450a9595443b6a961d
2016-07-29 12:36:20 -07:00
Jean-Yves Avenard 0e81b8c032 Bug 1288329: [ogg] P5. Adjust mochitests. r=gerald
There are various differences between the new ogg player and the old OggReader that leads to inconsistencies on how durations are reported.

1- The old OggReader only use the end time as duration of the video, ignoring the start time of the first sample. This leads to incorrect duration calculation.
2- The OggReader do not ignore undecodable frames located at the beginning of the video, and those are used by the MDSM to calculate the start time. This leads to durations sometimes being shorter than they ought to.

MozReview-Commit-ID: 6yi1P4N6tPE

--HG--
extra : rebase_source : 31c0346c677f07e39c865d4f9f25dc0ebb70b18b
2016-07-28 22:52:08 +10:00
Jean-Yves Avenard e25ebdddd2 Bug 1289438: [ogg] P2. Re-enable earlier test now the seeking behaves as expected. r=cpearce,gerald
Note that the closest keyframes are for video 0.666667 and audio 0.645805, however the current OggReader still incorrectly seeks audio to an
earlier time as it seek to the index page boundary.

MozReview-Commit-ID: 5g7FHFmRQXD

--HG--
extra : rebase_source : cb105bafdf6aaa0f441da5130571b0b0b8e3a3f0
2016-07-27 16:21:47 +10:00
Jean-Yves Avenard 525aebc682 Bug 1288331: [ogg] P2. Fix fast seek mochitest. r=cpearce
Fast seek in the old OggReader is broken: the audio track isn't seeked to the video track in order to preserve A/V sync and we end up always performing an accurate seek which explain why this test succeeded before.
The page index is only made of two entries, and so the first video frame returned after a seek, if within the first index will always have a time of 0.

MozReview-Commit-ID: 2EYzLMWRZAi

--HG--
extra : rebase_source : a7c73a757a841550cc7c5d2a0a7229a037a2bb9f
2016-07-27 00:12:28 +10:00
Andrew McCreight 623b56a3f1 Bug 1287143 - Remove the window argument to SpecialPowers.exactGC(). r=jmaher
Cu.forceCC() is the same as DOMWindowUtils.cycleCollect(), but does
not require a window.
2016-07-19 13:13:00 +08:00
Bryce Van Dyk 2de747d99b Bug 1257716 - Add WebM Clearkey media to eme test list. r=cpearce
MozReview-Commit-ID: LYBmDUvboMk

--HG--
extra : rebase_source : e7715c57a1f6181c99b9e815c5fbf37f1f1410c6
2016-05-25 11:32:54 +12:00
Kaku Kuo 6ba3ad8ecf Bug 1235301 - part 5 - mochitest;r=jwwang
MozReview-Commit-ID: 6NzyMk8pFS7

--HG--
extra : rebase_source : b8a9c09b3e04cc91bb553d9a6f84b71024c3247d
2016-05-24 17:16:22 +08:00
JW Wang 35257991e7 Bug 1265978. Part 3 - invoke mozDumpDebugInfo() from JS. r=jya.
MozReview-Commit-ID: EHNKeFwNlvl
2016-04-22 14:18:41 +08:00
Bryce Van Dyk 51ca385004 Bug 1232045 - Add tests for WebM with resolution changes. r=jya
Added a test WebM file containing resolution changes. This file has been added
to gPlayTests to test playback of such files. A new test has been added,
test_resolution_change.html, which reads a new test array,
gResolutionChangeTests, of media files containing resolution changes. This new
test check that after playing a file through at least one resolution change has
taken place.

MozReview-Commit-ID: 8yz1ccz8g6O

--HG--
extra : rebase_source : 3fddc9116e9a5d20afcf58d795d288875084a08e
2016-03-14 15:13:51 +13:00
Bryce Van Dyk bd4f689e90 Bug 657791 - Add cueless WebM seeking tests. r=jya
Add tests to exercise seeking in cueless WebMs. These tests reproduce a subset
of the test_seek tests, namely the first 3. These tests have been added
separately from the test_seek ones to avoid additional logic required to handle
cueless WebMs in such test. Once random seeking for cueless WebMs is
implemented then these cases can be easily rolled into the existing test_seek
cases by moving the cueless WebM into the appropriate test array in the
manifest -- after which these tests can be removed.

MozReview-Commit-ID: DNwiSmMmALQ
2016-02-18 13:52:03 +13:00
Bryce Van Dyk 2fbed74f6a Bug 657791 - Update WebM demuxer to consider cue-less WebMs seekable. r=jya
It appears that the work to seek in WebMs that do not have cues has already been
done, however this functionality was gated by the IsSeekable() function still
returning that such WebMs were not seekable. This updates that function so that
WebMs without cues are now considered seekable. Tests are also updated to
reflect this.
2016-01-19 11:43:49 +13:00
Louis Christie ac975a3e11 Bug 851530: Part 2 - Added test cases for uLaw and aLaw wave files. r=jya
--HG--
extra : rebase_source : d3875f16601d3eab254fdaa144dc84a5db0384ac
2016-02-12 14:45:47 +13:00
Louis Christie ccbdff988a Bug 1231793: Part 7 - Fixed various tests. r=jya 2016-02-17 00:28:50 +11:00
Bryce Van Dyk 61408b539f Bug 1246842 - Rework previous commit to not used deprecated arguments.callee r=cpearce
MozReview-Commit-ID: DFWNOGN0FyY

--HG--
extra : transplant_source : %1E%0D%0E%F7%EB%AE%10%40%D6%C2%3F%03%EC%16%98%91Z%60%D8%20
2016-02-09 20:42:56 +13:00
Bryce Van Dyk ec7d44ede3 Bug 1246842 - Correct once function to remove correct event listener r=cpearce
The once function should add and then remove an event listener after it is
invoked, but it appears to remove another event listener instead. This commit
adjusts that behaviour. Note that the dom/media/mediasource/test/mediasource.js
file has the same pattern and has been updated. This commit reflects using the
same changes to remedy the once function here.

MozReview-Commit-ID: DQ4bfxTQfjN

--HG--
extra : transplant_source : 7%8E%19%DB74e%23%1511%1C%89%7D5%98%DE%12%BA%A2
2016-02-09 17:32:13 +13:00
Kaku Kuo 38b05e6a4e Bug 1242338 - test cases; r=jwwang
--HG--
extra : transplant_source : d%1F%1D0%14%EFr.o%D2pUyr%E8%CA%B8%AB%FD%01
2016-01-25 17:57:57 +08:00
Eugen Sawin d963206938 Bug 1232335 - [1.4] Fix test_can_play_type_mpeg for Android. r=snorp 2016-01-19 20:12:53 +01:00
Sebastian Hengst 51ff161768 Backed out changeset 4f090efcb1b6 (bug 1232335) for failing modified test due to calling undefined function. r=bustage 2016-01-19 19:01:53 +01:00
Eugen Sawin 1e2a4d1252 Bug 1232335 - [1.3] Fix test_can_play_type_mpeg for Android. r=snorp 2016-01-19 16:20:29 +01:00
JW Wang 60d9f17679 Bug 1235588 - add null check to SimpleTest. r=bechen. 2016-01-04 14:01:59 +08:00
Louis Christie 159adb84ce Bug 864780 - Changed handling of the format chunk to skip any extension. r=cpearce
--HG--
extra : rebase_source : 113092d12941509682b551811ccb51b7f9fc2c32
2015-12-16 13:26:21 +13:00
Louis Christie 68dbc629d4 Bug 524109 - Added support for 24 bit wav files. r=cpearce
--HG--
extra : rebase_source : 3467db40f95e7fefee9852e0d5c34c420b88c1a6
2015-12-14 15:07:10 +13:00
Carsten "Tomcat" Book 5d5bb29645 Backed out changeset 7b7521d752a2 (bug 524109) for test regressions 2015-12-14 10:57:19 +01:00
Carsten "Tomcat" Book 4e46689636 Backed out changeset 2dba896ba45b (bug 864780) 2015-12-14 10:56:35 +01:00
Louis Christie 005c16d197 Bug 864780 - Changed the format chunk reader to skip any extention. r=cpearce 2015-12-14 15:30:57 +13:00
Louis Christie 1b5c5943f2 Bug 524109 - Added support for 24 bit wav files. r=cpearce 2015-12-14 15:07:10 +13:00
Jean-Yves Avenard b6aac71af1 Bug 1222866: P3. Fix mochitest. r=me
Actual calculated duration was 9.2879819869995117. The new behaviour and rounded value is as such more correct
2015-11-20 22:59:52 +11:00
Randell Jesup 2c86b20850 Bug 1215769: use longer video clips when testing captureStream to avoid failure due to looping (bug 1215769) r=drno 2015-11-03 13:51:32 -05:00
JW Wang 91646c9749 Bug 1219136 - Add timestamp to MediaTestManager to track the time spent in each test. r=cpearce. 2015-10-28 14:47:01 +08:00
Chris Pearce a7e012482a Bug 1207019 - Make EME mochitests specify mime types for video in MediaKeys request videoTypes, ditto for audio. r=gerald 2015-10-05 15:03:58 +13:00
Jean-Yves Avenard 9d5342e6bb Bug 1209410: [mp3] P4. Change duration of mp3 files used by mochitests. r=cpearce
The owl.mp3 file and derivative is made of 128 0.026122s long samples , which gives us an actual duration of 3.343616s. However, when decoding those files, the first two samples are dropped by the CoreAudio and WMF decoder giving us an actual play time of 3.29s.
We have no way to determine the exact duration at the demuxing stage. External readers such as DirectShow or GStreamer would only report the decoded frames time, while the MediaFormatReader report the demuxed time.

There is no right answer here. So setting a duration that will allow all readers to pass the tests.
2015-10-02 18:44:33 +10:00
Maire Reavy 584ac822eb bug 1161276 - part 3 - tests for bitrate property in MediaRecorder r=roc
Android 2.3 and B2G disabled
2015-09-18 14:30:02 -04:00