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.

html5 video download

  • WHOA! How did you get your Firefox button to be orange? – Oxwivi Jun 26 '11 at 17:12
  • @Oxwivi, I use this add-on (with compatibility check disabled for Firefox 5): addons.mozilla.org/en-us/firefox/addon/themed-button-for-linux – lovinglinux Jun 27 '11 at 12:58
  • Ah, I was linked to that when I asked about Firefox button earlier on AU. Unrelated, but since you do stuff with Firefox, can you take a look at this? Thanks. – Oxwivi Jun 27 '11 at 13:03
  • @Oxwivi, just posted the solution there. – lovinglinux Jun 27 '11 at 13:46
  • 1
    No longer works. Nothing happens when I try to "save as..." in the media tab, copying the URL and trying with wget returns "HTTP 404". – Tomislav Nakic-Alfirevic May 22 '16 at 16:18

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,

  1. Using download manager and add video urls (HTML 5 Videos will give you direct urls).
  2. 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.

  • When using the URL retrieved by "Copy Video URL", you now get a link to the youtube page, not the video. DownThemAll doesn't mention video or youtube downloads among their feature descriptions. The Greasemonkey script page comes up blank. – Tomislav Nakic-Alfirevic May 22 '16 at 16:30
  • @TomislavNakic-Alfirevic This is a 5 year old thread so possibly that URL is dead, I've updated my answer to be helpful though. – Kushal May 23 '16 at 9:50

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:

youtube-dl -U

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?

Not the answer you're looking for? Browse other questions tagged or ask your own question.