Code Monkey home page Code Monkey logo

Comments (4)

dmlap avatar dmlap commented on August 24, 2024

There are a lot of things that can introduce latency. Have you looked at the network graph in your browser's developer tools? What sort of delay are you seeing to the m3u8s and segments?

from videojs-contrib-hls.

Yoshka avatar Yoshka commented on August 24, 2024

Player starts to play after downloading 4-5 ts segments, each segment has length 1 sec
And it seems like .setBufferTime() is set to minimum(0.5 sec)

from videojs-contrib-hls.

dmlap avatar dmlap commented on August 24, 2024

Apple recommends using 10 second segment durations. Smaller sizes increase the number of round-trips necessary to build up enough buffer to begin playback, so the delays you're seeing are not surprising to me. You can try re-segmenting with Apple's tools or playing with the options in your encoder.

I'm not sure what method you're referring to with bufferTime(); there is no method with that name in the HLS tech or video.js that I'm aware of.

from videojs-contrib-hls.

Alster avatar Alster commented on August 24, 2024

In ffmpeg you can use "-g" parameter, which means "frames per chunk". In case of 24fps and desired 2sec per chunk, you can set parameter like "-g 48"

from videojs-contrib-hls.

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.