Events play

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
Cramac1
Posts: 56
Joined: Wed Aug 29, 2018 11:29 am

Events play

Post by Cramac1 » Tue Oct 13, 2020 7:32 pm

Hello. I will write a proposal.
I would like to rework the format of events. In the current version, online viewing of records is very difficult.
Looked at a demo from Flussonic Watcher. Works great in terms of viewing the archive. Shows frames from the timeline, choosing the time, immediately starts playing. This is what you want from ZM.

Cramac1
Posts: 56
Joined: Wed Aug 29, 2018 11:29 am

Re: Events play

Post by Cramac1 » Sat Oct 17, 2020 6:24 am

it is necessary to change the principle of broadcasting events. You can see nginx-vod-module

Cramac1
Posts: 56
Joined: Wed Aug 29, 2018 11:29 am

Re: Events play

Post by Cramac1 » Sat Oct 17, 2020 6:44 pm

testing nginx-vod-module. But there was a problem. The videos that ZM writes in the module do not work. If I write from the camera myself. then everything is fine.

i rec:
ffmpeg -re -i 'rtsp://user:pass@192.168.1.9:554/stream0?username=admin&password=' -c copy 7.mp4

mediainfo 7.mp4

Code: Select all

General
Complete name                            : 7.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 1.61 MiB
Duration                                 : 42 s 962 ms
Overall bit rate                         : 313 kb/s
Movie name                               : RTSP/RTP stream from anjvision ipcamera
Writing application                      : Lavf57.83.100

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L4.1@Main
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 42 s 962 ms
Bit rate                                 : 312 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 10.265 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.015
Stream size                              : 1.60 MiB (100%)
Color range                              : Full
zm rec:
mediainfo 7_zm.mp4

Code: Select all

General
Complete name                            : 7_zm.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/iso6/mp41)
File size                                : 257 MiB
Duration                                 : 1 h 3 min
Overall bit rate                         : 569 kb/s
Movie name                               : Zoneminder Security Recording
Writing application                      : Lavf57.83.100

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L4.1@Main
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 1 h 3 min
Bit rate                                 : 568 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 12.036 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.023
Stream size                              : 257 MiB (100%)
Color range                              : Full

Cramac1
Posts: 56
Joined: Wed Aug 29, 2018 11:29 am

Re: Events play

Post by Cramac1 » Sun Oct 18, 2020 8:43 am

Considering adding a stream to HLS?

Cramac1
Posts: 56
Joined: Wed Aug 29, 2018 11:29 am

Re: Events play

Post by Cramac1 » Wed Nov 04, 2020 12:34 pm

monitor - storage
add Optional Encoder Parameters: movflags=faststart

by setting this parameter, the video starts faster.

Cramac1
Posts: 56
Joined: Wed Aug 29, 2018 11:29 am

Re: Events play

Post by Cramac1 » Fri Nov 06, 2020 10:38 am

movflags=faststart

this parameter breaks the duration of the clips. As a result, I decided to make my own post processing video to apply this parameter.
123681772_361208825149336_3681070541799871860_n.jpg
123681772_361208825149336_3681070541799871860_n.jpg (216.59 KiB) Viewed 1355 times

Cramac1
Posts: 56
Joined: Wed Aug 29, 2018 11:29 am

Re: Events play

Post by Cramac1 » Fri Nov 06, 2020 8:27 pm

returned everything to the ZM as it was, removed the parameter from the settings. Made a script that bypasses all folders with records and overtakes with the faststart option. crutch, but works as it should now.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest