Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save keunwoochoi/f0ea2c49355fc21e93dad88d210efcdd to your computer and use it in GitHub Desktop.
Save keunwoochoi/f0ea2c49355fc21e93dad88d210efcdd to your computer and use it in GitHub Desktop.

Revisions

  1. Kyle Kastner revised this gist Aug 19, 2016. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions fancy_youtube_encode.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    # Based on example here https://trac.ffmpeg.org/wiki/Encode/YouTube
    text=$(basename $1 .wav)
    ffmpeg -i $1 -filter_complex \
    "[0:a]avectorscope=s=640x518,pad=1280:720[vs]; \
    [0:a]showspectrum=mode=separate:color=intensity:scale=cbrt:s=640x518[ss]; \
    [0:a]showwaves=s=1280x202:mode=line[sw]; \
    [vs][ss]overlay=w[bg]; \
    text=$(basename $1 .wav)
    ffmpeg -i $1 -filter_complex \
    "[0:a]avectorscope=s=640x518,pad=1280:720[vs]; \
    [0:a]showspectrum=mode=separate:color=intensity:scale=cbrt:s=640x518[ss]; \
    [0:a]showwaves=s=1280x202:mode=line[sw]; \
    [vs][ss]overlay=w[bg]; \
    [bg][sw]overlay=0:H-h,drawtext=fontfile=/usr/share/fonts/truetype/fonts-japanese-gothic.ttf:fontcolor=white:x=10:y=10:text=$text[out]" \
    -map "[out]" -map 0:a -c:v libx264 -preset fast -crf 18 -c:a copy $text.mkv
    -map "[out]" -map 0:a -c:v libx264 -preset fast -crf 18 -c:a copy $text.mkv
  2. @kastnerkyle kastnerkyle created this gist Jun 16, 2016.
    9 changes: 9 additions & 0 deletions fancy_youtube_encode.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # Based on example here https://trac.ffmpeg.org/wiki/Encode/YouTube
    text=$(basename $1 .wav)
    ffmpeg -i $1 -filter_complex \
    "[0:a]avectorscope=s=640x518,pad=1280:720[vs]; \
    [0:a]showspectrum=mode=separate:color=intensity:scale=cbrt:s=640x518[ss]; \
    [0:a]showwaves=s=1280x202:mode=line[sw]; \
    [vs][ss]overlay=w[bg]; \
    [bg][sw]overlay=0:H-h,drawtext=fontfile=/usr/share/fonts/truetype/fonts-japanese-gothic.ttf:fontcolor=white:x=10:y=10:text=$text[out]" \
    -map "[out]" -map 0:a -c:v libx264 -preset fast -crf 18 -c:a copy $text.mkv