[MPlayer-users] mencoder from tv with sound

zen22207 at zen.co.uk zen22207 at zen.co.uk
Thu Jul 15 18:36:32 CEST 2004


I had a great deal of difficulty getting this to work and there were a few 
comments on the list where other had similar problems. I noticed on the 
output from both mplayer and mencoder that I had an audio stream, it was just 
completely silent. ZXine also saw an audio stream which was silent. After 
playing about with mixer settings for a while, following hints on this list, 
I wrote this shell script which seems to work for me, others may be able to 
adapt/improve it :

*============================================*

#!/bin/bash
FILE=`date +%F" - "%r".avi"`

amixer -c 0 sset Line,0 80%,80% unmute cap

mencoder -tv driver=v4l2:width=768:height=576:amode=1:forcechan=2:input=0 \
-ovc  lavc -lavcopts vcodec=mpeg4:vbitrate=8000 -oac mp3lame -lameopts \ 
vol=10:mode=0 tv:// -o "$FILE"

*=============================================*

system : 
	soundblaster live!
	flyvideo 3000 (philips saa7134 chip)
	slackware 9.1
	kernel 2.6.5
	alsa with oss emulation




More information about the MPlayer-users mailing list