Hello
I tried the following command to split an MP4 video exactly, which means re-encoding the video stream, while keeping the audio as-is since it was good enough:
Even though I used the "-shortest" option, ffmpeg keeps going past the length of the video (which is about 15mn, and I stopped ffmpeg at around 23mn).
Does someone why, and if there's a way to avoid needlessly re-encoding the audio stream as well?
Thank you.
--
Edit : I tried the "-to" option introduced in 2013, to no avail:
I tried the following command to split an MP4 video exactly, which means re-encoding the video stream, while keeping the audio as-is since it was good enough:
Code:
ffmpeg -ss 02:34:48 -i input.mp4 -b:v 200k -t 02:51:40 -c:v libx264 -vf scale=640:-1 -pix_fmt yuv420p -c:a copy -shortest -threads 2 -crf 20 -f mp4 output.mp4
Does someone why, and if there's a way to avoid needlessly re-encoding the audio stream as well?
Thank you.
--
Edit : I tried the "-to" option introduced in 2013, to no avail:
Code:
ffmpeg -ss 02:34:48 -i input.mp4 -b:v 200k -to 02:51:40