Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

There is a typo *tokens=*" should be "tokens=*"

try this

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"
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading