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

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

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

Autor Téma: Ubuntu server a restream VLC  (Přečteno 2309 krát)

Kony.cz

  • Člen
  • **
  • Příspěvků: 239
  • Karma: +4/-9
    • Zobrazit profil
Ubuntu server a restream VLC
« kdy: 09 Únor 2015, 12:47:40 »
Ahoj, mam poskladany server s Ubuntu, a chtel bych na nem aby prevzal rtps stream z webove kamery a ten potom restreamoval na http.. lidi se potom budou pripojovat na tento server. je to kvuli tomu, ze kamea je na omezene lince a vic pripojenych lidi by omezili kvalitu obrazu a funkcnost. kdezto server bude na 1 Gbit lince...

tedka zkousim

Kód: [Vybrat]
vlc -vvv rtsp://172.16.51.254:554/live.sdp --sout '#transcode{vcodec=mpjpeg,acodec=mpga,vb=800,ab=128,deinterlace}::standard{access=http,mux=ts,url=:8080}'

ale neomezuje me to (neprobiha tam transcode)...

jeste jsem hledal jestli neni nekde na internetu nejaka verze VLC, kde bych si to pres windows nachystal v programu VLC a rovnou se mi tam doplnil command line...

i tohle zkousim a taky porad nic

Kód: [Vybrat]
cvlc -vvv rtsp://172.16.51.254:554/live.sdp :sout=#transcode{vcodec=DIV2,scale=Automaticky,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ts,dst=:8080/}:sout-keep


uz vazne nevim...


pokud pustim to druhy tak

Kód: [Vybrat]
kony@ubuntu-server:~$ cvlc -vvv rtsp://172.16.51.254:554/live.sdp :sout=#transcode{vcodec=DIV2,scale=Automaticky,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ts,dst=:8080/}:sout-keep
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
[0x84e78f8] main libvlc debug: VLC media player - 2.1.4 Rincewind
[0x84e78f8] main libvlc debug: Copyright Š 1996-2014 the VideoLAN team
[0x84e78f8] main libvlc debug: revision 2.1.4-0-g2a072be
[0x84e78f8] main libvlc debug: configured with ./configure  '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--libdir=${prefix}/lib/i386-linux-gnu' '--libexecdir=${prefix}/lib/i386-linux-gnu' '--disable-dependency-tracking' '--build=i686-linux-gnu' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -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' '--libdir=/usr/lib' '--sysconfdir=/etc' '--with-binary-version=0ubuntu14.04.1' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-chromaprint' '--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-libfreerdp' '--enable-libmpeg2' '--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-opus' '--enable-oss' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shout' '--enable-skins2' '--enable-smbclient' '--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-decklink' '--disable-dxva2' '--disable-fdkaac' '--disable-gnomevfs' '--disable-goom' '--disable-libvnc' '--disable-opencv' '--disable-projectm' '--disable-quicksync' '--disable-sndio' '--disable-telx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-libva' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=i686-linux-gnu'
[0x84e78f8] main libvlc debug: searching plug-in modules
[0x84e78f8] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x84e78f8] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x84e78f8] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0x84e78f8] main libvlc debug: plug-ins loaded: 426 modules
[0x84e78f8] main libvlc debug: opening config file (/home/kony/.config/vlc/vlcrc)
[0x84e78f8] main libvlc debug: translation test: code is "cs"
[0x84e78f8] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 3DNow! FPU
[0x84f8440] main input debug: Creating an input for 'Knihovna mĂŠdiĂ­'
[0x84f8440] main input debug: Input is a meta file: disabling unneeded options
[0x84f8440] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x84f8440] main input debug: `file/xspf-open:///home/kony/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/kony/.local/share/vlc/ml.xspf'
[0x84f8440] main input debug: creating demux: access='file' demux='xspf-open' location='/home/kony/.local/share/vlc/ml.xspf' file='/home/kony/.local/share/vlc/ml.xspf'
[0x857dcd0] main demux debug: looking for access_demux module matching "file": 20 candidates
[0x857dcd0] main demux debug: no access_demux modules matched
[0x84f8440] main input debug: creating access 'file' location='/home/kony/.local/share/vlc/ml.xspf', path='/home/kony/.local/share/vlc/ml.xspf'
[0x84f8bb0] main access debug: looking for access module matching "file": 25 candidates
[0x84f8bb0] filesystem access debug: opening file `/home/kony/.local/share/vlc/ml.xspf'
[0x84f8bb0] main access debug: using access module "filesystem"
[0x84f9890] main stream debug: Using stream method for AStream*
[0x84f9890] main stream debug: starting pre-buffering
[0x84f9890] main stream debug: received first data after 0 ms
[0x84f9890] main stream debug: pre-buffering done 299 bytes in 0s - 1061 KiB/s
[0x84f92b0] main stream debug: looking for stream_filter module matching "any": 9 candidates
[0x84f92b0] main stream debug: no stream_filter modules matched
[0x84f92b0] main stream debug: looking for stream_filter module matching "record": 9 candidates
[0x84f92b0] main stream debug: using stream_filter module "record"
[0x84f8440] main input debug: creating demux: access='file' demux='xspf-open' location='/home/kony/.local/share/vlc/ml.xspf' file='/home/kony/.local/share/vlc/ml.xspf'
[0x84fac48] main demux debug: looking for demux module matching "xspf-open": 63 candidates
[0x84fac48] playlist demux debug: using XSPF playlist reader
[0x84fac48] main demux debug: using demux module "playlist"
[0x856e340] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[0x856e340] lua demux meta debug: Trying Lua scripts in /home/kony/.local/share/vlc/lua/meta/reader
[0x856e340] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x856e340] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x856e340] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x856e340] main demux meta debug: no meta reader modules matched
[0x84f8440] main input debug: `file/xspf-open:///home/kony/.local/share/vlc/ml.xspf' successfully opened
[0x8574610] main xml reader debug: looking for xml reader module matching "any": 1 candidates
[0x8574610] main xml reader debug: using xml reader module "xml"
[0x84fac48] playlist demux debug: parsed 0 tracks successfully
[0x84f8440] main input debug: EOF reached
[0x84fac48] main demux debug: removing module "playlist"
[0x84f92b0] main stream debug: removing module "record"
[0x84f8bb0] main access debug: removing module "filesystem"
[0x84f7760] main playlist debug: creating audio output
[0x85798d8] main audio output debug: looking for audio output module matching "any": 6 candidates
[0x85798d8] pulse audio output debug: using library version 4.0.0
[0x85798d8] pulse audio output debug:  (compiled with version 4.0.0, protocol 28)
[0x85798d8] pulse audio output error: PulseAudio server connection failure: SpojenĂ­ odmĂ­tnuto
[0x85798d8] alsa audio output debug: Available ALSA PCM devices:
[0x85798d8] alsa audio output debug: Discard all samples (playback) or generate zero samples (capture) (null)
[0x85798d8] main audio output debug: using audio output module "alsa"
[0x84f7760] main playlist debug: keeping audio output
[0x84f7760] main playlist debug: adding item `rtsp://172.16.51.254:554/live.sdp' ( rtsp://172.16.51.254:554/live.sdp )
[0x8576278] main interface debug: looking for interface module matching "hotkeys,none": 19 candidates
[0x8576278] main interface debug: using interface module "hotkeys"
[0x857dae0] main interface debug: looking for interface module matching "globalhotkeys,none": 19 candidates
[0x857dae0] main interface debug: no interface modules matched
[0x857dae0] main interface error: no suitable interface module
[0x84e78f8] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x8574138] main interface debug: looking for interface module matching "dbus,none": 19 candidates
[0x8574138] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x8574138] main interface debug: no interface modules matched
[0x8574138] main interface error: no suitable interface module
[0x84e78f8] main libvlc error: interface "dbus,none" initialization failed
[0x8574110] main interface debug: looking for interface module matching "dummy": 19 candidates
[0x84f7760] main playlist debug: no fetch required for (null) (art currently (null))
[0x8574110] dummy interface: using the dummy interface module...
[0x8574110] main interface debug: using interface module "dummy"
[0x84f7760] main playlist debug: processing request item: null, node: Seznam skladeb, skip: 0
[0x84f7760] main playlist debug: rebuilding array of current - root Seznam skladeb
[0x84f7760] main playlist debug: rebuild done - 1 items, index -1
[0x84f7760] main playlist debug: starting playback of the new playlist item
[0x84f7760] main playlist debug: resyncing on rtsp://172.16.51.254:554/live.sdp
[0x84f7760] main playlist debug: rtsp://172.16.51.254:554/live.sdp is at 0
[0x84f7760] main playlist debug: creating new input thread
[0xb4900578] main input debug: Creating an input for 'rtsp://172.16.51.254:554/live.sdp'
[0xb4400698] main stream output debug: using sout chain=`transcodesamplerate=44100:httpdst=:8080/:sout-keep'
[0xb4400698] main stream output debug: stream=`sout-keep'
[0xb4400918] main stream out debug: looking for sout stream module matching "sout-keep": 21 candidates
[0xb4400918] main stream out debug: no sout stream modules matched
[0xb4400918] main stream out debug: destroying chain... (name=(null))
[0xb4400918] main stream out debug: destroying chain done
[0xb4400698] main stream output error: stream chain failed for `transcodesamplerate=44100:httpdst=:8080/:sout-keep'
[0x84f7760] main playlist debug: finished input
[0xb4900578] main input error: cannot start stream output instance, aborting
[0x84f7760] main playlist debug: dead input
[0x84f7760] main playlist debug: changing item without a request (current 0/1)
[0x84f7760] main playlist debug: nothing to play