First post, so Hi, but anyway, am try to cut a video which has a video stream significantly shorter that the included audio tracks. I've tried this

REM Testing for loop
FOR %%m in (*.mkv) do (
REM Cut to video length
ffmpeg -i "%%m" -map 0:a? -map 0:s? -map 0:v -c:v copy -c:a copy -c:s copy -shortest "%%~nm_length.mkv"
echo ====================================================

but still end up with a video the same length and size as the original. I want the video to end when the actual video stream ends, but with all tracks just copied and no tracks dropped. I don't understand ffmpeg and am barely capable of more than copying others work. I have looked at the documentation though. Thanks.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.