I tried playing it in VLC and it works there, I guess this is some kind of compatibility issue between your particular video and the web player (specifically the web player on lemmy.dbzer0?), since other videos don’t seem to have this issue. One minute into the video the clock in the upper left shows 2:24 which is around 4 seconds short of where it should be. Edit: Also it seems this is only on Firefox.
There’s a encoding setup for mp4 that is designed for streaming, and it’s not necessarily set up that way by default. So it may be that it isn’t set to be streamed, but chrome is addressing that right and Firefox isn’t, for whatever reason.
I switched to mkv ages ago and haven’t used Handbrake in a decade, and I can’t remember the specifics for mp4 settings or features, and I’m not gonna download and analyze that file. But if your encoder has a web setting and you intend for the file to be streamed over the web, use the web setting.
I had to re-encode it to mp4 @ 720p in handbrake after downloading it with yt-dlp but that shouldn’t effect the audio.
If it is off, it is by milliseconds, not seconds.
Update: seems fine to me
I tried playing it in VLC and it works there, I guess this is some kind of compatibility issue between your particular video and the web player (specifically the web player on lemmy.dbzer0?), since other videos don’t seem to have this issue. One minute into the video the clock in the upper left shows 2:24 which is around 4 seconds short of where it should be. Edit: Also it seems this is only on Firefox.
Interesting
Howabout the Mastodon post I made?
https://social.linux.pizza/@CubitOom/116093936519513433
Seems to be broken in the same way, on Firefox but not Chromium
You are right, something weird must have happened when I encoded it but it’s weird that’s its only noticeable in Firefox.
I encoded it with the general handbrake present instead of web, maybe that’s something to do with it?
There’s a encoding setup for mp4 that is designed for streaming, and it’s not necessarily set up that way by default. So it may be that it isn’t set to be streamed, but chrome is addressing that right and Firefox isn’t, for whatever reason.
I switched to mkv ages ago and haven’t used Handbrake in a decade, and I can’t remember the specifics for mp4 settings or features, and I’m not gonna download and analyze that file. But if your encoder has a web setting and you intend for the file to be streamed over the web, use the web setting.
Strangly, even re-encoding it using the web presets didn’t help when viewed in Firefox, VLC and other local video players worked fine though.
Anyway, I found that if I just download the video as an mp4 with yt-dlp it seems to work.
yt-dlp -t mp4 --download-sections "*50:37-54:38" --no-keep-video https://www.youtube.com/watch?v=AdqjIs11Z04I’ve replaced the video.