Recorded video take a long time to display in mp4

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
interdif
Posts: 6
Joined: Mon Mar 09, 2020 1:09 pm

Recorded video take a long time to display in mp4

Post by interdif »

Hi,

i have a problem with the load time of mp4 recorded events, i record for some camera at 1080p/24 so video files are around 300mb ...

when i want to play an event in chrome or zmninj, i have to wait longgg time for it to play, if i'm on wifi its ..... longggggg

on firefox its very quick but i cant search in the video since its not fully downloaded...

i dont remember it was so long to load before and its not network related, maybe an update in ZM or Chrome ?

any ideas are welcome :)

Thanks
mikb
Posts: 600
Joined: Mon Mar 25, 2013 12:34 pm

Re: Recorded video take a long time to display in mp4

Post by mikb »

Is the long wait because your browser is indeed downloading the whole thing (before it lets you play it at all), so that it can truly know the size, and then let you seek in it?

Firefox is letting you view it while still downloading (cacheing) at the expense of being able to seek. Can't seek, I don't know the size!?

Some video players won't play a part-downloaded video (just a flat refusal because it's not complete) whereas others will play, but will act oddly once the file becomes longer than the length it first estimated :) (e.g. when you reach 02:39 of 02:32 ... file is 103% complete and still growing, huh?)
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Recorded video take a long time to display in mp4

Post by iconnor »

Please test with 1.34.18. Might be fixed, and now we have some options for tweaking.
incompetent-nerd
Posts: 10
Joined: Sat Jun 13, 2020 4:49 am

Re: Recorded video take a long time to display in mp4

Post by incompetent-nerd »

I was also experiencing this when using ZMNinja.
I travel a lot, so downloading the full 300MB video on a spotty 3G connection (4G if lucky) was a showstopper for me.
It looks like others experienced this also: https://github.com/ZoneMinder/zoneminder/issues/2984.

You can try to revert to the old passthrough behavior.
In the ZM console, click on "source" for the camera, then click storage, then in the "Optional Encoder Parameters" type: movflags=frag_custom+dash+delay_moov
Wait for the next segment to be recorded and saved. When you play the recorded event, it should pop up quickly because it doesn't need to download the entire video first.

The drawback is that if you have a event that was not fully saved, it may be unplayable.
I believe this was one of the reasons the authors made the change.
RagenVox
Posts: 4
Joined: Wed Mar 22, 2023 12:13 pm

Re: Recorded video take a long time to display in mp4

Post by RagenVox »

Have you tried clearing your browser cache and cookies?
Post Reply