Skip to content

Instantly share code, notes, and snippets.

@wjch
Forked from quxiaowei/bilibili.zsh
Created May 24, 2016 11:52
Show Gist options
  • Select an option

  • Save wjch/06c1f838d03255c044754c5840e8d568 to your computer and use it in GitHub Desktop.

Select an option

Save wjch/06c1f838d03255c044754c5840e8d568 to your computer and use it in GitHub Desktop.

Revisions

  1. @quxiaowei quxiaowei revised this gist May 24, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bilibili.zsh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    for i in {5..12}
    for i in {1..12}
    do
    url=http://www.bilibili.com/video/av3794937/index_$i.html
    echo $url
  2. @quxiaowei quxiaowei revised this gist May 23, 2016. No changes.
  3. @quxiaowei quxiaowei renamed this gist May 22, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @quxiaowei quxiaowei created this gist May 22, 2016.
    14 changes: 14 additions & 0 deletions zsh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    for i in {5..12}
    do
    url=http://www.bilibili.com/video/av3794937/index_$i.html
    echo $url
    youtube-dl -o "SeGmEnT-$i-%(playlist_index)s.%(ext)s" $url
    rm -f buffer_list
    touch buffer_list
    for file in $(ls SeGmEnT-$i-*.flv)
    do
    echo file "'$file'" >> buffer_list
    done
    ffmpeg -f concat -i buffer_list -c copy $i.mkv
    done
    rm -f buffer_list