developer tip

Firefox가 MP3 파일 형식을 지원하지 않는 이유

optionbox 2020. 9. 5. 09:44
반응형

Firefox가 MP3 파일 형식을 지원하지 않는 이유


Firefox가 <audio>요소 의 MP3 파일 재생을 지원하지 않고 Ogg 형식 지원하는 특별한 이유가 있습니까?

라이선스 문제입니까?

향후 구현을위한 계획이 있습니까?

<audio>요소 에서 MP3 재생을 지원하는 애드온을 개발할 수 있습니까?


라이선싱 문제 : HTML5 비디오 및 H.264 – 역사가 우리에게 알려주는 이유와 우리가 웹에 서있는 이유Mozilla는 Ogg Theora 비디오에 대한 Firefox의 HTML5 지원을 방어합니다 (제목에도 불구하고 둘 다 MP3 라이선싱에 대해 간략하게 설명합니다). .

할 수있는 일은 Flash로 돌아가서 재생하는 것입니다.


2012 년 10 월 업데이트 : Wooohooo! Brendan Eich는 방금 블로그 에서 Firefox에서 MP3 및 H264 지원을 지원 한다고 발표했습니다 . BugZilla에서 작업을 추적 할 수 있습니다 : 데스크탑 Firefox에서 H.264 / AAC / MP3 비디오 / 오디오 재생 지원

2013 년 2 월 업데이트 : Firefox 개발자 Chris Pearce의 많은 노력을 기울인 후이 패치 는 Windows 7 및 Windows 7에서 실행될 때 HTML5 <audio> 및 <video> 요소에서 기본적으로 MP3, MP4, H.264 및 AAC 재생을 활성화하는 스위치를 전환합니다. 나중. 다음 안정된 FF 릴리스에서 일부 네이티브 웹 MP3 지원을 볼 수 있습니다.

2013 년 4 월 업데이트 : Woohooo! 안정적인 최신 Firefox는 MP3를 실험적으로 지원합니다. 이를 켜려면 Firefox에서 about : config를 입력하고 media.windows-media-foundation.enabled 를 찾아 true로 설정하십시오. Firefox를 다시 시작하면 모든 설정이 완료됩니다. HTML5 오디오가있는 사이트 (예 : 내 라디오 사이트 )로 이동하면 Firefox가 실제로 기본 MP3를 재생하고 Flash 폴백을 사용하지 않는 것을 볼 수 있습니다.

2013 년 5 월 업데이트 : 드디어! Firefox 21은 오늘 출시 되었으며 Windows에서 기본 HTML5 MP3 지원을 포함합니다. 운영 체제에서 지원하는 경우 기본 MP3 오디오를 즉시 지원하는지 확인했습니다. Windows 8에서 테스트했지만 Windows 7 및 Vista에서 자동으로 작동 할 것이라고 생각합니다.

2013 년 12 월 업데이트 : Firefox 26이 오늘 출시 되어 Windows XP로 돌아가는 모든 Windows 버전에 대해 기본 MP3 오디오 지원을 제공합니다.


Ian Devlin이 현재 받아 들인 답변은 구식입니다. 새로운 대답은 다음과 같습니다. Firefox는 라이센스상의 이유로 기본 MP3 재생을 역사적으로 지원하지 않았지만 향후 변경 될 것입니다. 곧 HTML5 <audio> 태그를 통해 기본적으로 MP3를 재생하는 Firefox를 보게 될 것입니다.

2012 년 3 월, Mozilla는이 문제에 대해 대면 하여 최종 사용자의 시스템에서 코덱을 이미 사용할 수있는 경우 기본 HTML5 구현에서 MP3 및 H.264를 지원할 것이라고 공개적으로 밝혔습니다 .

링크 된 기사에서 Mozilla의 연구 책임자 인 Andreas Gal은 다음과 같은 공개 성명을 발표합니다.

“H.264 및 MP3를 포함하여 시스템에 존재하는 기존 디코더에서 지원하는 모든 비디오 / 오디오 형식의 디코딩을 지원할 것입니다. 사용자가 이미 장치에있는 시스템 디코더를 사용하는 것을 막을 이유가 없으므로 형식을 필터링하지 않습니다.

