ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder
http://zmninja.zoneminder.com
Other
1.02k stars 270 forks source link

video branch support for zmNinja #60

Closed pliablepixels closed 9 years ago

pliablepixels commented 9 years ago

working with @liucougar

pliablepixels commented 9 years ago

@liucougar -- the live view for monitor 2 in ZM produces this

<img id="liveStream" src="http://<yourip>/cgi-bin/nph-zms?mode=jpeg&amp;monitor=2&amp;scale=100&amp;maxfps=5&amp;buffer=1000&amp;connkey=471868&amp;rand=1446368423" alt="Monitor-2_nojpeg" width="352" height="288">

Why is ZM still using jpeg mode in nph-zms and image tags? Should this not be a video feed?

pliablepixels commented 9 years ago

@liucougar, looks like chrome cannot play the videos created by ZM For example:

http://<yourip>/zm/events/2/15/11/01/01/54/03/754-video.mp4

Safari can play the above

Chrome however has no problem with

http://static.videogular.com/assets/videos/videogular.mp4

It seems chrome does not allow H264 encoded mp4 playback, at least encoded in specific 264 profiles - any thoughts?

An easy test would be to simply try and access the raw mp4 link from chrome and get to an encoding format that works with it

pliablepixels commented 9 years ago

well, as it turns our it does work on Chrome/ubuntu. Maybe a mac/Chrome issue then

pliablepixels commented 9 years ago

On further testing with Steve G. it looks like the problem is only with the videos in your instance. His videos play just fine on OS X/Chrome too - can you check if any changes you made broke anything?

pliablepixels commented 9 years ago

closing this issue so I can add it to auto changelog for 0.85 tag. Please create a new issue for video support.

liucougar commented 9 years ago

live view in the branch is still using the old way (so it loads jpegs too)

i tried FF/IE/chrome under windows 7, and the video loads fine for me. this also works fine in my chrome under linux.

I think the problem you are seeing in mac/chrome is not within zoneminder itself, it's either caused by ffmpeg version (I have 2.5.8), or the camera (my camera is hikvision)