how do i download html5 videos in ubuntu?
Depends on the site. Firefox has context menus for saving html5 video, but they don't work if the site uses a customized player. For example, if you visit http://www.mozilla.com/en-US/firefox/video/, you will be able to right-click and select the "Save video" option.
On YouTube, that won't work. In this case, click the YouTube logo in the address bar, then click "More information" in the mini popup, then click the "Media" tab in the big popup dialog, then find the video and select it, then click "Save As". Change the extension to webm before saving. Alternatively, you can copy the address and load it on some download manager like DownThemAll or wget via terminal.
However, on YouTube is simpler to use Video Download Helper.
The Simplest Way:
Just right click the Video frame that is playing the video, and select "Copy Video URL" (depending on the browser you use) and paste the link in the address bar, and the browser should ask you to save the file.
More Preferred Way:
In case you're fond of downloading the video you see, whether on YouTube (Mostly based on Flash) or any other site (in case of HTML5 videos), you have two options,
- Using download manager and add video urls (HTML 5 Videos will give you direct urls).
- Using something like Greasemonkey script that will add "Download" button underneath any video you see in YouTube (Preferred for Flash videos, as they'll not have direct links).
In case of download manager for Ubuntu, I'll recommend DownThemAll add-on for Firefox (default web browser for Ubuntu.
And for adding "Download" button in YouTube, first you'll need to install Greasemonkey in the Firefox and then, use this script to add that "awesome" button in YouTube. And good thing is that the this Greasemonkey script is available for other web browsers as well.
The Greasemonkey script mentioned in above URL doesn't work, however, I'm currently using this firefox add-on which works just fine and add pretty download button below the video frame.
With JDownloader you can download almost every kind of content available on the web. Its up-to-date addon system allows to select available quality and filetype easily (video-audio/audio only).
Not the easiest way but it's one of the most effective.
EDIT: Just discovered
youtube-dl command. Its GUI version is also available through a WebUpd8's PPA, but is not that powerful as its backend. As I said before, is one of the most powerful CLI tools to download videos from almost anywhere in the web.
It can be installed from WebUpd8's PPA:
~$ sudo add-apt-repository ppa:nilarimogard/webupd8
~$ sudo apt update
~$ sudo apt install youtube-dl
Or if you don't want to add a PPA, install latest version:
~$ sudo curl https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
~$ sudo chmod a+rx /usr/local/bin/youtube-dl
Update package without apt:
And if you want to keep its manual in a text file (recommended), type this:
~$ man youtube-dl > "youtube-dl manpage.txt"
~$ youtube-dl --help > "youtube-dl quick help.txt"
Now go to your home (~) directory and pick them up, so you can work with the reference in one hand and the terminal in the other.
protected by Community♦ Apr 24 '15 at 10:21
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?