Last active
January 11, 2021 21:54
-
-
Save dannylloyd/9e5bd0a57dde5929b5b2badf8f01f591 to your computer and use it in GitHub Desktop.
ffmpeg 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
#Cut/Edit video | |
# input file start end output file | |
#ffmpeg -i inputfilename.mp4 -ss 00:00:03 -t 00:00:08 -async 1 outputfilename.mp4 | |
#Combine videos into single file | |
# pathToVideos | |
for f in Videos/*; do echo "file '$f'"; done >> files.txt | |
./ffmpeg -f concat -safe 0 -i files.txt -c copy output.mp4 | |
rm files. | |
#can run this if the console supports substitution | |
ffmpeg -f concat -safe 0 -i <(for f in ./*.wav; do echo "file '$PWD/$f'"; done) -c copy output.wav | |
#Resize videos source: https://unix.stackexchange.com/questions/28803/how-can-i-reduce-a-videos-size-with-ffmpeg | |
ffmpeg -i input.mkv -vf "scale=iw/2:ih/2" half_the_frame_size.mkv | |
ffmpeg -i input.mkv -vf "scale=iw/3:ih/3" a_third_the_frame_size.mkv | |
ffmpeg -i input.mkv -vf "scale=iw/4:ih/4" a_fourth_the_frame_size.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment