Try Like this
@echo off
setlocal EnableDelayedExpansion
for /f "delims=" %%a in ('dir /a-d/b *.mp4') do (
set "$File=%%~na"
echo ren "%%a" "!$file:.=x!%%~xa"
)
The echo
is included so that you can test the output. If it's OK remove it.