임베디드 보드에서 mplayer로 카메라 영상을 보려고 하는데 실행하면 mplayer 실행은 되는데, /dev/video0이 open이 안 됩니다~~~
저번에 ov51xx는 usb 디바이스 드라이버를 사용하여 QT4에서 영상을 확인했습니다.
이번에는 em28xx를 사용하여 영상을 보려고 합니다.
# lsmod하니
Module Size Used by
em28xx 44932 0
tveeprom 13072 1 em28xx
ir_common 8068 1 em28xx
videodev 7584 1 em28xx
v4l1_common 4928 1 em28xx
v4l2_compat 11876 1 em28xx
제대로 등록이 되어 있습니다.
QT4에서 open시도 하니 디바이스 드라이버를 open실패를 하더라구요..그래서 mplayer로 시도를 해봤습니다.
termcap, libmad arm-linux-gcc 컴파일 하구요..
mplayer-1.0pre7try2.tar.bz2 압축을 풀어서
./configure --host-cc=gcc --cc=arm-linux-gcc --target=arm-linux -- prefix=/usr/local/arm/mplayer --enable-static --enable-fbdev --enable-linux-devfs --disable-mpdvdkit --disable-x11 --enable-runtime-cpudetection --as=arm-linux-as --enable-ossaudio --disable-tv --disable-tv-bsdbt848 --enable-mad --enable-libavcodec --enable-tv --enable-tv-v4l -enable-tv-v4l2 이렇게 해서 configure하구 make 성공시켰습니다.
임베디드 보드에서 실행을 시키니
./mplayer tv:// -tv driver=4l1-compat:width=640:height=480:fps=25:device=/dev/video0 -vo x11
실행시키니
Linux RTC init error in ioctl (rtc_irqp_set 1024) : Invalid argument
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system starup scripts.
Playing tv://
TV detect! ;
No such driver:v4l1-compat
Exiting ...
이럴때는 어떻게 해야 하나요:?
일단 mplayer 실행은 시켰는데, /dev/video0 open이 안 되네요..흠...
./mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=25:device=/dev/video0 -vo x11
MPlayer 1.0pre7try2-3.4.6 (C) 2000-2005 MPlayer Team
CPU:ARM
Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Playing tv://.
TV detectd! ;-)
Selected driver: v4l2
name : Video 4 Linux 2 input
author : Martin Olschewski
comment : first try, more to come ; -)
v4l2 : unable to open '/dev/video0' : No such device
v4l2 : 0 frames successfully processed, 0 frames dropped.
Exiting...(End of file)
일단 디바이스 드라이버 다 삽입된 상태이고, /dev/video0 open이 안 되네요...
제가 무엇을 잘 못했을까요?
댓글 달기