Ffmpeg extension

I would like to run ffmpeg as follows:

ffmpeg.exe -i {filepath} -crf 0 ????????

The ???????? part needs to be the same directory and file name as the input file but with an extension of MP4

Example: ffmpeg.exe -i test.webm -crf 0 test.mp4

How do I write the ???????? part?

Thanks

The codes for passing filenames are listed here. At the bottom of that page are a list of modifiers you can use to change their behaviour.

You probably want {filepath|ext=mp4}.

Thank you, that was quick