Here how to fight with "/dev/videoX-swapping" when you have more then one video device as I do. I use tv-tuner "Beholder M6 Extra".
Just create start script for you video application like this:
#!/bin/bash
VIDEONAME='video (Beholder'
AUDIONAME='saa7134'
VIDEODEVICE=/dev/`find /sys/devices -name name -exec grep "$VIDEONAME" {} + | awk -F\/ '{print $(NF-1)}'`
AUDIODEVICE=hw.`cat /proc/asound/modules | grep $AUDIONAME | awk -F\ '{print $(NF-1)}'`,0
cd /media/TEMP2
mplayer -vf screenshot -vo xv tv:// -tv device=$VIDEODEVICE:driver=v4l2:buffersize=1024:chanlist=russia:normid=17:outfmt=yv12:channels=1-Первый,2-НТВ:chanlist=russia:fps=25:width=640:height=480:alsa:adevice=$AUDIODEVICE:volume=30:amode=1:audiorate=32000:forceaudio:immediatemode=0:tdevice=/dev/vbi0:tformat=3:tlang=33 -font "/usr/share/fonts/truetype/msttcorefonts/Impact.ttf" -delay 0.2 -framedrop -ontop 1>/dev/null 2>/dev/null
Also you can see how to make good tv application with mplayer and Kuzkina Mat'. If you have better decisions - just show me them.
20090519
Intro
This blog was created for myself only. Though you all can be here and you can watch my aspirations to do something good in my wonderful Ubuntu Linux.
Подписаться на:
Сообщения (Atom)