DebugMode Forums Forum Index   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
This forum is READ-ONLY. Please click here to post new questions/tips.
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DebugMode Forums Forum Index -> Wink -> Miscellaneous -> How to add sound - EASY!
View previous topic :: View next topic  
Author Message
Aaron
Guest





Reply with quote

How to add sound - EASY! (Fri Aug 05, 2005 5:42 pm)

THIS METHOD IS BETA! I've only actually done it a couple of times.
This is intended for folks trying to do screencasts.

1. Download and install Audacity to record your voice. Do NOT use Windows Sound recorder, as it generates improperly formed WAV files, which will cause a problem later.

2. Download and install SWF Tools

3. Get Audacity ready to record your voice. (Figure this part out yourself) It wouldn't hurt to do a test recording to make sure it's working - you wouldnt want to talk for 5 minutes only to find out that you didn't have the mic plugged in or something. Move Audacity out of your way, but keep that red record button ready.

4. Get Wink ready to record the screen. (Figure this part out yourself)

5. Now, you have to be quick here: hit Audacity's record button and then hit Shift+Pause to start Wink recording.

6. Screencast away.

7. To stop, hit Alt+Shift+Pause to stop Wink, and Audacity's square yellow Stop button. SAVE both files now.

8. Render the swf and web page in wink. You'll want to make a version that starts playing automatically, and I doubt you'd want to have callouts and buttons to pause the playback of the screencast, as the audio won't stop until it's done (I think?)

Here's where the magic happens:

9. Copy the swf file to C:\swftools and rename it demo.swf.

10. Copy wav file Audacity made to C:\swftools and rename it audio.wav

11. Go to Start\Run, type
Code:
cmd
without the quotes and press enter. In the black command prompt box that comes up, type cd \ and enter. Then press
Code:
cd swftools
and press enter.

12. type
Code:
wav2swf -o sound.swf -l 0 audio.wav
and press enter

13. type
Code:
swfcombine -T demo.swf sound.swf
and press enter.

14. You will now have a file called output.swf in your swftools directory. Your sound file will play alongside the screencast you made. Let it play. If you feel that the audio isn't syncronized well enough, you can edit your wav file in Audacity and go back to step 10, or if you need to make changes in the screencast itself (with a callout or something) you can do that and go back to step 9. But remember that you probably will never get as good syncronization as when you record yourself doing it live. Alternatively, you could record the screencast first, and then record narration later as you're watching your rendered output. Your choice.

15. Lastly, after you're happy with output.swf, copy it back to the original SWF's location, and delete the old swf. Rename output.swf to the old swf's filename. You can then open the web page that was generated by wink for you and it's properly sized, and you're good to go.

I hope this helps. SWFtools are open source and sources exist for Win32 and linux. Maybe you can find some inspiration there, Satish? In the mean time, anyone who finds this method useful, please let me know.

If it turns out that y'all like it, I am working on a really simple frontend application to specify a wav file, and a swf file, and push the wav file in to the swf with one click. (and back up the original wav file.)

- Aaron Anderson
http://www.saneasylum.com
narayan
Senior Member


Joined: 25 Nov 2004
Posts: 94

Reply with quote View user's profile Send private message

(Mon Aug 08, 2005 5:40 am)

Excellent!

BTW some tips for those who are new to Audacity: It allows complete editing of the sound-track. (examples: joining tracks, splitting tracks, replace some unwanted sound with silence, increase/decrease the volume of certain part, etc.)

So you do not have to worry about creating a perfect sound track in your first attempt: just be your natural self and record the track. If there are any problems, just ignore them and finish the main track, and save it. Then record additional tracks where you had problems, and save them too. Finally prepare the final track using Audacity. Nothing is wasted.

If your recording setup does not record high-quality sound, you can even improve the sound quality using Audacity (to some extent).
sir-archimedes
Newbie


Joined: 06 Jan 2006
Posts: 1

Reply with quote View user's profile Send private message Visit poster's website

(Fri Jan 06, 2006 8:32 pm)

I just coded a little tool that does exactly what Aaron proposed: you can choose your audio-file, your Wink-presentation-file. Then push the button "Combine" and the tool combines the files to one swf-File with video and sound!

You need the swftools installed.

I offer the program as open-source under the LGPL-license. You can download the executable and the delphi-sourcecode at

http://www.dbedv.de/software/downloads/

I'm looking forward to some comments of you Smile

Regards,
Dominik
Guest






Reply with quote

Thank You (Mon Jan 09, 2006 5:45 pm)

Hi Dominik
Thank you for that, I downloaded your code and it is a lovely neat application - works like a dream. I now have my wink generated swf with sound - all that remains is to figure out how to put user controls on it .
Kathleen
Vinícius
Guest





Reply with quote

Is it work with mp3? (Fri Feb 10, 2006 7:09 pm)

Hi all,

well, wav files are huge. Is that possible to do the same with a mp3 file?

Thanks.
Guest






Reply with quote

Re: Is it work with mp3? (Wed Feb 15, 2006 12:59 pm)

Vinícius wrote:
Hi all,

well, wav files are huge. Is that possible to do the same with a mp3 file?

Thanks.


It converts it to MP3 to attach to swf - you can specify the bitrate it uses
Guest






Reply with quote

Re: How to add sound - EASY! (Tue Feb 21, 2006 1:57 pm)

I tried this out and it worked. Then I transferred the outcoming synchronized swf file to another laptop and on the other machine sound and picture was not synchronized anymore. The audio speed stays constant while the screen speed varies. Do you have an idea how to solve this problem?

Thanks in advance,

Tom
gerrykirk
Junior Member


Joined: 17 Mar 2006
Posts: 2

Reply with quote View user's profile Send private message

