digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Encode, Convert for discs (https://www.digitalfaq.com/forum/video-conversion/)
-   -   Batch file ffmpeg to convert multiple files? (https://www.digitalfaq.com/forum/video-conversion/11445-batch-file-ffmpeg.html)

michelhammamet 01-26-2021 08:44 AM

Batch file ffmpeg to convert multiple files?
 
Hey guys
I am reaching out to ffmpeg pros to help me out
I am trying to convert multiple files in one folder from mpg to mp4 with a batch file (.bat) using the following script

Code:

@echo off

for /f "tokens=1 delims=." %%a in ('dir /B *.mpg') do ffmpeg.exe -i "%%a.mpg" -vcodec libx264 -qscale:v 1 -preset slow -crf 19 -b:v 25000k –r 25 -acodec aac -b:a 384k "%%a.mp4"

pause

I am getting the following error

Code:

[NULL @ 000001eeac87fac0] Unable to find a suitable output format for 'тАУr'
тАУr: Invalid argument

I have tried many different options already and searched everywhere, but nothing has helped so far.

I would appreciate your help in this matter.

Best regards,

lordsmurf 02-01-2021 02:25 PM

This is why I use Hybrid.
I wrote far too many batch files in the DOS days, and do not miss it.


All times are GMT -5. The time now is 07:21 AM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.