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.
Events play
Re: Events play
it is necessary to change the principle of broadcasting events. You can see nginx-vod-module
Re: Events play
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
zm rec:
mediainfo 7_zm.mp4
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
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
Re: Events play
Considering adding a stream to HLS?
Re: Events play
monitor - storage
add Optional Encoder Parameters: movflags=faststart
by setting this parameter, the video starts faster.
add Optional Encoder Parameters: movflags=faststart
by setting this parameter, the video starts faster.
Re: Events play
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.
this parameter breaks the duration of the clips. As a result, I decided to make my own post processing video to apply this parameter.
Re: Events play
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.