问题描述
我想从我的Android手机流媒体视频录制网络媒体服务器。
I want to stream video recording from my android phone to network media server.
第一个问题是,设置 MediaRecorder
输出插座时,流缺少一些 MDAT
大小头。这可以通过固定$ P $本地pprocessing该流并添加丢失的数据,以产生有效的输出流流
The first problem is that when setting MediaRecorder
output to socket, the stream is missing some mdat
size headers. This can be fixed by preprocessing that stream locally and adding missing data to stream in order to produce valid output stream.
现在的问题是如何从那里继续。如何发送/发布该流的RTMP流在一定RTMP wher FMS或Red5的是听。
The question is how to proceed from there. How to send/publish that stream as RTMP stream to some rtmp wher FMS or Red5 is listening.
我试图找到可以工作在Android上,可以从流发送信息给一些服务器RTMP客户端库,但没有一个运气。实现我自己的RTMP客户端将出的范围。
I tried to find a Rtmp client library that could work on android that can send information from stream to some server, but didn't have a luck. Implementing my own RTMP client would be out of the scope.
你有什么建议?
推荐答案
没有直接的办法,但你可以尝试 javacv 的有关ffmpeg。我检查了其他的原因,它看起来像有些人用它使用RTMP(检查以传输视频的线程,搜索RTMP)。
Not a direct approach, but you can try javacv with ffmpeg. I checked it for other reasons, and it looks like some people are using it to transfer video using RTMP (check this thread, search for "rtmp").
这篇关于从Android摄像头流RTMP流活到FMS和Wowza或Red5的 - 转换视频输入流的RTMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!