Michael, you could use this:
%~ni <- this means the filename without the extension, so instead of
renaming, just use:
ffmpeg -i %1 -y %~n1
or
ffmpeg -i %1 -y -c copy %~n1

On Mon, Oct 21, 2019 at 10:28 AM Michael Koch <astroelectro...@t-online.de>
wrote:

>
> >
> > set OUT=%IN:mkv=mp4%
>
> please note that this renaming will give unexpected results if "mkv" is
> also part of the filename, for example
> aamkv.mkv will be renamed to
> aamp4.mp4
>
> If someone knows a solution to this problem, please let us know.
>
> Michael
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to