简体   繁体   English

将帧推入FFmpeg缓冲区

[英]Pushing frames into FFmpeg buffer

I am trying to push the extracted frames from a video (which I did using ffmpeg) into the FFMPEG buffer. 我正在尝试将视频中提取的帧(我使用ffmpeg所做的)推入FFMPEG缓冲区。 I have looked into the buffer source files of ffmpeg such as buffersrc.c and fifo.c to figure out if I can do that, but I couldn't figure out. 我调查了ffmpeg的缓冲区源文件,例如buffersrc.c和fifo.c,以确定是否可以这样做,但我不知道。 Can anyone please tell me a way to do it? 谁能告诉我一种方法吗?

I think what you looking for is av_write_frame() and av_interleaved_write_frame() functions. 我认为您正在寻找的是av_write_frame()av_interleaved_write_frame()函数。 Look for small projects on github those uses these functions, so you can see how to set up RAW stream and begin to send frames. 在github上寻找使用这些功能的小型项目,以便您可以了解如何设置RAW流并开始发送帧。

Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM