Skip to content

Instantly share code, notes, and snippets.

@MacRusher
Created June 13, 2023 17:34
Show Gist options
  • Save MacRusher/9d6867f196a33e0b325f22f9f491f256 to your computer and use it in GitHub Desktop.
Save MacRusher/9d6867f196a33e0b325f22f9f491f256 to your computer and use it in GitHub Desktop.
Fix for Opera h264 codecs on Ubuntu
#!/usr/bin/env bash
##############################################
# Install lib before using: #
# sudo apt install -y chromium-codecs-ffmpeg #
##############################################
OPERA_PATH=/usr/lib/x86_64-linux-gnu/opera-developer
FFMPEG_PATH=/snap/chromium-ffmpeg/current/chromium-ffmpeg-111306/chromium-ffmpeg/libffmpeg.so
cp -v $OPERA_PATH/libffmpeg.so $OPERA_PATH/libffmpeg.so.$(date +%s).bak
cp -v -f $FFMPEG_PATH $OPERA_PATH/libffmpeg.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment