About
SaveTube is a JavaScript application that allows downloading videos from video sharing web sites by adding on the bottom right of the page window a menu with all formats and definitions of the video. Below are all supported sites. There is an extra script that gets all video streams from an web page.


Sites
The main video sharing web sites on which you can watch videos using SaveTube.



Installation
Installation
Read the following information on how to install the script in different browsers.


Firefox
To work in Firefox based browsers the script has to be installed with one of Greasemonkey, Tampermonkey or Violentmonkey add-ons from Mozilla Add-ons. Or install the SaveTube add-on from Mozilla Add-ons or manually download and install it from here.

Chromium
To work in Chromium based browsers the script has to be downloaded then dragged and dropped in the extensions page or installed with the Tampermonkey or Violentmonkey extension from Chrome Web Store. Or manually download and install the SaveTube extension from here.

Epiphany
To work in Epiphany (Gnome Web) it is required to install the Greasemonkey extension from Epiphany extensions.

Midori
To work in Midori it is required to enable the User Addons extension.

Falkon
To work in Falkon (QupZilla) it is required to enable the GreaseMonkey extension.

Opera
To work in Opera the script has to be downloaded then dragged and dropped in the extensions page or installed with the Tampermonkey or Violentmonkey extension from Opera Add-ons. Or manually download and install the SaveTube extension from here.

Maxthon
To work in Maxthon it is require to install the SaveTube extension or to install the script in the Violentmonkey extension.

Safari
To work in Safari it is required to install one of GreaseKit, NinjaKit or Tampermonkey.



Usage
Usage
Read the following information on how to use the script.

Select the video from the menu or use the options buttons to select the preferred video definition and container. Click the 'Get' button, then 'Link'. The browser will show the open popup window. Some browsers don't have this feature and will open the video in the current window, for these right click 'Link' and 'Save link as'.

DASH
Some sites use DASH streams, which are audio only and video only. These are shown in brown in the videos menu. Download both streams and use an external tool to multiplex them. This can be made automatic, click 'MD' to enable DASH download support and the videos menu will show new videos in red. You can download these using a browser protocol and an external script, read below for more details.

Options

Autoget
Click 'AG' button to turn autoget on/off. If it's on, the video download will start when the video page is loaded or when a new video format is selected. This works for HD/MP4 YouTube videos only.

Definition (SD, HD etc)
Click this button to change the default video definition.

Container (MP4, WebM etc)
Click this button to change the default video container.

MPEG-DASH (MD)
Click this button to enable/disable MPEG-DASH streams (video with audio) download. It requires an external application for muxing the audio and video streams



Linux
How to download DASH videos on Linux and BSD platforms:

1 Create the savetube script, bash example using ffmpeg for audio and video streams multiplexing

savetube.sh
#! /bin/bash

d="/home/Video/YouTube"
t="$(echo "$1" | awk -F 'SEPARATOR' '{print $1}' | sed -e "s/savetube://" | sed -e "s/%20/ /g" -e "s/ +$//" -e "s/^ +//")"
v="$(echo "$1" | awk -F 'SEPARATOR' '{print $2}')"
a="$(echo "$1" | awk -F 'SEPARATOR' '{print $3}')"
f="$(echo "$v" | grep -q "video/mp4\|\.mp4" && echo "mp4" || echo "webm")"
ffmpeg -i "$v" -i "$a" -c:v copy -c:a copy "$d/$t.$f"


2 Create the savetube protocol file in ~/.local/share/applications

savetube.desktop
[Desktop Entry]
Name=SaveTube Protocol
Exec=/path/to/savetube.sh %u
Type=Application
Terminal=false
MimeType=x-scheme-handler/savetube


Enable protocol:
xdg-mime default savetube.desktop x-scheme-handler/savetube


Test:
xdg-open savetube:http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4


3 Activate the protocol

Click here to associate the script to the protocol