Skip to content

Instantly share code, notes, and snippets.

@ohhdemgirls
Last active March 24, 2017 17:00
Show Gist options
  • Save ohhdemgirls/914e5993c364ea1395ac0814a167f219 to your computer and use it in GitHub Desktop.
Save ohhdemgirls/914e5993c364ea1395ac0814a167f219 to your computer and use it in GitHub Desktop.

Revisions

  1. Odem revised this gist Mar 24, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion para_yt.sh
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,4 @@ if [ ! -f "$yt_list" ]; then
    exit 1
    fi

    cat $yt_list | parallel --jobs $jbs 'youtube-dl -ciw --restrict-filenames -o "%(upload_date)s-%(id)s-%(title)s.%(ext)s" --add-metadata --write-description --write-annotation --write-thumbnail -f "bestvideo[height<=720]+bestaudio/best[height<=720]" --merge-output-format "mp4" {}'
    cat $yt_list | parallel --jobs $jbs 'youtube-dl -ciw --restrict-filenames -o "%(upload_date)s-%(id)s-%(title)s.%(ext)s" --add-metadata --write-description --write-annotations --write-info-json --all-subs --write-thumbnail -f "bestvideo[height<=720]+bestaudio/best[height<=720]" --merge-output-format "mkv" {}'
  2. Odem revised this gist Mar 24, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion para_yt.sh
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,4 @@ if [ ! -f "$yt_list" ]; then
    exit 1
    fi

    cat $yt_list | parallel --jobs $jbs 'youtube-dl -ciw --restrict-filenames -o "%(upload_date)s-%(id)s-%(title)s.%(ext)s" --add-metadata --write-description --write-annotation --write-thumbnail -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' --merge-output-format "mp4" {}'
    cat $yt_list | parallel --jobs $jbs 'youtube-dl -ciw --restrict-filenames -o "%(upload_date)s-%(id)s-%(title)s.%(ext)s" --add-metadata --write-description --write-annotation --write-thumbnail -f "bestvideo[height<=720]+bestaudio/best[height<=720]" --merge-output-format "mp4" {}'
  3. Odem revised this gist Mar 24, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion para_yt.sh
    Original file line number Diff line number Diff line change
    @@ -3,10 +3,11 @@ set -e
    set -u

    yt_list="$1"
    jbs="$2"

    if [ ! -f "$yt_list" ]; then
    echo "File $yt_list is missing"
    exit 1
    fi

    cat $yt_list | parallel --jobs 12 'youtube-dl -ciw --restrict-filenames -o "%(upload_date)s-%(id)s-%(title)s.%(ext)s" --add-metadata --write-description --write-annotation --write-thumbnail -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' --merge-output-format "mp4" {}'
    cat $yt_list | parallel --jobs $jbs 'youtube-dl -ciw --restrict-filenames -o "%(upload_date)s-%(id)s-%(title)s.%(ext)s" --add-metadata --write-description --write-annotation --write-thumbnail -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' --merge-output-format "mp4" {}'
  4. Odem created this gist Mar 24, 2017.
    12 changes: 12 additions & 0 deletions para_yt.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash
    set -e
    set -u

    yt_list="$1"

    if [ ! -f "$yt_list" ]; then
    echo "File $yt_list is missing"
    exit 1
    fi

    cat $yt_list | parallel --jobs 12 'youtube-dl -ciw --restrict-filenames -o "%(upload_date)s-%(id)s-%(title)s.%(ext)s" --add-metadata --write-description --write-annotation --write-thumbnail -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' --merge-output-format "mp4" {}'