Page 1 of 1

Save h264 streams directly to disk

Posted: Mon Mar 21, 2016 3:04 pm
by Toasty
I built a deb package from the feature-h264-videostorage branch (commit #5f6d47f by SteveGilvarry) using the `do_debian_package.sh` script. Installed on Ubuntu Server 15.10 64-bit.

ZM seems to be running normally. I can view the camera streams in the web interface, add monitors, etc. The only problem I'm having is that the mp4 files are being created. When I go to export the events, I get absolutely nothing, and when I search through the events folder, no videos turn up. My disk activity is also close to nil, so nothing's being written to disk for sure. I'm also not using any encoder parameters, but I'm assuming that since I'm using H264 Camera Passthrough, that wouldn't do anything anyway. I've also double checked folder permissions for /var/cache/zoneminder, and everything's fine.

The only errors I see in the log that look to potentially be related are zmc errors with a bunch of hex data. For example:

Code: Select all

256: 00 00 01 61 9b 59 17 ff 53 1d 18 cd f9 7d 9c 04 81 f3 f1 2f ae 2e 8e d2 ce 72 98 bf 38 49 1f 0a e2 cf 79 fe e0 0f f3 44 ba 2b 76 f6 09 68 6c 62 0d 26 91 8a 66 50 78 af a5 41 42 3e 70 e5 9b bb ab 70 f3 e9 41 8c 64 be 99 1e 91 6a bf e5 b7 9d 30 74 0f fa c1 aa f6 06 31 e0 e0 f2 39 16 76 d6 2e 28 9b 24 ff 98 f2 23 0d 27 6c b3 78 99 f1 85 90 01 a1 28 82 4b 71 20 89 8e 03 4a ec fb 33 b2 31 d8 35 e8 9c ae 4f 98 03 02 c1 f5 aa 82 87 76 0a b1 85 d2 10 58 41 89 05 9f f1 08 61 9b a7 ad a3 3c ca b7 d2 ca 27 c6 a4 20 b8 ff c3 ba d7 6e de f7 5d 0c f2 9f 0c 41 5e d7 ef cd 10 5d 3c b5 87 e9 95 e3 55 3a 3f e1 1f 22 4d 6b 05 f8 97 29 d0 e2 63 e3 99 1f b1 66 58 c4 34 89 18 78 5f 8d 9b 69 c0 95 5d c7 08 12 3a 3a bc 02 19 c9 be 81 3b 8e 0b 2e 97 46 88 8c cc 3c ae 42 19 10 2b a9
But they're all different. Any ideas?

Re: Save h264 streams directly to disk

Posted: Tue Mar 22, 2016 1:17 pm
by iconnor
the h264 storage stuff only works for ffmpeg monitors ATM. Are you using the ffmpeg monitor type?

Re: Save h264 streams directly to disk

Posted: Wed Mar 23, 2016 11:02 am
by SteveGilvarry
I updated the readme on the branch to reflect that. I put the stubs into other cameras so they fail silently, probably should write en error out for them. I need to get back to debugging remote cameras as should be easy to enable for them, but so far has eluded me, and I keep getting distracted in forums etc.

Re: Save h264 streams directly to disk

Posted: Wed Mar 23, 2016 2:25 pm
by Toasty
Haha, well, sorry for distracting you then. :)

I appreciate the info from the both of you though. It looks like I'm getting video files on my disk now. However, I've noticed that the events are all 10 minutes long, as are the videos themselves. I can't seem to find a setting anywhere to change this (i.e. to make it 1hr intervals instead).

Also, while monitoring the live feed works just fine, in-browser playback of the recorded video fails. In Chrome, I just get a blank space where the video should be, and the browser seems to be trying to load something, but never finishes.