Re: [Vnc2swf-users] How to record with audio
Status: Alpha
Brought to you by:
euske
From: Neal H. <nh...@do...> - 2007-09-27 13:55:37
|
On Thursday 27 September 2007, Bogdan Zamfir wrote: > Hi, > I would like to know how can I record a movie with audio, that is, to=20 > speak the explanations while I click on screen during recording, so the=20 > final swf will have both the video and audio > I tried to speak into microphone while the recording was happening, but=20 > no audio was recorded >=20 > Thank you > B. Zamfir Hi, I've been doing this 4 lectures per week for 3 weeks now. Attached is a shell script I execute at the start of each lecture. Its complicated by the fact that: =A0 - it chooses file names based on date and time =A0 - it puts them in directories specific to course, =A0 =A0 also based on date and time =A0 - it launches something to try to check that the =A0 =A0 recording is working, as I've had trouble with that =A0 =A0 and I sometimes forget to check at the start of the =A0 =A0 lecture. =A0But basically, it does something like the following: =A0 =A0 =A0f=3D`date +"%F-%T"` =A0 =A0 =A0p=3D/files/local/src/Python/pyvnc2swf-0.9.3/pyvnc2swf/vnc2swf.py =A0 =A0 =A0rec=3D"rec -c1 -r11025 -u -1 -q $f.wav vol 5 db" =A0 =A0 =A0function dorec() { =A0 =A0 =A0 =A0 =A0x11vnc -viewonly -wait 100 -defer 100 & =A0 =A0 =A0 =A0 =A0sleep 3 =A0 =A0 =A0 =A0 =A0lecture-check-recording $f.swf $f.wav & =A0 =A0 =A0 =A0 python $p -n -o $f.swf -r 4 -S "$rec" =A0localhost:0 =A0 =A0 =A0} =A0 =A0 =A0dorec =A0 =A0- then, later, a script does: =A0 =A0 lame --resample 11.025 $src.wav $src.mp3 =A0 =A0 p=3D/files/local/src/Python/pyvnc2swf-0.9.3/pyvnc2swf/edit.py=20 =A0 =A0 python $p -o $dst.swf -a $src.mp3 -c -K 500 $src.swf =A0 =A0 where src and dst are determined by the script ... =A0 =A0 Of course, if you don't use Linux, none of this will make any sense. =A0 =A0 Sorry about that. neal =2D-=20 Neal Holtz http://cee.carleton.ca/~nholtz Dept. of Civil and Environmental Engineering, Carleton University, =20 Ottawa, Ontario, Canada K1S 5B6. nh...@do... |