
Whether you are a novice or expert, that is the tutorial to read when you are first starting with AutoIt. Learning To Script with AutoIt V3 is an excellent AutoIt tutorial, probably the best available. If you are just getting started with these languages, I have a couple of book recommendations for you. It has excellent documentation, a great community, a featureful standard library, built-in WIN32 API integration, and any AutoIt script may be "compiled" to an executable so that it can be run on systems that don't have AutoIt installed. The best Windows-specific scripting language is AutoIt, in my opinion. While I do know a little VBS, I generally try to avoid it. Personally I prefer Perl because of its easy syntax and excellent cross-platform support. I'm installing ActivePerl now and trying out that script on 2 movies.
Avidemux join videos code#
I learn best from understand code in scripts that I'm actually trying to use in real life instead of a test book. pl file extension, ActivePerl should let you double-click to run it.Īnother question for you Orange, what would this look like as a VBS script? Do you know VBS? Just looking for something else to learn from since I'm in a Windows environment and wanted to start messing with VBS instead of batch. If you save the script as, or something else with the. My $AVIDEMUX = 'C:\Programs\avidemux\avidemux.exe' įor my $movie $convert_cmd = "\"$AVIDEMUX\" -load \"$MOVIE_IN_PATH\\$movie - CD1.avi\" -append \"$MOVIE_IN_PATH\\$movie - CD2.avi\" -force-smart -save \"$MOVIE_OUT_PATH\\$movie.avi\" -quit" ĭie "Unable to convert $movie!\n" if (system "$convert_cmd") # Directory where the combined AVI files will be stored # Directory where the split AVI files are stored My = ('The Figher', 'The Fifth Element', 'Robinhood Men In Tights') Also, you can download ActivePerl for Windows if you don't already have Perl installed on your system. All you should need to do is modify the variable to list the movies you need to convert. It is much nicer than its equivalent in Batch, and took me only a couple of minutes to write and test. I recommend that you use a more suitable scripting language, of which there are many.įor example, I wrote a new version of your script in Perl that does what you requested. While it is certainly possible to do what you want in Batch, its really a pain.

I'm not too advanced in batch, but hoping there's a way to automate the entire process so I don't have to keep manually typing in the name. Is there a way, in batch to have it automatically detect a file with the same name, but with the CD1/CD2 and then run the command for each file set that it finds in a directory?

I've tried putting this into a "for" loop, but the (set) doesn't like spaces in the names and using quotes messes it up too.įOR /f "delims=," %%G IN (%movie1%,%movie2%) DO (%avidexmuxprog% -load "c:\test\%%G - CD1.avi" -append "c:\test\%%G - CD2.avi" -force-smart -save "c:\test\final\%%G.avi" -quit) %avidexmuxprog% -load "T:\Video\Movies\%moviefile1%.avi" -append "T:\Video\Movies\%moviefile2%.avi" -force-smart -save "C:\_COMBINED_AVI\%moviefinal%.avi" -quit Set avidexmuxprog="C:\Programs\avidemux\avidemux.exe"
Avidemux join videos movie#
I have to do this each time with each movie though.


Avidemux join videos update#
I have to update the "moviefinal" value, save the files, then run it. Right now I've written a batch script to make it a little faster to join the 2 files like I put below. I have a lot of movies that are 2 files and I want to join them into one file using Avidemux.
