Categories
Web Development

Optimise video for Web using HandbrakeCLI

HandBrakeCLI -i original.mp4 -o output.mp4 --encoder x264 --vb 1800 --ab 128 --maxWidth 1920 --maxHeight 1080 --two-pass --optimize;

No Audio:

HandBrakeCLI -i original.mov -o output.mp4 --encoder x264 -q 28 --audio none --maxWidth 1920 --maxHeight 1080 --two-pass --optimize;

 

Categories
Ubuntu

Install, Remove, or Repair Spotify on Ubuntu

Install

# 1. Add the Spotify repository signing key to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886

# 2. Add the Spotify repository
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

# 3. Update list of available packages
sudo apt-get update

# 4. Install Spotify
sudo apt-get install spotify-client

Source: https://www.spotify.com/uk/download/linux/

Remove

sudo apt-get remove spotify-client 
sudo dpkg -r spotify-client

Repair

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update