简体   繁体   English

从不断变化的 BufferedImage 创建 RTMP 流

[英]Creating an RTMP Stream from a changing BufferedImage

I currently have a program which can grab a BufferedImage from a webcam input whenever it needs.我目前有一个程序,可以在需要时从网络摄像头输入中获取 BufferedImage。 I'm now looking for a method/library to encode this into an RTMP stream.我现在正在寻找一种方法/库来将其编码为 RTMP 流。 Xuggler seemed like a good option in this answer , but from what I can tell, it seems very outdated and poorly maintained. Xuggler 在这个答案中似乎是一个不错的选择,但据我所知,它似乎非常过时且维护不善。 Xuggler appears to be built on top of FFMPEG - would I be able to achieve this with FFMPEG alone instead? Xuggler 似乎是建立在 FFMPEG 之上的——我可以单独使用 FFMPEG 来实现这一点吗? I'm fairly unfamiliar with FFMPEG but can look into it if it's worth looking into.我对 FFMPEG 相当陌生,但如果值得研究,可以研究一下。

Essentially, I want to achieve a program which can livestream a webcam - but this MUST be from a constantly changing BufferedImage, as I want to manipulate the webcam output with this BufferedImage later on.本质上,我想实现一个可以直播网络摄像头的程序 - 但这必须来自不断变化的 BufferedImage,因为我想稍后用这个 BufferedImage 操作网络摄像头输出。

If you are interersted by Xuggler I am actively maintain a fork of it.如果您对 Xuggler 感兴趣,我会积极维护它的一个分支。 You can find it on https://github.com/olivierayache/xuggle-xuggler你可以在https://github.com/olivierayache/xuggle-xuggler上找到它

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

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