Opera 31 youtube. I want to watch all videos in html5.

  • Hello :D

    Recently I updated Debian with opera. Now I watch some videos in flash and others in html5.
    How do I do to only watch them in html5?

    I made sure it was available in https://www.youtube.com/html5

  • I do not think that Opera can really control that... You might try disabling the Pepper Flash Plugin to see if that will help. It would probably mean disabling it every time you wanted to watch a video. I am not sure that is all that convenient... However, I do have a solution that you may use.

    Get the Magic Actions for YouTube extension. In there, change the settings, you can force it to use HTML5. Once in a while the add-on goes a little buggy when YouTube updates their code but the guys that develop the app are usually pretty good about getting it squared away fairly quickly.

    Let me know if that helps. If it doesn't then, I suppose, I can poke around and see if I can think of anything else.

    I do have a question - was Opera in the repo or did you have to go download the source? (You compile everything on your machine locally with Debian, yes? I am a LinuxMint, openSuSE, and a CentOS kind of guy. I do not do much with Debian except poke at it in a VM and I have not done that in a very long time.)

  • I disabled pepper and only shows an error.
    Thanks for the extension, is awesome but even some videos not serve.

    With this video I test html5, other videos are useless.
    https://www.youtube.com/watch?v=SbmHvWJk7NE

    I tried delete cookies, also I realise I have no google sound as google translator.

    PD: I use Debian Sid, but I do not use apt-get dist-upgrade, only upgrades and updates.

    Thanks :D

  • I disabled pepper and only shows an error.
    Thanks for the extension, is awesome but even some videos not serve.
    With this video I test html5, other videos are useless.

    I tried delete cookies, also I realise I have no google sound as google translator.
    PD: I use Debian Sid, but I do not use apt-get dist-upgrade, only upgrades and updates.
    Thanks

    Jajajajaj I wrote wrong.
    *With this video I test html5, some other videos are useless with html5.

    The video was:
    https:// www.youtube.com/ watch?v=SbmHvWJk7NE

  • What you have to do (which Ruario described somewhere) is replace Opera's media library libffmpegsumo.so with a version that includes proprietary codecs like H.264.

  • What you have to do (which Ruario described somewhere) is replace Opera's media library libffmpegsumo.so with a version that includes proprietary codecs like H.264.

    Bro, I realised I have no x264 pkg installed.
    Is this the cause?

    Thanks for answering sgunhouse, kgiii :D

  • In Windows, they have flag to allow Opera to use the system's codecs. Unfortunately Linux isn't quite so simple. Unless you recompile libffmpegsumo.so with support for proprietary codecs or find one somewhere, Opera will only decode open formats. And not certain about 31, but previously Opera was using an old version of that library.

  • There are instructions available for building a custom ffmpeg library for Opera 31 and newer here: https://gist.github.com/lukaszzek/ec04d5c953226c062dac

  • Thanks, I thought it would be simple just like "install this" or "use this extension".

  • h.264 in Opera 31+ does not work for me at all. On youtube.com/html5 is says that the browser supports it, but that is not correct. On all videos that use H.264, it must switch to flash...

    This applies to all streams.

    There are instructions available for building a custom ffmpeg library for Opera 31 and newer here: https://gist.github.com/lukaszzek/ec04d5c953226c062dac

    @avl, have you changed how this works? Is that the reason why it is broken?

  • I also had the same problem, but revisanto this post and solve my problem[.](http://maschistesbuenos.com/" target="_blank) Thank You.

  • I also had the same problem, but revisanto this post and solve my problem. Thank You.

    Did you do Github?

    https://gist.github.com/lukaszzek/ec04d5c953226c062dac

  • I also had the same problem, but revisanto this post and solve my problem. Thank You.

    Did you do Github?

    I wonder this too, @gorrion007. ( @lieddersturme: If you really want gorrion007 to see your post you should mention him with @).

  • This is becoming a nightmare for me.

  • There seems to be a working fix near the bottom of that thread :
    https://forums.opera.com/topic/11170/opera-31-broke-the-compatiblity-with-ffmpeg-in-ubuntu-14-04

    (see the post from "matthieu1985")

  • @avl, have you changed how this works? Is that the reason why it is broken?

    Well, more like Chrome changed how this works. They started linking in ffmpeg statically, making it easier for them to change their integrated ffmpeg, and harder for us to keep it compatible with the vanilla system one.

    For reference, Chrome includes a version of ffmpeg (now statically linked in from Chrome 44 onwards), which includes support for proprietary formats like H264 video and MP3 audio. Opera can't redistribute this version, because we don't have the (expensive) license from the MP4 patent pool that would be required to cover our users.

    On Windows and Mac we solve this issue by providing a completely separate implementation, which uses the video libraries available on those systems natively (so that Opera is not redistributing the decoders ourselves). It requires some developers working full-time on maintaining this, but compared to the cost of the license, it's definitely worth it.

    On Linux we don't have this luxury: for one there is no agreed upon and generally available system library, and secondly we don't have enough developers to have someone dedicated to maintaining a custom solution.

    Until now we've patched this by trying to stay as close as possible to vanilla ffmpeg as possible, allowing you to exchange the ffmpeg library we do redistribute (which omits H264 and MP3 support) with one you compile yourself from ffmpeg.org or install from a repo.

    Now that this has become too hard to maintain as well in Opera 31, what's left is simply recompiling Chromium's custom ffmpeg. That's the instructions you'll find here: https://gist.github.com/lukaszzek/ec04d5c953226c062dac

    It would be very helpful if someone could create a package that does just this.

    If Ubuntu will update to Chromium 44 and will keep supplying a separate chromium-ffmpeg-codecs-extra package, Opera will be able to use that when it becomes available.

  • @avl: Okay, then I understand. Thank you for the information.

  • I appear to have had the same problem. This may not be the best solution, but I've found this to work so far:

    • Install chromium-ffmpeg-codecs-extra (which is currently version 44 as at 2015-08-27)
    • Maybe back up /usr/lib/x86_64-linux-gnu/opera/lib/libffmpeg.so.31
    • Have permission to write /usr/lib/x86_64-linux-gnu/opera/lib/ and contents (helps to be root or have sudo)
    • Symlink /usr/lib/chromium-browser/libs/libffmpeg.so to /usr/lib/x86_64-linux-gnu/opera/lib/libffmpeg.so.31

    YMMV, but that's worked for me, for now!

  • Install chromium-ffmpeg-codecs-extra (which is currently version 44 as at 2015-08-27)
    Maybe back up /usr/lib/x86_64-linux-gnu/opera/lib/libffmpeg.so.31
    Have permission to write /usr/lib/x86_64-linux-gnu/opera/lib/ and contents (helps to be root or have sudo)
    Symlink /usr/lib/chromium-browser/libs/libffmpeg.so to /usr/lib/x86_64-linux-gnu/opera/lib/libffmpeg.so.31

    @crosph, your solution can be refined: instead of writing to lib, write the file to /usr/lib/x86_64-linux-gnu/opera/lib_extra/libffmpeg.so.31 (you might have to create the lib_extra directory). Opera recognizes the lib_extra directory specifically for this purpose (so that you can put a custom version of ffmpeg in there). Then you don't have to overwrite any files, and it won't get lost whenever you update Opera (although you'll have to do something when a new version gets released).

  • To opera devs:

    Why don't you just unbundle ffmpeg and use the system-default one?

    Largely most people have already installed a "competent" ffmpeg library anyway...

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.