이 버그가 공개 비디오에 대한 우리의 입장을 크게 바꾸지 않는다고 생각합니다. 우리는 계속해서 공개 코덱을 홍보하고 지원할 것입니다. 그러나 기존 코덱이 이미 장치에 설치되고 라이선스가 부여 된시기와 장소에서 사람들에게 최상의 경험을 제공하기 위해 사용할 것입니다. "

이는 운영 체제가 지원하더라도 MP3 및 H.264 재생을 시도하지 않은 이전 위치와 대조적입니다.

결론 : Firefox는 결국 HTML5 <audio> 구현에서 MP3를 지원할 것입니다. 2012 년 9 월 현재 이러한 상황이 언제 발생하는지에 대한 정보가 없습니다. 이드에 파이어 폭스 개발중인 것으로 보인다 ; 곧 데스크톱 Firefox에서 지원을 보게 될 것입니다. 2012 년 10 월 편집 : 실제로이 추측은 정확했습니다. 데스크톱 Firefox에서 네이티브 MP3 및 H264 재생이 현재 개발 중 입니다.


업데이트 : 이제 데스크톱 Firefox 버전 20 이상에서 기본 MP3 (및 H264) 지원을 사용할 수 있습니다 .

나는 그것을 팟 캐스트와 가끔 mp4 비디오를 따라 가는데 사용하고있다.

작동하지 않는 경우 활성화 하는 숨겨진 옵션이 있습니다 .
about:config → media.windows-media-foundation.enabled → true

HTML5 YouTube 에서도 작동
합니다 (어쨌든을 사용해야 webm하지만에 대해 더 미세 조정할 수 있음 h264)

MP3는 일반적으로 Fraunhofer / Thomson 특허 문제입니다. 그들은 약간 그늘진 mp3licensing.com 도메인 에서 라이센스를 판매 합니다.

특허 관련 (2016/6 업데이트) ( Wikipedia ) :

기본 MP3 디코딩 및 인코딩 기술은 유럽 연합에서 특허가 없으며 모든 특허가 만료되었습니다. 미국에서이 기술은 2017 년 12 월 31 일에 실질적으로 특허가 없습니다 (아래 참조). MP3 특허의 대부분은 2007 년과 2015 년 사이에 미국에서 만료되었습니다.

[...] 특허는 최초 출원일로부터 20 년 후에 만료되며, 다른 국가에서 출원하는 경우 최대 12 개월이 소요될 수 있습니다. 결과적으로 MP3 구현에 필요한 특허는 ISO CD 11172가 발행 된 후 21 년이 지난 2012 년 12 월까지 대부분의 국가에서 만료되었습니다.

2017 년 12 월 미국에서 마침내 특허가 만료되는 경우 :

3 개의 특허를 제외하고 Sisvel이 관리하는 미국 특허는 모두 2015 년에 만료되었습니다 (예외 : 미국 특허 5,878,080, 2017 년 2 월 만료, 미국 특허 5,850,456, 2017 년 2 월 만료 및 미국 특허 5,960,037, 2017 년 4 월 9 일 만료).

만큼 잘

[...] MP3 기술은 Fraunhofer-Gesellschaft가 보유하고 Technicolor가 관리하는 미국 특허 5,703,999가 만료되는 2017 년 12 월 30 일 미국에서 특허가 없습니다.

There is software circumventing those patents, like the LAME MP3 encoder, but they do that by distributing only in source code form.

The LAME developers state that, since their code is only released in source code form, it should only be considered as an educational description of an MP3 encoder

Then there are binary distributions of LAME, and, as you can easily see from the domain, they originate from Argentina. This can happen because MP3 patents are deemed invalid in many countries where the very concept of software patent was never legislated upon.