Problem getting speed of flash to match audio (Fri Mar 31, 2006 6:03 pm)

I'm about to pull my hair out. I captured video of a playing Powerpoint presentation and the audio of my voice while the video played.

I set the capture rate to 2 frames / sec.

Now, for the life of me, I can't get the flash video to play at a speed that matches the sound. The way I am testing is I choose the output rate for the flash, then play the flash will I play the audio separately.

I've tried various frame rates, and all are either too slow or too fast. 7 frames seems to be closest.

Can anyone suggest what I'm doing wrong?

Thanks,
Gerry
stephan_branczyk
Member


Joined: 18 Mar 2006
Posts: 10

Reply with quote View user's profile Send private message Visit poster's website

Re: Problem getting speed of flash to match audio (Sat Apr 01, 2006 9:57 pm)

gerrykirk wrote:
I'm about to pull my hair out. I captured video of a playing Powerpoint presentation and the audio of my voice while the video played.

I set the capture rate to 2 frames / sec.

Now, for the life of me, I can't get the flash video to play at a speed that matches the sound. The way I am testing is I choose the output rate for the flash, then play the flash will I play the audio separately.

I've tried various frame rates, and all are either too slow or too fast. 7 frames seems to be closest.

Can anyone suggest what I'm doing wrong?

Thanks,
Gerry


I haven't actually tried this yet?

But have you tried rendering the output of the soundless video in a swf file first, and then recorded the sound over the playing of the swf file?

Reading your post, it sounds like you may had done that, but I wasn't quite sure. This is just a long shot guess on my part.

Stephan
_________________
http://seedwiki.com
gerrykirk
Junior Member


Joined: 17 Mar 2006
Posts: 2

Reply with quote View user's profile Send private message

Re: Problem getting speed of flash to match audio (Mon Apr 03, 2006 12:47 pm)

Yes, that's what I did. Maybe I'll have to wait for the 2.0 release, which is apparently due within days and try again...
tucow
Junior Member


Joined: 04 Apr 2006
Posts: 3
Location: Mulhouse (France)

Reply with quote View user's profile Send private message Visit poster's website MSN Messenger

(Tue Apr 04, 2006 7:24 am)

Before wink 2 become available, I tried to add sound to my swf file using dominik's tool... In fact it works well, but I can't play the generated swf file several times (with a loop).I have to reload the HTML to read again the tutorial. What can I do? (please don't answere "wait release 2" Laughing )

Thanks in advance
Etienne
_________________
-=|| EasyITeam||=- Tucow
Patrick
Guest





Reply with quote

(Tue Apr 04, 2006 8:21 am)

check this thread:
http://www.debugmode.com/userforums/viewtopic.php?t=2212

HTH

Patrick
tucow
Junior Member


Joined: 04 Apr 2006
Posts: 3
Location: Mulhouse (France)

Reply with quote View user's profile Send private message Visit poster's website MSN Messenger

(Tue Apr 04, 2006 8:45 am)

thanks a lots i'm going to try that!

Another question there (another newbee question of course):
When i pause the running flash object, the animation stops as it's supposed to do... but sound doesn't!
I now that it's my voice and that i love to do what i'm not supposed to, but I'm not used to be that kind of boring with me!! Wink
So could someone help me (again)?
_________________
-=|| EasyITeam||=- Tucow
davyboy
Junior Member


Joined: 05 Apr 2006
Posts: 5

Reply with quote View user's profile Send private message Send e-mail

(Thu Apr 06, 2006 10:40 pm)

tucow wrote:
When i pause the running flash object, the animation stops as it's supposed to do... but sound doesn't!


Without reverse engineering the swf and editing it in Flash, not really. It is to do with the way that sound works in flash. But, the good news is, Wink 2.0 has sound, and that can be associated to each frame, so you will be able to have a sound for each pause track. What you'd do then, is just break up your sound file into the smaller chunks (if Wink 2.0 doesn't already do this) that match your segments in the presentation, and attach them to the start and pause frames as necessary.

Of course, we have to all wait patiently for Wink 2.0 to be released.
tucow
Junior Member


Joined: 04 Apr 2006
Posts: 3
Location: Mulhouse (France)

Reply with quote View user's profile Send private message Visit poster's website MSN Messenger

(Fri Apr 07, 2006 6:07 am)

ok thank you for the informations... I have enough time to wait release 2.0, the project is frozen for the moment, due to these misses. (i hope it's understandable).
By the way, i'm really impatient to use Wink 2.0...
_________________
-=|| EasyITeam||=- Tucow
davyboy
Junior Member


Joined: 05 Apr 2006
Posts: 5

Reply with quote View user's profile Send private message Send e-mail

(Fri Apr 07, 2006 2:08 pm)

We all are,

But we are getting this stuff for free, so as much as we complain about it not being released soon enough, it is still fantastic for the money!

Keep up the good work guys
ronan
Guest





Reply with quote

(Sun Apr 16, 2006 9:36 am)

Love reading this forum... & Love to wear propet shoes on occassions. Will visit this shoes forum again
trevelyn
Guest





Reply with quote

sound!! (Fri Apr 21, 2006 11:47 pm)

i did:
wav2swf -o hack.swf -l 0 speech.wav
and got
strange error flushing buffer...
then it finishes and i do
swfcombine -T hack.swf speech.wav
and get
FATAL:coudn't open/read endcredits.wav!
omgwtf
now when i watch the video of me hacking theres just sound and no picture Sad
please if anone still reads this help!? thanks 2 you in advance btw. -trev
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DebugMode Forums Forum Index -> Miscellaneous -> How to add sound - EASY! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
  ----   Powered by phpBB © 2001-2005 phpBB Group,   ----  Site design and contents © 2001-2005 Satish Kumar. S