English
Ask Your Question
2

h.264 Videos not working in Firefox [closed]

asked 2016-10-19 16:42:02 +0000

elvisn gravatar image

Hi, I followed the instructions here to try to get everything working. I enabled the repo, installed the packages, enabled the plugin in Firefox's Add-ons>>Plugins, then restarted Firefox. I still get no videos on certain sites (one of the sites I use for school requires a video and needs this codec). I double-checked at youtube.com/html5 , and it says that I don't have the codec installed.

I'm asking here on the Fedora forums, since videos play properly in Arch Linux (considering they just release everything as-is, and don't worry about copyright/patents in their repos).

Does anyone know why it's not working? I tried restarting my computer also, but nothing changed. If anyone could help me, that would be great!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by davidva
close date 2018-03-26 07:06:05.038477

1 answer

Sort by ยป oldest newest most voted
3

answered 2016-10-19 22:17:56 +0000

David-LDA gravatar image

updated 2016-10-19 22:23:24 +0000

The OpenH264 does not play the videos you want to play in Firefox. The article you linked states:

...It does not enable generic H.264 playback, only WebRTC

Recently Firefox changed the way it uses external decoders, so there is loads of out of date info on the web. It doesn't use gstreamer any more. You need to:

  1. Enable the RPM Fusion repo by going to the terminal and entering:
su -c 'dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

Then install the correct codecs:

sudo dnf install ffmpeg-libs

Now when you go to https://www.youtube.com/html5 it should report all is well :)

On my machine I am finding some full screen videos on Youtube freeze, but it's probably a driver issue.

edit flag offensive delete link more

Comments

Wow, thanks for clear instructions! And for some extra knowledge regarding firefox...

elvisn ( 2016-10-20 20:30:58 +0000 )edit

Thanks for this answer! One possible tweak to it: ffmpeg-libs and its dependencies are all in the RPMFusion "free" repo, so its possible to skip enabling the "nonfree" repo while still getting working H264 video playback.

ncoghlan ( 2018-01-10 07:56:49 +0000 )edit

Thanks, this is exactly the info I needed!

Charles R. ( 2018-03-26 01:32:57 +0000 )edit

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2016-10-19 16:42:02 +0000

Seen: 13,765 times

Last updated: Mar 26