Page 1 of 1

Porting Linux application to Windows named pipe issue

Posted: 11 Mar 2015 14:43
by ragabone
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

Re: Porting Linux application to Windows named pipe issue

Posted: 11 Mar 2015 16:28
by RĂ©mi Denis-Courmont
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.