VLC stream a file in C#: works in a command line not when starting a process

About encoding, codec settings, muxers and filter usage
devilbissj
New Cone
New Cone
Posts: 1
Joined: 12 Apr 2019 23:09

VLC stream a file in C#: works in a command line not when starting a process

Postby devilbissj » 15 Apr 2019 18:45

This is the setup in my C# code:

ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.FileName = "\"" + "C:\\Program Files (x86)\\VideoLan\\VLC\\vlc.exe" + "\"";
startInfo.CreateNoWindow = true;
startInfo.UseShellExecute = false;
startInfo.ErrorDialog = false;
startInfo.RedirectStandardError = true;
startInfo.RedirectStandardOutput = true;
Process test = new Process();
test.StartInfo = startInfo;
test.Exited += new EventHandler(restream_Exited);
test.OutputDataReceived += OutputHandler;
test.ErrorDataReceived += ErrorHandler;
startInfo.Arguments = " --intf dummy --dummy-quiet -vvv " + files[0] + " --sout " + "\"" + "udp:" + destIP + ":" + destPort + "\"" + " --ttl 3";
test.Start()


VLC starts up but no video is streaming.

this works from the dos command line...

"C:\Program Files (x86)\VideoLan\VLC\vlc.exe" --intf dummy --dummy-quiet -vvv \\192.18.20.111\Videos\Raw\test.mpg --sout "udp:192.18.20.30:9001" --ttl 3

Any ideas as to why i can not get the video playing from within my C# code?

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: VLC stream a file in C#: works in a command line not when starting a process

Postby Jean-Baptiste Kempf » 16 Apr 2019 08:32

Look in the logs :)
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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests