Hot answers tagged

116

You can also download the mp3 directly from youtube without converting using ffmpeg youtube-dl --extract-audio --audio-format mp3 <video URL> From the online help: -x, --extract-audio convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe) Bear in mind as well that youtube-dl ...


51

I'm using Chromium Version 28.0.1500.52 Ubuntu 12.10 (28.0.1500.52-0ubuntu1.12.10.3) and faced with same issue. To solve issue you need to remove current set of chromium codecs: sudo apt-get remove chromium-codecs-ffmpeg And them install similar, but extra package: sudo apt-get install chromium-codecs-ffmpeg-extra YouTube trouble will be removed and ...


44

Use youtube-dl command to download videos straight off of YouTube. To install youtube-dl either use the Debian package manager and an appropriate PPA (source): sudo add-apt-repository ppa:nilarimogard/webupd8 -y sudo apt-get update sudo apt-get install youtube-dl or the Python package manager: sudo apt-get install pip pip install youtube-dl To ...


32

Both parts of this question (downloading in mp3 and downloading a playlist) are supported by youtube-dl: youtube-dl --extract-audio --audio-format mp3 <url to playlist> Note that older versions of youtube-dl struggle with modern playlsits. You might need to replace the repo version with the latest version.


28

Downloading from youTube Install youtube-dl from the official repository in Ubuntu: sudo apt-get install youtube-dl To download a video execute the following: youtube-dl <url> E.g youtube-dl http://www.youtube.com/watch?v=_z-hEyVQDRA You can also specify other options -b Best quality -m Mobile version -d High ...


27

Same question was asked on unix.stackexchange.com. Youtube changed something to make it incompatible with youtube-dl, it's been fixed in the latest version. Use the following to update youtube-dl until the package system gets the updated version: sudo youtube-dl -U Update As noted by sup in the comments youtube-dl is patched in Ubuntu to disable the ...


19

