Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Blog Ubuntu -- Správa "projektů" české komunity Ubuntu

Novinky: Školení nejen k OS Ubuntu pro širokou veřejnost, více informací zde.

Autor Téma: VLC prijmuti stremu z kamery a moznost pripojeni  (Přečteno 2332 krát)

Kony.cz

  • Člen
  • **
  • Příspěvků: 236
  • Karma: +4/-9
    • Zobrazit profil
VLC prijmuti stremu z kamery a moznost pripojeni
« kdy: 04 Únor 2015, 14:57:43 »
Ahoj, resim takovy problem.. mam webovou kameru (stream tam bezi http://192.168.86.21/video.mjpg a potrebuji aby se na tento strem pripojovalo nekolik lidi, jenze kamera je na slabe konektivite, takze jsem to chtel vyresit tak ze jsem si postavil server s debianem a na nem sprovoznil VLC..... Tento server je na optice 1 gbit. Takze by server bral stream z kamery a lidi by se pripojovali az na tento server....

zkusil jsem prikaz

Kód: [Vybrat]
vlc -vvv http://192.168.86.21/video.mjpg --sout '#standard{access=http,mux=ogg,dst=192.168.86.19:8080}'


kde 192.168.86.21 je kamera a 192.168.86.19 je prave ten server


ale nejak mi to nechce fungovat.. pri spusteni na serveru vypisuje

Kód: [Vybrat]
alix@alix:~$ vlc -vvv http://192.168.86.21/video.mjpg --sout '#standard{access=http,mux=ogg,dst=192.168.86.19:8080}'
VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0x88638f0] main libvlc debug: VLC media player - 2.0.3 Twoflower
[0x88638f0] main libvlc debug: Copyright © 1996-2012 VLC authors and VideoLAN
[0x88638f0] main libvlc debug: revision 2.0.2-93-g77aa89e
[0x88638f0] main libvlc debug: configured with ./configure  '--enable-static' '--build=i486-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=5+deb7u2' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-fbosd' '--enable-libva' '--enable-linsys' '--enable-omxil' '--enable-pvr' '--enable-udev' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'build_alias=i486-linux-gnu'
[0x88638f0] main libvlc debug: searching plug-in modules
[0x88638f0] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x88638f0] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x88638f0] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0x88638f0] main libvlc debug: plug-ins loaded: 420 modules
[0x88638f0] main libvlc debug: opening config file (/home/alix/.config/vlc/vlcrc)
[0x88638f0] main libvlc debug: translation test: code is "C"
[0x88638f0] main libvlc debug: CPU has capabilities MMX 3DNow! MMXEXT FPU
[0x88638f0] main libvlc debug: looking for memcpy module: 4 candidates
[0x88638f0] main libvlc debug: using memcpy module "memcpymmxext"
[0x8883ec8] main input debug: Creating an input for 'Media Library'
[0x8883ec8] main input debug: Input is a meta file: disabling unneeded options
[0x8883ec8] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x8883ec8] main input debug: `file/xspf-open:///home/alix/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/alix/.local/share/vlc/ml.xspf'
[0x8883ec8] main input debug: creating demux: access='file' demux='xspf-open' location='/home/alix/.local/share/vlc/ml.xspf' file='/home/alix/.local/share/vlc/ml.xspf'
[0x8877918] main demux debug: looking for access_demux module: 3 candidates
[0x8877918] main demux debug: no access_demux module matching "file" could be loaded
[0x8877918] main demux debug: TIMER module_need() : 9.112 ms - Total 9.112 ms / 1 intvls (Avg 9.112 ms)
[0x8883ec8] main input debug: creating access 'file' location='/home/alix/.local/share/vlc/ml.xspf', path='/home/alix/.local/share/vlc/ml.xspf'
[0x88fe640] main access debug: looking for access module: 2 candidates
[0x88fe640] filesystem access debug: opening file `/home/alix/.local/share/vlc/ml.xspf'
[0x88fe640] main access debug: using access module "filesystem"
[0x88fe640] main access debug: TIMER module_need() : 6.133 ms - Total 6.133 ms / 1 intvls (Avg 6.133 ms)
[0x88edb30] main stream debug: Using stream method for AStream*
[0x88edb30] main stream debug: starting pre-buffering
[0x88edb30] main stream debug: received first data after 0 ms
[0x88edb30] main stream debug: pre-buffering done 296 bytes in 0s - 576 KiB/s
[0x88fed30] main stream debug: looking for stream_filter module: 7 candidates
[0x88fed30] main stream debug: no stream_filter module matching "any" could be loaded
[0x88fed30] main stream debug: TIMER module_need() : 8.071 ms - Total 8.071 ms / 1 intvls (Avg 8.071 ms)
[0x88fed30] main stream debug: looking for stream_filter module: 1 candidate
[0x88fed30] main stream debug: using stream_filter module "stream_filter_record"
[0x88fed30] main stream debug: TIMER module_need() : 3.728 ms - Total 3.728 ms / 1 intvls (Avg 3.728 ms)
[0x8883ec8] main input debug: creating demux: access='file' demux='xspf-open' location='/home/alix/.local/share/vlc/ml.xspf' file='/home/alix/.local/share/vlc/ml.xspf'
[0x88fd940] main demux debug: looking for demux module: 1 candidate
[0x88fd940] playlist demux debug: using XSPF playlist reader
[0x88fd940] main demux debug: using demux module "playlist"
[0x88fd940] main demux debug: TIMER module_need() : 5.629 ms - Total 5.629 ms / 1 intvls (Avg 5.629 ms)
[0x88ee608] main demux meta debug: looking for meta reader module: 2 candidates
[0x88ee608] lua demux meta debug: Trying Lua scripts in /home/alix/.local/share/vlc/lua/meta/reader
[0x88ee608] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x88ee608] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x88ee608] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x88ee608] main demux meta debug: no meta reader module matching "any" could be loaded
[0x88ee608] main demux meta debug: TIMER module_need() : 29.635 ms - Total 29.635 ms / 1 intvls (Avg 29.635 ms)
[0x8883ec8] main input debug: `file/xspf-open:///home/alix/.local/share/vlc/ml.xspf' successfully opened
[0x88f3df8] main xml reader debug: looking for xml reader module: 1 candidate
[0x88f3df8] main xml reader debug: using xml reader module "xml"
[0x88f3df8] main xml reader debug: TIMER module_need() : 15.317 ms - Total 15.317 ms / 1 intvls (Avg 15.317 ms)
[0x88fd940] playlist demux debug: parsed 0 tracks successfully
[0x8883ec8] main input debug: EOF reached
[0x88fd940] main demux debug: removing module "playlist"
[0x88fed30] main stream debug: removing module "stream_filter_record"
[0x88fe640] main access debug: removing module "filesystem"
[0x8883ec8] main input debug: TIMER input launching for 'Media Library' : 81.206 ms - Total 81.206 ms / 1 intvls (Avg 81.206 ms)
[0x88fed30] main interface debug: looking for interface module: 1 candidate
[0x88fed30] main interface debug: using interface module "hotkeys"
[0x88fed30] main interface debug: TIMER module_need() : 3.983 ms - Total 3.983 ms / 1 intvls (Avg 3.983 ms)
[0x88edb30] main interface debug: looking for interface module: 1 candidate
[0x88edb30] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x88edb30] main interface debug: no interface module matching "inhibit,none" could be loaded
[0x88edb30] main interface debug: TIMER module_need() : 5.171 ms - Total 5.171 ms / 1 intvls (Avg 5.171 ms)
[0x88edb30] main interface error: no suitable interface module
[0x89debb8] main playlist debug: playlist threads correctly activated
[0x89debb8] main playlist debug: adding item `http://192.168.86.21/video.mjpg' ( http://192.168.86.21/video.mjpg )
[0x8884b30] main interface debug: looking for interface module: 1 candidate
[0x89debb8] main playlist debug: rebuilding array of current - root Playlist
[0x89debb8] main playlist debug: rebuild done - 1 items, index -1
[0x89debb8] main playlist debug: no fetch required for (null) (art currently (null))
[0x8884b30] main interface debug: no interface module matching "globalhotkeys,none" could be loaded
[0x8884b30] main interface debug: TIMER module_need() : 8.317 ms - Total 8.317 ms / 1 intvls (Avg 8.317 ms)
[0x8884b30] main interface error: no suitable interface module
[0x88638f0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x88638f0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x8884b30] main interface debug: looking for interface module: 6 candidates
[0x8884b30] qt4 interface error: Could not connect to X server
[0x8884b30] skins2 interface debug: Cannot open X display
[0x8884b30] skins2 interface error: cannot initialize OSFactory
[0x8884b30] [cli] lua interface debug: Found lua interface script: /usr/lib/vlc/lua/intf/cli.luac
[0x8884b30] [cli] main interface debug: using interface module "lua"
[0x8884b30] [cli] main interface debug: TIMER module_need() : 19.285 ms - Total 19.285 ms / 1 intvls (Avg 19.285 ms)
[0x89debb8] main playlist debug: processing request item: null, node: Playlist, skip: 0
[0x89debb8] main playlist debug: starting playback of the new playlist item
[0x89debb8] main playlist debug: resyncing on http://192.168.86.21/video.mjpg
[0x89debb8] main playlist debug: http://192.168.86.21/video.mjpg is at 0
[0x89debb8] main playlist debug: creating new input thread
[0x88fb9d8] main input debug: Creating an input for 'http://192.168.86.21/video.mjpg'
[0x8894200] main stream output debug: using sout chain=`standard{access=http,mux=ogg,dst=192.168.86.19:8080}'
[0x8894200] main stream output debug: stream=`standard'
[0x8894490] main stream out debug: looking for sout stream module: 1 candidate
[0x8894490] main stream out debug: set config option: sout-standard-access to http
[0x8894490] main stream out debug: set config option: sout-standard-mux to ogg
[0x8894490] main stream out debug: set config option: sout-standard-dst to 192.168.86.19:8080
[0x8895e68] main access out debug: looking for sout access module: 1 candidate
[0x8895e68] access_output_http access out warning: "192.168.86.19" HTTP host might be ignored in multiple-host configurations, use at your own risks.
[0x8895e68] access_output_http access out: Consider passing --http-host=IP on the command line instead.
[0x8895e68] main access out debug: net: listening to 192.168.86.19 port 8080
[0x8895e68] main access out debug: using sout access module "access_output_http"
[0x8895e68] main access out debug: TIMER module_need() : 12.818 ms - Total 12.818 ms / 1 intvls (Avg 12.818 ms)
[0x8896680] main mux debug: looking for sout mux module: 1 candidate
[0x8896680] mux_ogg mux: Open
[0x8896680] main mux debug: using sout mux module "mux_ogg"
[0x8896680] main mux debug: TIMER module_need() : 5.111 ms - Total 5.111 ms / 1 intvls (Avg 5.111 ms)
[0x8894200] main stream output debug: muxer support adding stream at any time
[0x8894200] main stream output debug: muxer prefers to wait for all ES before starting to mux
[0x8894490] stream_out_standard stream out debug: using `http/ogg://192.168.86.19:8080'
[0x8894490] main stream out debug: using sout stream module "stream_out_standard"
[0x8894490] main stream out debug: TIMER module_need() : 26.640 ms - Total 26.640 ms / 1 intvls (Avg 26.640 ms)
[0x88fb9d8] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x88fb9d8] main input debug: `http://192.168.86.21/video.mjpg' gives access `http' demux `' path `192.168.86.21/video.mjpg'
[0x88fb9d8] main input debug: creating demux: access='http' demux='' location='192.168.86.21/video.mjpg' file='(null)'
[0x88a6118] main demux debug: looking for access_demux module: 0 candidates
[0x88a6118] main demux debug: no access_demux module matched "http"
[0x88a6118] main demux debug: TIMER module_need() : 1.507 ms - Total 1.507 ms / 1 intvls (Avg 1.507 ms)
[0x88fb9d8] main input debug: creating access 'http' location='192.168.86.21/video.mjpg', path='(null)'
[0x88a62b8] main access debug: looking for access module: 2 candidates
[0x8884b30] [cli] lua interface: Listening on host "*console".
VLC media player 2.0.3 Twoflower
Command Line Interface initialized. Type `help' for help.
> [0x88a62b8] access_http access debug: asking libproxy about url 'http://192.168.86.21/video.mjpg'
[0x88a62b8] access_http access debug: libproxy suggest to use 'direct://'
[0x88a62b8] access_http access debug: http: server='192.168.86.21' port=80 file='/video.mjpg'
[0x88a62b8] main access debug: net: connecting to 192.168.86.21 port 80
[0x88a62b8] main access debug: connection succeeded (socket = 6)
[0x88a62b8] access_http access debug: protocol 'HTTP' answer code 401
[0x88a62b8] access_http access debug: Server: Boa/0.94.14rc21
[0x88a62b8] access_http access debug: Connection: close
[0x88a62b8] access_http access debug: Authentication header: Basic realm="streaming_server"
[0x88a62b8] main access debug: Using Basic Authentication
[0x88a62b8] access_http access debug: Content-Type: text/html; charset=ISO-8859-1
[0x88a62b8] access_http access debug: authentication failed for realm streaming_server
[0x88a62b8] main access debug: net: connecting to 192.168.86.21 port 80
[0x88a62b8] main access debug: connection succeeded (socket = 6)
[0x88a62b8] access_mms access error: error: HTTP/1.0 401 Unauthorized
[0x88a62b8] main access debug: no access module matching "http" could be loaded
[0x88a62b8] main access debug: TIMER module_need() : 352.013 ms - Total 352.013 ms / 1 intvls (Avg 352.013 ms)
[0x88fb9d8] main input error: open of `http://192.168.86.21/video.mjpg' failed
[0x88fb9d8] main input error: Your input can't be opened
[0x88fb9d8] main input error: VLC is unable to open the MRL 'http://192.168.86.21/video.mjpg'. Check the log for details.
[0x89debb8] main playlist debug: finished input
[0x89debb8] main playlist debug: dead input
[0x8894200] main stream output debug: destroying useless sout
[0x8894490] main stream out debug: destroying chain... (name=standard)
[0x8894490] main stream out debug: removing module "stream_out_standard"
[0x8896680] main mux debug: removing module "mux_ogg"
[0x8896680] mux_ogg mux: Close
[0x8895e68] main access out debug: removing module "access_output_http"
[0x88a3598] main http host debug: waitpipe: object killed
[0x88a3598] main http host debug: HTTP host removed
[0x8895e68] access_output_http access out debug: Close
[0x8894490] main stream out debug: destroying chain done
[0x88fb9d8] main input debug: TIMER input launching for 'http://192.168.86.21/video.mjpg' : 397.349 ms - Total 397.349 ms / 1 intvls (Avg 397.349 ms)
[0x89debb8] main playlist debug: changing item without a request (current 0/1)
[0x89debb8] main playlist debug: nothing to play


mohl by prosim nekdo zkusenejsi poradit ?? dekuji mockrat


tak to vypada ze mu vadi autorizace toho streamu z kamery..... ale nevim jak zadat do toho prikazu aby pouzil login a heslo
« Poslední změna: 04 Únor 2015, 16:24:38 od Milhouse »

Beetljuice

  • Stálý člen
  • ***
  • Příspěvků: 829
  • Karma: +43/-5
    • Zobrazit profil
Re:VLC prijmuti stremu z kamery a moznost pripojeni
« Odpověď #1 kdy: 04 Únor 2015, 16:33:09 »
Jako jméno a heslo k tomu původnímu streamu z kamery?
co takhle?
Kód: [Vybrat]
vlc -vvv http://uzivatel:heslo@192.168.86.21/video.mjpg --sout '#standard{access=http,mux=ogg,dst=192.168.86.19:8080}'
Aj dont spíík ííngliš :)

Kony.cz

  • Člen
  • **
  • Příspěvků: 236
  • Karma: +4/-9
    • Zobrazit profil
Re:VLC prijmuti stremu z kamery a moznost pripojeni
« Odpověď #2 kdy: 04 Únor 2015, 20:03:25 »
jsem magor.... ze me to nenapadlo.... takova prkotina



DIIIKY moc

Beetljuice

  • Stálý člen
  • ***
  • Příspěvků: 829
  • Karma: +43/-5
    • Zobrazit profil
Re:VLC prijmuti stremu z kamery a moznost pripojeni
« Odpověď #3 kdy: 04 Únor 2015, 20:13:41 »
Není zač ;-)
Aj dont spíík ííngliš :)

Kony.cz

  • Člen
  • **
  • Příspěvků: 236
  • Karma: +4/-9
    • Zobrazit profil
Re:VLC prijmuti stremu z kamery a moznost pripojeni
« Odpověď #4 kdy: 10 Únor 2015, 10:22:25 »
jeste resim transcode.... porad se mi to nevede... aby se zmencil datovy tok, a nebo abych mohl zmenit kodovani