Closed Bug 1925657 Opened 1 year ago Closed 1 year ago

use ffmpeg for av1 on all platforms

Categories

(Core :: Audio/Video: Playback, task, P2)

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently AV1 decoding through ffmpeg is only used on Linux. On Windows, we use DAV1DDecoder for sw av1. However, we would like to use ffmpeg on AV1 as well.

However, simply enabling FFMPEG_AV1_DECODE on Windows doesn't work, it raised an error Couldn't open avcodec. We need to fix it in order to use ffvpx for av1 on Windows.

2024-10-18 19:16:40.884000 UTC - [RDD 39884: MediaPDecoder #1]: D/FFmpegVideo FFVPX: Initialising FFmpeg decoder
2024-10-18 19:16:40.884000 UTC - [RDD 39884: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   codec av1 : Alliance for Open Media AV1
2024-10-18 19:16:40.884000 UTC - [RDD 39884: MediaPDecoder #1]: D/FFmpegVideo FFVPX: Set get_buffer2 for customized buffer allocation
2024-10-18 19:16:40.884000 UTC - [RDD 39884: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   Couldn't open avcodec for av1
[Child 12012, MediaSupervisor #1] WARNING: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - MediaResult __cdecl mozilla::FFmpegDataDecoder<46465650>::InitDecoder(AVDictionary **): Couldn't open avcodec: file C:/mozilla-source/mozilla-unified/dom/media/MediaFormatReader.cpp:1843
See Also: → 1745285, 1765530

Actually, we should use ffvpx for AV1 on all platforms, not just Windows.

Summary: use ffmpeg for av1 on Windows → use ffmpeg for av1 on all platforms

FFvpx internally uses dav1decoder for AV1 SW.

Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a56901d19160 use ffvpx for SW AV1 on all platforms. r=padenot

Backed out for causing Android build bustages.

Flags: needinfo?(alwu)
Flags: needinfo?(alwu)
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ab86b4883528 use ffvpx for SW AV1 on all platforms. r=padenot
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Regressions: 1928984
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: