Hi Thierry,
On Mon, Mar 16, 2026 at 11:33:12 +0000, FFmpeg user discussions wrote:
> ffmpeg -i input.mp4 -c copy -map 0 -segment_time 1800 -f segment
> output_%03d.mp4
>
> but every syntax I try (additional parameters or less parameters) leads to
> same error message :
>
> [mp4 @ 000001eea55f6840] Invalid segment filename template
> 'outputC:\Data\bin\Split_Mp4_30min.cmd3d.mp4'
> [out#0/segment @ 000001eea55cb480] Could not write header (incorrect codec
> parameters ?): Invalid argument
>
> Where C:\Data\bin\Split_Mp4_30min.cmd is the full filename of the conversion
> batch file calling FFMPEG.
In Windows batch files, "%0" is replaced by the name of the calling
batch file. In order to get the "%" to be passed on to ffmpeg, you need
to replace it with "%%" ("escape it").
Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]