Blue_MiSfit
30th January 2010, 11:20
Hi all! I've got a simple batch file going here which automatically processes video files.
http://pastebin.com/m1d3b491b
It takes 4 CLI arguments, the first 3 are bitrates and the 4th is the SAR.
This script then runs through the current directory, looking for .avs files, and using these as the source for x264 to output a 264 file.
Then, a muxing perl script runs which takes this 264 file, and produces a TS file from it (per some special hardware specs). The muxing script supports another argument, pointing to an AC3 audio file. So, I will have AC3 files that match the AVS files like this:
movie.avs
movie_audio.ac3
How the heck can I have the script pass this type of file name as an argument to my perl script?
Example command line for muxer:
tsmux_multi3.pl -p h264:movie_1000.264 ac3:movie.ac3 > 1000.ts
I know this script is disjointed. It was originally designed for something a bit different, and I know next to nothing about scripting... so yeah
Help!!
http://pastebin.com/m1d3b491b
It takes 4 CLI arguments, the first 3 are bitrates and the 4th is the SAR.
This script then runs through the current directory, looking for .avs files, and using these as the source for x264 to output a 264 file.
Then, a muxing perl script runs which takes this 264 file, and produces a TS file from it (per some special hardware specs). The muxing script supports another argument, pointing to an AC3 audio file. So, I will have AC3 files that match the AVS files like this:
movie.avs
movie_audio.ac3
How the heck can I have the script pass this type of file name as an argument to my perl script?
Example command line for muxer:
tsmux_multi3.pl -p h264:movie_1000.264 ac3:movie.ac3 > 1000.ts
I know this script is disjointed. It was originally designed for something a bit different, and I know next to nothing about scripting... so yeah
Help!!