Last active
August 4, 2017 23:37
-
-
Save agusmakmun/684a83411dd9918e3fca2f0e033ae378 to your computer and use it in GitHub Desktop.
Some Bash Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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