Skip to content

Instantly share code, notes, and snippets.

@igrigorik
Created July 20, 2012 05:24
Show Gist options
  • Save igrigorik/3148848 to your computer and use it in GitHub Desktop.
Save igrigorik/3148848 to your computer and use it in GitHub Desktop.

Revisions

  1. igrigorik revised this gist Jul 20, 2012. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.c
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@
    # http://rg3.github.com/youtube-dl/

    { ~ } > brew install ffmpeg
    { ~ } > brew install ffprobe

    { ~ } > wget https://raw.github.com/rg3/youtube-dl/2012.02.27/youtube-dl
    { ~ } > chmod u+x youtube-dl
  2. igrigorik renamed this gist Jul 20, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. igrigorik renamed this gist Jul 20, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. igrigorik renamed this gist Jul 20, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. igrigorik revised this gist Jul 20, 2012. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,13 @@
    # we'll be using: http://rg3.github.com/youtube-dl/
    # Convert any YouTube video into an audio file you can listen to on the go, using:
    # http://rg3.github.com/youtube-dl/

    { ~ } > brew install ffmpeg
    { ~ } > brew install ffprobe

    { ~ } > wget https://raw.github.com/rg3/youtube-dl/2012.02.27/youtube-dl
    { ~ } > chmod u+x youtube-dl

    # Pick which video format you want to download..
    # Pick which video format you want to download.. (use any YT video link)
    { ~ } > ./youtube-dl -s -F http://www.youtube.com/watch?v=vT1KmTQ-1Os

    [youtube] Setting language
  6. igrigorik revised this gist Jul 20, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # we'll be using: http://rg3.github.com/youtube-dl/

    { ~ } > brew install ffmpeg
    { ~ } > brew install ffprobe

  7. igrigorik created this gist Jul 20, 2012.
    38 changes: 38 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    { ~ } > brew install ffmpeg
    { ~ } > brew install ffprobe

    { ~ } > wget https://raw.github.com/rg3/youtube-dl/2012.02.27/youtube-dl
    { ~ } > chmod u+x youtube-dl

    # Pick which video format you want to download..
    { ~ } > ./youtube-dl -s -F http://www.youtube.com/watch?v=vT1KmTQ-1Os

    [youtube] Setting language
    [youtube] vT1KmTQ-1Os: Downloading video webpage
    [youtube] vT1KmTQ-1Os: Downloading video info webpage
    [youtube] vT1KmTQ-1Os: Extracting video information
    Available formats:
    22 : mp4 [720x1280]
    45 : webm [720x1280]
    35 : flv [480x854]
    44 : webm [480x854]
    34 : flv [360x640]
    18 : mp4 [360x640]
    43 : webm [360x640]
    5 : flv [240x400]
    17 : mp4 [144x176]

    # Extract audio track from video
    { ~ } > ./youtube-dl -f 5 --extract-audio http://www.youtube.com/watch?v=vT1KmTQ-1Os

    [youtube] Setting language
    [youtube] vT1KmTQ-1Os: Downloading video webpage
    [youtube] vT1KmTQ-1Os: Downloading video info webpage
    [youtube] vT1KmTQ-1Os: Extracting video information
    [download] Destination: vT1KmTQ-1Os.flv
    [download] 100.0% of 74.36M at 43.23k/s ETA 00:00
    [ffmpeg] Destination: vT1KmTQ-1Os.mp3

    { ~ } > open vT1KmTQ-1Os.mp3

    # woot.