play event mp4

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
fluffykeith
Posts: 14
Joined: Wed Jun 07, 2023 3:11 pm

play event mp4

Post by fluffykeith »

Apologies if this is a daft question but in the documentation under viewing events there is mp4 playback shown. My event is also an mp4 file but I have "The video could not be loaded, ... format is not supported".

I have v1.36.32 installed on ubuntu 23.04.

How do I get the MP4 to play when viewing an event?

The capture is from a web cam but as it has saved an mp4 file I would expect to be able to view it. Any help for this newbie would be great.
Thanks.
User avatar
burger
Posts: 472
Joined: Mon May 11, 2020 4:32 pm

Re: play event mp4

Post by burger »

Are you encoding to mp4? Check that you are saving to an h264, not h265.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
fluffykeith
Posts: 14
Joined: Wed Jun 07, 2023 3:11 pm

Re: play event mp4

Post by fluffykeith »

I had the settings set to auto in the Monitor Storage tab.

I assumed that mp4 is the format of the stream but I suppose recoding is only a small processor hit as it is only saving on each alert.

I changed outputcodec to h264
if I select encoder as :
libx264 - I get a blank event playback.
h264 and the other options - work ok except...

When I view the event first time it plays ok, however if I press play after than it plays at a very high speed, it completes in a few frame <0.5s. Any pointers on that would be ok.

The playback rate doesn't do anything different I always get a super fast playback after the first go.

I'm still experimenting on how I want to set this up but as the capture card I had isn't working with ubuntu 23 I may resort to a few more local cams.
fluffykeith
Posts: 14
Joined: Wed Jun 07, 2023 3:11 pm

Re: play event mp4

Post by fluffykeith »

I notice that when setting to h264 it is not actually saving video but a lot of jpeg files. I have the storage Save JPEGs disabled.

I only get video files when set to auto and they are mp4 but if I set the codec in the event playback to MJPEG it will play it once and after that it will not play gain using the playback controls.
geraldbrandt
Posts: 139
Joined: Tue Dec 09, 2014 10:20 pm

Re: play event mp4

Post by geraldbrandt »

If your camera sends an RTSP h264 stream, just use pass through and don't encode on your system.
Post Reply