# ls /dev/video*
/dev/video0
/dev/video1
snouman@merlin:~$ cvlc v4l2:///dev/video0 --sout '#transcode{vcodec=h264,vb=800,scale=1,acodec=none}:duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8081}}' &
[1] 2761
snouman@merlin:~$ VLC media player 1.0.2 Goldeneye
[0x994baf0] inhibit interface error: Failed to connect to the D-Bus session daemon: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
[0x994baf0] main interface error: no suitable interface module
[0x9891140] main libvlc error: interface "inhibit,none" initialization failed
[0x993fa38] main interface error: no suitable interface module
[0x9891140] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x993fa38] dummy interface: using the dummy interface module...
[0x994e318] main access out: creating httpd
x264 [info]: using cpu capabilities: MMX2 Cache32
x264 [info]: profile Main, level 5.1
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 Cache32
x264 [info]: profile Main, level 5.1
Funguje a chytnu ho na každém PC v LANu přes VLC, ctrl+n HTTP: IP serveru: 8081
Když chci ale nahodit druhou kameru, tak:
snouman@merlin:~$ cvlc v4l2:///dev/video1 --sout '#transcode{vcodec=h264,vb=800,scale=1,acodec=none}:duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8082}}'
VLC media player 1.0.2 Goldeneye
[0x9c1caf0] inhibit interface error: Failed to connect to the D-Bus session daemon: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
[0x9c1caf0] main interface error: no suitable interface module
[0x9b62140] main libvlc error: interface "inhibit,none" initialization failed
[0x9c10a38] main interface error: no suitable interface module
[0x9b62140] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x9c10a38] dummy interface: using the dummy interface module...
[0x9c0dd98] main access out: creating httpd
[0x9c277e8] v4l2 demux error: cannot get video input characteristics (Invalid argument)
Takže úkol splněn napůl, jdu spát...