latest opera on linux and issues with playing videos

  • Hello,

    I just installed both stable and developer versions on mint linux. I have working flash player, but there are some websites where video doesn't start on Opera, while it works on Firefox and Chrome/Chromium.

    Here are two exaple websites:

    http://www.biztok.pl/biznes/firmy-motoryzacyjne-traca-na-konflikcie-na-ukrainie_a21361

    http://sport.wp.pl/kat,1041241,title,Hit-internetu-Krychowiak-zaspiewal-hymn-Sevilli-To-masakra-jest,wid,17581333,wiadomosc.html - twitter video on bottom part of page.

    Does anyone know what could be a reason ?

  • For me both websites forks prefect. How have you installed flash player?

  • I have flash player installed via Pepper Flash Plugin package in Mint Linux.
    All flash based websites like youtube etc. work without problems.

    Your opera is playing that twitter video using flash player ? Maybe i have to install some additional codecs in my Linux ?

  • Yeah, none of them are probably flash, because when I disabled the plug-in, it still worked.

    I have no idea why it doesn't work, if it requires extra codecs and in that case what these codecs are. They only thing I can say is try to run this command, restart Opera and see if that works:

    sudo apt-get install ubuntu-restricted-extras
  • If that doesn't work, you can also try to install ffmpeg. I don't know if Linux Mint has the ffmpeg repository, you can try to apt get ffmpeg or add the repository yourself.

  • After some research now I know that those videos are 'webm' types. They play well in all browsers except Opera.

    it seems like file library responsible for that format is in Opera's folder and it's names libffmpegsumo.so

    I have tried to replace that file with the one from chromium folder like in first post here:

    https://forums.opera.com/topic/4627/can-you-summarize-for-me-opera-25-under-linux-with-flash-and-html5-videos

    but that only craches Opera on opening that page.
    It seems like Opera has broken that lib and I don't know how to fix it.

  • I have more news. Following that tutorial I have installed another ffmpeg library:

    http://www.webupd8.org/2014/12/how-to-get-flash-and-h264-to-work-in.html

    now pera stable works fine, opera beta has sound but black screen, opera developer crash.
    The point is that opera stable doesn't have sidebar, so I need beta or developer.

    Any idea why they have might have issues here ?

  • now pera stable works fine, opera beta has sound but black screen, opera developer crash.
    The point is that opera stable doesn't have sidebar, so I need beta or developer.
    Any idea why they have might have issues here ?

    It's because Opera Beta and Developer are based on a newer version of ffmpeg, so you'd need to install that newer version to be able to use it. I believe it's ffmpeg 2.6.x you're looking for.

  • I can confirm that installing ffmpeg on Ubuntu 15.04 solves the problem. When I type ffmpeg -version, I get "ffmpeg version 2.5.7".

  • Yes, it looks like this is the source of problem. Version of ffmpeg library.
    I have on my linux mint (most popular linux distro) version 2.4.3 and only latest ubuntu has never one.
    There is no way right now to install next versions on mint.
    Is there any chance to make next betas to be compatible with ffmpeg 2.4.3 or when do you plan to release stable (which I hope will remain to be compatible with 2.4.3) with sidebar support ?

    thanks

  • But can't you add a repository that adds a newer version of ffmpeg? Try this guide.

  • I was trying woth another repos including that one. As far as I see they only update ffmpeg binary, but not other libraries like libavcodec that is needed by opera and in final it still doesn't work.

  • Okay. Anyway, the user shouldn't have to mess around with this. It would be much better if Opera included the right version of ffmpeg.

    Is there any chance to make next betas to be compatible with ffmpeg 2.4.3 or when do you plan to release stable (which I hope will remain to be compatible with 2.4.3) with sidebar support ?

    This could also be a good work-around, because right now it seems that one can't get support for for example H.264 in Linux Mint, and that is definitely not good.

  • Okay. Anyway, the user shouldn't have to mess around with this. It would be much better if Opera included the right version of ffmpeg.

    Opera installs the right version of FFmpeg. They just don't include one with built-in h.264 support due to licensing issues. H.264 is patent encumbered and not cheap. Before anyone goes and suggests Opera should just buy a license, I am fairly certain that would not be financially viable. Hence we have this non-optimal situation.

    If people are continuing to have problems, just build the correct version for yourself—this is the most reliable way to ensure you have a suitable version. It is not as hard or as scary as some people might think!

    First install a build environment:

    sudo apt-get install automake build-essential libtool pkg-config yasm zlib1g-dev 
    

    (For non-Debian dirstos you want to install the following packages: autoconf, automake, gcc, gcc-c++, libtool, make, nasm, pkg-config and the zlib development support files)

    Fetch the source code for the version you want to install:

    wget http://ffmpeg.org/releases/ffmpeg-2.6.3.tar.bz2
    

    Extract the source code:

    tar xf ffmpeg-2.6.3.tar.bz2
    

    Build an ffmpeg suitable for Opera:

    cd ffmpeg-2.6.3
    ./configure --build-suffix='-opera' --enable-shared --disable-programs --disable-doc --disable-debug --disable-encoders --prefix=`pwd`/staging
    make install
    

    Install the libs into Opera developer (adjust the path as needed for stable or beta):

    cd staging
    find lib -name '*.so*' | sudo cpio -pvd /usr/lib64/opera-developer
    

    (You will need to restart Opera before the new libs are detected)

    You can also make a backup of these binary libs to allow you to install on your other machines:

    find lib -name '*.so*' | tar fvacJ ffmpeg-2.6.3-binaries.tar.xz -T-
    

    To install from the backup archive:

    sudo tar xf ffmpeg-2.6.3-binaries.tar.xz -C /usr/lib64/opera-developer
  • Is there any chance to make next betas to be compatible with ffmpeg 2.4.3 or when do you plan to release stable (which I hope will remain to be compatible with 2.4.3) with sidebar support ?

    This could also be a good work-around…

    Not really, as it is non-trivial to do and hence very unlikely (IMHO).

  • Why it works on FF and not on Opera ?
    Do FF buy license for h.264 ?

  • They use Openh264.

    Using the host OS to decode—for Linux that would be system FFmpeg libs—was considered to produce the best solution for the majority of Opera's desktop users, with the least effort. You should also keep in mind that all solutions are a compromise of some kind.

    Switching now to Openh264 would not be a simple undertaking and current solution does work well for many. For those of you encountering problems on Linux, I posted a work around above.

  • I have updated my blog post.

  • All paths in my post above that refer to /usr/lib64/opera-developer, should actually state /usr/lib/x86_64-linux-gnu/opera. If a moderator drops by and wants to edit and fix my posting, so much the better. In the mean time I have updated the blog post.

  • I'm bored! Here is a script that automates building the required libs.

    Note: You will still need to install a suitable build environment first, containing: autoconf, automake, gcc, gcc-c++, libtool, make, nasm, pkg-config and the zlib development support files.

Log in to reply
 

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