How do I Stream packets without a network

This forum is about all development around libVLC.
rydaler
New Cone
New Cone
Posts: 5
Joined: 19 Jan 2010 21:13

How do I Stream packets without a network

Postby rydaler » 19 Jan 2010 21:43

Language: c++
I have a large file of miscellaneous formats. The large file is parsed as the program moves through a timeline and the data is streamed into the program's various functions. Once the large file is parsed I have video packets that I would like to feed into VLC. This means that the video packets need to be displayed as they come in. I have had some success using the udp localhost as a streaming middle man sending packets to it while listening in the video, but this solution is not optimal as the extra step causes various lag, syncretization, and network issues. I would like to cut out the middle man and pass the video packets directly to a libvlc window. Most of what I have read requires a file to send directly to vlc, which I cannot do. Any constructive suggestions are welcomed.

rydaler
New Cone
New Cone
Posts: 5
Joined: 19 Jan 2010 21:13

Re: How do I Stream packets without a network

Postby rydaler » 20 Jan 2010 14:44

Basically I'm trying to locally stream a TS packet directly to VLC. I am going to look over the code and try and find how VLC UDP streaming is revieving packets and see if I can make it skip the step of Scanning UDP and just send them directly to render them, if this is impossible just let me know as I am quite the novice with video and newtork coding.

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How do I Stream packets without a network

Postby Rémi Denis-Courmont » 20 Jan 2010 17:47

Normally, you'd use a pipe or a named pipe for that sort of use cases.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rydaler
New Cone
New Cone
Posts: 5
Joined: 19 Jan 2010 21:13

Re: How do I Stream packets without a network

Postby rydaler » 27 Jan 2010 21:25

Thanks for the reply,

I guess I should say I am working in windows most of the time. Using http://msdn.microsoft.com/en-us/library ... S.85).aspx I have implemented pipes but for the life of me I cannot get libvlc to work properly with them. I suspect the fault is with my lack of understanding the correct vlc_args[] for a new vlc instance (libvlc_new) and the pipe access (libvlc_media_new).


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 27 guests