What the restreaming does?

About encoding, codec settings, muxers and filter usage
linpoyu0415
New Cone
New Cone
Posts: 8
Joined: 02 Apr 2013 04:46
VLC version: 2.0.5
Operating System: Windows
Location: Hsichu, Taiwan

What the restreaming does?

Postby linpoyu0415 » 09 Apr 2013 08:39

Hi everyone,

I use the VLC command line below,

Code: Select all

VLC --intf=dummy rtsp://172.18.66.156/360p1.ts --rtsp-host=192.168.0.3 :sout=#rtp{sdp=rtsp://:8554/} :sout-keep --repeat
It receives a rtsp://172.18.66.156/360p1.ts stream and then stream the same content to rtsp://192.168.0.3:8554/ . And I can use another VLC media player with network URL: rtsp://192.168.0.3:8554/ to receive and play the video stream. It works very well. My question is what the restreaming does. Since the CPU resource loading is very low during the restreaming process. Is it simply do the packet forwarding? Does it need to decode the input stream and then reassemble the stream to send out? Could someone tell the details? I much appreciate if someone could help me to clarify this process or give me some hints to figure it out.

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: What the restreaming does?

Postby Jean-Baptiste Kempf » 09 Apr 2013 12:31

Here, it is mainly taking the packets in .ts and resending them in RTP, yes.
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.

linpoyu0415
New Cone
New Cone
Posts: 8
Joined: 02 Apr 2013 04:46
VLC version: 2.0.5
Operating System: Windows
Location: Hsichu, Taiwan

Re: What the restreaming does?

Postby linpoyu0415 » 09 Apr 2013 15:34

Here, it is mainly taking the packets in .ts and resending them in RTP, yes.
Thanks for your prompt response. Would you advise which source code module I may be able to get more detailed process for this?
Would you also help to answer the following questions?
1.Where to store the temporary .ts? is it hard-disk or memory?
2.What's the .ts size should be? When will the .ts be re-generated?
3.For restream process, VLC is also a RTSP streaming server. It seems that it has to handle RTSP requests from clients, but how does it create the SDP for clients?
4.Is there any document mentioned the process in VLC website?

Thanks so much for your helps in advance.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests