Closed
Bug 1496222
Opened 6 years ago
Closed 6 years ago
ffvp9 fails to decode some VP9 files
Categories
(Core :: Audio/Video: Playback, enhancement, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: jya, Assigned: jya)
References
()
Details
Attachments
(1 file)
Those files:
https://jyavenard.github.io/htmltests/mediatest/webm/vp9/yuv420p12.webm
https://jyavenard.github.io/htmltests/mediatest/webm/vp9/yuv422p10.webm
https://jyavenard.github.io/htmltests/mediatest/webm/vp9/yuv422p12.webm
Fail to play with ffmpeg.
They are made of a single frame.
That frame is passed to avcodec_decode_video2 (https://searchfox.org/mozilla-central/source/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp#219)
it will use all bytes, but doesn't return any frame.
Then the decoder is drained, feeding null/zero to avcodec_decode_video2 which returns -1
Draining should never return -1.
Assignee | ||
Comment 1•6 years ago
|
||
If I disable MT decoding (by setting mCodecContext->thread_count = 1)
then the first avcodec_decode_video2 returns 1
Assignee | ||
Comment 2•6 years ago
|
||
It's our code.
https://searchfox.org/mozilla-central/source/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp#50
doesn't support 422 nor 420p12
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → jyavenard
Assignee | ||
Comment 3•6 years ago
|
||
Updated•6 years ago
|
Rank: 10
Priority: -- → P2
Pushed by jyavenard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/44cc1c10c530
Add missing pixel format in FFmpeg decoder r=padenot
Comment 5•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•