Simple media processing for everyone
You can compress video using:
ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4
Run:
ffmpeg -i input.mp4 -q:a 0 -map a output.mp3
Use the copy codec:
ffmpeg -ss 00:00:30 -to 00:01:00 -i input.mp4 -c copy output.mp4
Simple command:
ffmpeg -i input.mp4 output.gif
For higher quality, add filters:
ffmpeg -i input.mp4 -vf "fps=10,scale=320:-1:flags=lanczos" output.gif
Create a text file file_list.txt
:
file 'video1.mp4'
file 'video2.mp4'
Then run:
ffmpeg -f concat -safe 0 -i file_list.txt -c copy output.mp4
Resize video to 720p:
ffmpeg -i input.mp4 -vf scale=1280:720 output.mp4
Command:
ffmpeg -i input.mp4 -an output.mp4