batch file – FFMPEG .bat script not running :(

FFMPEG .bat script not running when I double click on the script file, It tries to open for a millisecond and then just disappears and my videos are in .MP4 format same as in the script.
Here is the script: FOR /F tokens=” %%G IN (‘dir /b *.mp4’) DO ffmpeg -i “%%G” -vf fade=in:0:d=5 -af afade=in:0:d=5 “%%~nG_1.mov”
And this is the result I am getting when I paste script to the CMD in folder:
*” %%G IN (‘dir /b *.mp4’) DO ffmpeg -i “%%G” -vf fade=in:0:d=5 -af afade=in:0:d=5 “%%~nG_1.mov” was unexpected at this time.

FFMPEG .bat script not running when I double click on the script file, It tries to open for a millisecond and then just disappears and my videos are in .MP4 format same as in the script.
Here is the script: FOR /F tokens=” %%G IN (‘dir /b *.mp4’) DO ffmpeg -i “%%G” -vf fade=in:0:d=5 -af afade=in:0:d=5 “%%~nG_1.mov”
And this is the result I am getting when I paste script to the CMD in folder:
*” %%G IN (‘dir /b *.mp4’) DO ffmpeg -i “%%G” -vf fade=in:0:d=5 -af afade=in:0:d=5 “%%~nG_1.mov” was unexpected at this time

Read more here: Source link