Quick help for automating video processing

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
blue_misfit
Posts: 1
Joined: 30 Jan 2010 03:58

Quick help for automating video processing

#1 Post by blue_misfit » 30 Jan 2010 04:05

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

Post Reply