Page 1 of 1
stopping streaming without stopping playing
Posted: 16 Nov 2010 22:48
by riadoufr
HI
I manage to use libvlc to display and stream out a video in the same time.
But how can I stop streaming without stop playing the video?
First,I try save the position of the movie .
Second stop playing and streaming the media
Then I make a new media(without streaming option) and finally I move to the saved position.
It works but it took much time(to reload the movie)that ,s why I need to stop streaming without stopping playing.
Please help me!!
Re: stopping streaming without stopping playing
Posted: 16 Nov 2010 23:48
by Jean-Baptiste Kempf
Why don't you just start another libvlc instance (or a VLC client) for displaying?
Re: stopping streaming without stopping playing
Posted: 17 Nov 2010 12:56
by riadoufr
Thanks for answering me.
Yes this work(creating two) but my problem is a little bit more complicated.
The main goal of my program is to allow people to make their own TV channel,and to broadcast a live show(a show include many cameras that the program user can switch between them).
I will try to more 0explain
I have tow video that I want to display both of them,and stream out only one of them.
And I need to make a button that allow me to switch the streaming source.(If the first video is being streaming to rtp address rtp://@239.255.1.42:1234,when this button is pressed,the program have to stop streaming it,and start streaming the second video to the same rtp address).
If I make tow instances of libVLC for playing locally,and tow other instances for streaming(or only one,I think it is enough),the displaying locally will be OK,but I will have problem in the streaming video because the program have to reload the new file and that takes a lot of time.And the goal of my program is to make your own TV channel by selecting lively the video that will be playing and even the time is a few seconds,that will not be good for the TV channel viewers(If I want to broadcast a live show with many cameras,I need to change the camera many times in the minutes)
So please help me!
Re: stopping streaming without stopping playing
Posted: 17 Nov 2010 20:44
by XilasZ
As far as i know, you can't do that with libvlc (or even vlc), correct me if i'm wrong, i would learn something
Re: stopping streaming without stopping playing
Posted: 17 Nov 2010 22:04
by rogerdpack
The GUI is able to "start" and "stop" recording mid-stream, so...it might be possible...
Re: stopping streaming without stopping playing
Posted: 17 Nov 2010 23:01
by riadoufr
Thank you for your answer.
But how can I do it?
Re: stopping streaming without stopping playing
Posted: 17 Nov 2010 23:12
by rogerdpack
you may be able to "see how" by looking at the code for the record button, within the Qt interface.
Here is a copy of the source
https://github.com/juhovh/vlc (older, but still a copy).
Cheers!
-r
Re: stopping streaming without stopping playing
Posted: 18 Nov 2010 13:12
by riadoufr
Thanks for answering me
But VLC source is big and a little bit lost.
Can you tell in witch directory I look for the record Button?
Re: stopping streaming without stopping playing
Posted: 18 Nov 2010 13:28
by rogerdpack
you're looking for Qt, so clicking on the "94f8" might help start you along your way, path-wise...sorry I don't know the answer, either
Re: stopping streaming without stopping playing
Posted: 09 Feb 2011 12:07
by srikanthMadishetti
--run-time can be used to stop recording after specified number of seconds
Ex:
vlc.exe -vvv rtsp://10.46.10.112:554/orig.sdp --run-time=60 --sout="#std{access=file,mux='ts',dst=go7.ts}"
Here --run-time=60 means the stream will be recorded for 60 seconds.
Re: Streaming .sdp file over network on remmote PC
Posted: 08 Mar 2011 11:21
by ashay.naik
hi,
I am facing a similar problem with streaming over network.
Can anyone please tell me where to post my message?
Well I want to stream .sdp file over Network on a remote PC
can anyone suggest me a way wherein I can successfully achieve it.
I managed to do streaming of .avi file though UDP and the IP address of the remote PC.
Please help, thanks!