#1  
01-26-2021, 08:44 AM
michelhammamet michelhammamet is offline
Free Member
 
Join Date: Jul 2019
Posts: 10
Thanked 0 Times in 0 Posts
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,
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-01-2021, 02:25 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,503
Thanked 2,448 Times in 2,080 Posts
This is why I use Hybrid.
I wrote far too many batch files in the DOS days, and do not miss it.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
Reply




Tags
batch file ffmpeg, ffmpeg

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adobe Premiere 5 export multiple AVI files? BayAreaSean Encode, Convert for discs 3 04-23-2016 06:36 PM
Batch convert WAV to MP3? naripeddi Edit Video, Audio 5 06-13-2013 10:34 PM
How to join multiple AVI files into one file? via Email or PM Edit Video, Audio 1 09-21-2012 02:46 PM
Convert an .wmv file to a playable dvd cyber-junkie Encode, Convert for discs 10 10-01-2010 12:00 PM

Thread Tools



 
All times are GMT -5. The time now is 09:48 AM