Telnet Interface

*nix specific usage questions
minataur
Blank Cone
Blank Cone
Posts: 19
Joined: 20 Feb 2009 11:53

Telnet Interface

Postby minataur » 28 Feb 2009 10:25

How should i start and receive a stream using the rtsp module in telnet???

This is what i tried:

vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 192.168.2.12:5554

vlc rtsp://192.168.2.12:5554/Test

these i think are for receiving the stream but i have no clue how to start one using rtsp.. can anyone help me out??

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: Telnet Interface

Postby Jean-Baptiste Kempf » 28 Feb 2009 14:02

vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan rtsp://192.168.2.12:5554/Test
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.

minataur
Blank Cone
Blank Cone
Posts: 19
Joined: 20 Feb 2009 11:53

Re: Telnet Interface

Postby minataur » 01 Mar 2009 06:49

this the error i'm getting

main access debug: looking for access module: 0 candidates
[00000428] main access error: no access module matched "rtsp"
[00000428] main access debug: TIMER module_Need() : 0.053 ms - Total 0.053 ms / 1 intvls (Avg 0.053 ms)
[00000426] main input error: open of `rtsp://192.168.2.12:5554/Test' failed: could not create access: no access module matched "rtsp"
[00000426] main input debug: thread 2983295888 (input) created at priority 10 (input/input.c:370)

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Telnet Interface

Postby Rémi Denis-Courmont » 01 Mar 2009 09:11

Your tree is corrupt. You have no plugins.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Freebsd
New Cone
New Cone
Posts: 2
Joined: 04 Feb 2009 16:29

Re: Telnet Interface

Postby Freebsd » 17 Mar 2009 21:08

I have a simmilar problem....
I want to use my VLC server to listen for incoming stream, from other location [ all use VLC player ]. On server, i dont have user interface, just command line.
To start listening, i use this command

vlc -vvv rtp://@:1234

This is what output i get

Code: Select all

It is potentially dangerous, and might not even work properly. [00000001] main private debug: checking builtin modules [00000001] main private debug: checking plugin modules [00000001] main private debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat [00000001] main private debug: recursively browsing `/usr/local/lib/vlc' [00000001] main private debug: module bank initialized, found 215 modules [00000001] main private debug: opening config file /root/.vlc/vlcrc [00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main private debug: looking for memcpy module: 3 candidates [00000001] main private debug: using memcpy module "memcpymmxext" [00000279] main playlist debug: waiting for thread completion [00000279] main playlist debug: thread 137309696 (playlist) created at priority 0 (playlist/playlist.c:184) [00000280] main private debug: waiting for thread completion [00000280] main private debug: thread 137351680 (preparser) created at priority 0 (playlist/playlist.c:210) [00000281] main interface debug: looking for interface module: 1 candidate [00000281] main interface debug: using interface module "hotkeys" [00000281] main interface debug: thread 137352192 (interface) created at priority 0 (interface/interface.c:231) [00000283] main interface debug: looking for interface module: 1 candidate [00000283] main interface debug: using interface module "screensaver" [00000283] main interface debug: thread 137352704 (interface) created at priority 0 (interface/interface.c:231) [00000279] main playlist debug: adding playlist item `rtp://@:1234' ( rtp://@:1234 ) [00000285] main interface debug: looking for interface module: 2 candidates Remote control interface initialized. Type `help' for help. [00000285] main interface debug: using interface module "rc" [00000285] main interface debug: thread 137353216 (manager) created at priority 0 (interface/interface.c:216) [00000279] main playlist debug: creating new input thread [00000287] main input debug: waiting for thread completion [00000287] main input debug: thread 137353728 (input) created at priority 0 (input/input.c:265) [00000287] main input debug: creating statistics handler [00000287] main input debug: `rtp://@:1234' gives access `rtp' demux `' path `@:1234' [00000287] main input debug: creating demux: access='rtp' demux='' path='@:1234' [00000289] main demuxer debug: looking for access_demux module: 0 candidates [00000289] main demuxer warning: no access_demux module matched "rtp" [00000287] main input debug: creating access 'rtp' path='@:1234' [00000290] main access debug: looking for access2 module: 8 candidates [00000290] access_udp access debug: opening server=:0 local=:1234 [00000290] main access debug: net: connecting to '[]:0@[]:1234' [00000290] main access debug: looking for network module: 1 candidate [00000290] ipv6 access debug: : hostname nor servname provided, or not known [00000290] main access debug: using network module "ipv6" [00000290] main access debug: removing module "ipv6" [00000290] main access debug: looking for network module: 1 candidate [00000290] ipv4 access debug: resolving :1234... [00000290] ipv4 access debug: resolving :0... [00000290] ipv4 access debug: cannot configure socket (SO_RCVBUF: No buffer space available) [00000290] ipv4 access debug: cannot configure socket (SO_SNDBUF: No buffer space available) [00000290] main access debug: using network module "ipv4" [00000290] main access debug: removing module "ipv4" [00000290] main access debug: using access2 module "access_udp" [00000294] main private debug: pre buffering status change: ( new input: rtp://@:1234 ) status change: ( audio volume: 256 ) status change: ( play state: 1 )
Then i go to my local computer, go to Media -> Streaming -> I choose file i want to stream -> Use RTP protocol -> For ootput stream i enter IP of my server and port 1234, and when i want to start streaming, i get this error....

Image

I have opened port 1234 on server firewall...

Can you please help me.... i must set up this server till Thursday. :oops:
Thank you!

EDIT: Yes, i have insatlled │ │ [X] LIVEMEDIA Support for rstp/rtp/sdp protocols │ │

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Telnet Interface

Postby Rémi Denis-Courmont » 18 Mar 2009 19:14

The server is simply not receiving any packet. This is a network configuration problem, not a VLC issue. And please don't hijack threads.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

hexwiz
New Cone
New Cone
Posts: 1
Joined: 23 Mar 2009 04:17

Re: Telnet Interface

Postby hexwiz » 23 Mar 2009 04:37

The command

Code: Select all

vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 192.168.2.12:5554
just starts the telnet interface , telnet password and the rtsp host. But you are yet to set or start a stream.


Considering 192.168.2.12 is the interface on the system where you have vlc installed and the media/video files you want to stream, here's what you'd do on a Windows system at the command prompt

Code: Select all

cd c:\progra~1\videolan\vlc vlc.exe -I dummy --dummy-quiet --extraintf telnet --telnet-password videolan --control telnet --rtsp-host 192.168.2.12:5554
Once the vlc daemon is started you'd log onto the vlc tenet interface. I'd use Putty as windows telnet seems to have some issues with my setup.
You telnet into 192.168.2.12:4212. It prompts you to type in the password which you've set to "videolan". Once you type in the password you get the vlc telnet prompt. This is where you are gonna configure all your media streams - broadcasts, schedules and video-on-demand. I usually go for video on demand as it serves my purpose better.

Code: Select all

new vod_rocky_vi vod enabled input d:\movies\rocky_vi.avi
That's all there is to starting a VOD stream with vlc. You can now use an rtsp client like vlc itself with vlc.exe rtsp://192.168.2.12:5554/vod_rocky_vi to view the movie. What I like about vod is you can go forward and backward in the stream unlike broadcasts and schedules. Cheers

minataur
Blank Cone
Blank Cone
Posts: 19
Joined: 20 Feb 2009 11:53

Re: Telnet Interface

Postby minataur » 28 Mar 2009 06:09

to create a VOD object, first open a new console after starting the telnet as mentioned earlier, there type
"telnet server 4212"
where server is the streaming server and 4212 the port on which the telnet starts..


Then type the command for creating the VOD object as told in the last post

minataur
Blank Cone
Blank Cone
Posts: 19
Joined: 20 Feb 2009 11:53

Re: Telnet Interface

Postby minataur » 28 Mar 2009 06:28

main demux error: object is not attached


While trying to attach a VOD object to the VLC telnet, this the error i'm getting,

avi stream debug: free chunk RIFF
[00000383] avi stream debug: free chunk LIST
[00000384] main demux debug: removing module "avi"
[00000384] main demux error: object is not attached
[00000381] main access debug: removing module "access_file"
[00000381] main access error: object is not attached
[00000375] main stream output error: object is not attached
[00000374] [Media: Test1] main input debug: thread ended
[00000374] [Media: Test1] main input debug: thread 2966031248 joined (misc/objects.c:309)
[00000374] [Media: Test1] main input debug: TIMER input launching for 'Test1' : 171.617 ms - Total 171.617 ms / 1 intvls (Avg 171.617 ms)
[00000376] main stream out debug: destroying chain... (name=description)
[00000376] stream_out_description stream out debug: Closing
[00000376] main stream out debug: removing module "stream_out_description"


Can any1 help me out pls

minataur
Blank Cone
Blank Cone
Posts: 19
Joined: 20 Feb 2009 11:53

Re: Telnet Interface

Postby minataur » 23 Apr 2009 06:55

okay, now everything is working fine.. the newer version of vlc doesn't give that error :)
Thanks for the help guys :)

chemi
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jan 2010 10:13

Re: Telnet Interface

Postby chemi » 16 Jan 2010 10:18

Hi, I have been successfully followed the indication of this post. But I have another related question (and I didn't find the answer in the Wiki).
Is there any way to "share" on-demand video for a complete folder instead of share video file, one per one?

Reading this post, it seems to share rocky_vi.avi file, I should execute:
new vod_rocky_vi vod enabled input d:\movies\rocky_vi.avi

but if I would like to share tens of avi files ina folder, is there any command to do it instead of executing the commented command for each file? I am looking for some kind of dynamic sharing of streaming video.

Thanks in advance,

Chemi.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Telnet Interface

Postby Rémi Denis-Courmont » 16 Jan 2010 16:05

not currently
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

chemi
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jan 2010 10:13

Re: Telnet Interface

Postby chemi » 17 Jan 2010 08:28

Thanks for answering. I understand there is also no current solution using other pieces like VLM, right?
BTW, is there any plan in development to implement such feature for short term?

Once again, thanks a lot.

Chemi.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Telnet Interface

Postby Rémi Denis-Courmont » 17 Jan 2010 13:27

We won't know until someone has done it, so such question is kind of pointless.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

chemi
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jan 2010 10:13

Re: Telnet Interface

Postby chemi » 19 Jan 2010 10:04

Well, I thought that could be a Development Plan....

Anyway, I found at: http://www.videolan.org/doc/streaming-h ... /ch05.html that a configuration file with a list of commands could be provided to VLM so perhaps this could be a workaround. I can develop a process that analyze the movie directories and generate a configuration file. Then, it starts or restarts VLC. What do you think? Any other idea?

Regards,

Chemi.

chinnaedu
Blank Cone
Blank Cone
Posts: 28
Joined: 08 Feb 2010 08:51

Re: Telnet Interface

Postby chinnaedu » 26 Apr 2010 14:50

Hey go to command prompt and try to do the following....

c:\telnet localhost 4212

This will start telnet interface for vlc(before this u need to open vlc player and then View-->Add Interface-->Telnet Interface)

Now the telnet interface wil prompt u for the password...

Type "admin"(default password for telnet interface)

Then paste the following commands (by making suitable modifications in the command)

new myChannel2 broadcast
setup myChannel2 option vvv
setup myChannel2 option I
setup myChannel2 option rc
setup myChannel2 input D:\main\personal\movies\Gests.avi
setup myChannel2 output #transcode{venc=x264{keyint=2,idrint=2},vcodec=h264,vb=300,width=320,height=240,acodec=mp4a,ab=32,channels=2,samplerate=22050}
setup myChannel2 output #rtp{dst=localhost,port=9010,sdp=file://C:\Pass1.sdp}
setup myChannel2 enabled
control myChannel2 play


Here at input give your desired input file (at output try for 127.0.0.1 or your machines ip)
where myChannel is the Channel for this particular stream....

now put this in the Darwin's movie folder and then request rtsp:\\<ip>:554/pass1.sdp

Then u can stream....

i Think this post is useful......

jpspereira
Blank Cone
Blank Cone
Posts: 11
Joined: 11 Sep 2009 19:07

Re: Telnet Interface

Postby jpspereira » 21 May 2010 15:05

How can I have a fade between movies with that kind of connection?

I have added like that:

new myChannel1 broadcast
setup myChannel1 input D:\main\personal\movies\Gests1.avi input D:\main\personal\movies\Gests2.avi input D:\main\personal\movies\Gests3.avi
control myChannel1 play

But, between videos VLC destroy his window and start a new one.

(Note: Every video have the same size and resolution)

Anyone could help me, please?

Thanks a lot.

chinnaedu
Blank Cone
Blank Cone
Posts: 28
Joined: 08 Feb 2010 08:51

Re: Telnet Interface

Postby chinnaedu » 24 May 2010 08:07

can you be more clear about wat exactly you are talking about

jpspereira
Blank Cone
Blank Cone
Posts: 11
Joined: 11 Sep 2009 19:07

Re: Telnet Interface

Postby jpspereira » 24 May 2010 12:16

Well... I can see my wallpaper between movies... and I don't want that!

Thx


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests