samirkumardas / jmuxer

jMuxer - a simple javascript mp4 muxer that works in both browser and node environment.
Other
548 stars 108 forks source link

Live stream with variable framerate #118

Closed leo0104 closed 1 year ago

leo0104 commented 1 year ago

I receive raw H.264 frames from a live stream together with timestamps of every frame but the framerate changes during the stream.

Is it possible to display a live stream with a variable framerate? Which configuration of JMuxer do I have to use for that scenario?

samirkumardas commented 1 year ago

Have you checked the option readFpsFromTrack ?

leo0104 commented 1 year ago

Thank you for the hint @samirkumardas

For the moment the solution with readFpsFromTrack works well :) Unfortunately I sometimes have some lags on my video but I'm not sure if my backend is causing the problem.

I have to test a little bit more display my live stream smoothly.