I've tried hunting for batch scripts, just a simple one to start me off so I can change it bit by bit for my needs and future
Basically, convert an entire folder from AVI to MP4 without recoding. Simple as possible get the input file and convert to MP4 format keeping original video and audio
If possible with a file requester so I can choose what files to add to the batch list without having to manually enter the folder location
Thanks for any suggestions
Another batch script I'm looking for is to read any video file, use FFMPEG to increase the volume and save it back out again
+ Reply to Thread
Results 1 to 7 of 7
-
-
Many ffmpeg examples:
https://forum.videohelp.com/threads/356314-How-to-batch-convert-multiplex-any-files-wi...eg+remux+batch
Beware that not all codecs used in AVI will work in MP4. -
Windows example:
Code:@echo off rem Drop one or more files on this batch file for processing. set outPath=c:\converted_mp4\ :Next if [%1]==[] goto:eof ffmpeg -i %1 -c copy "%outPath%~n1.mp4" shift goto Next
-
While short, the BAT file above isn't all that "simple" because the BAT language is antiquated. You're better off learning PowerShell than trying to figure out what the shift command does. I have a PowerShell script that converts videos to MP4, and if they are already Chromecast compliant, simply remuxes to the MP4 container using FFmpeg:
https://forum.videohelp.com/threads/379314-Convert-Videos-for-Playing-on-Chromecast-Po...pt#post2450836 -
Oh dear, I am terribly sorry for offering that little script with the complicated shift command. Your one hundred and forty-two lines of PowerShell must be so much simpler.
-
JVRaines, I am not trying to pick a fight with you - your script is fine. My point is, once you get beyond the very basics, the BAT language is a barrier. I have written many BAT scripts and got pretty good at it. I tried to write my script in BAT language and failed. At that point I learned PowerShell, and am glad I did.
Similar Threads
-
Need help with ffmpeg script to batch convert audio in MKV files
By mikeveli20 in forum AudioReplies: 5Last Post: 18th Nov 2016, 13:21 -
Using FFMPEG how do I convert an entire folder of webm files to wav or mp3?
By alphainventions in forum Video ConversionReplies: 1Last Post: 7th Aug 2016, 19:56 -
Batch stabilize script for ffmpeg
By racer-x in forum Video ConversionReplies: 20Last Post: 2nd Jun 2016, 17:10 -
Batch Script Normalize AAC & Convert to Wav
By MrBiggles in forum AudioReplies: 5Last Post: 30th Aug 2015, 11:11 -
Can I get a little help with an ffmpeg script/batch file?
By Iced Coffee in forum Newbie / General discussionsReplies: 14Last Post: 26th Aug 2015, 01:56