Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable H.264 codec support for Opera browser
#!/bin/bash
# Source:
# https://forums.opera.com/topic/34659/opera-linux-browser-h-264-support-through-x264-open-source-codec
# Tested on:
# Ubuntu 18.04.3 LTS (x86_64; ubuntu:GNOME)
# Opera 62.0.3331.116
# 63.0.3368.66
# retrieve latest ffmpeg release version
URL=`curl https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/latest`
FFMPEGVER=${URL%\"*}
FFMPEGVER=${FFMPEGVER##*/}
FFMPEGZIP=${FFMPEGVER}-linux-x64.zip
# download library
curl -L -O https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/${FFMPEGVER}/${FFMPEGZIP}
unzip ${FFMPEGZIP}
rm ${FFMPEGZIP}
# overwrite opera libffmpeg
sudo mv libffmpeg.so /usr/lib/x86_64-linux-gnu/libffmpeg_h264.so
sudo mv /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so.orig
sudo ln -s /usr/lib/x86_64-linux-gnu/libffmpeg_h264.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
@mcarletti

This comment has been minimized.

Copy link
Owner Author

commented Sep 11, 2019

Need to run the script after updating Opera to ver. 63.0.3368.66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.