I assume you entered the URL correctly (no https but http, and only the v=... part, like http://www.youtube.com/watch?v=-wxawmjnRWY)? Open the Extras menu and click on Messages. Now click play again and see what message's there. My guess is it's lua error: Couldn't extract youtube video URL, please check for updates to this script VLC parses YouTube's ...


18

Try using googlecl , this tool provides a user-friendly command-line interface to some of the Google Data Protocol (gdata) APIs. You can nicely upload a video to YouTube from the command line with the command: google youtube post --category Education --devtags GoogleCL test.mp4 This will upload the video test.mp4 to your YouTube (the one you granted ...


18

You can do that with -c option. For instance, if you previously started a download using: youtube-dl <some_youtube_URL> You may, if it was stopped or interrupted, resume that download later with: youtube-dl -c <some_youtube_URL>


17

You can use Youtube-dlG, a multi-platform GUI for youtube-dl. The GUI lets you download multiple videos at once, can automatically convert downloaded videos to audio, lets you select the video quality and more. To install it in Ubuntu, you can use the main WebUpd8 PPA: sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get ...


17

Try sudo pip install --upgrade youtube-dl That will upgrade youtube-dl. If you get this message: sudo: pip: command not found try sudo apt-get install python-setuptools sudo easy_install pip sudo pip install --upgrade youtube-dl


17

First create a batch file which is a text file containing a list of URLs of videos from YouTube that you want to download. The URLs should be arranged in a list having only one URL and nothing else on each line, with a new line for each URL in the list. Save the batch file with a name that is easy to remember like batch-file.txt. If the multiple files are ...


17

The correct answer is here: http://askubuntu.com/a/316722/93826 To solve the issue you have to update the chromium ffmpeg codec to the extra version: sudo apt-get remove chromium-codecs-ffmpeg sudo apt-get install chromium-codecs-ffmpeg-extra


16

I made a little research and now I can come with the answer that is not so simple as it seems at first sight. I searched a lot on Google, and almost everything is pointing to the ~/.cache/chromium/Default folder. It’s the folder where you should find google chrome’s cache files. But there are no big flash video files (like YouTube has), just small ones. In ...


16

Note:- Old version of youtube-dl is not able to download play-list. first you know what is your youtube-dl version. To check version of Youtube-dl use command youtube-dl --version version 2014.02.17 and older version not able to download play-list. If you use older version then update it by sudo youtube-dl -U after successful update use command ...


15

This is a bug in the Flash player. The volume keys on your keyboard are handled by gnome-settings-daemon, which uses a passive grab on the volume keys. The way that X works means that an application needs to have focus in order to receive keypress events, so, what happens when you press the volume keys is that the flash player window sees a FocusOut event ...


13

Update: The better ones would be: sed 's/^.\+\(\/\|\&\|\?\)v=\([^\&]*\).*/\2/' awk 'match($0,/((\/|&|\?)v=)([^&]*)/,x){print x[3]}' grep -Po '(?<=(\/|&|\?)v=)[^&]*' # Saying match / or & then v= RFC 3986 states: URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] query = *( pchar / "/" / "?" ) fragment = *( ...


12

youtube-dl youtube-dl is a small command-line program to download videos from YouTube, Vimeo and a few more sites. It is included in the Ubuntu repositories, so you may install it by typing: sudo apt-get install youtube-dl vimeo-dl vimeo-dl is a stand-alone command-line program to download videos from Vimeo. It is not included in the Ubuntu ...


12

If you were using YouTube's HTML 5 player (as the "never ask again" in the popup suggests), the fullscreen setting is managed by Firefox (and therefore has nothing to do with Ubuntu or Gnome). Go to about:permissions (just copy it into your address bar), select www.youtube.com from the list and change the setting in the Fullscreen box.


11

I wrote a small bash script that automates the excellent solution from Radu: #!/bin/bash pidNum=$(ps ax | grep flash | grep chromium | grep -v "grep" | sed -e 's/^ *//g' -e 's/ *$//g' | tr -s " " | cut -d " " -f 1) procNum=$(ls -l /proc/${pidNum}/fd | grep Flash | tr -s " " | cut -d " " -f 9) filename=$1 if [[ "$filename" == "" ]]; then ...


11

There are really 2 questions here: Why does youtube-dl not feature in Dash? This is because youtube-dl is run from a Terminal and does not come with icons, desktop files and the like. It is simply run from any Terminal as follows: youtube-dl [options] url [url...] Details of the commandline can be easily seen by running: youtube-dl -h in any ...


10

I'm not sure that this is the right place to ask that question, since it's got nothing to do with Ubuntu (or any specific OS for that matter), BUT... Since it's already there, I might as well answer you :) A note first: Before anyone thinks that it is 'not right' to try to circumvent a rule like this, there can actually exist a number of situations when ...


10

There's a fix posted here. It seems to have done the trick for me, but I'm not 100% sure it's the same problem for you. This is a problem with Flash and its hardware acceleration, not YouTube itself. In case the above site is unavailable, here's the fix: sudo mkdir /etc/adobe echo "OverrideGPUValidation = 1" | sudo tee -a /etc/adobe/mms.cfg


10

From man youtube-dl -x, --extract-audio Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe) --audio-format FORMAT Specify audio format: "best", "aac", "vorbis", "mp3", "m4a", "opus", or "wav"; "best" by default --audio-quality QUALITY Specify ffmpeg/avconv audio quality, ...


9

vlc The stable VLC in *ubuntu 14.04 is version 2.1. To get the latest stable version: sudo add-apt-repository ppa:mc3man/trusty-media&&sudo apt-get update&&sudo apt-get install vlc can do this via a specific addon. Look up the page for instructions - among others: Installation: put the file in the vlc /lua/playlist folder, by ...


9

It turns out there is: Playing Youtube playlists using a playlist parser script for VLC Installation Instructions as per the source: download the script (or copy it and paste it in a new file with the name playlist_youtube.lua) move the file to ~/.local/share/vlc/lua/playlist/ (current user) or /usr/share/vlc/lua/playlist/ (all users) Usage Open ...


9

You can convert to audio only formats using youtube-dl itself, although it still downloads the video and then converts it. To do this, use -x or --extract-audio to the command, for example: youtube-dl -x http://www.youtube.com/watch?v=0iyeUcFKRv4&feature=c4-overview&list=UU1KPy3cAAj0i0RIFC_SzjMg


9

Youtube updates his anti-download security system quite offen. You should keep your youtube-dl up-to-date. The version Ubuntu 12.04 Precis installs by default is 2012.02.27 (two years old). You can subscribe to the WebUpd8 PPA to get new releases when they're out (that is once or twice a week) : sudo add-apt-repository ppa:nilarimogard/webupd8 -y sudo ...


8

For me the same issue, this question is asked many times, I found many solutions, none worked for me, until I swithed off the hardware accelleration in Crome. See http://www.solveyourtech.com/turn-hardware-acceleration-google-chrome/



Only top voted, non community-wiki answers of a minimum length are eligible