[root@server ~]# gpasswd -a apt5 cameraAdding user apt5 to group camera[root@server ~]#[root@server ~]# gpasswd -a apt5 videoAdding user apt5 to group video[root@server ~]#
[root@server ~]# apt-cache search uvcvideo
apt-get install kernel-modules-v4l-std-def
Видеоmplayer (без GUI) но со своим набором сопутствующих утилитsmplayerконсольные утилиты (ffmpeg, mjpegtools, transcode)
framebuffer
команда rpm -qa|grep kernel-modules-drm-std-defчто говорит ?
[root@server ~]# rpm -qa|grep kernel-modules-drm-std-def kernel-modules-drm-std-def-3.12.24-alt2[root@server ~]# ll /dev/fb*crw-rw---- 1 root video 29, 0 июл 12 17:29 /dev/fb0[root@server ~]# mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshotMPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team192 аудио & 401 видео кодековВоспроизведение tv://.Cache fill: 0.00% (0 bytes) Обнаружен TV формат файла!Выбран драйвер: v4l2 название: Video 4 Linux 2 input автор: Martin Olschewski <olschewski@zpr.uni-koeln.de> комментарий first try, more to come ;-)v4l2: unable to open '/dev/video0': Нет такого файла или каталогаv4l2: ioctl set mute failed: Неправильный дескриптор файлаv4l2: 0 frames successfully processed, 0 frames dropped.Выходим... (End of file)[root@server ~]#
[apt5@server ~]$ vlcVLC media player 2.1.4 Rincewind (revision 2.1.4-alt1)[0x805e120] pulse audio output error: PulseAudio server connection failure: Соединение отвергнуто[0x80e2688] main interface error: no suitable interface module[0x804e8c0] main libvlc error: interface "globalhotkeys,none" initialization failed[0x80e56c8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11[0x80e56c8] main interface error: no suitable interface module[0x804e8c0] main libvlc error: interface "dbus,none" initialization failed[0x804e8c0] main libvlc: Запуск vlc с интерфейсом по умолчанию. Используйте 'cvlc' для запуска vlc без интерфейса.[0x80e5b78] qt4 interface error: Could not connect to X server[0x80e5b78] skins2 interface error: cannot initialize OSFactory[0x80e5b78] [cli] lua interface: Listening on host "*console".VLC media player 2.1.4 Rincewind Command Line Interface initialized. Type `help' for help. > ^C[0x80e5b78] [cli] lua interface error: Error loading script /usr/lib/vlc/lua/intf/cli.luac: lua/intf/modules/host.lua:279: Interrupted.[apt5@server ~]$ cvlcVLC media player 2.1.4 Rincewind (revision 2.1.4-alt1)[0x80fd270] pulse audio output error: PulseAudio server connection failure: Соединение отвергнуто[0x80e58b8] main interface error: no suitable interface module[0x804e8c0] main libvlc error: interface "globalhotkeys,none" initialization failed[0x8102df8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11[0x8102df8] main interface error: no suitable interface module[0x804e8c0] main libvlc error: interface "dbus,none" initialization failed[0x8102df8] dummy interface: using the dummy interface module...
ответ на вопрос - используйте vlc.например инструкция (первое что попалось в гугле):http://subnets.ru/blog/?p=12
установил в synaptic kernel-modules-v4l-un-def#1:3.13.6-alt1, libev4, v4l2ucp, v4l-utils.Далее по этой инструкции http://www.altlinux.org/%D0%92%D0%B5%D0%B1%D0%BA%D0%B0%D0%BC%D0%B5%D1%80%D0%B0_%D0%B2_Skype Ввел вот эту команду: # echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so">>/etc/bashrc
я просто в консоли запускаю vlc v4l:///dev/video0 и оно воспроизводит.
$ cvlc v4l2:///dev/video0 :v4l2-стандарт= :input-slave=alsa://hw:0,0 :live-caching=300 :sout="#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{dst=:8080/stream.wmv}"
netstat-nap | grep 8080
/sbin/agetty -a server tty1
mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshot