I'm trying to stream .ts file with my own WebSocket, but the video would speed up for like 1.5x when playing in the browser.
I use this command to generate video segments, and I have another program that detects if there's any newly available sequence and writes to the WebSocket.
I also tried to use a fixed framerate (ffmpeg -r 25 with -f v4l2 -framerate 25) but the situation is the same.
Since the video is generated on the fly, so the behaviour would be like:
[play seq0 at very fast speed] - [wait for seq1 ( for like 1.5s ) ] - [play seq1 for very fast speed] - [wait for seq2]
I wonder if this happens due to the same reason as #184 (which I also experience). Does anyone know any potential solution (or any alternative)?
p.s.
When I run the websocke example in the README, everything works fine.
Hello and happy new year!
I'm trying to stream
.ts
file with my own WebSocket, but the video would speed up for like 1.5x when playing in the browser. I use this command to generate video segments, and I have another program that detects if there's any newly available sequence and writes to the WebSocket.I also tried to use a fixed framerate (
ffmpeg -r 25
with-f v4l2 -framerate 25
) but the situation is the same. Since the video is generated on the fly, so the behaviour would be like: [play seq0 at very fast speed] - [wait for seq1 ( for like 1.5s ) ] - [play seq1 for very fast speed] - [wait for seq2]I wonder if this happens due to the same reason as #184 (which I also experience). Does anyone know any potential solution (or any alternative)?
p.s. When I run the websocke example in the README, everything works fine.