Page 1 of 1

Quick help for automating video processing

Posted: 30 Jan 2010 04:05
by blue_misfit
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 aspect ratio.

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. 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!!