Page 1 of 1

"The video could not be loaded, either because the server or network failed or because the format is not supported"

Posted: Mon Sep 20, 2021 11:27 pm
by Stephen304
After upgrading to 1.36.7 I get this error when trying to view old recordings. Oddly enough it seems fine if I download the file to play. It seems there are no errors in the log, but maybe this is related to this older thread?

viewtopic.php?t=27287

Also, if I manually select codec MJPEG in the top right it plays, but the bottom half of the video is really glichy unlike when I download the file

There doesn't seem to be any resolution from that thread other than waiting for an update. Does anyone else have this same issue or know anything about the cause?

Image

Also if I try to use the same URL that the web player uses (http://zoneminder/index.php?mode=mpeg&f ... view_video)
I get this

Image

Re: "The video could not be loaded, either because the server or network failed or because the format is not supported"

Posted: Tue Sep 21, 2021 8:07 am
by scarygary
Same here. Oddly enough older events are playable.

Re: "The video could not be loaded, either because the server or network failed or because the format is not supported"

Posted: Wed Sep 22, 2021 1:52 pm
by iconnor
It is encoding to h265. Choose h264 under Monitor->Storage.

Re: "The video could not be loaded, either because the server or network failed or because the format is not supported"

Posted: Wed Sep 22, 2021 8:37 pm
by Stephen304
Thanks that fixed it. I guess the "auto" setting changed to h265 in recent versions

Re: "The video could not be loaded, either because the server or network failed or because the format is not supported"

Posted: Wed Sep 22, 2021 9:06 pm
by iconnor
Yeah it did. In 1.34 we used the mp4v2 library which only support h264 and was deprecated. Now we just use ffmpeg libraries which support just about every format out there. I probably should NOT have added auto though. h265 support just doesn't exist in the browser.

Hopefully soon we can decode it in javascript.