Use the -an
flag
ffmpeg -i input.mp4 -vcodec libx264 -crf 28 output.mp4
source: https://unix.stackexchange.com/questions/28803/how-can-i-reduce-a-videos-size-with-ffmpeg
See https://github.com/WyattBlue/auto-editor
ffmpeg -i myvid.mp4 -filter_complex "[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]" myvid_faster.mp4
Source: https://superuser.com/a/1394709/47546
./ffmpeg -f image2 -framerate 25 -i scaled/frame%08d.png -i video/audio.mp3 -r 25 -vcodec libx264 -crf 16 video/upscaled.mp4
Get the framerate from the original using ffprobe.
Source: https://www.youtube.com/watch?v=juuNQju0xv4
See sample project in ~/dev/upscale_video
ffprobe myFile.mp4
ffmpeg -i video/video.mp4 frames/frame%08d.png
ffmpeg -i video.mp4 audio.mp3
ffmpeg -i myFile.mp4 -r 8 myFile.gif
brew install ffmpeg