Find the answer to your Linux question:
Results 1 to 5 of 5
Hi everyone I installed youtube downloader and when I type in terminal: youtube-dl and here the link of the video I get this: ERROR: unable to download video (format may ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    4

    YouTube downloader problem


    Hi everyone

    I installed youtube downloader and when I type in terminal:

    youtube-dl and here the link of the video

    I get this:


    ERROR: unable to download video (format may not be available)


    Who knows how to fix this?

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,756
    Google?

    [HOWTO] Modify youtube-dl to make it bandwidth friendly by adding option to download lowest quality video | The _khAttAm_ blog

    That will download video with format code 34 if available. 34 is 360p flv format. You will need to know the formats to be able to use this options and all this information is available in Youtube Wikipedia Article. If the format you requested is not available, it will print the message:

    ERROR: unable to download video (format may not be available)
    So I assume the default format being requested is NOT AVAILABLE for that video. Try another format or another video.

  3. #3
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Desert
    Posts
    4,120
    I have good luck using cclive in AntiX.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way. I Have a Masters in Raising Hell
    Tech Books
    Free Linux Books
    Newbie Guide
    Courses at Home

  4. #4
    Just Joined! TTIO's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    80
    You could also try a website like KeepVid, which will give you a list of all of the formats they have. You can't do it using the CLI, but still... :P

  5. #5
    Just Joined!
    Join Date
    Apr 2011
    Posts
    4
    I tryed to edit gksu gedit /usr/bin/youtube-dl ,lines 938,939,940,941,942,943.
    When I try to download the video,I get this error:



    File "/usr/bin/youtube-dl", line 909
    video_url_list = [(existing_formats[0], get_video_template % existing_formats[0])] # Best quality
    ^
    IndentationError: expected an indented block

    I edited the lines as was writen on the tutorial HROAdmin26 gaved me.

Posting Permissions

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