Page 1 of 1

audio file for flash

Posted: Sun Feb 05, 2006 3:53 am
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

Posted: Sun Feb 05, 2006 6:44 pm
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?

Posted: Sun Feb 05, 2006 8:03 pm
by rylleman
Import the audio and video separately in Flash.

Posted: Sun Feb 05, 2006 8:58 pm
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.

Posted: Sun Feb 05, 2006 9:53 pm
by rylleman
Ah, sorry, then I don't know how to help you.

Posted: Sun Feb 05, 2006 11:53 pm
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 :)

Posted: Mon Feb 06, 2006 3:12 am
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

Posted: Tue Feb 07, 2006 1:31 am
by Rasheed
Unfortunately, this doesn't work for Mac OS X (the Linux source doesn't compile avi2swf, etc., because certain dependencies are missing).

Posted: Tue Feb 07, 2006 2:55 am
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.

Posted: Wed Feb 22, 2006 3:18 am
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.

Posted: Mon Feb 27, 2006 5:54 pm
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.

Posted: Tue Feb 28, 2006 1:59 am
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.