• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Opera 31 broke the compatiblity with ffmpeg in Ubuntu 14.04

    Opera for Linux
    8
    32
    17538
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gustavwiz
      gustavwiz last edited by

      The support is broken on 15.04 also 🙂

      avl posted this link in another thread: https://gist.github.com/lukaszzek/ec04d5c953226c062dac

      I thought Ruarí’s guide was complicated enough, but his guide was very easy compared to that one /\

      Reply Quote 0
        1 Reply Last reply
      • jacobgkau
        jacobgkau last edited by

        Another 15.04 user here. I'm having the same problem, ffmpeg no longer works (I previously followed the same ghost.io guide.) Now MP4/H.264 video and MP3 audio don't work any more.

        So just to be clear, we're supposed to follow this new guide now? We have to download Chromium's source code, use a git command, and apply a patch, just to get H.264 and MP3 playback working?

        Reply Quote 0
          1 Reply Last reply
        • gustavwiz
          gustavwiz last edited by

          Okay, then we can sum this up: Before Opera 31, you could fix H.264 support with Ruarí’s guide (http://ruario.ghost.io/2014/12/19/adding-h-264-video-support-to-opera-for-linux/), but now with Opera 31+ that no longer works, and you have to follow avl's guide (https://gist.github.com/lukaszzek/ec04d5c953226c062dac) in order to get H.264 support, which is way too complicated.

          Reply Quote 0
            1 Reply Last reply
          • Deleted User
            Deleted User last edited by

            Yes, this is too complicated for me. I need something simpler.

            Reply Quote 0
              1 Reply Last reply
            • Deleted User
              Deleted User last edited by

              It seems I found a easier way to download the Chromium source.


              git clone https://chromium.googlesource.com/chromium/src

              Reply Quote 0
                1 Reply Last reply
              • Deleted User
                Deleted User last edited by

                Well, the git clone doesn't work 😞 .

                Reply Quote 0
                  1 Reply Last reply
                • Deleted User
                  Deleted User last edited by

                  That is odd. I never had to compile ffmpeg to have H264 support in Ubuntu. I just had to install ffmpeg.

                  Reply Quote 0
                    1 Reply Last reply
                  • Deleted User
                    Deleted User last edited by

                    And I have ffmpeg installed too, but Opera doesn't see it.

                    And the last update broke Ubuntu 15.04 too, that uses ffmpeg by default instead of the bare libav.

                    The worst thing is that Opera is the only Chromium browser that gives me problems with the multimedia support. Chromium, Chrome and Maxhton work perfect.

                    Reply Quote 0
                      1 Reply Last reply
                    • jacobgkau
                      jacobgkau last edited by

                      From my understanding, the reason Chromium works fine is because it now ships with its own multimedia libraries. Opera can't include those libraries due to licensing issues, and since Opera is based on Chromium, and Chromium now has its own libraries (and no longer supports using system libraries since there's no need to), Opera is stuck with not having any built-in libraries and not supporting any external ones. (Is this correct? It's just what I pieced together from blog comments and forum posts.)

                      I'd also like to add that for some reason, YouTube still seems to think that Opera has H.264 support (see youtube.com/html5), which leads to video playback errors when it tries to serve MP4 videos. YouTube still works fine when the videos are served in WebM. Eventually we'll want these issues resolved, but for the time being, is there at least a way to tell YouTube that my browser doesn't support H.264?

                      Reply Quote 0
                        1 Reply Last reply
                      • gustavwiz
                        gustavwiz last edited by

                        'd also like to add that for some reason, YouTube still seems to think that Opera has H.264 support (see youtube.com/html5), which leads to video playback errors when it tries to serve MP4 videos. YouTube still works fine when the videos are served in WebM. Eventually we'll want these issues resolved, but for the time being, is there at least a way to tell YouTube that my browser doesn't support H.264?

                        I have the exact same problem. Youtube lies about that I have working H.264. On youtube this is fine, because whenever there is a H.264 video it will switch to flash, but on other sites that only have H.264 video, I have to switch to Firefox of Chrome.

                        Reply Quote 0
                          1 Reply Last reply
                        • gustavwiz
                          gustavwiz last edited by

                          That is odd. I never had to compile ffmpeg to have H264 support in Ubuntu. I just had to install ffmpeg.

                          The problem was that if you had Ubuntu 15.04 and installed the ffmpeg package, it would come with a bug that made Opera crash. So instead we had to compile ffmpeg ourselves, or add another special ppa. But now even those workarounds don't work! As @metallinux said in another thread, this is becoming a nightmare.

                          Reply Quote 0
                            1 Reply Last reply
                          • matthieu1985
                            matthieu1985 last edited by

                            I've found much simpler workaround than that guide which by the way is totally innacurate because there is no third_party/ffmpeg directory in chromium source code. At least not in Chrome/44.0.2403.107 (Opera Stable) and Chrome/45.0.2450.0 (Opera Developer) even master branch doesn't have that directory.

                            First you need to either install or download chromium-codecs-ffmpeg-extra package. You will find it in Ubuntu [universe] repo. Than you need to:

                            1. Create lib_extra directory under /usr/lib/x86_64-linux-gnu/opera/ (for Opera Stable) or /usr/lib/x86_64-linux-gnu/opera-developer/ (for Opera Developer)
                            2. Next copy libffmpegsumo.so from /usr/lib/chromium-browser/ to the directory created in first step
                            3. Now rename libffmpegsumo.so to libffmpeg.so.31 (for Opera Stable) or libffmpeg.so.32 (in case of Opera Developer)
                            4. Restart Opera

                            After that MP3 and H.264/MP4 are working for me in both Opera Stable and Opera Developer.

                            Reply Quote 0
                              1 Reply Last reply
                            • gustavwiz
                              gustavwiz last edited by

                              @matthieu1985: Thank you very much, this worked, and it was very easy too.

                              However, it's still bad that you have to rename the file after each upgrade...

                              Reply Quote 0
                                1 Reply Last reply
                              • A Former User
                                A Former User last edited by

                                @matthieu1985:
                                You can create symbol link:

                                sudo ln -s /usr/lib/chromium-browser/libffmpegsumo.so /usr/lib/x86_64-linux-gnu/opera/lib_extra/libffmpeg.so.31

                                Reply Quote 0
                                  1 Reply Last reply
                                • Deleted User
                                  Deleted User last edited by

                                  Thank you very much, @adasiko, you are awesome 🙂 .

                                  Reply Quote 0
                                    1 Reply Last reply
                                  • matthieu1985
                                    matthieu1985 last edited by

                                    Yes of course you can create symbolic link instead of the whole copying and renaming but either way you will have to change that symlink when Opera Stable 32 releases to libffmpeg.so.32 and with every new version.

                                    I really hope that Opera developers resolve this bug which I already reported to them a couple days ago.

                                    Reply Quote 0
                                      1 Reply Last reply
                                    • Deleted User
                                      Deleted User last edited by

                                      I've the same issue on Fedora 22. The work-a-round with chromium doesn't work here, because chromium for fedora has no mp4/h.246 support. MP4 videos can only be downloaded.

                                      Reply Quote 0
                                        1 Reply Last reply
                                      • A Former User
                                        A Former User last edited by

                                        you will have to change that symlink when Opera Stable 32 releases to libffmpeg.so.32 and with every new version.

                                        OK.

                                        Create a new file

                                        /etc/apt/apt.conf.d/99ownscript

                                        DPkg::Post-Invoke {"/bin/bash /path/to/opera-ffmpeg-updater.sh"; };
                                        
                                        Reply Quote 0
                                          1 Reply Last reply
                                        • A Former User
                                          A Former User last edited by

                                          And opera-ffmpeg-updater.sh

                                          http://pastebin.com/CZHWxgEc

                                          Reply Quote 0
                                            1 Reply Last reply
                                          • gustavwiz
                                            gustavwiz last edited by

                                            @beduine:

                                            Can't you install google chrome then, and use it's H.264 codec?

                                            When you've installed chrome, I think the installation should be here: /opt/google/chrome

                                            Reply Quote 0
                                              1 Reply Last reply
                                            • First post
                                              Last post

                                            Computer browsers

                                            • Opera for Windows
                                            • Opera for Mac
                                            • Opera for Linux
                                            • Opera beta version
                                            • Opera USB

                                            Mobile browsers

                                            • Opera for Android
                                            • Opera Mini
                                            • Opera Touch
                                            • Opera for basic phones

                                            • Add-ons
                                            • Opera account
                                            • Wallpapers
                                            • Opera Ads

                                            • Help & support
                                            • Opera blogs
                                            • Opera forums
                                            • Dev.Opera

                                            • Security
                                            • Privacy
                                            • Cookies Policy
                                            • EULA
                                            • Terms of Service

                                            • About Opera
                                            • Press info
                                            • Jobs
                                            • Investors
                                            • Become a partner
                                            • Contact us

                                            Follow Opera

                                            • Opera - Facebook
                                            • Opera - Twitter
                                            • Opera - YouTube
                                            • Opera - LinkedIn
                                            • Opera - Instagram

                                            © Opera Software 1995-