[Vnc2swf-users] pyvnc2swf sound recording using pymedia
Status: Alpha
Brought to you by:
euske
From: David F. <da...@sj...> - 2006-06-02 15:28:05
|
Hi Thanks for pyvnc2swf! A great program... I've written an extension that enables recording sound alongside the screen capture. It uses the pymedia library for the recording This is similar to using the -S option, but it does it in-process using python code. I'm having a little trouble getting pymedia to record mp3 directly so at the moment it records mp2, (I've sent a mail to the pymedia list - basically the mp3 files produced don't have valid headers, although passing them through lame fixes them up which is what I do with the mp2 anyway) Once that is fixed it should make it much simpler to produce a combined file I've attached a diff to vnc2swf.py and the new file record_sound.py. The extra dependencies are on pymedia (I used 1.3.5.0) and the builtin threading module The recording is started in a separate thread and gets stopped in a similar way to the subprocess getting stopped (it uses the same interface) I added a new option -a filename.mp2 for the recording The diffs are to pyvnc2swf 0.8.2 To convert the audio and combine it I run as follows python vnc2swf.py -n -o recording.swf -a recording.mp2 vnchost lame recording.mp2 recording.mp3 python edit.py -o mixed.swf -a recording.mp3 -S 2.5s recording.swf (Using either this method or arecord, I always find I have to cut a few seconds off the start of the recording. Since it's consistent, it makes the process automatic). I've been reading around the web and it seems having this ability incorporated within pyvnc2swf would make it more useful for a lot of people - there doesn't seem to be an open source tool out there that handles recording audio alongside screen captures nicely, so I hope this is suitable for inclusion Regards David PS Not subscribed so please CC me on replies |