'V4L'에 해당되는 글 3건

  1. 2010.07.06 xawtv / v4l-conf 관련 끄적임
  2. 2010.07.03 VLC - V4L2 modules
  3. 2009.12.06 리눅스에 웹캠 연결시 인식 5
완성된게 아니라서 일단 링크만 잔뜩.

안되잖아!
I solve it by running it as 'xawtv -noxv-video'.

[링크 : http://www.webservertalk.com/archive306-2004-12-651979.html]

참고로 v4l-conf -a 는 root 만 된다고 좀 해주지 그랬어 ㄱ-
$ v4l-conf -a 0x00000000f0000000
works, but still a black screen. :(

[링크 : http://linux.derkeiler.com/Mailing-Lists/Fedora/2006-12/msg01393.html]

이것 대신 /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.

[링크 : http://www.nvnews.net/vbulletin/showthread.php?p=1008836]

결론은 마지막에 ... not recommeneded.
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).

[링크 : http://www.mplayerhq.hu/DOCS/HTML/en/dga.html]

[링크 : http://linux.die.net/man/1/v4lctl]
[링크 : http://linux.die.net/man/8/v4l-conf]
[링크 : http://linux.die.net/man/1/xawtv]

'하드웨어 > 캡쳐보드 카메라' 카테고리의 다른 글

Quadro SDI 제품군  (0) 2011.02.07
mplayer, gnome-mplayer  (0) 2010.07.07
CSE PotoTV on Linux  (0) 2010.07.05
xawtv (for linux)  (0) 2010.07.03
DVC-430 연결!  (4) 2010.06.30
Posted by 구차니
프로그램 사용/VLC2010. 7. 3. 14:29
V4L은 Video for Linux이고, 그 다음버전으로 V4L2가 있다.
VLC 윈도우 버전에서는 dshow(Direct SHOW)를 지원하는 반면
VLC 리눅스 버전에서는 V4L / V4L2를 지원한다.

--v4l-mjpeg, --no-v4l-mjpeg
                                MJPEG (default disabled)
[링크 : http://wiki.videolan.org/V4l]
예전 pinnacle DC10 plus 에서 기본 옵션으로 V4L / V4L2 에서 할경우 안나왔던 이유가 이 옵션이 disable이기 때문이려나?

VLC 에서 V4L / V4L2 옵션 스샷

VLC 에서 V4L 옵션 / VLC 에서 V4L2 옵션

[링크 : http://wiki.videolan.org/V4l]
[링크 : http://wiki.videolan.org/Documentation:Modules/v4l2]
Posted by 구차니
Linux API/v4l2009. 12. 6. 19:41
  [CAMEL PC-100 : http://blog.danawa.com/prod/?prod_c=956003]
  [더불정보기술 X-LUK DBC-UP : http://blog.danawa.com/prod/?prod_c=911980]

위에 두녀석을 다시 꼽아 보니 둘다 video0가 생성이 된다.
CAMEL PC-100은 내장 마이크/사운드 장치가 있고
X-LUK DBC-UP은 내장 마이크 조차 없는 녀석이다(단지 PC용 monitor 프로그램이 있어서 산것일뿐 ㄱ-)

아무튼 /dev를 비교해보니 아래와 같이 추가가 되었다.

 CAMEL PC-10  더불정보기술 X-LUK DBC-UP
/dev
crw-rw----+ 1 root audio    14,  20 2009-12-06 19:22 audio1
crw-rw----+ 1 root audio    14,  19 2009-12-06 19:22 dsp1
crw-rw----+ 1 root audio    14,  16 2009-12-06 19:22 mixer1
drwxr-xr-x  4 root root          80 2009-12-06 19:22 v4l
crw-rw----+ 1 root video    81,   0 2009-12-06 19:22 video0

~$ tree /dev/v4l
/dev/v4l
|-- by-id
|   `-- usb-ARKMICRO_USB2.0_PC_CAMERA-video-index0 -> ../../video0
`-- by-path
    `-- pci-0000:00:10.4-usb-0:3:1.0-video-index0 -> ../../video0
/dev



drwxr-xr-x  4 root root          80 2009-12-06 19:30 v4l
crw-rw----+ 1 root video    81,   0 2009-12-06 19:30 video0

$ tree /dev/v4l
/dev/v4l
|-- by-id
|   `-- usb-Vimicro_Corp._PC_Camera-video-index0 -> ../../video0
`-- by-path
    `-- pci-0000:00:10.1-usb-0:1:1.0-video-index0 -> ../../video0

아무튼, video0 장치는 둘다 생기고, video4linux 장비로 인식을 한다. (ffmpeg이 왜 안되는겨 ㅠ.ㅠ)


CAMEL PC-10
$ ffmpeg -y -f video4linux -r 30 -s 320x240 -i /dev/video0 http://localhost:8090/feed1.ffm
FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Oct 13 2009 22:15:16, gcc: 4.4.1
[video4linux @ 0x85222c0]VIDIOCSWIN: Bad address
/dev/video0: I/O error occurred
Usually that means that input file is truncated and/or corrupted.


더불정보기술 X-LUK DBC-UP
$ ffmpeg -y -f video4linux -r 30 -s 320x240 -i /dev/video1 http://localhost:8090/feed1.ffm
FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Oct 13 2009 22:15:16, gcc: 4.4.1
Input #0, video4linux, from '/dev/video1':
  Duration: N/A, start: 1260102822.110153, bitrate: 27647 kb/s
    Stream #0.0: Video: rawvideo, yuv420p, 320x240, 27647 kb/s, 30 tbr, 1000k tbn, 30 tbc
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
    Stream #0.0: Video: mpeg1video, yuv420p, 320x240, q=3-31, 512 kb/s, 1000k tbn, 30 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
[mpeg1video @ 0x9940160]rc buffer underflow
VIDIOCMCAPTURE: Invalid argument
frame=    1 fps=  0 q=31.7 Lsize=      12kB time=10000000000.00 bitrate=   0.0kbits/s
video:8kB audio:0kB global headers:0kB muxing overhead 54.352468%



2010.02.18 추가

열화와 같은 성원(?)으로 드라이버 및 프로그램을 올려 놓습니다.
X-LUK DBC-UP 에는 xp용 드라이버와 감시프로그램이
vista 에는 vista용 드라이버가 들어있습니다.


'Linux API > v4l' 카테고리의 다른 글

v4l2 debug  (0) 2022.07.13
v4l2-ctl 밝기 조절  (0) 2022.07.06
v4l2 timestamp  (0) 2017.04.19
uv4l  (0) 2015.09.13
Posted by 구차니