Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 219.93.2.16:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/FrequentlyAskedQuestions

The comment on the change is:
Update mencoder settings for saa7134-based cards

------------------------------------------------------------------------------
@@ -289,7 +289,7 @@
 
 SAA7134-based cards do not need any additional kernel modules, an insmod option 
'oss=1' will 
 enable the DMA audio capture capability. This maps the DMA audio to the next 
available /dev/dsp?
-device (and may reorder the device numbering if the sound card module is loaded after 
the saa7134 module has loaded). It is advisable to load the saa7134 module only after 
the sound card modules are loaded to avoid this problem. Go to http://bytesex.org for 
more information.
+device (and may reorder the device numbering if the sound card module is loaded after 
the saa7134 module has loaded). It is advisable to load the saa7134 module only after 
the sound card modules are loaded to avoid this problem, as well as to specify the 
device number using mixer_nr and dsp_nr options. Go to http://bytesex.org for more 
information.
 
 Note that SAA7130-based cards do not have this capability and can only capture
 audio via the sound-card.
@@ -419,7 +419,8 @@
 mencoder -tv on:driver=v4l:input=0:norm=NTSC:channel=2:chanlist=us-cable:\
 width=320:height=240:outfmt=yv12:device=/dev/video0:adevice=/dev/dsp2:\
 audiorate=32000:buffersize=64:forceaudio:forcechan=1 -ovc lavc -lavcopts 
vcodec=mpeg4:\
-vbitrate=1200:keyint=30 -oac mp3lame -lameopts br=128:cbr:mode=3 -ffourcc divx -o 
/mnt/video/06-08_07:30_-_Seinfeld.avi ,2 WNYFLP"
+vbitrate=1200:keyint=30 -oac mp3lame -lameopts br=128:cbr:mode=3 -ffourcc divx \
+-o /mnt/video/06-08_07:30_-_Seinfeld.avi
        key parameters:   adevice=/dev/dsp2 - analog btaudio
                          audiorate=32000 - proper sampling rate
                          forceaudio - needed for mencoder to force recording of audio
@@ -484,6 +485,45 @@
 
 }}}
 
+For saa7134-based cards, the command for recording is a bit simpler. The v4lctl 
program which comes with xawtv is used to set the audio input level, since the saa7134 
mixer device is OSS only and aumix doesn't provide sufficient control over the volume.
+
+The following is placed in the /etc/freevo/local_config.py file under the VCR 
commands section (for freevo 1.5.x). Note that I'm using /dev/dsp1 for my 
AUDIO_INPUT_DEVICE, and controlling the
+audio input level using v4lctl.
+
+{{{
+VCR_AUDIO = (':adevice=%s' % AUDIO_INPUT_DEVICE +
+             ':audiorate=32000' +         # 44100 for better sound
+             ':forceaudio:forcechan=2:amode=1' + # Forced stereo for bug in my driver
+             ':buffersize=64')             # 64MB capture buffer, change?
+
+
+VCR_IN_VOLUME = 8              # 'v4lctl list' will show the range of values
+
+VCR_PRE_REC = ('v4lctl volume %d' % VCR_IN_VOLUME)
+VCR_POST_REC  = ('v4lctl volume %d' % 0)
+
+VCR_CMD  = (CONF.mencoder + ' ' +
+            'tv:// ' +                      # New mplayer requires this.
+            '-tv driver=%s:input=%d' % (TV_DRIVER, TV_INPUT) +
+            ':norm=%s' % CONF.tv +
+            ':channel=%(channel)s' +        # Filled in by Freevo
+            ':chanlist=%s' % CONF.chanlist +
+            ':width=%d:height=%d' % (TV_REC_SIZE[0], TV_REC_SIZE[1]) +
+            ':outfmt=%s' % TV_REC_OUTFMT +
+            ':device=%s' % TV_DEVICE +
+            VCR_AUDIO +                     # set above
+            ' -ovc lavc -lavcopts ' +       # Mencoder lavcodec video codec
+            'vcodec=mpeg4' +                # lavcodec mpeg-4
+            ':vbitrate=1200:' +             # Change lower/higher, bitrate
+            'keyint=30 ' +                  # Keyframe every 10 secs, change?
+            '-oac mp3lame -lameopts ' +     # Use Lame for MP3 encoding, must be 
enabled in mencoder!
+            'br=128:cbr:mode=3 ' +          # MP3 const. bitrate, 128 kbit/s
+            '-ffourcc divx ' +              # Force 'divx' ident, better compat.
+            '-endpos %(seconds)s ' +        # only mencoder uses this so do it here.
+            '-o %(filename)s')              # Filled in by Freevo
+
+
+}}}
 
 If someone has btaudio working with mplayer and/or mencoder please add your
 information to this document.


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog

Reply via email to