"Invalid argument" when running ffmpeg.exe with a pipe as video input
I am creating a c# application to record videos H264.
The workflow of my application is like this:
1) My application connects to a webcam using DirectShow and presents the frames in the UI;
2) When recording the app starts a FFmpeg process that accepts a video input from a pipe;
3) After that in my app a NamedPipeServerStream is created and the frames are wrote there.
Till now, I never had a problem with this method, but yesterday I started having problems in a new computer. The problem seems to be related with the creation of the pipe.