LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2016, 05:27 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
youtube-dl replacement


Can someone recommend a replacement for youtube-dl? In years gone by it was the standard for fetching youtube videos but nowadays more often than not it fails.

So far, my researches have revealed that every program that claims to be a youtube-downloader ends up being merely a front-end for youtube-dl. Specific example: LXer. Does anyone know of a working program that shares no code with youtube-dl?

Thank you in advance.
 
Old 10-29-2016, 05:57 PM   #2
tux111
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Xubuntu
Posts: 81

Rep: Reputation: Disabled
youtube-dl is still working without any issues here. Do you use the most recent versions? Why is it failing?
 
Old 10-29-2016, 06:01 PM   #3
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Quote:
Originally Posted by jr_bob_dobbs View Post
Can someone recommend a replacement for youtube-dl? In years gone by it was the standard for fetching youtube videos but nowadays more often than not it fails.

So far, my researches have revealed that every program that claims to be a youtube-downloader ends up being merely a front-end for youtube-dl. Specific example: LXer. Does anyone know of a working program that shares no code with youtube-dl?

Thank you in advance.
Hi jr_bob_dobbs
I use 'Download Youtube Videos as MP4' extension/add-on under Firefox 49. It provides a 'download' clickable underneath any video that you queue up. It gives you a choice of quality. Just nice and simple. See attached picture.
Attached Thumbnails
Click image for larger version

Name:	2016-10-29-16-00-02.png
Views:	61
Size:	107.2 KB
ID:	23401  
 
Old 10-29-2016, 11:19 PM   #4
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
youtube-dl works great. Can you provide the error message and ensure it is updated?
 
Old 10-30-2016, 07:19 AM   #5
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,124
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
What about livestreamer? Downloads live and non-live videos from various websites.

Code:
livestreamer "https://www.youtube.com/watch?v=VsmVwOq4mIA" best -o "Eisbrecher - Ozean.mp4"
[cli][info] Found matching plugin youtube for URL https://www.youtube.com/watch?v=VsmVwOq4mIA
[cli][info] Available streams: 144p (worst), 240p, 360p, 720p (best), audio_mp4, audio_webm
[cli][info] Opening stream: 720p (http)
[download][Eisbrecher - Ozean.mp4] Written 3.5 MB (0s @ 7.0 MB/s)
[cli][info] Stream ended

However, it currently does not work with Youtube's protected videos:
Code:
livestreamer "https://www.youtube.com/watch?v=E1mU6h4Xdxc/" best -o "Rihanna - Disturbia.mp4"
[cli][info] Found matching plugin youtube for URL https://www.youtube.com/watch?v=E1mU6h4Xdxc/
error: This plugin does not support protected videos, try youtube-dl instead
 
Old 10-30-2016, 11:49 AM   #6
pressman57
Member
 
Registered: Feb 2005
Location: Escondido Ca.
Distribution: Arch
Posts: 118

Rep: Reputation: 29
I'm on Arch and an update seems to come out for youtube-dl every couple of days.
 
Old 10-30-2016, 04:19 PM   #7
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,110
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Code:
~$ cclive https://www.youtube.com/watch?v=VdV1Zc_PFdg
Checking ... ........ ...... MARILYN MANSON THIRD DAY OF A SEVEN DAY BINGE.  0.00M  []
[--------------------------------------------------]    3.8M  71.4K/s  -00:00:53
YMMV from mine though. Kinda like replica9000 mentioned.
 
Old 10-30-2016, 06:10 PM   #8
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by Sefyir View Post
youtube-dl works great. Can you provide the error message and ensure it is updated?
Sure.

Code:
$ youtube-dl --no-mtime -t --restrict-filenames "https://www.youtube.com/watch?v=u_tORtmKIjE"https://www.youtube.com/watch?v=u_tORtmKIjE"
[youtube] u_tORtmKIjE: Downloading webpage
[youtube] u_tORtmKIjE: Downloading video info webpage
[youtube] u_tORtmKIjE: Extracting video information
[youtube] u_tORtmKIjE: Downloading js player en_US-vflG26Hhi
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/home/bob/youtube-dl/youtube_dl/extractor/youtube.py", line 1005, in _decrypt_signature
    video_id, player_url, s
  File "/home/bob/youtube-dl/youtube_dl/extractor/youtube.py", line 919, in _extract_signature_function
    errnote='Download of %s failed' % player_url)
  File "/home/bob/youtube-dl/youtube_dl/extractor/common.py", line 516, in _download_webpage
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)
  File "/home/bob/youtube-dl/youtube_dl/extractor/common.py", line 423, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
  File "/home/bob/youtube-dl/youtube_dl/extractor/common.py", line 412, in _request_webpage
    raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
ExtractorError: Download of https://s.ytimg.com/yts/jsbin/player-en_US-vflG26Hhi/base.js failed: <urlopen error [Errno 111] Connection refused> (caused by URLError(error(111, 'Connection refused'),))
 (caused by ExtractorError(u"Download of https://s.ytimg.com/yts/jsbin/player-en_US-vflG26Hhi/base.js failed: <urlopen error [Errno 111] Connection refused> (caused by URLError(error(111, 'Connection refused'),))",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
$
When youtube-dl fails, it's always the same error.

Every few days I use the
Code:
youtube-dl --update
method of update.

Getting back on topic:

@replica9000: thanks for the suggestion for livestreamer.
@rokytnji: thanks for the suggestion for cclive.
I will be giving those a try.
 
Old 10-30-2016, 07:37 PM   #9
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Quote:
Sure.
Thanks
Worked fine here (see bottom of post). Based on what I'm reading - it seems like it's not updated, even though you say you're updating it. Check the current installed version with youtube --version? As of this post, it should be 2016.10.31
Feel free to search for alternatives, but I don't think
Quote:
In years gone by it was the standard for fetching youtube videos but nowadays more often than not it fails."
applies just yet for everyone. I've yet to have youtube-dl fail for any reason after ensuring I updated and I use it very frequently for a wide variety of sites.
If you're interested in trying to get it fixed, feel free to report it as a issue by running the command with --verbose and copying the output there
https://github.com/rg3/youtube-dl/issues
Good luck!

Code:
$ youtube-dl --version
2016.10.21.1
$ youtube-dl --no-mtime -t --restrict-filenames "https://www.youtube.com/watch?v=u_tORtmKIjE"
[youtube] u_tORtmKIjE: Downloading webpage
[youtube] u_tORtmKIjE: Downloading video info webpage
[youtube] u_tORtmKIjE: Extracting video information
[download] Destination: The_Bard_s_Song_Studio-u_tORtmKIjE.f243.webm
[download] 100% of 5.77MiB in 00:03
[download] Destination: The_Bard_s_Song_Studio-u_tORtmKIjE.f251.webm
[download] 100% of 3.50MiB in 00:01
[ffmpeg] Merging formats into "The_Bard_s_Song_Studio-u_tORtmKIjE.webm"
Deleting original file The_Bard_s_Song_Studio-u_tORtmKIjE.f243.webm (pass -k to keep)
Deleting original file The_Bard_s_Song_Studio-u_tORtmKIjE.f251.webm (pass -k to keep)

Last edited by Sefyir; 10-30-2016 at 07:39 PM.
 
Old 10-30-2016, 08:25 PM   #10
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,110
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Going by your posting profile

http://bedrocklinux.org/

I just did this in a ubuntu based distro. The update instructions seem to me to be universal in linux

Code:
harry@harry-Latitude-XT2:~$ sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
[sudo] password for harry: 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     3    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
  0     3    0     0    0     0      0      0 --:--:--  0:00:07 --:--:--     0
  0     0    0   582    0     0     72      0 --:--:--  0:00:08 --:--:--  1841
100 1357k  100 1357k    0     0   107k      0  0:00:12  0:00:12 --:--:--  333k
harry@harry-Latitude-XT2:~$ sudo chmod a+rx /usr/local/bin/youtube-dl
harry@harry-Latitude-XT2:~$ apt-cache policy youtube-dl
youtube-dl:
  Installed: 2014.02.17-1
  Candidate: 2014.02.17-1
  Version table:
 *** 2014.02.17-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
        100 /var/lib/dpkg/status
harry@harry-Latitude-XT2:~$ youtube-dl --version
2016.10.31
harry@harry-Latitude-XT2:~$
My package manager shows the older 2014 version. But after I ran the the commands from here.
https://rg3.github.io/youtube-dl/download.html

You can see my version is now showing newer in youtube-dl --version.

Just showing this in case it helps in Bedrock linux.
 
Old 10-30-2016, 08:35 PM   #11
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,110
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Funny, it is complaining about my avconvert version now. But the video file made it into my /home/username OK.

Code:
harry@harry-Latitude-XT2:~$ youtube-dl https://www.youtube.com/watch?v=RrxePKps87k
[youtube] RrxePKps87k: Downloading webpage
[youtube] RrxePKps87k: Downloading video info webpage
[youtube] RrxePKps87k: Extracting video information
[youtube] RrxePKps87k: Downloading js player en_US-vflG26Hhi
WARNING: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will download single file media. Update avconv to version 10-0 or newer to fix this.
[download] Destination: Nick Cave & The Bad Seeds - Red Right Hand-RrxePKps87k.webm
[download] 100% of 16.72MiB in 01:1
 
Old 10-31-2016, 08:03 AM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I just use a firefox add-on and when I see a you tube vid I like I click on that and download it.
 
Old 10-31-2016, 09:46 AM   #13
bat999
LQ Newbie
 
Registered: Sep 2013
Location: UK
Distribution: Linux Mint 18 "Sarah" - Xfce (64-bit)
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by rokytnji View Post
Funny, it is complaining about my avconvert version now...
WARNING: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will download single file media. Update avconv to version 10-0 or newer to fix this.
You can probably cure that with...
Code:
--prefer-ffmpeg --ffmpeg-location PATH
There are static versions of FFmpeg at https://johnvansickle.com/ffmpeg/
 
1 members found this post helpful.
Old 10-31-2016, 12:41 PM   #14
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
There is the Ant Video add on for Firefox!
 
Old 10-31-2016, 01:39 PM   #15
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Just go into your add-on page type in "download" in the search bar text box and hit enter and their are LOADS of add ons for downloading yourtube vids
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Youtube-DL A Command-Line & GUI Youtube, Facebook, Dailymotion Videos Downloading Tool For Li LXer Syndicated Linux News 0 10-11-2015 02:51 PM
LXer: youtube-dl – download Youtube videos from linux command Line LXer Syndicated Linux News 0 06-24-2014 12:11 PM
LXer: Youtube Downloader (youtube-dl) Helper Script LXer Syndicated Linux News 0 09-28-2013 01:50 PM
LXer: Search YouTube videos on Ubuntu with the YouTube Lens LXer Syndicated Linux News 0 12-30-2011 08:40 PM
LXer: Youtube-dl - Download videos from Youtube in openSUSE LXer Syndicated Linux News 1 08-14-2008 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration