HTML5 MP4 (H.264/AAC) video issues with Vivaldi for Linux snapshots

If you encounter such problems with video playback on Vivaldi for Linux snapshot releases, you can use the script included with this gist to fetch a newer version of the shared library and install it into Vivaldi's installation directory (if you are a Vivaldi stable user then read this).

To run the included script, issue the following in a terminal:

sudo add-apt-repository 'deb stable main'
wget -qO- | sudo apt-key add -
sudo apt update && sudo apt install --install-recommends vivaldi-stable

Manually extract Vivaldi from the deb like so:

ar p vivaldi-stable_1.13.1008.34-1_armhf.deb data.tar.xz | tar Jx ./opt/vivaldi --strip 2

To start Vivaldi from a terminal:

# latest-Vivaldi Version 1.2
# This script will find the latest Vivaldi binary package, download it
# and repackage it into Slackware format.
# Copyright 2017 Ruari Oedegaard, Oslo, Norway All rights reserved.
# Redistribution and use of this script, with or without modification,
# is permitted provided that the following conditions are met:
case $1 in
-d) 7za e -si -so -txz ;;
*) 7za a /dev/null -si -so -txz ;;
esac 2> /dev/null

Chromium based browsers such as Vivaldi support the concept of user profiles. These are different user configurations, under a single operating system login. You could use different users profiles for home and work, or to allow a friend to use your browser without messing up your setup or interacting with your open tabs.

Vivaldi does not currently provide any user interface for switching user profiles outside of the command line switch —profile-directory= (where you pass the name of the profile). However on macOS, you can make a quick launcher application in Automator.

To setup

  • Open the (part of macOS) and create a new “Application”
  • Drag “Ask for Text” (found under “Text”) into the actions area
  • Set the “Question” to “Vivaldi Profile Name?”

This Automator folder action will monitor the Downloads folder for new dmg files and automatically unpack them into a similarly named sub directory. It requires no interaction from the user. On completion a notification will display.

As mounting and extraction happens in the background you save time, since you can continue to work. In addition with all disk image contents pre-copied to disk, moving any .app to "/Applications" is pretty much instant (or in the case of Vivaldi, you could run it in standalone mode directly from the created extraction folder).

##To setup##

  • Open the (part of macOS) and create a new "Folder Action"
  • Choose the Downloads folder
  • Drag "Run Shell Script" (found under "Utilities") into the actions area
  • Change the Pass Input drop down to "as arguments"

The following allows macOS users to run two different Vivaldi's alongside each other (e.g. stable and snapshot), with their prefences/settings stored seperately. This is also handy if you want to do an initial test of a snapshot in a self contained manor, without touching your main prefences/settings.

It works by causing launch Vivaldi in such a way that it stores its prefences/settings in a directory next it (called "Vivaldi Data"), rather than using the default prefences/settings directory ("~/Library/Application Support/Vivaldi").

To setup

  • Open the (part of macOS) and create a new "Service"
  • Change "Service receives" to: "files or folders" in "Finder"
  • Drag "Get Selected Finder Items" (found under "Files & Folders") into the actions area
  • Drag "Run Shell Script" (found under "Utilities") into the actions area below "Get Selected Finder Items" and set "Pass input" to "as arguments"
# (version 0.2)
# A script to convert a Vivaldi rpm or deb into Appimage format.
# Before you use this script, you may need to adjust the following
# variable, based on the name and location of AppImageAssistant on
# your system.
#!/usr/bin/env bash
available () {
command -v $1 >/dev/null 2>&1
# Make sure we have wget or curl
if available wget; then
SILENT_DL="wget -qO-"