[apt5@server ~]$ vlc -I dummy v4l2:///dev/video0 --sout '#transcode{vcodec=mp4v,vb=400,width=640,height=480,fps=15}:standard{access=http,m=ogg,dst=192.168.0.100:8081'
VLC media player 2.1.4 Rincewind (revision 2.1.4-alt1)
[0x80fd380] pulse audio output error: PulseAudio server connection failure: Соединение отвергнуто
[0x80e57a8] main interface error: no suitable interface module
[0x804e8c0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x80e57a8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x80e57a8] main interface error: no suitable interface module
[0x804e8c0] main libvlc error: interface "dbus,none" initialization failed
[0x80e57a8] dummy interface: using the dummy interface module...
[0xb5801700] access_output_http access out: Consider passing --http-host=IP on the command line instead.
[0xb5802690] mux_ogg mux: Open
[0xb5804308] v4l2 demux error: cannot open device '/dev/video0': No such file or directory
[0xb5804308] v4l2 demux error: cannot open device '/dev/video0': No such file or directory
[0xb5805ad0] v4l2 access error: cannot open device '/dev/video0': No such file or directory
[0xb5a00578] main input error: open of `v4l2:///dev/video0' failed
[0xb5a00578] main input error: Этот источник не открывается
[0xb5a00578] main input error: VLC не может открыть MRL 'v4l2:///dev/video0'. Ищите более подробную информацию в лог-файле.
[0xb5802690] mux_ogg mux: Close
^C[apt5@server ~]$ vlc -I dummy v4l2:///dev/video0 --sout '#transcode{vcodec=mp4v,vb=400,width=640,height=480,fps=15}:standard{access=http,m=ogg,dst=192.168.0.100:8081'
VLC media player 2.1.4 Rincewind (revision 2.1.4-alt1)
[0x80fd380] pulse audio output error: PulseAudio server connection failure: Соединение отвергнуто
[0x80e57a8] main interface error: no suitable interface module
[0x804e8c0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x80e57a8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x80e57a8] main interface error: no suitable interface module
[0x804e8c0] main libvlc error: interface "dbus,none" initialization failed
[0x80e57a8] dummy interface: using the dummy interface module...
[0xb5801700] access_output_http access out: Consider passing --http-host=IP on the command line instead.
[0xb5802690] mux_ogg mux: Open
[0xb5804308] v4l2 demux error: cannot open device '/dev/video0': No such file or directory
[0xb5804308] v4l2 demux error: cannot open device '/dev/video0': No such file or directory
[0xb5805ad0] v4l2 access error: cannot open device '/dev/video0': No such file or directory
[0xb5a00578] main input error: open of `v4l2:///dev/video0' failed
[0xb5a00578] main input error: Этот источник не открывается
[0xb5a00578] main input error: VLC не может открыть MRL 'v4l2:///dev/video0'. Ищите более подробную информацию в лог-файле.
[0xb5802690] mux_ogg mux: Close
Почему v4l2 стал отваливаться часто?
Железо исправно:
[root@server ~]# dmesg |grep usb*
*
*
*
[ 2734.164721] ieee80211 phy0: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 6 in queue 2
[ 2734.164786] ieee80211 phy0: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 6 in queue 2
[ 2734.164796] ieee80211 phy0: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 6 in queue 2
[ 2737.023376] usb 1-3: USB disconnect, device number 3
[ 2737.284072] usb 1-3: new high-speed USB device number 4 using ehci-pci
[ 2737.491800] usb 1-3: New USB device found, idVendor=0ac8, idProduct=c40a
[ 2737.491812] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2737.491819] usb 1-3: Product: A4 TECH USB2.0 PC Camera J
[ 2737.491826] usb 1-3: Manufacturer: A4 TECH
[ 2737.502198] input: A4 TECH USB2.0 PC Camera J as /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/input/input6
[root@server ~]#
[root@server ~]# lsusb
Bus 001 Device 004: ID 0ac8:c40a Z-Star Microelectronics Corp.
Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@server ~]