Thread: [Vnc2swf-users] How to record with audio
Status: Alpha
Brought to you by:
euske
From: Bogdan Z. <bz...@gm...> - 2007-09-27 12:14:27
|
Hi, I would like to know how can I record a movie with audio, that is, to speak the explanations while I click on screen during recording, so the final swf will have both the video and audio I tried to speak into microphone while the recording was happening, but no audio was recorded Thank you B. Zamfir ________________________________________________________________________ Delivered using the Free Personal Edition of Mailtraq (www.mailtraq.com) |
From: Neal H. <nh...@do...> - 2007-09-27 13:55:37
Attachments:
lecture-record
|
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... |
From: Bogdan Z. <bz...@gm...> - 2007-09-27 15:25:44
|
Hi Neal, Thanks for answer Indeed I do not use linux, but your suggestion gave me a thought. I can use another way to script starting this, to have both sound and video recording at the same time. Regards Bogdan Neal Holtz wrote: > 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 >> speak the explanations while I click on screen during recording, so the >> final swf will have both the video and audio >> I tried to speak into microphone while the recording was happening, but >> no audio was recorded >> >> 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: > - it chooses file names based on date and time > - it puts them in directories specific to course, > also based on date and time > - it launches something to try to check that the > recording is working, as I've had trouble with that > and I sometimes forget to check at the start of the > lecture. But basically, it does something like the following: > > f=`date +"%F-%T"` > p=/files/local/src/Python/pyvnc2swf-0.9.3/pyvnc2swf/vnc2swf.py > rec="rec -c1 -r11025 -u -1 -q $f.wav vol 5 db" > > function dorec() { > x11vnc -viewonly -wait 100 -defer 100 & > sleep 3 > lecture-check-recording $f.swf $f.wav & > python $p -n -o $f.swf -r 4 -S "$rec" localhost:0 > } > > dorec > > > - then, later, a script does: > > lame --resample 11.025 $src.wav $src.mp3 > p=/files/local/src/Python/pyvnc2swf-0.9.3/pyvnc2swf/edit.py > python $p -o $dst.swf -a $src.mp3 -c -K 500 $src.swf > > where src and dst are determined by the script ... > > Of course, if you don't use Linux, none of this will make any sense. > Sorry about that. > > neal > > > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.488 / Virus Database: 269.13.32/1032 - Release Date: 9/26/2007 8:20 PM > ________________________________________________________________________ Delivered using the Free Personal Edition of Mailtraq (www.mailtraq.com) |
From: Bogdan Z. <bz...@gm...> - 2007-09-27 18:48:02
|
Hi, What is the difference between record mode: Shape, Video and VNCRec? Thanks Bogdan ________________________________________________________________________ Delivered using the Free Personal Edition of Mailtraq (www.mailtraq.com) |
From: Bogdan Z. <bz...@gm...> - 2007-09-27 18:52:01
|
Hi, I saw if I launch vnc2swf -h, I see a help file There it is a command parameter, -a audiofile.mp3 Does this means, if I start it with a commandline with this param, it will record both video and audio? Is it enough to have the mic connected to pc and set properly (e.g, to work ok in sound recorder or skype), or I need something else? And how to pass pwd in commad line? The param in help reads -P pwdfile What is pwdfile? a text file for example with the password, or can I pass pwd in command line directly? Thank you Bogdan Thanks. ________________________________________________________________________ Delivered using the Free Personal Edition of Mailtraq (www.mailtraq.com) |
From: Neal H. <nh...@do...> - 2007-09-27 14:32:57
|
This is likely the wrong group for this, because I don't think its a vnc2swf problem -- but just in case anyone has experienced it: At random times, the sound recorder fails to start. I'm using a Fujitsu Lifebook Table, T-4220 (I think). Gutsy Gopher Ubuntu (pre-Beta), with updates faithfully applied every day. 4 lectures a week for 3 weeks, so far. Almost always I have the tablet PC on, in my office. I shut the lid (so it goes into suspend mode), go to lecture, plug in a bunch of stuff, resume from suspend, and restart X (so it sees the projector plugged into VGA; I think you are supposed to be able to do this with xrandr, but haven't tried yet). I run a shell script that basically does: p=/files/local/src/Python/pyvnc2swf-0.9.3/pyvnc2swf/vnc2swf.py rec="rec -c1 -r11025 -u -1 -q $f.wav vol 5 db" x11vnc -viewonly -wait 100 -defer 100 & python $p -n -o $f.swf -r 4 -S "$rec" localhost:0 Every once in a while, I get this in the log file I keep: ... 26/09/2007 13:05:34 Using raw encoding for client 127.0.0.1 ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave rec stio: Failed reading `default': cannot open audio device ... And of course, no sound is recorded. Yesterday, at the start of a lecture, it did this 4 times in succession, and I even rebooted once in between. I gave up, and they get a slient movie (considering yesterdays lecture, that might be a blessing, ;-)) After lecture, suspend tablet, go back to my office, and it works fine. I can't seem to make it fail in my office when I can do something about it. Help! -- Neal Holtz http://cee.carleton.ca/~nholtz Dept. of Civil and Environmental Engineering, Carleton University, Ottawa, Ontario, Canada K1S 5B6. nh...@do... |