Ffmpeg video segmenting

Hello.
How can I get the command to work with MP4 videos? It works correctly with all videos except MP4.

ffmpeg.exe -i "{filepath}" -map 0 -c copy -f segment -segment_time {Rs|Enter duration in secs} -reset_timestamps 1 "{filepath|noext}-part_%02d.mp4" 

Segmenting might require reencoding instead of copying.

1 Like

thus works. thanks

ffmpeg.exe -i "{filepath}" -map 0:v -map 0:a? -c copy -f segment -segment_time {Rs|Enter duration in secs} -reset_timestamps 1 "{filepath|noext}-part_%02d.mp4"