(I'd like to have an exhaustive list of countries, but the situation evolves quite rapidly, and I don't even known what side of the soft-patents divide my country stands in. That's not a level of uncertainty Mozilla wants to cope with)

Then again, Mozilla may have found THEIR way around the patent problem.

It's not perfect. (i.e. it leaves linux in a puddle of mud)

Andreas Gal, Mozilla’s director of research wrote:
(but the discussion revolved around B2G, really read the whole article to form an opinion)

“We will support decoding any video/audio format that is supported by existing decoders present on the system, including H.264 and MP3. There is really no justification to stop our users from using system decoders already on the device, so we will not filter any formats,” he wrote. “I don’t think this bug significantly changes our position on open video. We will continue to promote and support open codecs, but when and where existing codecs are already installed and licensed on devices we will make use of them in order to provide people with the best possible experience.”

So, from what I see:

On Windows and Mac (using, already licensed by the OS, dlls/dylibs) Mozilla could end up supporting MP3.

On Linux... I'd like to know. Maybe in selected countries, you'll end up installing some unlicensed libs and get away the way Audacity does.

There's a light at the end of a tunnel, but let's just hope it's not a fast approaching train.


Taken from Wikipedia, for MP3:

MPEG-1 or MPEG-2 Audio Layer 3 (or III), more commonly referred to as MP3, is a patented digital audio encoding format using a form of lossy data compression.

Taken for Ogg:

Ogg is a free, open standard container format maintained by the Xiph.Org Foundation. The creators of the Ogg format state that it is unrestricted by software patents and is designed to provide for efficient streaming and manipulation of high quality digital multimedia.

Mozilla doesn't want patent issues, so Ogg was chosen as the better candidate.

It is possible to make such an implementation, so that Firefox can play mp3 in <audio> tag, but this won't be done because of issues I mentioned.

Sometimes politics, and other real world issues, dictate what gets implemented and what doesn't.


For Linux to turn on HTML5 streaming for MP3, MP4, H.264, and AAC, you got to set media.gstreamer.enabled to true into about:config!

Gstreamer is present in most, if not all, Linux distributions!


I believe that the Mozilla developers decided against implementing MP3 support, in order to avoid paying for patent licences from a number of organisations (Technicolor/Thomson Consumer Electronics, the Fraunhofer Institute, Alcatel-Lucent, Sisvel and potentially others, from what I can gather).


Decoding of various audio formats, including MP3 files, can now be done in modern browsers using JavaScript. http://audiocogs.org/codecs/mp3/

If a site used this kind of code (or a Firefox add-on did), Firefox would play MP3 files just fine.


As already said it's a patent problem. There are already plenty of open source MP3 decoders and encoders implementations (among them are LAME and FFmpeg), the problem is that to ship binaries somebody has to pay for the patent license. Here's a quote from LAME wikipedia article confirming this:

Like all MP3 encoders, LAME implements some technology covered by patents owned by the Fraunhofer Society and other entities. The developers of LAME do not themselves license the technology described by these patents. Distributing compiled binaries of LAME, its libraries, or programs that derive from LAME in countries that recognize those patents may be patent infringing. The LAME developers state that, since their code is only released in source code form, it should only be considered as an educational description of an MP3 encoder, and thus does not infringe any patent by itself when released as source code only. At the same time, they advise users to obtain a patent license for any relevant technologies that LAME may implement before including a compiled version of the encoder in a product.

Mozilla obviously cannot afford to pay patents for any copy of Firefox that gets downloaded.

The two possible solutions are:

  • use external codecs already preinstalled in the system Firefox is installed in. This solution is the one that has been adopted when running in Windows as mentioned in this other answer. In this case, if the Microsoft MP3 codec is used, Microsoft is the one who paid for the patent license, cost which is part of the Windows license;
  • wait for MP3 patents to expire. The last one will probably expire on April 16, 2017 which is roughly 3 years and a half from now, but time passes steadily! Firefox 1.0 came out on November 9, 2004, which is more than 9 years ago!

That's why using patent free codecs is, from a user perspective standpoint, more desirable!

2017 UPDATE: patents have expired and open source projects are now starting to pick up MP3 support, e.g. Fedora. Let's hope Firefox does the same soon!

참고URL : https://stackoverflow.com/questions/4923136/why-doesnt-firefox-support-the-mp3-file-format-in-audio

반응형