Search found 4 matches

Go to advanced search

by peac
18 Mar 2024 07:32
Forum: VLC stream-output (sout)
Topic: stream lag in HLS
Replies: 4
Views: 4540

Re: stream lag in HLS

After some more research, I believe that the stream's timestamps are messed up, but I'm not sure exactly how to verify this. When passing `-fps_mode cfr` to ffmpeg (Frames will be duplicated and dropped to achieve exactly the requested constant frame rate) I see the same behaviour as when not passin...
by peac
15 Mar 2024 13:47
Forum: VLC stream-output (sout)
Topic: stream lag in HLS
Replies: 4
Views: 4540

Re: stream lag in HLS

Hello Rémi, thank you for your response. ffmpeg is already doing the V4L2 m2m reading and encoding to h264, although for some reason it does not do it correctly. Patching this in VLC is unfortunately way above my skills. I have 2 questions: 1. How can I understand exactly what of the resulting strea...
by peac
09 Mar 2024 19:49
Forum: VLC stream-output (sout)
Topic: stream lag in HLS
Replies: 4
Views: 4540

Re: stream lag in HLS

So I found the root issue and the root issue is not with VLC, but maybe VLC could help fixing it. The root issue is that the h264_v4l2m2m codec used by ffmpeg (same goes for v4l2h264enc in gstreamer) fails to encode keyframes correctly. I noticed that when I seen the error in ffmpeg saying "Fai...
by peac
08 Mar 2024 20:16
Forum: VLC stream-output (sout)
Topic: stream lag in HLS
Replies: 4
Views: 4540

stream lag in HLS

Hello, I'm having issues correctly implementing HLS. When my stream is read by an html video element, it seems to playback below normal speed, and catches up every two seconds (which is NOT the segment duration). I'm under the impression it has something to do with the mpeg-ts keyframes. The first s...

Go to advanced search