实时视频传输方案汇总-java

目录

humble-video

https://github.com/artclarke/humble-video
Humble Video: Demuxing, Decoding, Filtering, Encoding and Muxing of 100’s of video and audio formats and Codecs from the JVM

libstreaming

https://github.com/fyhertz/libstreaming
Introduction
What it does
libstreaming is an API that allows you, with only a few lines of code, to stream the camera and/or microphone of an android powered device using RTP over UDP.

Android 4.0 or more recent is required.
Supported encoders include H.264, H.263, AAC and AMR.
The first step you will need to achieve to start a streaming session to some peer is called ‘signaling’. During this step you will contact the receiver and send a description of the incomming streams. You have three ways to do that with libstreaming.

With the RTSP client: if you want to stream to a Wowza Media Server, it’s the way to go. The example 3 illustrates that use case.
With the RTSP server: in that case the phone will act as a RTSP server and wait for a RTSP client to request a stream. This use case is illustated in the example 1.
Or you use libstreaming without using the RTSP protocol at all, and signal the session using SDP over a protocol you like. The example 2 illustrates that use case.
The full javadoc documentation of the API is available here: http://guigui.us/libstreaming/doc

h264j

https://github.com/neocoretechs/h264j
This is an H264 Java port to replace Xuggler in ARDrone video processing.
It is also a general purpose H264 decoder.
This fork adds stream processing and callbacks with raw video frames,
whcih is how the ARDrone video is implemented. There is a standalone player that reads files, another for streams, and a headless version with the callbacks with each AVFrame.

Stream example:
H264StreamPlayer hsd = new H264StreamPlayer(is); // where is is the inputstream from ARDrone video hsd.playStream();

Listener example:
H264StreamCallback hsc = new H264StreamCallback(is, listener); // where listener is RGBListener receiving AVFrames hsc.playStream();
File example:
H264Player hp = new H264Player(“file.mp4”);

rtsp-h264-client

https://github.com/srysduedu123/rtsp-h264-client
It is a rtsp client with Java. And we can get the video with parsing the RTP and H264 protocol.

OpenFlow

https://github.com/Yyz-Conan/OpenFlow
H264 摄像头和MP4文件推流,适用于android和java环境

ihmc-video-codecs

https://github.com/ihmcrobotics/ihmc-video-codecs
This library provides a Java library for H264 and MJPEG encoding and decoding as well as support for MP4.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值