I didn't realized that OSS emulation on my Fedora setup wasn't enabled, no wonder there is no sound recorded.
Setup:
- add these lines to /etc/modprobe.conf
alias char-major-81-0 saa7134
options saa7134 oss=1 oss_rate=32000 mixer_nr=1 dsp_nr=1
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-card-0
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
- add these lines to /etc/rc.local
alsactl restore
modprobe snd_mixer_oss
modprobe snd_pcm_oss
modprobe saa7134
Also, make sure to run alsamixer to ensure master, pcm and CD volume are unmuted and set, capturing is on and capturing channel is CD. Do a "alsactl store" afterward
After the setup, I am about to watch TV from xawtv or tvtime.
Record
- v4lctl setchannel [channel];
streamer -o filename.avi -f mjpeg -r 18 -F stereo -R 32000 -j 90 -s 720x576 -t [h:m:s]
There are still one problem to solve is the sound is only on one side, need to figure out where the problem.
Some improvement for the near future is to record raw stream to /tmp and compress it to mpg. This should save more disk space (??)
Also, currently I setup recording via crontab. I probably should setup something more friendly.
I did some benchmarking (25f, 720x576) during recording. The machine system load rises to around 1.7 and spikes to over 3.0 when pounded with traffic. The blog processing time is up from average 0.48 to 0.54 sec. (note: the load is up from 0.48 to 0.52 sec already when MLDonkey is running download actively)
During compression, the CPU spikes at ~1.7 with traffic. It takes around almost 2 hours to compress a 15 minutes stream (audio 5, video 106, mplex 0.5).
Comments
Wow... 1 hour recording using xawtv streamer (to mjpeg avi) takes 4.5GB!!
Leave comment
Trackback