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" I have to do this each time with each movie though. 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. To add files, you should click "File" - "Open" to input a file and then to "File" - "Append" to add other files.I have a lot of movies that are 2 files and I want to join them into one file using Avidemux. Visit the official website of Avidemux to download and install Avidemux on your computer. If you hold it is not as simple and intuitive to operate Avidemux, you can navigate to part 2 to make files joined together by means of an easy-to-handle Avidemux alternative. How to Merge Files Using Avidemux Alternativeīelow is a step-by-step guide to direct you to join files in Avidemux. How to Merge Multiple Files Using Avidemux From it, not merely can you understand how Avidemux join files but also acquire a superb Avidemux alternative. If you are full of curiosity for its joining feature, just take a look at this piece. Aside from the capability to cut, convert, resize, filter videos, merging video files is also realized with it. Avidemux is a free and open-source video editing software applicable to Microsoft Windows, Mac OS, Linux, and BSD.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |