Coder Social home page Coder Social logo

Latency about spydroid-ipcamera HOT 3 OPEN

fyhertz avatar fyhertz commented on August 18, 2024
Latency

from spydroid-ipcamera.

Comments (3)

fyhertz avatar fyhertz commented on August 18, 2024

Hi !

If you are using vlc to play the stream, you can easily control the size of the cache and therefore the latency (vlc "rtsp://xxx.xxx.xxx.xxx:8086/" --network-caching=500). By default, it seems that VLC is using a buffer of 1sec. If you're phone is also doing some buffering, unfortunately, there isn't much you can do.

Also, the VideoView API of android won't let you adjust the buffer size... It's a missing feature of this API.

Good luck !

from spydroid-ipcamera.

murphysean avatar murphysean commented on August 18, 2024

Yeah, after digging around, I believe it actually is the encoder itself in the low level android code. I didn't realize, but h.264 has a few different types of encoders. The top dog for real time collaboration and low latency encoding seems to be x264 right now, and it requires some flags to the encoder to let it know this is the intent. The android encoder is definitely not doing anything like that as it's purpose is to get a good video to disk, and latency is not a concern. It'd be nice if they made the api a little more robust.

Thanks for your response. I will probably still end up using this library, as it just makes the whole process dead simple. Thanks for your great work on it! If I do end up porting x264 to android to get some of these features, I wonder if you'd be interested in allowing me to use this library as a basis for that type of effort?

from spydroid-ipcamera.

fyhertz avatar fyhertz commented on August 18, 2024

Yeah sure, as long as you comply with the GPL, it's fine by me !

from spydroid-ipcamera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.