Skip to content

Instantly share code, notes, and snippets.

@metaxy
Last active July 19, 2022 07:17
Show Gist options
  • Save metaxy/8649400e376a463cb576f7da3335cff6 to your computer and use it in GitHub Desktop.
Save metaxy/8649400e376a463cb576f7da3335cff6 to your computer and use it in GitHub Desktop.
Create clips

Download

vs() { yt-dlp -f "bv*+ba" --downloader ffmpeg --external-downloader-args "ffmpeg_i:-ss $1 -to $2" "${@:3}" -o "%(title)s.%(ext)s"; }
vs 00:10:17 00:11:08 https://www.youtube.com/watch?v=foo

Improve Audio

function 4toflac() {
        ffmpeg -i "$1" -vn "$1.flac"
}

function flacto4() {
        ffmpeg -i "$2" -i "$1" -vcodec copy -map 0:0 -map 1:0 "$2.mp4"
}
4toflac "vodep.mp4"

Edit with audacity. Save as flac.

flacto4 ""vodep.mp4" "vodep.mp4.flac"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment