fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.49k stars 1.08k forks source link

Decrease delay during streaming and streaming methods #110

Open gabrielrolfsen opened 9 years ago

gabrielrolfsen commented 9 years ago

Hello.

I am currently using an app that uses the method exemplified on example 1 to stream the camera from an Android Device to an Ubuntu Server (using openCV and libVLC). This way, my Android device acts like a server and waits for the client (ubuntu) to send the play signal over RTSP.

The problem I am facing with the streaming is that I am getting a delay of approximately 1.1s during the transmission and I want to get it down to 150ms maximum.

I tried to implement the example 2 of libstreaming-examples, but I couldn't I don't have access to a detailed documentation and I couldn't figure out how to get the right signal to display the streaming on my server. Other than that, I was trying to see what I can do with the example 1 in order to get it down, but nothing new until now.

PS: I am using a LAN, so network/bandwidth is not the problem.

Here come the questions:

Thank you!