Where “VIDEO_URL” is the url of the video that you want to download. To download a video file, simply run the following command.
#LINUX YOUTUBE DOWNLOAD HOW TO#
$ sudo chmod a+rx /usr/local/bin/youtube-dl How to use youtube-dl
#LINUX YOUTUBE DOWNLOAD INSTALL#
Youtube- dl it’s available on the repository of the main distribution so, if you want, you can install the package with your package manager, for Debian based distributions such as Ubuntu and Mint the command is: $ sudo apt-get install youtube-dl -yįor any Linux distribution, you can quickly install youtube –dl on your system through the command line interface with: $ sudo wget -O /usr/local/bin/youtube-dlĪfter fetching the file, you need to set a executable permission on the script to execute properly. You’ll also learn how to download YouTube video, channel or playlist of any available quality and formats from the Linux shell. In this article you’ll find how to install YouTube downloader on Ubuntu 15.04/15.10 and Mint 17 linux.
![linux youtube download linux youtube download](https://i.ytimg.com/vi/n7iyzklmfbE/maxresdefault.jpg)
It will automatically resume the unfinished download, as long as a partial download is present in the current directory. If youtube-dl is killed in the middle of downloading, you can simply re-run it with the same YouTube video url. The youtube-dl tool supports resuming interrupted downloads. ffmpeg -i video.mp4 -i audio.m4a -c:v copy -strict unofficial spherical.Youtube-dl is a small command-line program to download videos from YouTube, Dailymotion, Google Video, Photobucket, Facebook, Yahoo, Metacafe, Depositfile and a few more sites. They need to be merged with the standard compliance mode to unofficial. That tells YouTube-DL to keep the original video and audio separate. So, run this: youtube-dl -user-agent "" -k. This is because ffmpeg strips out Side data. HORRAY! But without the correct metadata.
#LINUX YOUTUBE DOWNLOAD FULL#
Now, when you download the video, you'll get the full resolution copy in equirectangular format. The fix is to pass a blank user agent: youtube-dl -user-agent "". There's a bug in YouTube which means YouTube-DL sometimes gets served up slightly weird formats.
![linux youtube download linux youtube download](http://i.ytimg.com/vi/dSL_vxfTkbo/maxresdefault.jpg)
If we want the full resolution version, we need a bit more trickery. Yeuch!īut if you play it using VLC version 3 or above, you'll be able to drag the video around. It's a weird view out of both lenses simultaneously.
![linux youtube download linux youtube download](https://i.ytimg.com/vi/XBYIhzzDjU4/maxresdefault.jpg)
If you play back the video in, say, the default Linux video player, it will look like this: That's the magic which tells a video player that this is a spherical / 360 video. If you run ffmpeg -hide_banner -i filename.mp4 then you should see this in the metadata: Side data: There are two options available to you to get the equirectangular version needed to playback easily on Linux Easy Way
![linux youtube download linux youtube download](https://i.ytimg.com/vi/QqqTfgOYsqQ/maxresdefault.jpg)
This is in Google's Equi-angular Cubemap format. If you let YouTube-DL download the "best" version, you'll end up with a video which looks like this:Įach lens' view has been horizontally stretched, and then stitched into an over/under view. You can drag the video to see all around. Here's one of mine, wandering through the Houses of Parliament. Inspired by this conversation on Mastodon