Streaming Questions

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
quorthon
Blank Cone
Blank Cone
Posts: 28
Joined: 22 Mar 2009 17:32

Streaming Questions

Postby quorthon » 27 Mar 2009 08:51

Hello

I've following requirements for my bachelor thesis (streaming videos in sun's 3d virtual world wonderland):

- Develop a java-player, which can stream videos. This should happen in a swing non-top-level Swing JComponent (such as a JPanel) because this is a wonderland restriction...
- On-demand streaming from prerecorded videos
- Every wonderland-client receives his own stream
- But the streams should be synchronized, so that every client should see the same at the same time
- Every client should have the ability to control the stream (start, pause, stop, go to a specific position)

So what to I have for possibilities to serve such a stream with vlc?
Can I serve a multicast stream from vlc which I can control via RTSP from each client (through the internet)?

A possible scenario would be:
- A few students want to study a prerecorded video. So they have to see the same video at the same time (like a live-streaming), but with the ability to control the stream. So every student can press the pause-button and after that the stream stops to play by each student.

Thanks for your help.

Kind regards,
Peter

quorthon
Blank Cone
Blank Cone
Posts: 28
Joined: 22 Mar 2009 17:32

Re: Streaming Questions

Postby quorthon » 28 Mar 2009 09:48

hello

Does nobody knows how I can achieve my scenario with vlc?

Peter

svensson
New Cone
New Cone
Posts: 3
Joined: 28 Mar 2009 16:43

Re: Streaming Questions

Postby svensson » 28 Mar 2009 16:45

i'm also very interested in these questions. does anybody share his knowledge? thanks.

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: Streaming Questions

Postby Jean-Baptiste Kempf » 28 Mar 2009 22:52

You can do both sides (streaming and clients) using VLC and jVLC.
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.

quorthon
Blank Cone
Blank Cone
Posts: 28
Joined: 22 Mar 2009 17:32

Re: Streaming Questions

Postby quorthon » 29 Mar 2009 11:19

Thanks for your answer.
You can do both sides (streaming and clients) using VLC and jVLC.
I've already tried that...VLC as a streaming server serving a rtsp stream:

Code: Select all

Server: cvlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host localhost:5554 Telnet: telnet localhost 4212 new vod_test vod enabled input /home/videos/movie.mpg
On client side I've used the jVLC API to get and control (pause, play, stop, go to a specific position) the stream. This works. So every client has his own stream which he can control.

But what we need is that the stream is synchronized, so that every client should see the same at the same time. Like an rtp-stream (live-stream):
- Every client sees the same
- When a client connects the stream starts at the current position, not from the beginning
...and additionally the clients should have the ability to control the stream (pause, play, stop, go to a specific position) like in a rtsp-stream. And all this should work over the internet.

Is this possible with vlc, jVLC? What options do I have for such a scenario?

Kind regards,
Peter

quorthon
Blank Cone
Blank Cone
Posts: 28
Joined: 22 Mar 2009 17:32

Re: Streaming Questions

Postby quorthon » 03 Apr 2009 14:32

Hello

After a lot of researching, we'll try to implement our scenario the following way:

- Using JVLC Java clients to connect to our vlc streaming server
- The vlc streaming server should serve a RTP or a HTTP Broadcast stream
- The telnet interface of the vlc streaming server is activated
- The Java clients can control the vlc streaming server through telnet (java telnet api), so if for example one client clicks on the pause-button, the clients sends "control name_of_stream pause" through the telnet-api to the server.
- Then the server pauses the stream and because its a broadcast stream, the stream pauses by every connected java-client
- So every client has the ability to control the stream and the synchronizing is established...

With tried the following streams on the vlc streaming server:

HTTP Broadcast:

Code: Select all

show media : ( 1 broadcast - 0 vod ) test type : broadcast enabled : yes loop : yes inputs 1 : test.mpg output : #standard{access=http,mux=ogg,url= xxx.xxx.xxx.xxx:8080} options instances instance name : default state : playing position : 0.558420 time : 40457089 length : 70308000 rate : 1000 title : 0 chapter : 0 seekable : 1 vlc playlistindex : 1 schedule
xxx.xxx.xxx.xxx -> Public IP

-> We received the stream over the internet, but the stream was very slow and the client wasn't able to show the video properly. It only runs smoothly on clients started on the vlc-server directly. Is there any way to get this run smoothly over the Internet?

We've also tried an RTP Broadcast Stream:

Code: Select all

show media : ( 1 broadcast - 0 vod ) test type : broadcast enabled : yes loop : yes inputs 1 : test.mpg output : #rtp{dst= xx.xxxxx.xxx,port=1234,sdp=http:/xxx.xxx.xxx.xxx:8080/test.sdp} options instances instance name : default state : playing position : 0.783179 time : 531500000 length : 653791667 rate : 1000 title : 0 chapter : 0 seekable : 1 playlistindex : 1 schedule
xxx.xxx.xxx.xxx -> Public IP

But here we weren't able to connect to the stream over the internet...what's wrong here? How can we serve an RTP-Stream over the internet?
What's the difference between RTP Broadcast Streaming and HTTP Broadcast Streaming?

Or does someone has any other ideas to achieve our scenario (described above)?

Thanks for your help.
Peter

quorthon
Blank Cone
Blank Cone
Posts: 28
Joined: 22 Mar 2009 17:32

Re: Streaming Questions

Postby quorthon » 14 Apr 2009 21:01

*up*

Any suggestions on this one?

Thanks for your help.
Peter


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 36 guests