Forums
ffmpeg video converter - Printable Version

+- Forums (https://zhtw.com/f)
+-- Forum: 分類 (https://zhtw.com/f/forumdisplay.php?fid=1)
+--- Forum: 軟體 Software (https://zhtw.com/f/forumdisplay.php?fid=7)
+--- Thread: ffmpeg video converter (/showthread.php?tid=63)



ffmpeg video converter - admin - 2025-07-07

download ffmpeg file from https://www.gyan.dev/ffmpeg/builds/ >> around 56m bytes
unzip it 
converter video type from mkv to mp4
碼:
ffmpeg-2025-07-01-git-11d1b71c31-full_build\bin\ffmpeg.exe -i file1.mkv file2.mp4

split video by size??

split video by time
碼:
ffmpeg -i input.mp4 -ss 00:00:00 -to 00:10:00 -c copy output1.mp4
ffmpeg -i input.mp4 -ss 00:10:00 -to 00:20:00 -c copy output2.mp4
if you don't use -c copy , it will re-encode
This is an option to trim via stream copy. (NB: Very fast)
碼:
$ ffmpeg -i source.mp4 -ss    0 -t 600  first-10-min.mp4
$ ffmpeg -i source.mp4 -ss  600 -t 600 second-10-min.mp4
$ ffmpeg -i source.mp4 -ss 1200 -t 600  third-10-min.mp4