Re: scriptable mp3 encoder?
Re: scriptable mp3 encoder?
- Subject: Re: scriptable mp3 encoder?
- From: "Vince Jelenic" <email@hidden>
- Date: Tue, 04 Feb 2003 12:46:13 -0500
>
From: Mr Tea <email@hidden>
>
To: AS Users <email@hidden>
>
>
This from Vince Jelenic - dated 03-02-03 03.13 pm:
>
>
> i've been asked to find a scriptable solution to add one mp3 to another.
>
>
QuickTime Pro is probably your easiest way to combine tracks. Once that's
>
done, you might be able to use iTunes to generate an mp3 version, or
>
alternatively you might want to give Spark a try. It comes in free, lite
>
and
>
pro flavours, I have the light version (SparkLE Plus 2.6), it's scriptable
>
and includes an mp3 encoder. Check it out at www.tcworks.de. You can
>
purchase the lite version in downloadable form if it works.
Thanks for the pointer.
>
Downloaded Spark XL demo, there is no downloadable LE version on web page
ME version is only for OsX..
opened dictionary. very limited.
batchconverter does not work in demo mode,
does not recognize MPEG-4 file as "openable" in batchconverter
could you whip together a quick script which shows Spark combining two
files?
a simple quicktime example is: unfortunately, it uses a copy/past routine
which I am not overly comfortable with
(this will part of a fully-automated solution, I try to stay away from
clipboards in this type of solution.) .
tell application "QuickTime Player"
set x to name of (make new movie)
set xx to name of (open alias "HD:test2.mp3")
tell movie xx
activate
select all
copy
close
end tell
tell movie x
activate
add
end tell
set xxx to name of (open alias "HD:test.mp3")
tell movie xxx
activate
select all
copy
close
end tell
tell movie x
activate
add
export to "HD:test3.mp4" as MPEG4 with replacing
close saving no
end tell
end tell
-- result is an mpeg-4 file which has combined sounds, in the sequence
shown, BUT with a 1 second lag between them. (yikes).
--for 4.5 minutes of sound, this takes approximatly less than 2 minutes (
simple G4, 450 MHz, on os9)
-- the two minutes are taken up in the "export" step.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.