Skip to content

Instantly share code, notes, and snippets.

@VITIMan
Last active September 19, 2017 14:52
Show Gist options
  • Save VITIMan/a00290ae409ddf02169338b4afba7e06 to your computer and use it in GitHub Desktop.
Save VITIMan/a00290ae409ddf02169338b4afba7e06 to your computer and use it in GitHub Desktop.
command line

MOV to MP4

ffmpeg -i {input}.mov -vcodec h264 -acodec aac -strict -2 {output}.mp4

FLAC Splitting

shnsplit -f file.cue -t %n-%t -o flac file.flac

M4A to MP3

for f in *.m4a; do ffmpeg -i "$f" -acodec libmp3lame -ab 320k "${f%.m4a}.mp3"; done

Search for multiple extensions

find ./ -type f \( -iname \*.jpg -o -iname \*.png \)

PDF to PNG

With ImageMagick

convert -density 150 input.pdf -quality 90 output.png

TOC

  • cli_ffmpeg.md: media conversion
  • cli_find.md: find command
  • cli_images.md: image manipultation
  • cli_curl.md: curl commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment