Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
Hello, I only found out about youtube-dl yesterday but when I tried in my ubuntu, this is the output: Code: jun@jun-laptop:~$ youtube-dl -b http://www.youtube.com/watch?v=2-5RJTf0-Jk Retrieving video webpage... done. Extracting URL ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274

    Help Using "youtube-dl"


    Hello,

    I only found out about youtube-dl yesterday but when I tried in my ubuntu, this is the output:

    Code:
    jun@jun-laptop:~$ youtube-dl -b http://www.youtube.com/watch?v=2-5RJTf0-Jk
    Retrieving video webpage... done.
    Extracting URL "t" parameter... failed.
    Error: unable to extract URL "t" parameter.
    Try again several times. It may be a temporary problem.
    Other typical problems:
    
    * Video no longer exists.
    * Video requires age confirmation but you did not provide an account.
    * You provided the account data, but it is not valid.
    * The connection was cut suddenly for some reason.
    * YouTube changed their system, and the program no longer works.
    
    Try to confirm you are able to view the video using a web browser.
    Use the same video URL and account information, if needed, with this program.
    When using a proxy, make sure http_proxy has http://host:port format.
    Try again several times and contact me if the problem persists.
    
    
    jun@jun-laptop:~$
    FWIW, the video still exists, does not need age confirmation, the connection is good. So I am left with ....I provided an invalid account data or YouTube has changed their system.

    Any thoughts please? Thank you!

    EDIT:

    SL6 output:

    Code:
    [jun@localhost ~]$ youtube-dl -b http://www.youtube.com/watch?v=2-5RJTf0-Jk
    [youtube] Setting language
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 22 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 35 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 18 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 5 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 17 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 13 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    ERROR: no known formats available for video
    [jun@localhost ~]$
    Last edited by nujinini; 05-05-2011 at 03:04 AM. Reason: Added data
    nujinini
    Linux User #489667

  2. #2
    Linux Guru
    Join Date
    Jul 2008
    Posts
    4,201
    Well. Can't help with youtube-dl as I don't use it. I use cclive instead.

  3. #3
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274
    Thanks rokytnji!

    I installed clive but it's giving me an error report w/c I don't understand


    Code:
    jun@jun-laptop:~$ sudo clive http://www.youtube.com/watch?v=pz223HRovno
    /usr/lib/python2.6/dist-packages/clive/modules.py:114: DeprecationWarning: the md5 module is deprecated; use hashlib instead
      import md5
    clive 1.0.2 20081014  [Linux]
    /usr/lib/python2.6/dist-packages/clive/cache.py:183: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
      if 'table exists already' in err.message:
    http://www.youtube.com/watch?v=pz223HRovno&fmt=18                       114.3KB
    error: extraction url (&t) not found
    error: Traceback (most recent call last):
      File "/usr/bin/clive", line 29, in <module>
        Clive().main()
      File "/usr/lib/python2.6/dist-packages/clive/main.py", line 49, in main
        Nomad().run(self._say)
      File "/usr/lib/python2.6/dist-packages/clive/nomad.py", line 96, in run
        self._check_raw_urls(raw_urls)
      File "/usr/lib/python2.6/dist-packages/clive/nomad.py", line 261, in _check_raw_urls
        self._show_queue(raw_urls)
      File "/usr/lib/python2.6/dist-packages/clive/nomad.py", line 402, in _show_queue
        Progress(None)._byteshuman(total_bytes),
      File "/usr/lib/python2.6/dist-packages/clive/progress.py", line 92, in _byteshuman
        i = int(math.floor(math.log(bytes,1024)))
    ValueError: math domain error
    
    jun@jun-laptop:~$ clive http://www.youtube.com/watch?v=pz223HRovno
    /usr/lib/python2.6/dist-packages/clive/modules.py:114: DeprecationWarning: the md5 module is deprecated; use hashlib instead
      import md5
    clive 1.0.2 20081014  [Linux]
    /usr/lib/python2.6/dist-packages/clive/cache.py:183: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
      if 'table exists already' in err.message:
    http://www.youtube.com/watch?v=pz223HRovno&fmt=18                       114.8KB
    error: extraction url (&t) not found
    error: Traceback (most recent call last):
      File "/usr/bin/clive", line 29, in <module>
        Clive().main()
      File "/usr/lib/python2.6/dist-packages/clive/main.py", line 49, in main
        Nomad().run(self._say)
      File "/usr/lib/python2.6/dist-packages/clive/nomad.py", line 96, in run
        self._check_raw_urls(raw_urls)
      File "/usr/lib/python2.6/dist-packages/clive/nomad.py", line 261, in _check_raw_urls
        self._show_queue(raw_urls)
      File "/usr/lib/python2.6/dist-packages/clive/nomad.py", line 402, in _show_queue
        Progress(None)._byteshuman(total_bytes),
      File "/usr/lib/python2.6/dist-packages/clive/progress.py", line 92, in _byteshuman
        i = int(mat
    h.floor(math.log(bytes,1024)))
    ValueError: math domain error

    jun@jun-laptop:~$
    nujinini
    Linux User #489667

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I've never used a youtube downloader, but I checked out youtube-dl and it worked for me using
    Code:
    youtube-dl http://www.youtube.com/watch?v=2-5RJTf0-Jk
    The version in the Arch repos doesn't list a -b flag, so I suspect you're using an older version and the last reason listed "YouTube changed their system, and the program no longer works.", is probably the issue.

    What is the output of
    Code:
    youtube-dl -v
    You should be able to update to the latest version with
    Code:
    sudo youtube-dl -U

  6. #5
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274
    Hello reed9,


    Code:
    jun@jun-laptop:~$ youtube-dl -v
    2008.03.22
    jun@jun-laptop:~$ sudo youtube-dl -U
    [sudo] password for jun: 
    Usage: youtube-dl [options] video_url
    
    youtube-dl: error: no such option: -U
    jun@jun-laptop:~
    $


    I checked the manual and in my version there is no "-U" option fyi.
    nujinini
    Linux User #489667

  7. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I guess the older version doesn't have that option. Which version of Ubuntu is this? From the date on youtube-dl, I'd say Hardy?

    Looks like the updated version needs at least Python 2.5, Hardy is 2.4. Without updating to a more recent Ubuntu version, I think you're out of luck there.

    Presumably your clive issues are related to the same. Might be time to consider an upgrade?

  8. #7
    Linux Guru
    Join Date
    Jul 2008
    Posts
    4,201
    Your command nuj differs from mine. Mine is cclive. Not clive. Not sure why either.

    Edit: I run it as user also. No need for su,sudo,sux either to run it for me. I run Debian Testing repos though with Liqourix Sid repos thrown in. So the python reed9 is probably
    relevant. your issue. I am currently backing up some files in AntiX 8.5 and am in Puppy 5.2. So I can't post python version I have.

    Going to be doing a pendrive install of AntiX 11 over writing my AntiX 8.5 install on this IBM A22m 256 mb laptop (hence the backups). Found that my old PLOP boot manager floppy and AntiX 11 pendrive work well together.

    I've been running 8.5 as a rolling release. But the new 11 has a newer kernel and tools that were not included in 8.5. Like a inxi gtk gui tool and qmmp instead of xmms for music and wheezy based with latest libs. So going for reinstall and just re insert my backups.
    Last edited by rokytnji; 05-06-2011 at 06:38 PM.

  9. #8
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Quote Originally Posted by rokytnji View Post
    Your command nuj differs from mine. Mine is cclive. Not clive. Not sure why either.
    Different apps? Arch has a clive package and a cclive package, with links to different but similar looking websites.

  10. #9
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274
    Quote Originally Posted by reed9 View Post
    I guess the older version doesn't have that option. Which version of Ubuntu is this? From the date on youtube-dl, I'd say Hardy?

    Looks like the updated version needs at least Python 2.5, Hardy is 2.4. Without updating to a more recent Ubuntu version, I think you're out of luck there.

    Presumably your clive issues are related to the same. Might be time to consider an upgrade?
    I'm using a Jaunty.

    Code:
    jun@jun-laptop:~$ uname -a
    Linux jun-laptop 2.6.28-19-generic #66-Ubuntu SMP Sat Oct 16 17:39:04 UTC 2010 i686 GNU/Linux
    jun@jun-laptop:~$

    Code:
    root@jun-laptop:/home/jun# python
    Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
    [GCC 4.3.3] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    I tried to use youtube-dl in SL6 oo but got an error report FWIW.

    Code:
    [jun@localhost ~]$ youtube-dl -b http://www.youtube.com/watch?v=2-5RJTf0-Jk
    [youtube] Setting language
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 22 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 35 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 18 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 5 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 17 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    [youtube] 2-5RJTf0-Jk: Format 13 not available
    [youtube] 2-5RJTf0-Jk: Downloading video info webpage
    [youtube] 2-5RJTf0-Jk: Extracting video information
    ERROR: no known formats available for video
    [jun@localhost ~]$
    nujinini
    Linux User #489667

  11. #10
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274
    Quote Originally Posted by rokytnji View Post
    Your command nuj differs from mine. Mine is cclive. Not clive. Not sure why either.

    Edit: I run it as user also. No need for su,sudo,sux either to run it for me. I run Debian Testing repos though with Liqourix Sid repos thrown in. So the python reed9 is probably
    relevant. your issue. I am currently backing up some files in AntiX 8.5 and am in Puppy 5.2. So I can't post python version I have.

    Going to be doing a pendrive install of AntiX 11 over writing my AntiX 8.5 install on this IBM A22m 256 mb laptop (hence the backups). Found that my old PLOP boot manager floppy and AntiX 11 pendrive work well together.

    I've been running 8.5 as a rolling release. But the new 11 has a newer kernel and tools that were not included in 8.5. Like a inxi gtk gui tool and qmmp instead of xmms for music and wheezy based with latest libs. So going for reinstall and just re insert my backups.
    Thanks rok,

    I tried to get cclive too but:

    Code:
    jun@jun-laptop:~$ cclive http://www.youtube.com/watch?v=PadVnIXBSow
    bash: cclive: command not found
    jun@jun-laptop:~$ sudo aptitude install cclive
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Reading extended state information      
    Initializing package states... Done
    Couldn't find any package whose name or description matched "cclive"
    Couldn't find any package whose name or description matched "cclive"
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
    Need to get 0B of archives. After unpacking 0B will be used.
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Reading extended state information      
    Initializing package states... Done
    
    jun@jun-laptop:~$
    nujinini
    Linux User #489667

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •