开发者

linux run ffmpeg within c++ code

开发者 https://www.devze.com 2023-02-25 18:43 出处:网络
the O.S. is Lin开发者_如何学Goux. I have an old c++ code that writes raw SDI input from a capture device to a file.

the O.S. is Lin开发者_如何学Goux. I have an old c++ code that writes raw SDI input from a capture device to a file. My intent is to modify this program and redirect the raw video from the SDI source to the stdin of ffmpeg. How can I do that? Is better to run ffmpeg within the c++ source code (how can I do that?)? Thank you very much.


Open a pipe, start mencoder and configure it to read from the pipe. Then write data to the pipe.

If you want to use a library, write a code (etc), then take a look into libav


I use a C++ wrapper around FFMpeg called FOBS

my2c

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号