이것 대신 /var/log/Xorg.log 에서 0x 로 검색 framebuffer의 주소를 알아내서
$ v4l-conf /dev/video1 -a 0xfb000000
이런식으로 설정을 해주고 xawtv를 실행하니,
프레임 버퍼는 맞는지 화면이 이상하게 출력되면서 시스템 다운 ㄱ-
Basically, you figure out which PCI bus:slot.function your device is,
then look in your /sys/bus/pci/devices/0000:<that
bus:slot.function>/resource file. That will list all memory ranges
that your video card has reserved.
DGA is short for Direct Graphics
Access and is a means for a program to bypass the X server
and
directly modifying the framebuffer memory. Technically spoken this
happens
by mapping the framebuffer memory into the memory range of your process.
This is allowed by the kernel only if you have superuser privileges. You
can get these either by logging in as root
or by setting the SUID bit on the
MPlayer executable (not
recommended).
리눅스에서 심심해서 한번 꼽아봤더니 인식을 한다.
아직, xawtv를 쓸줄을 몰라서 제대로 구동은 하지 못하고 있지만, 제대로 돌아만 간다면 쓸만할 것으로 보인다.
설정이 문제인지, 조금만 건드리면 바로 segmentation fault가 뜨며 xawtv가 죽는다.
vlc 역시 디바이스를 열자마자 죽는 현상이 발생하고 있다.
아래는 리눅스 상의 인식 내용이다.
$ lsusb
Bus 002 Device 003: ID 0768:0006 Camtel Technology Corp. Camtel Technology USB TV Genie Pro FM Model TVB330
# dmesg
[ 159.360021] usb 2-1: new full speed USB device using uhci_hcd and address 3
[ 159.846752] usb 2-1: configuration #1 chosen from 4 choices
[ 159.894129] usbvision_probe: Camtel Technology USB TV Genie Pro FM Model TVB330 found
[ 159.894354] USBVision[0]: registered USBVision Video device /dev/video1 [v4l2]
[ 159.894450] USBVision[0]: registered USBVision Radio device /dev/radio0 [v4l2]
[ 159.894531] USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
[ 159.896748] usbcore: registered new interface driver usbvision
[ 159.898295] USBVision USB Video Device Driver for Linux : 0.9.10
[ 160.234368] saa7115 5-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #1)
[ 161.473870] tuner 5-0061: chip found @ 0xc2 (usbvision #1)
[ 161.529521] tuner-simple 5-0061: creating new instance
[ 161.529529] tuner-simple 5-0061: type set to 17 (Philips NTSC_M (MK2))
$ v4l-conf -c /dev/video1
v4l-conf: using X11 display :0.0
dga: version 2.0
WARNING: No DGA direct video mode for this display.
mode: 1024x768, depth=24, bpp=32, bpl=4096, base=unknown
/dev/video1 [v4l2]: no overlay support
$ xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-23-generic)
looking for available devices
port 164-195
type : Xvideo, image scaler
name : NV05 Video Blitter
/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : DC10plus[0]
flags: overlay capture
/dev/video1: OK [ -device /dev/video1 ]
type : v4l2
name : Camtel Technology USB TV Genie
flags: capture tuner
BT878 계열의 TV 수신칩을 제어가능한데, 그 외에 몇가지 칩도 지원을 한다.
아무튼, Pinnacle DC10 plus 라는 녀석을 검색해보면 아래와 같이 v4l2를 지원한다는데
VLC에서 나오지 않아 xawtv에서 출력을 하지만, 창의 크기를 바꾼다던가 하면 나오지 않는 문제가 발생했다.
$ xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-23-generic)
looking for available devices
port 164-195
type : Xvideo, image scaler
name : NV05 Video Blitter
/dev/video0: OK [ -device /dev/video0 ] type : v4l2
name : DC10plus[0]
flags: overlay capture
참고사항으로, xawtv는 ssh를 통해서는 아래와 같이 도움말 조차도 볼수가 없다. (X11 Tunneling 하면 되려나?)
$ xawtv --help
xdpyinfo: unable to open display "".
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-23-generic)
Error: Can't open display:
$ xawtv --help
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-23-generic)
usage: xawtv [ options ] [ station ]
options:
-h -help print this text
-v -debug n debug level n, n = [0..2]
-remote assume remote display
-n -noconf don't read the config file
-m -nomouse startup with mouse pointer disabled
-f -fullscreen startup in fullscreen mode
-(no)dga enable/disable DGA extention
-(no)vm enable/disable VidMode extention
-(no)randr enable/disable Xrandr extention
-(no)xv enable/disable Xvideo extention altogether
-(no)xv-video enable/disable Xvideo extention (for video only,
i.e. XvPutVideo() calls)
-(no)xv-image enable/disable Xvideo extention (for image scaling
only, i.e. XvPutImage() calls)
-(no)gl enable/disable OpenGL
-b -bpp n color depth of the display is n (n=24,32)
-o -outfile file filename base for snapshots
-c -device file use <file> as video4linux device
-C -dspdev file use <file> as audio (oss) device
-vbidev file use <file> as vbi device
-joydev file use <file> as joystick device
-shift x shift display by x bytes
-fb let fb (not X) set up v4l device
-parallel n use n compression threads
-bufcount n use n video buffers
-hwscan print a list of available devices.
station:
this is one of the stations listed in $HOME/.xawtv
Check the manual page for a more detailed description.