Skip to content

Instantly share code, notes, and snippets.

@agusmakmun
Last active August 4, 2017 23:37
Show Gist options
  • Save agusmakmun/684a83411dd9918e3fca2f0e033ae378 to your computer and use it in GitHub Desktop.
Save agusmakmun/684a83411dd9918e3fca2f0e033ae378 to your computer and use it in GitHub Desktop.
Some Bash Commands
# Move all files with recursively folders into current directory
# Source: https://stackoverflow.com/a/14346005/6396981
$ find . -name '*.JPG' | xargs -I files mv files .
# Convert .mov to .mp4 file
# 1. Original, source: https://stackoverflow.com/a/12026739/6396981
$ ffmpeg -i movie.mov -vcodec copy -acodec copy out.mp4
# 2. With reduce:
$ ffmpeg -i movie.mov -b 1000000 out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment