Multiple streaming through VLC

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
alinpopescu23
New Cone
New Cone
Posts: 3
Joined: 16 Jan 2015 21:54

Multiple streaming through VLC

Postby alinpopescu23 » 16 Jan 2015 22:03

I'm trying to stream two youtube videos through VLC on the same port, but with different URLs.
So far I'm trying to use the VLM and connect to VLC through telnet (PUTTY), but without success.

I launch VLC like this:

Code: Select all

vlc --ttl 12 -vvv -I telnet --telnet-password videolan --rtsp-host localhost:5554
I launch telnet

Code: Select all

telnet localhost 4212
But telnet doesn't ask me about any password. And when I try to connect to localhost:5554 via another VLC instance, I get this error:
VLC is unable to open the MRL 'rtsp://127.0.0.1:5554'. Check the log for details.

Can you please help me establish the connection between telnet and VLC and between VLC and the streaming server?

Thank you,
Alin

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Multiple streaming through VLC

Postby Jean-Baptiste Kempf » 18 Jan 2015 08:19

You did not specify to VLC what to stream...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

alinpopescu23
New Cone
New Cone
Posts: 3
Joined: 16 Jan 2015 21:54

Re: Multiple streaming through VLC

Postby alinpopescu23 » 18 Jan 2015 10:05

I changed the command of starting VLC to this:

Code: Select all

vlc -I telnet -I qt --intf telnet --telnet-password videolan --rtsp-host localhost:5554
Then I connected to it via telnet(PUTTY), but no password request was prompted.
Then I run these commands via telnet, but I get no feedback on their success:

Code: Select all

new channel1 broadcast enabled setup channel1 input https://www.youtube.com/watch?... setup channel1 output #rtp{mux=ts,dst=localhost,port=5554,sdp=sap://,name="Channel1"} control channel1 play
Then I run another VLC instance like this, but with no luck:

Code: Select all

vlc rtsp://localhost:5554/Channel1
This is the error I get:

Code: Select all

Connection failed: VLC could not connect to "localhost:5554". Your input can't be opened: VLC is unable to open the MRL 'rtsp://localhost:5554/Channel1'. Check the log for details.
I checked with netstat and nothing was listening on 5554 or on 4212.

alinpopescu23
New Cone
New Cone
Posts: 3
Joined: 16 Jan 2015 21:54

Re: Multiple streaming through VLC

Postby alinpopescu23 » 12 Jul 2015 14:14

Hi,

I finally managed to connect to vlc via telnet. But when I run these commands I get the stream closed immediately.

Code: Select all

new channel1 broadcast enabled setup channel1 input "http://www.youtube.com/watch?v=8h3QVSgdn44" setup channel1 output "#transcode{vcodec=none,acodec=vorb,ab=128,channels=2,samplerate=44100}:http{mux=ogg,dst=:8080/live1}" setup channel1 option http-reconnect setup channel1 option no-sout-rtp-sap option no-sout-standard-sap option ttl=1 option sout-keep control channel1 play

Code: Select all

core debug: Creating an input for '' core debug: using sout chain=`transcode{vcodec=none,acodec=vorb,ab=128,channels=2,samplerate=44100}:http{mux=ogg,dst=:8080/live1}' core debug: stream=`http' core debug: looking for sout stream module matching "http": 22 candidates core debug: set config option: sout-standard-mux to ogg core debug: set config option: sout-standard-dst to :8080/live1 core debug: looking for sout access module matching "http": 8 candidates core debug: net: listening to * port 8080 core debug: using sout access module "access_output_http" core debug: looking for sout mux module matching "ogg": 10 candidates mux_ogg info: Open core debug: using sout mux module "mux_ogg" core debug: muxer support adding stream at any time core debug: muxer prefers to wait for all ES before starting to mux stream_out_standard debug: using `http/ogg://:8080/live1' core debug: using sout stream module "stream_out_standard" core debug: stream=`transcode' core debug: looking for sout stream module matching "transcode": 22 candidates core debug: set config option: sout-transcode-vcodec to none core debug: set config option: sout-transcode-acodec to vorb core debug: set config option: sout-transcode-ab to 128 core debug: set config option: sout-transcode-channels to 2 core debug: set config option: sout-transcode-samplerate to 44100 stream_out_transcode debug: Checking codec mapping for vorb got vorb stream_out_transcode debug: codec audio=vorb 44100Hz 2 channels 128Kb/s stream_out_transcode debug: Checking video codec mapping for none got none stream_out_transcode debug: codec video=none 0x0 scaling: 0.000000 0kb/s core debug: using sout stream module "stream_out_transcode" core debug: using timeshift granularity of 50 MiB, in path 'C:\Users\alin\AppData\Local\Temp' core debug: `' gives access `http' demux `' path `youtube.com/watch?v=8h3QVSgdn44' core debug: specified demux `any' core debug: creating demux: access='http' demux='any' location='youtube.com/watch?v=8h3QVSgdn44' file='\\youtube.com\watch?v=8h3QVSgdn44' core debug: looking for access_demux module matching "http": 12 candidates core debug: no access_demux modules matched core debug: creating access 'http' location='youtube.com/watch?v=8h3QVSgdn44', path='\\youtube.com\watch?v=8h3QVSgdn44' core debug: looking for access module matching "http": 21 candidates http debug: querying proxy for http debug: no proxy http debug: http: server='youtube.com' port=80 file='/watch?v=8h3QVSgdn44' core debug: net: connecting to youtube.com port 80 core debug: connection succeeded (socket = 1592) http debug: protocol 'HTTP' answer code 301 http debug: Server: gwiseguy/2.0 http debug: this frame size=0 http debug: Content-Type: text/html; charset=utf-8 http debug: Accepting Cookie: YSC=X6IX5oTQCLI; path=/; domain=.youtube.com; httponly http debug: Accepting Cookie: VISITOR_INFO1_LIVE=8LWZppXVyRI; path=/; domain=.youtube.com; expires=Fri, 11-Mar-2016 23:49:10 GMT; httponly http debug: Connection: close http debug: redirection to https://youtube.com/watch?v=8h3QVSgdn44 core debug: looking for tls client module matching "any": 1 candidates gnutls debug: using GnuTLS version 3.2.21 gnutls debug: loaded 83 trusted CAs core debug: using tls client module "gnutls" http debug: querying proxy for https://youtube.com/watch?v=8h3QVSgdn44 http debug: no proxy http debug: http: server='youtube.com' port=443 file='/watch?v=8h3QVSgdn44' core debug: net: connecting to youtube.com port 443 core debug: connection succeeded (socket = 1656) gnutls debug: TLS handshake: Resource temporarily unavailable, try again. gnutls debug: TLS handshake: Resource temporarily unavailable, try again. gnutls debug: TLS handshake: Success. gnutls debug: 3 certificate(s) in the list http debug: Sending Cookie YSC=X6IX5oTQCLI http debug: Sending Cookie VISITOR_INFO1_LIVE=8LWZppXVyRI http debug: protocol 'HTTP' answer code 200 http debug: Server: gwiseguy/2.0 http debug: Content-Type: text/html; charset=utf-8 http debug: Transfer-Encoding: chunked http debug: Accepting Cookie: VISITOR_INFO1_LIVE=2hp2Z_8hXJg; path=/; domain=.youtube.com; expires=Fri, 11-Mar-2016 23:49:11 GMT; httponly http debug: Accepting Cookie: YSC=QbvUQ6WhMyE; path=/; domain=.youtube.com; httponly http debug: Accepting Cookie: GEUP=d2667d3b1cb6912f5dd443b65e1287c6aQEAAAA=; path=/; domain=.youtube.com; expires=Tue, 11-Jul-2017 11:56:11 GMT http debug: Accepting Cookie: PREF=f1=50000000; path=/; domain=.youtube.com; expires=Fri, 11-Mar-2016 23:49:11 GMT http debug: Connection: close core debug: using access module "http" core debug: Using stream method for AStream* core debug: starting pre-buffering core debug: received first data after 0 ms core debug: pre-buffering done 430 bytes in 0s - 419921 KiB/s core debug: looking for stream_filter module matching "any": 6 candidates core debug: no stream_filter modules matched core debug: looking for stream_filter module matching "record": 6 candidates core debug: using stream_filter module "record" core debug: creating demux: access='http' demux='any' location='youtube.com/watch?v=8h3QVSgdn44' file='\\youtube.com\watch?v=8h3QVSgdn44' core debug: looking for demux module matching "any": 66 candidates ts debug: TS module discarded (lost sync) mod debug: MOD validation failed (ext=com\watch?v=8h3QVSgdn44) avcodec debug: trying url: \\youtube.com\watch?v=8h3QVSgdn44 avcodec debug: CPU flags: 0x0107d3db avcodec debug: couldn't guess format lua debug: Trying Lua scripts in C:\Users\alin\AppData\Roaming\vlc\lua\playlist lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\playlist lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\anevia_streams.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\anevia_xml.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\appletrailers.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\bbc_co_uk.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\break.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\canalplus.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\cue.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\dailymotion.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\extreme.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\france2.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\googlevideo.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\jamendo.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\joox.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\katsomo.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\koreus.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\lelombrik.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\liveleak.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\metacafe.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\metachannels.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\mpora.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\pinkbike.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\pluzz.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\rockbox_fm_presets.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\soundcloud.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\vimeo.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\youtube.luac lua debug: Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\youtube.luac's probe() function was successful core debug: using demux module "lua" core debug: starting in async mode core debug: looking for meta reader module matching "any": 2 candidates lua debug: Trying Lua scripts in C:\Users\alin\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac core debug: no meta reader modules matched core debug: `' successfully opened lua debug: old path: lua debug: Path: https://r2---sn-4g57kn6e.googlevideo.com/videoplayback?requiressl=yes&nh=IgpwcjAxLmZyYTAzKgkxMjcuMC4wLjE&dur=205.217&initcwndbps=2122500&pl=23&source=youtube&ratebypass=yes&ip=84.117.18.55&fexp=901816%2C930827%2C9405998%2C9407931%2C9408142%2C9408420%2C9408710%2C9410705%2C9412774%2C9414930%2C9415053%2C9415878%2C9416126%2C9416729%2C9417191&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&id=o-AG8LPMFpelAYG7xZHdP_FsIz86geBrpwjDL93yCKsxTv&mm=31&mn=sn-4g57kn6e&upn=U0JFcEZTKeA&mt=1436702045&mv=m&signature=CDE2D095C913486393B406B389FE98CF6369FD4E.1257C273985C8C947ABC76A2AA8A43FEDD7BC99A&ms=au&ipbits=0&lmt=1389238999142134&sver=3&itag=22&expire=1436723771&mime=video%2Fmp4&key=yt5 lua debug: Name: Tao Hypah - Play The Girl (Official HD Video) lua debug: Description: Tao Hypah, a young new singer from Amsterdam, is ready for a takeover of the dancefloors worldwide with the release of his first single, "Play The Girl", out... lua debug: ArtURL: https://i.ytimg.com/vi/8h3QVSgdn44/maxresdefault.jpg lua debug: meta-URL: core debug: removing module "lua" core debug: object waitpipe triggered core debug: removing module "record" core debug: removing module "http" core debug: destroying useless sout core debug: destroying chain... (name=transcode) core debug: removing module "stream_out_transcode" core debug: destroying chain done core debug: destroying chain... (name=http) core debug: removing module "stream_out_standard" core debug: removing module "mux_ogg" mux_ogg info: Close core debug: removing module "access_output_http" core debug: HTTP host removed access_output_http debug: Close core debug: destroying chain done
Can you tell from the logs what's wrong?


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 6 guests