
sderenzi
New User
Sep 25, 2007, 12:54 AM
Post #1 of 3
(3047 views)
|
Runs mp4box with command lines
|
Can't Post
|
|
It's simple, I want to run mp4box on OS X, I've found a precompiled version for the PPC and I asked a fellow if he could make me a perl script that would run the following on any .aac files inside a folder. mp4box -add filename.aac filename.m4a It's very easy to do manually but there's like 300 files in the folder, could someone help fix this script cuz I can't figure out why it doesn't work, here's what it looks like:
#!/usr/bin/perl use File::Find; $basedir = "<path-to-your-folder>"; find( sub { next unless /(.*)\.aac$/; $fn = $1; $cmd = qq(mp4box -add "$fn.aac" "$fn.m4a"); print "$cmd\n" system $cmd; }, $basedir ); Now the error I get is:
syntax error at line 12, near "system" Execution of run.pl aborted due to compilation errors So what am I missing? Basically it's searching for any files that are in the directory which are .aac, then it goes on to place them in the full command mp4box -add filename.aac filename.m4a Can someone fix this?
(This post was edited by sderenzi on Sep 25, 2007, 12:57 AM)
|