Porting Linux application to Windows named pipe issue

This forum is about all development around libVLC.
ragabone
New Cone
New Cone
Posts: 1
Joined: 11 Mar 2015 14:04

Porting Linux application to Windows named pipe issue

Postby ragabone » 11 Mar 2015 14:43

Hi,
I have developed a QT application on a linux platform that uses mkfifo (/pipe/videopipe.m4v) to set up a pipe that sends a compressed video stream. Vlc can read the stream using libvlc_media_new_path function and the url "stream:///pipe/videopipe.m4v". This application works on linux. However, I am struggling to figure out the correct mechanism in a mingw (WIN32) environment. I have tried using CreateNamedPipe(TEXT(\\\\.\\pipe\\videopipe) ...) method and send the compressed video to the pipe however I get a vlc cannot open file (stream://\\\\.\\pipe\\videopipe). I am actually looking for some guidance on the best method to send a compressed stream to VLC in a windows environment. Any help would be appreciated.

James

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

Re: Porting Linux application to Windows named pipe issue

Postby Rémi Denis-Courmont » 11 Mar 2015 16:28

If you are in the same process, an anonymous pipe (i.e. pipe()) ought to be better than a named one. VLC accepts URLs as fd://XXX where XXX is the read end of the pipe.

I do not know if that will work on Windows - it should work if your application uses the same CRT as LibVLC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 55 guests