stopping streaming without stopping playing

This forum is about all development around libVLC.
riadoufr
New Cone
New Cone
Posts: 8
Joined: 12 Nov 2010 22:13

stopping streaming without stopping playing

Postby riadoufr » 16 Nov 2010 22:48

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!!

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: stopping streaming without stopping playing

Postby Jean-Baptiste Kempf » 16 Nov 2010 23:48

Why don't you just start another libvlc instance (or a VLC client) for displaying?
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.

riadoufr
New Cone
New Cone
Posts: 8
Joined: 12 Nov 2010 22:13

Re: stopping streaming without stopping playing

Postby riadoufr » 17 Nov 2010 12:56

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!

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: stopping streaming without stopping playing

Postby XilasZ » 17 Nov 2010 20:44

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 :lol:

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: stopping streaming without stopping playing

Postby rogerdpack » 17 Nov 2010 22:04

The GUI is able to "start" and "stop" recording mid-stream, so...it might be possible...

riadoufr
New Cone
New Cone
Posts: 8
Joined: 12 Nov 2010 22:13

Re: stopping streaming without stopping playing

Postby riadoufr » 17 Nov 2010 23:01

Thank you for your answer.
But how can I do it?

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: stopping streaming without stopping playing

Postby rogerdpack » 17 Nov 2010 23:12

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

riadoufr
New Cone
New Cone
Posts: 8
Joined: 12 Nov 2010 22:13

Re: stopping streaming without stopping playing

Postby riadoufr » 18 Nov 2010 13:12

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?

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: stopping streaming without stopping playing

Postby rogerdpack » 18 Nov 2010 13:28

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 :)

srikanthMadishetti
New Cone
New Cone
Posts: 4
Joined: 08 Dec 2010 14:47

Re: stopping streaming without stopping playing

Postby srikanthMadishetti » 09 Feb 2011 12:07

--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.

ashay.naik
New Cone
New Cone
Posts: 2
Joined: 04 Mar 2011 05:44

Re: Streaming .sdp file over network on remmote PC

Postby ashay.naik » 08 Mar 2011 11:21

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!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests