Home > Back-end >  Ffmpeg accept RTMP flow, output to the c # pipeline...
Ffmpeg accept RTMP flow, output to the c # pipeline...

Time:09-17

Can determine is the environment there is no problem, may be the command line or implementation problem, try looking for a few days couldn't even get a number of ways, roughly the content is as follows:
Pipeline:
NamedPipeServerStream p_from_ffmpeg
=new NamedPipeServerStream (" from_ffmpeg, "PipeDirection. InOut, 1, PipeTransmissionMode. Byte, System. IO, Pipes, PipeOptions. WriteThrough, 10000, 10000);

Initialize the
The process=new process
{
StartInfo=
{
FileName=@ "D: \ test \ ffmpeg. Exe",
The Arguments=com,
UseShellExecute=false,
CreateNoWindow=true,
RedirectStandardInput=true,
RedirectStandardOutput=true,
RedirectStandardError=true
},
EnableRaisingEvents=true
};
The callback data
Process. ErrorDataReceived +=new DataReceivedEventHandler (OutError);

Try the command line:
Var com=@ "-i rtmp://pull-g.kktv8.com/livekktv/100987038 vcodec - f \ \. \ pipe \ from_ffmpeg";
Var com=@ "-i rtmp://pull-g.kktv8.com/livekktv/100987038 - copy D c: \ test. Mp4";
Var com=@ "-i rtmp://pull-g.kktv8.com/livekktv/100987038 - c: v FLV -f FLV \ \. \ pipe \ from_ffmpeg"; ,,,,,,, etc.
Or tip can't find the corresponding output formats, path pipe error or nothing at all, according to
Callback can output the command line arguments, but unable to get the binary data, and, to solve
  • Related