c# - Access to StandardInput from NRECO.VideoConverter? -
i'm using answer this question pipe string of bitmaps ffmpeg. requires redirecting standardinput stream , writing it.
is similar available nreco.videoconverter? there way either access running process, or access standardinput base stream?
if want provide input data stdin or read output data stdout (or both) may use convertlivemedia
method; has overloads different usage scenarios:
var videoconv = new ffmpegconverter(); var ffmpegtask = videoconv.convertlivemedia( "rawvideo", h264stream, "h264", new convertsettings() { custominputargs = string.format(" -pix_fmt bgr24 -video_size 640x480 -framerate 5 ", framebmp.width, framebmp.height) }); ffmpegtask.start(); ffmpegtask.write( bmpbytes ); // call n times each input frame. image size should 640x480 ffmpegtask.stop();
you can adopt code snippet "image2pipe" if needed.
Comments
Post a Comment