i'm using this command to cut a segment from a video from command line
ffmpeg -i %1 -vcodec copy -acodec copy -ss %2 -t %3 %~n1_cut%~x1
and i call it like
cut.bat video.mp4 001:23:45:678 10
and as expected i get a video_cut.mp4 with 10 seconds of the original video, problem is that few seconds of the resulting file is black screen with audio, why does this happen and how do i fix it?
%~n1
expands %1 to a file Name, or if only a path is present (with no trailing backslash) - the last folder in that path and%~x1
expands %1 to a file eXtension only - .txt source:superuser.com/questions/224416/…