Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: Mini guide: Download high quality youtube vids suitable for your phone ...

  1. #1
    Join Date
    Dec 2006
    Beans
    7,231

    Mini guide: Download high quality youtube vids suitable for your phone ...

    ======================================
    This guide is no longer supported and
    should not be used.
    ======================================


    Like to download music videos from youtube for your phone or ipod but sick of the low quality flash video files? Many youtube videos now come with h264 video and aac sound, details of how to download these are in this 'mini guide'.

    Warning: Please check that the music video you download from youtube.com does not violate the copyright laws in your country.

    More information on the thorny topic of youtube and its policies on copyright can be found here.

    First clean out any old copies of youtube-dl and download the newest version (the version in Intrepid Ibex will not work correctly with high quality video):

    Code:
    $ sudo apt-get remove youtube-dl
    $ sudo wget http://bitbucket.org/rg3/youtube-dl/raw/2009.08.08/youtube-dl -O /usr/local/bin/youtube-dl
    $ sudo chmod +x /usr/local/bin/youtube-dl
    Now use the following syntax to download a sample high quality music video:

    Code:
    $ cd Desktop
    $ youtube-dl -b -o '%(stitle)s.%(ext)s' 'http://www.youtube.com/watch?v=doTBT46wMvA'
    And there you have it! A quick look at this particular file shows the following specs:

    Code:
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Ramstein_Du_Hast.mp4':
    Duration: 00:03:54.10, start: 0.000000, bitrate: 378 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
    Stream #0.1(und): Video: h264, yuv420p, 352x234, 25 tbr, 24.98 tbn, 24.98 tb
    Simply add the address of your own music video in place of mine and off you go. No more scratching around for flash video converters I reckon . For more details about this amazing Python script have a look at the author's website:

    youtube-dl: Download videos from YouTube.com
    http://bitbucket.org/rg3/youtube-dl/wiki/Home

    Andrew
    Last edited by andrew.46; August 21st, 2009 at 10:36 PM. Reason: Retired for good.......
    You think that's air you're breathing now?

  2. #2
    Join Date
    Jul 2007
    Location
    The Shire, Canada
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mini guide: Download high quality youtube vids suitable for your phone ...

    Sounds interesting, but what does -b -o '%(stitle)s.%(ext)s' do, and is it needed?
    Another round of Ubuntu for my friends here!
    Fighting to bring Pink back to The Pink Ponies archive.
    DELETE INSANITY!

  3. #3
    Join Date
    Dec 2006
    Beans
    7,231

    Re: Mini guide: Download high quality youtube vids suitable for your phone ...

    Hi lukjad007,

    Quote Originally Posted by lukjad007 View Post
    Sounds interesting, but what does -b -o '%(stitle)s.%(ext)s' do, and is it needed?
    Wooo hooo!! Somebody finally read my guide . Usage details are reasonably poorly documented but for the most part can be seen on the creator's website.

    The -b or --best-quality option is an alias for -f 18, or '&fmt=something' as is conventionally done. This downloads the highest quality file available from youtube.

    -o '%(stitle)s.%(ext)s' governs the name of the output file and is what the creator calls an 'output template':

    stitle: The sequence will be replaced by a simplified video title, restricted to alphanumeric characters and dashes.

    ext: The sequence will be replaced by the appropriate extension (like flv or mp4).
    A shortened form of all of this can be seen by runnning:

    Code:
    andrew@skamandros:~$ youtube-dl --help
    Usage: youtube-dl [options] url...
    
    Options:
      -h, --help            print this help text and exit
      -v, --version         print program version and exit
      -u UN, --username=UN  account username
      -p PW, --password=PW  account password
      -o TPL, --output=TPL  output filename template
      -q, --quiet           activates quiet mode
      -s, --simulate        do not download video
      -t, --title           use title in file name
      -l, --literal         use literal title in file name
      -n, --netrc           use .netrc authentication data
      -g, --get-url         simulate, quiet but print URL
      -e, --get-title       simulate, quiet but print title
      -f FMT, --format=FMT  video format code
      -b, --best-quality    alias for -f 18
      -m, --mobile-version  alias for -f 17
      -i, --ignore-errors   continue on download errors
      -r L, --rate-limit=L  download rate limit (e.g. 50k or 44.6m)
    All the best,

    Andrew
    You think that's air you're breathing now?

  4. #4
    Join Date
    Jul 2007
    Location
    The Shire, Canada
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mini guide: Download high quality youtube vids suitable for your phone ...

    Thanks! I'll do some reading. I didn't realize that youtube vids could be of any quality. Thanks for the tips.
    Another round of Ubuntu for my friends here!
    Fighting to bring Pink back to The Pink Ponies archive.
    DELETE INSANITY!

  5. #5
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,282
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Mini guide: Download high quality youtube vids suitable for your phone ...

    Quote Originally Posted by andrew.46 View Post
    Hi,

    Like to download music videos from youtube for your phone or ipod but sick of the low quality flash video files? Many youtube videos now come with h264 video and aac sound, details of how to download these are in this 'mini guide'.

    Warning: Please check that the music video you download from youtube.com does not violate the copyright laws in your country.

    More information on the thorny topic of youtube and its policies on copyright can be found here.

    First clean out any old copies of youtube-dl and download the newest version (the version in Intrepid Ibex will not work correctly with high quality video):

    Code:
    $ sudo apt-get remove youtube-dl
    $ sudo wget http://www.arrakis.es/~rggi3/youtube-dl/youtube-dl -O /usr/local/bin/youtube-dl
    $ sudo chmod +x /usr/local/bin/youtube-dl
    Now use the following syntax to download a sample high quality music video:

    Code:
    $ cd Desktop
    $ youtube-dl -b -o '%(stitle)s.%(ext)s' 'http://www.youtube.com/watch?v=4FT3mmvtpSs'
    And there you have it! A quick look at this particular file shows the following specs:

    Code:
    Duration: 00:03:45.90, start: 0.000000, bitrate: 338 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
    Stream #0.1(und): Video: h264, yuv420p, 352x264, 24.99 tb(r)
    Simply add the address of your own music video in place of mine and off you go. No more scratching around for flash video converters I reckon .

    Andrew
    awesome program! I use it all the time. I was curious as to what program you used to get the video info. I use MediaInfo to get tons of info on a video file, it's great. Your program has tons of options, is what your example shows the best way to run your program to get the best output file from youtube?

  6. #6
    Join Date
    Dec 2006
    Beans
    7,231

    Re: Mini guide: Download high quality youtube vids suitable for your phone ...

    Hi dannyboy79,

    Quote Originally Posted by dannyboy79 View Post
    awesome program! I use it all the time. I was curious as to what program you used to get the video info. I use MediaInfo to get tons of info on a video file, it's great. Your program has tons of options, is what your example shows the best way to run your program to get the best output file from youtube?
    The program I use to demonstrate the media file properties is simply FFmpeg run as:

    Code:
    $ ffmpeg -i filename.mp4
    As for the best way to use youtube-dl, that could be argued. It is very true however that most people are not aware of the extra options available with the program. These can be seen as follows:

    Code:
    andrew@skamandros~$ youtube-dl -h
    Usage: youtube-dl [options] url...
    
    Options:
      -h, --help            print this help text and exit
      -v, --version         print program version and exit
      -u UN, --username=UN  account username
      -p PW, --password=PW  account password
      -o TPL, --output=TPL  output filename template
      -q, --quiet           activates quiet mode
      -s, --simulate        do not download video
      -t, --title           use title in file name
      -l, --literal         use literal title in file name
      -n, --netrc           use .netrc authentication data
      -g, --get-url         simulate, quiet but print URL
      -e, --get-title       simulate, quiet but print title
      -f FMT, --format=FMT  video format code
      -b, --best-quality    alias for -f 18
      -m, --mobile-version  alias for -f 17
      -i, --ignore-errors   continue on download errors
      -r L, --rate-limit=L  download rate limit (e.g. 50k or 44.6m)
    All the best,

    Andrew

  7. #7
    Join Date
    Sep 2006
    Beans
    3,170
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Mini guide: Download high quality youtube vids suitable for your phone ...

    Works like a charm!!! Thanks

  8. #8
    Join Date
    Nov 2007
    Location
    Newcastle, Australia
    Beans
    117
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mini guide: Download high quality youtube vids suitable for your phone ...

    I didn't know youtube-dl existed: thanks for the info and the how-to. I'll check it out this weekend.

  9. #9
    Join Date
    Nov 2008
    Location
    San Francisco, California
    Beans
    389
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mini guide: Download high quality youtube vids suitable for your phone ...

    I tried this and I get "unable to extract "t" parameter." What am I doing wrong?

  10. #10
    Join Date
    Dec 2006
    Beans
    7,231

    Re: Mini guide: Download high quality youtube vids suitable for your phone ...

    Hi Nixie,

    Quote Originally Posted by Nixie Pixel View Post
    I tried this and I get "unable to extract "t" parameter." What am I doing wrong?
    Does the example I gave you work? :

    Code:
    youtube-dl -b -o '%(stitle)s.%(ext)s' 'http://www.youtube.com/watch?v=4FT3mmvtpSs'
    Could you give the full commandline you used + address? And I guess the results of:

    Code:
    andrew@skamandros~$ youtube-dl --version
    2008.11.01
    Thanks,

    Andrew

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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