简体   繁体   English

Java RTP/HTTP 流

[英]Java RTP/HTTP Streaming

i'm decoding and encoding a videofile via Xuggle to FLV-video format and send it via Sockets to my java server (not the entire file, only parts of it every X seconds).我正在通过 Xuggle 将视频文件解码和编码为 FLV 视频格式,并通过 Sockets 将其发送到我的 java 服务器(不是整个文件,每 X 秒只有部分文件)。 On the server-side I get the encoded file as ByteArrayInputStream.在服务器端,我将编码文件作为 ByteArrayInputStream。 Is it possible to stream this ByteArrayInputStream via rtp or http-streaming?是否可以通过 rtp 或 http-streaming 来 stream 这个 ByteArrayInputStream ? Or do i need a finished encoded file for that?或者我需要一个完成的编码文件吗? I'm creating a video streaming server, where the client encodes the video file and sends it to the server in parts.我正在创建一个视频流服务器,客户端在其中对视频文件进行编码并将其部分发送到服务器。 This is already done.这已经完成了。 I'm now stuck on the server side, to stream the ByteArrayInputStream via RTP or HTTP, so I can watch it via VLC.我现在被困在服务器端,通过 RTP 或 HTTP 到 stream ByteArrayInputStream,所以我可以通过 VLC 观看它。 Are there any good examples for it?有什么好的例子吗?

I've already tested to save the ByteArrayInputStream to file.我已经测试过将 ByteArrayInputStream 保存到文件中。 This works but I don't wanna save the file on the server.这可行,但我不想将文件保存在服务器上。 I wanna stream it;)我想要 stream 它;)

Thank you谢谢

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

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