Home Converting with ffmpeg
Post
Cancel

Converting with ffmpeg

Convert mp4 to mkv

1
ffmpeg -i input.mp4 -codec copy output.mkv

Tip: To convert all MP4 files in the current directory, run a simple loop in terminal:

1
2
3
for i in *.mp4; do
    ffmpeg -i "$i" -codec copy "${i%.*}.mkv"
done

Cut using a specific time

1
ffmpeg -i input.mp4 -ss 00:05:10 -to 00:15:30 -c:v copy -c:a copy output2.mp4
This post is licensed under CC BY 4.0 by the author.