I have this code:
public void Start(string FileName, Bitmap Sample_Bitmap, int BitmapRate ) { p = new NamedPipeServerStream(pipename, PipeDirection.Out, 1, PipeTransmissionMode.Byte); byte[] b = new byte[1280 * 720 * 3]; // some buffer for the rg and b of pixels of an image of size 720p System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = @"D:\pipetest\pipetest\ffmpegx86\ffmpeg.exe"; process.EnableRaisingEvents = false; process.StartInfo.WorkingDirectory = @"D:\pipetest\pipetest\ffmpegx86"; process.StartInfo.Arguments = @"-f rawvideo -pix_fmt rgb24 -video_size 1280x720 -i \\.\pipe\mytestpipe -map 0 -c:v libx264 -r " + BitmapRate + " " + FileName; process.Start(); process.StartInfo.UseShellExecute = false; process.StartInfo.CreateNoWindow = false; p.WaitForConnection(); }
So, I know what BitmapRate and FileName do, but the rest are arguments.
What does that mean -f ? and rawvideo is that of decoders or encoders ? -i ? -c:v ? libx264 ? -i ? -c:v ? libx264 ? -i ? -c:v ? libx264 is the codec i guess and -r ?
I tried in google for this format of arguments, but did not find it.
I have 4 lists of text files:
encoders.txt decoders.txt In both files, I have rawvideo. I have pixfmts.txt and fileformats.txt .
I want to build an argument string from variables.
So, for example, BitmapRate is an int, and FileName is a string. And the rest of the arguments, what types of variables do I have to put in order to enter a function?
for instance
what rgb24 what type? 1280x720 what type of variable should it be?
source share