VLC as a Re-streaming server - proposal

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
lazna
Blank Cone
Blank Cone
Posts: 14
Joined: 03 Apr 2014 20:30

VLC as a Re-streaming server - proposal

Postby lazna » 29 Jun 2019 14:47

Situation:

Have few stream sources (cameras) on different locations, usually behind NAT. All cameras are connected via VPN to the streaming server. Each camera belongs to each user. Creating simple web interface where single user could log-in and web page display stream from source belong to this specific user. Using VLC as a re-streaming service, managed by VLM. Stream for every single user listen on specific HTTP port. Some sources are physsicaly connected via cellular network with data limit, thus streaming from ALL sources to server should ___ONLY___ run when user is logged-in (watching).

Question 1:

Should I pre-defined streams for all sources at once, and only perform play/stop command via VLM in a moment when user is logged in? Or better solution is define (and start playing) stream in a moment when user log-in? Does many (up to hundred) defined stream consumpting a lot of server resources?

Found in the VLM manual there is some way to keep defined streams accross possible restart, is it suitable for my usecase?

Question 2:

Reading documentation but unable to find moment when server start receiving stream from primary source (camera). In the moment when stream stream is defined or in moment when command 'play' is received by VLM.

Is it possible to set-up VLC in manner that start downloading stream from primary source is triggered by connection client to specific port on the stream server (and stop downloading when client disconnect)?

Question 3:

Plan to add ability to save watched stream into a file on the server, is suitable way to start another vlc instance on the server, start downloading stream from localhost and saving it into a file? Cant realize how to stop such process unless perform TASKKILL command from system shell.

Is there better way to start / stop saving stream into the file? Saving should not be in any way bundled with watching, it should be possible to start saving after stream is started, and stopped before watching is ended.

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: VLC as a Re-streaming server - proposal

Postby InTheWings » 03 Jul 2019 10:07

Situation:

Should I pre-defined streams for all sources at once, and only perform play/stop command via VLM in a moment when user is logged in? Or better solution is define (and start playing) stream in a moment when user log-in? Does many (up to hundred) defined stream consumpting a lot of server resources?
If you're transcoding
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: VLC as a Re-streaming server - proposal

Postby InTheWings » 03 Jul 2019 10:09

Reading documentation but unable to find moment when server start receiving stream from primary source (camera). In the moment when stream stream is defined or in moment when command 'play' is received by VLM.

Is it possible to set-up VLC in manner that start downloading stream from primary source is triggered by connection client to specific port on the stream server (and stop downloading when client disconnect)?
It's up to you to write an application for that purpose.
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: VLC as a Re-streaming server - proposal

Postby InTheWings » 03 Jul 2019 10:10


Plan to add ability to save watched stream into a file on the server, is suitable way to start another vlc instance on the server, start downloading stream from localhost and saving it into a file? Cant realize how to stop such process unless perform TASKKILL command from system shell.

Is there better way to start / stop saving stream into the file? Saving should not be in any way bundled with watching, it should be possible to start saving after stream is started, and stopped before watching is ended.
find a way to wire #duplicate{} sout commands
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 22 guests