CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: Re: [KevinR] Runs mp4box with command lines: Edit Log



sderenzi
New User

Sep 25, 2007, 1:30 PM


Views: 2063
Re: [KevinR] Runs mp4box with command lines

You are right! Thanks man, I was totally confused lmao Here's the final perl I used:


Code
  #!/usr/bin/perl   

use File::Find;

$basedir = "<path-to-your-folder>";

find( sub {
next unless /(.*)\.aac$/;
$fn = $1;
$cmd = qq(<path-to-mp4box> -add "$fn.aac" "$fn.m4a");
print "$cmd\n";
system $cmd;
}, $basedir );


And I got this to run in Terminal


Code
 find <path-to-your-folder> -name '*.m4a' -exec <path-to-mp4box> -raw 1 {} \;



(This post was edited by sderenzi on Sep 25, 2007, 1:32 PM)


Edit Log:
Post edited by sderenzi (New User) on Sep 25, 2007, 1:32 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives