Меню Рубрики

Linux firefox h 264

Firefox получил H.264 на линуксе через GStreamer

Баг 794282 — Enable GStreamer in official builds, добавляющий поддержку в линукс-версии Firefox H.264/MP3/AAC закрыт, поддержка будет уже Firefox 24. Теперь можно будет смотреть HTML5-видео со всяких разных сайтов и в FF.

Наконец-то. Правда еще две версии ждать.

История с поддержкой H.264 очень интересна. Это довольно спорная тема для Mozilla. Во-первых, из-за проприетарного кодека. Во-вторых, из-за «предательства» со стороны Google. Эта компания еще 11 января 2011 года анонсировала, что откажется от поддержки кодека H.264 в пользу открытого кодека WebM. Вскоре после этого Mozilla и Opera присоединились к инициативе Google и тоже перешли на WebM, а вот сама компания Google так и не сделала обещанного до сих пор. (http://www.xakep.ru/post/60583/)

Да я в курсе, но надо же чем-то поддержать разговор (^ ^)

Так пока введут уже H.265 все будут юзать 🙂

Жаль. Теперь webm будет сложнее продвигать.

А Apple HTTP Live Streaming тоже будет работать без флеша? То есть в можно просто указать .m3u8 файл, как это работает в IE и Safari?

Теперь webm будет сложнее продвигать.

Свободные кодеки и форматы всегда хорошо. Daala ещё неизвестно когда можно будет использовать.

Свободные кодеки и форматы всегда хорошо.

Да. Но свобода ради свободы не нужна. И вебм то еще говнецо.

Шах и мат оперы и хромиомы.
Хотя, я видимо что-то пропустил, h264 у меня в фф давно работает.

В chromium у меня давно h.264 работает. А вот Opera теперь должна ответить как-нибудь.

Так давно уже работает

Свобода ради непопадания в рабство.

Opera == chromium же теперь. Или они отключают?

Как, смотря трубу(замечу без рекламы) в h.264 я попадаю в рабство?

А вот Opera теперь должна ответить как-нибудь.

С глубины в два метра это не так уж и просто.

В один момент может оказаться, что смотреть тебе будет нечего или нечем, т.к. ВНЕЗАПНО потребуют заоблачные рояльти.

У BSD же получается.

Opera == chromium же теперь. Или они отключают?

Opera 15 пока только под win/mac. Не работает там h.264

В один момент может оказаться, что смотреть тебе будет нечего или нечем, т.к. ВНЕЗАПНО потребуют заоблачные рояльти.

В один момент и сосуля может по башке упасть. Но если вебм тормозит не хуже флеша, я пока посмотрю в h264, на свой страх и риск.

А, так ты из тех, кто живёт сегодняшним днём и для которых завтра нет? Ну, ok.

А, так ты из тех, кто живёт сегодняшним днём и для которых завтра нет?

Как сказать. ВНЕЗАПНО никаких рояльти за просмотр трубы с меня не потребуют. А так я себе еще кактуса налью.

Как там у классиков:

. — вот Вам запятых, используйте их, пожалуйста.

Так пока введут уже H.265 все будут юзать 🙂

Научится Gstreamer 265, сразу должно заработать и в firefox. А Gstreamer может не только свои кодеки использовать, но и ffmpeg. Также Fluendo продаёт проприетарные кодеки для gstreamer.

ЕМНИП он уже давно умеет, но по умолчанию было выключено. Для включения нужно было пересобрать с —enable-gstreamer. А сейчас наверно включат по умолчанию. Если я не прав, поправьте меня.

В 25-м всё есть. HTML5 Video с youtube.com (если включен «режим тестирования HTML5») воспроизводит, если указать user-agent «IE10» (с помощью плагина смены user-agent).

Зачем, это делать? Все и так работает

У меня не установлен Flash-плеер (даже Gnash не установлен). При попытке просмотреть ролики на youtube.com без смены user-agent предлагается установить плагин Adobe Flash (для FreeBSD такого плагина не существует). При включении плагина смены user-agent и перезагрузке странички ролика отдаётся поток в HTML5 Video, и Firefox его воспроизводит.

В Midori та же самая ситуация, но user-agent там меняется в настройках браузера, специальный плагин не нужен.

Разве может быть нужным стандарт, который неизвестно откуда вылупился на замену тому, которым все уже давным давно пользуются и довольны?

Источник

How do I get HTML5 h.264 Video working on Firefox?

According the the release notes for Firefox 26, h.264 video should now be working in Linux. It does also say the appropriate gstreamer plug-ins need to be installed. Does anyone know what these are?

I used this test site and the YouTube HTML5 page to verify that h.264 support works in Google Chrome on my Ubuntu 12.04 64-bit, but does not work on Firefox 26.

5 Answers 5

For 12.04 / 14.04 / 18.10

Just visited the HTML5 Youtube test and I have H.264 checked; you probably will need to install Ubuntu restricted extras to get the gstreamer codecs.

You may need to restart.

For 14.04

The solutions above are not working anymore with Trusty Tahr 14.04. The reason for this is the package gstreamer0.10-ffmpeg has been replaced by gstreamer1.0-libav but Firefox is planning to support gstreamer 1.0 only with version 30.

So in the meantime you can install the gstreamer0.10-ffmpeg from saucy for your appropriate architecture here :

jon-severinsson/+archive/ffmpeg to download ffmpeg for 14.04 – Akronix May 3 ’14 at 22:30

Firefox 33 and beyond

Mozilla added support for OpenH264 as a plugin in Firefox 33. To enable this plugin Firefox will now automatically download a binary from the OpenH264 website the first time you start the program.

That sounds great, doesn’t it? Wait… that was a pun.

While this is indeed a very convenient solution it should also raise privacy and security concerns when software automatically downloads binaries from sites affiliated with Cisco Systems or other companies, no matter how transparent the process and license agreement is.

Not directly related but if you prefer to automatically delete cookies when Firefox gets closed and can’t find the right cookie to keep for persistent HTML5 playback then I suggest to install YouTube ALL HTML5.

Tests with 14.04.2 and 15.04 VMs

My guess was that only installing an H.264 decoder binary wouldn’t be enough, so I set up 2 new virtual machines:

  • Ubuntu 14.04.2 with restricted addons installed during installation
  • Ubuntu 15.04 without restricted addons installed during installation

After the installation of both VMs was completed I booted the systems, updated them again, installed VM guest additions, started Firefox for the first time and rebooted for the actual testing.

Since YouTube also offers their open sourced WebM formats and I wanted to avoid going into to much detail about test methods I needed to use another HTML5 capable site to test proprietary H.264 playback support. I chose Vimeo, because they say they default to HTML5 and they don’t seem to support WebM, which I consider not to be a good thing.

Whenever I made some changes in the test, like installing a package or enabling/disabling something in Firefox I closed and launched Firefox again.

14.04.2 with restricted addons

As you can see in this screenshot only the OpenH264 plugin is enabled in Firefox, all the necessary GStreamer packages in different versions are preinstalled and the video plays as expected.

15.04 without restricted addons

As you can see in this screenshot the OpenH264 plugin is enabled, there is no Flash plugin, a few GStreamer packages in different versions are preinstalled but the video does not play! Instead the site immediately tells us that the video can’t be played. Why is that?

    AAC is missing! – To put an explanation simple, there is a file on the server that is fed into our browser. If you look for it using the inspector from the context menu in Firefox, you will find an MP4 with AAC-encoded audio. The error message could be more clear but it makes sense since we don’t have a decoder for AAC currently installed.

Update: Looking again into this issue with Firefox 41, I found that OpenH264 seems to be disabled in about:config through:

Setting these to true had no effect. Further settings I tried:

  • media.audio_data.enabled;true no effect.
  • media.mediasource.enabled;true Vimeo didn’t use MSE before, enabling these and related settings had no effect.
  • media.fragmented-mp4.use-blank-decoder;true result: a solid green canvas and a constant sine wave audio signal.

15.04 with restricted addons

A smart approach would have been to install gstreamer1.0-plugins-bad-faad , but this doesn’t make the particular error message on Vimeo go way, so let’s install all the restricted addons.

As expected, everything works if you install the restricted addons package afterwards, but you may want to set the Flash plugin to something else than enabled in Firefox to be sure to use HTML5 video.

Analysis or just make it break

Apparently gstreamer1.0-libav is the only package you need to remove to get the error message back. So it was using libav’s AAC decoder? I didn’t dig deeper to find proof for that nor did I look for which decoder will be preferred (e.g. if OpenH264 is of any use currently on Linux) or if Vimeo throws this error message due to some other dependency not being met despite H.264 and AAC decoders being installed.

Summary and outlook

To sum it up, playback of current mainstream content does not only require an H.264 decoder but also an AAC decoder and H.265 is already preparing to replace the older one. Also I don’t see the corresponding specification for MP4s with H.264 to be changed towards recommending a more open source friendly audio codec in the foreseeable future.

Seriously, push for WebM! You get VP8 + Vorbis as the H.264/AVC contender and VP9 + Opus as the H.265/HEVC contender.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Mac os не удалось открыть файл так как у вас нет разрешения на его просмотр
  • Mac os не удается завершить операцию так как у вас нет необходимых прав
  • Mac os не ставится на ssd
  • Mac os не работает левый клик
  • Mac os не подключается к wifi автоматически