audio file for flash

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
darthstephen
Posts: 15
Joined: Sun Feb 05, 2006 3:49 am

audio file for flash

Post by darthstephen »

hi

i am new to moho and was wondering what type of audio file to use when exporting to flash. i realize that mp3 is not supported, so i tried to use a 4 bit wav. when i export to flash i get no sound...
any suggestions?


thanks for the help

stephen
darthstephen
Posts: 15
Joined: Sun Feb 05, 2006 3:49 am

Post by darthstephen »

i just wanted to add something.

i guess moho will not support wav export to flash. since flash supports 3, 4, and 5 bit wavs it might be something to consider, though they sound pretty bad.
if moho is offering flash output it is a really bad idea not to support mp3 and i hope it will return in future releases.
i understand that it has been said many times that moho has limited audio support, but this seems alittle extreme.
also, if i import the mp3 into moho (which can be done, but without the ability to preview), the following flash export seems to chop the end off my sound file. am i the only one with this problem?
i don't mind not having the mp3 preview in moho, nor do i mind using other software for sound on my projects, but how do i get sound in a flash file after i export to .swf in moho?
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Post by rylleman »

Import the audio and video separately in Flash.
darthstephen
Posts: 15
Joined: Sun Feb 05, 2006 3:49 am

Post by darthstephen »

rylleman wrote:Import the audio and video separately in Flash.
i'm assuming you mean into macromedia flash or some other seperate flash authoring program. that's fine. i just don't own another flash program and, frankly, bought moho for it's inexpensive price. i was hoping i could perform this simple task without buying additional software...
is there any open source software out there that will multiplex flash animation and mp3 audio?
i really feel this is a neglectful limitation of an otherwise full feature software.
i really do like the software and do not mean pick on it's limitations.
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Post by rylleman »

Ah, sorry, then I don't know how to help you.
darthstephen
Posts: 15
Joined: Sun Feb 05, 2006 3:49 am

Post by darthstephen »

ok...
i've come to the conclusion it is just not possible to export audio with flash in moho. so, the next best thing would be an external tool. i believe you can multiplex wav or mp3 with an swf file using the open source swftools software. i guess it's command line, so it's a bit of a stretch for me. maybe someone in this forum has used it?
it would be great if moho users could use this method...greater if we could find instructions here.
i'm going to try this process now and if i have luck i will share the details, but i just don't know if i'll succeed in the realm of command line. wish me luck :)
darthstephen
Posts: 15
Joined: Sun Feb 05, 2006 3:49 am

Post by darthstephen »

swftools works well to combine a wav file with an swf animation.

download swftools at www.swftools.org
install to c:\swftools
copy animation swf and soundtrack wav to c:\swftools
run cmd
cd c:\swftools
wav2swf -o [outputfilename.swf] [originalfile.wav]
swfcombine -T [animationfile.swf] [soundfile.swf]

the result is an .swf file that has the audio and animation multiplexed. it is named output.swf by default, but this can probably be changed using the the switch, -o, like with wav2swf. i didn't try that though.

i did try this with a 22k wav and it did not work. so just use 44.1k.

sorry if my instructions are bad. if you are confused try reading the man pages at swftools.org

hope this helps someone as much as it did me


stephen
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Post by Rasheed »

Unfortunately, this doesn't work for Mac OS X (the Linux source doesn't compile avi2swf, etc., because certain dependencies are missing).
darthstephen
Posts: 15
Joined: Sun Feb 05, 2006 3:49 am

Post by darthstephen »

yeah, i was thinking alot of people were using mac and i wanted to mention that it was a windows solution. i guess it's pretty obvious though...
i did get an email from lost marble support and they said to just work with wav files within moho and when ready to export to replace with an mp3. no monitoring of the mp3, but it would export. i tried this, but it did not work for me with multiple attempts. my mp3 file was consisently cut off short in the resulting flash. i wonder if anyone else has experienced this???
i do have to say that the resulting file from wav2swf sounds very good and quite small in file size. i am sound engineer by profession and i am very impressed with the resulting flash file using swftools.
User avatar
PhantomIre
Posts: 23
Joined: Tue Feb 21, 2006 4:31 am
Location: Hanover, MD
Contact:

Post by PhantomIre »

darthstephen wrote:swftools works well to combine a wav file with an swf animation.

download swftools at www.swftools.org
install to c:\swftools
copy animation swf and soundtrack wav to c:\swftools
run cmd
cd c:\swftools
wav2swf -o [outputfilename.swf] [originalfile.wav]
swfcombine -T [animationfile.swf] [soundfile.swf]

the result is an .swf file that has the audio and animation multiplexed. it is named output.swf by default, but this can probably be changed using the the switch, -o, like with wav2swf. i didn't try that though.

i did try this with a 22k wav and it did not work. so just use 44.1k.

sorry if my instructions are bad. if you are confused try reading the man pages at swftools.org

hope this helps someone as much as it did me


stephen
Say what now? Run that by me again please. Help me to be understanding you.
[Friday. Wake up. Go to school. Take a nap. Drive home. Start up Moho. Take another nap. Go to work. Get off work. Get stoned. Pass out. Drive home. Start up Moho.]
User avatar
cribble
Posts: 899
Joined: Wed Aug 04, 2004 12:42 pm
Location: London, UK
Contact:

Post by cribble »

darthstephen wrote:yeah, i was thinking alot of people were using mac and i wanted to mention that it was a windows solution. i guess it's pretty obvious though...
i did get an email from lost marble support and they said to just work with wav files within moho and when ready to export to replace with an mp3. no monitoring of the mp3, but it would export. i tried this, but it did not work for me with multiple attempts. my mp3 file was consisently cut off short in the resulting flash. i wonder if anyone else has experienced this???
i do have to say that the resulting file from wav2swf sounds very good and quite small in file size. i am sound engineer by profession and i am very impressed with the resulting flash file using swftools.
When you export, have you changed the amount of frames it exports within the "Project setting?" A gut feeling tells me that the project settings could be conflicting with the export settings.
--Scott
cribble.net
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Post by Rasheed »

I always thought that the drop of the support of MP3 audio in Moho 5.3 was a bad thing, because Flash needs MP3 audio. I believe LM's workaround was to use two sound files (WAVE and MP3). Use the WAVE to tweak your animation and temporarily replace it with MP3 when exporting to Flash format.

Although Flash isn't necessary, if you often export Moho movies to Flash, it would be wise to invest in a copy of Flash MX (or a Flash clone), because you need the preloader to keep your animation into sync. Large SWF files played over the internet tend to get out of synch after only a few seconds, because the animation is loaded faster than the sound data. With a preloader you force the SWF file to wait playing the animation until all image and sound data is loaded.
Post Reply