Skip to content

Instantly share code, notes, and snippets.

@ayosec
Created January 1, 2021 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayosec/b884dec109b9f91d4f18d810be8c9443 to your computer and use it in GitHub Desktop.
Save ayosec/b884dec109b9f91d4f18d810be8c9443 to your computer and use it in GitHub Desktop.
#!/bin/bash
ffmpeg -ss 4:00:00 -i INPUT.webm -filter:a volume=0.5 half-volume.webm
ffmpeg -i INPUT.webm -t 4:00:00 -c copy start.webm
cat > files <<EOF
file 'start.webm'
file 'half-volume.webm'
EOF
ffmpeg -f concat -i files -c copy INPUT--half-volume-after-4H.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment