Skip to content

Instantly share code, notes, and snippets.

@mrshannonyoung
Last active May 12, 2022 20:30
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 mrshannonyoung/8da60bf671306d907e4789ba44f0a79a to your computer and use it in GitHub Desktop.
Save mrshannonyoung/8da60bf671306d907e4789ba44f0a79a to your computer and use it in GitHub Desktop.
Useful commands

Commands

Useful commands for: https://github.com/iheanyi/bandcamp-dl

Get album

bandcamp-dl -f -k -r -u -y --base-dir=/Volumes/BACKUP/MUSIC --template="%{artist} - %{album}/%{track} - %{title}" https://mogigrumbles.bandcamp.com/album/end-of-line
  • -f → Download only if all tracks are available.
  • -k → Retain whitespace in filenames.
  • -r → Embed album art (If available).
  • -u → Retain uppercase letters in filenames.
  • -y → Disable slugification of track, album, and artist names.

Commands

Convert to .webm

ffmpeg -i X6af3MfsFW.mp4 -c:v vp9 X6af3MfsFW.webm

Get screenshot from a certain timestamp as JPG

Take a screenshot at ~45 seconds with a JPG quality of 3 †

† Range is 2-31. Lower value is higher quality.

ffmpeg -ss 45 -i X6af3MfsFW.mp4 -frames:v 1 -q:v 3 X6af3MfsFW.jpg

Reduce mp4 file-size

ffmpeg -i X6af3MfsFW.mp4 -crf 28 -preset fast output2.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment