Unable to stream events
Posted: Wed Jul 15, 2009 2:25 pm
Hi,
This is my first post after hours of trawling the forums trying to find a solution.
Running 1.24.2 on Ubuntu 9.04
I have a single Panasonic IP camera which is capturing fine into Zoneminder.
Everything is wonderful and I can view the live feed from the camera from within Zoneminder fine.
My problem occurs when I am trying to view events previously captured. Upon clicking on an event, the event appears and I see the first frame of the event. If I am really lucky, I might see a few frames before the stream stops and Firefox / Safari / IE you name it becomes unresponsive (all subsequent ZM pages off the server are not displayed).
The only way to get back to normality is to shutdown the browser and fire it up again.
There must be something not right with ZMS (in my case I am running nph-zms). I have turned up the debug on this process to 9 and have captured the following (bottom half of the debug output displayed here...)
07/15/09 15:07:56.422055 zms[3156].DB1-zm_monitor.cpp/458 [Monitor Camera-Front has function 3]
07/15/09 15:07:56.422128 zms[3156].DB1-zm_monitor.cpp/459 [Monitor Camera-Front LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
07/15/09 15:07:56.422161 zms[3156].DB1-zm_monitor.cpp/460 [Monitor Camera-Front IBC = 50, WUC = 50, pEC = 50, PEC = 150, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
07/15/09 15:07:56.422162 zms[3156].DB1-zm_monitor.cpp/2459 [Loaded monitor 1(Camera-Front), 0 zones]
07/15/09 15:07:56.426735 zms[3156].DB3-zm_stream.cpp/58 [FPS:14.19, MXFPS:15.00, BFPS:14.19, EFPS:14.19, FM:1]
07/15/09 15:07:56.426811 zms[3156].DB3-zm_stream.cpp/65 [aEFPS:14.19, aFM:1]
07/15/09 15:07:56.428077 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 1]
07/15/09 15:07:56.461252 zms[3156].DB3-zm_event.cpp/1365 [dUs: 0]
07/15/09 15:07:56.461665 zms[3156].DB2-zm_event.cpp/807 [Got message, type 1, msg 99]
07/15/09 15:07:56.461728 zms[3156].DB1-zm_event.cpp/1027 [Got QUERY command, sending STATUS]
07/15/09 15:07:56.461760 zms[3156].DB2-zm_event.cpp/1054 [E:289, P:0, p:0 R:100, Z:100]
07/15/09 15:07:56.462485 zms[3156].DB3-zm_stream.cpp/58 [FPS:14.19, MXFPS:15.00, BFPS:14.19, EFPS:14.19, FM:1]
07/15/09 15:07:56.462572 zms[3156].DB3-zm_stream.cpp/65 [aEFPS:14.19, aFM:1]
07/15/09 15:07:56.462612 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 2]
07/15/09 15:07:56.526432 zms[3156].DB3-zm_event.cpp/1365 [dUs: 200000]
07/15/09 15:07:56.728798 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 3]
07/15/09 15:07:56.744346 zms[3156].DB3-zm_event.cpp/1365 [dUs: 130000]
07/15/09 15:07:56.874783 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 4]
07/15/09 15:07:56.885468 zms[3156].DB3-zm_event.cpp/1365 [dUs: 119999]
07/15/09 15:07:57.006571 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 5]
07/15/09 15:07:57.021843 zms[3156].DB3-zm_event.cpp/1365 [dUs: 149999]
07/15/09 15:07:57.172895 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 6]
07/15/09 15:07:57.174664 zms[3156].DB3-zm_event.cpp/1365 [dUs: 200000]
07/15/09 15:07:57.375209 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 7]
07/15/09 15:07:57.385549 zms[3156].DB3-zm_event.cpp/1365 [dUs: 119999]
07/15/09 15:07:57.507375 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 8]
07/15/09 15:07:57.511394 zms[3156].DB3-zm_event.cpp/1365 [dUs: 119999]
07/15/09 15:07:57.632478 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 9]
07/15/09 15:07:57.635040 zms[3156].DB3-zm_event.cpp/1365 [dUs: 149999]
07/15/09 15:07:57.791984 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 10]
07/15/09 15:07:57.798686 zms[3156].DB3-zm_event.cpp/1365 [dUs: 160000]
07/15/09 15:07:57.959946 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 11]
07/15/09 15:07:57.963164 zms[3156].DB3-zm_event.cpp/1365 [dUs: 179999]
07/15/09 15:07:58.143942 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 12]
07/15/09 15:07:58.145403 zms[3156].DB3-zm_event.cpp/1365 [dUs: 209999]
07/15/09 15:07:58.357036 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 13]
07/15/09 15:07:58.359009 zms[3156].DB3-zm_event.cpp/1365 [dUs: 110000]
07/15/09 15:07:58.470183 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 14]
07/15/09 15:07:58.472931 zms[3156].DB3-zm_event.cpp/1365 [dUs: 139999]
07/15/09 15:07:58.614937 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 15]
07/15/09 15:07:58.617441 zms[3156].DB3-zm_event.cpp/1365 [dUs: 119999]
07/15/09 15:07:58.738193 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 16]
07/15/09 15:07:58.739480 zms[3156].DB3-zm_event.cpp/1365 [dUs: 130000]
07/15/09 15:07:58.870676 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 17]
07/15/09 15:07:58.871980 zms[3156].DB3-zm_event.cpp/1365 [dUs: 149999]
07/15/09 15:07:59.024028 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 18]
07/15/09 15:07:59.028832 zms[3156].DB3-zm_event.cpp/1365 [dUs: 189999]
07/15/09 15:07:59.220182 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 19]
07/15/09 15:07:59.222495 zms[3156].DB3-zm_event.cpp/1365 [dUs: 149999]
07/15/09 15:07:59.374631 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 20]
07/15/09 15:07:59.376904 zms[3156].DB3-zm_event.cpp/1365 [dUs: 200000]
07/15/09 15:07:59.577695 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 21]
07/15/09 15:07:59.585139 zms[3156].DB3-zm_event.cpp/1365 [dUs: 129999]
07/15/09 15:07:59.716323 zms[3156].DB2-zm_event.cpp/807 [Got message, type 1, msg 99]
07/15/09 15:07:59.716400 zms[3156].DB1-zm_event.cpp/1027 [Got QUERY command, sending STATUS]
07/15/09 15:07:59.716487 zms[3156].DB2-zm_event.cpp/1054 [E:289, P:0, p:3 R:100, Z:100]
07/15/09 15:07:59.716568 zms[3156].DB3-zm_stream.cpp/58 [FPS:14.19, MXFPS:15.00, BFPS:14.19, EFPS:14.19, FM:1]
07/15/09 15:07:59.716623 zms[3156].DB3-zm_stream.cpp/65 [aEFPS:14.19, aFM:1]
07/15/09 15:07:59.716662 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 22]
07/15/09 15:07:59.728951 zms[3156].DB3-zm_event.cpp/1365 [dUs: 100000]
07/15/09 15:07:59.829621 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 23]
07/15/09 15:07:59.832606 zms[3156].DB3-zm_event.cpp/1365 [dUs: 159999]
07/15/09 15:07:59.996054 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 24]
07/15/09 15:08:00.000246 zms[3156].DB3-zm_event.cpp/1365 [dUs: 209999]
07/15/09 15:08:00.213538 zms[3156].DB2-
As you can see, the debug output stops whilst sending the frames (presumably to the browser) (NB this is not a copy/paste error). In this case it stopped sending after frame 24. This event has nearly 300 frames.
I know that a lot of faults in this forum are because of ffmpeg, however I am not sure that ffmpeg is actually involved in the replay of a stream.
Please help.
This is my first post after hours of trawling the forums trying to find a solution.
Running 1.24.2 on Ubuntu 9.04
I have a single Panasonic IP camera which is capturing fine into Zoneminder.
Everything is wonderful and I can view the live feed from the camera from within Zoneminder fine.
My problem occurs when I am trying to view events previously captured. Upon clicking on an event, the event appears and I see the first frame of the event. If I am really lucky, I might see a few frames before the stream stops and Firefox / Safari / IE you name it becomes unresponsive (all subsequent ZM pages off the server are not displayed).
The only way to get back to normality is to shutdown the browser and fire it up again.
There must be something not right with ZMS (in my case I am running nph-zms). I have turned up the debug on this process to 9 and have captured the following (bottom half of the debug output displayed here...)
07/15/09 15:07:56.422055 zms[3156].DB1-zm_monitor.cpp/458 [Monitor Camera-Front has function 3]
07/15/09 15:07:56.422128 zms[3156].DB1-zm_monitor.cpp/459 [Monitor Camera-Front LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
07/15/09 15:07:56.422161 zms[3156].DB1-zm_monitor.cpp/460 [Monitor Camera-Front IBC = 50, WUC = 50, pEC = 50, PEC = 150, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
07/15/09 15:07:56.422162 zms[3156].DB1-zm_monitor.cpp/2459 [Loaded monitor 1(Camera-Front), 0 zones]
07/15/09 15:07:56.426735 zms[3156].DB3-zm_stream.cpp/58 [FPS:14.19, MXFPS:15.00, BFPS:14.19, EFPS:14.19, FM:1]
07/15/09 15:07:56.426811 zms[3156].DB3-zm_stream.cpp/65 [aEFPS:14.19, aFM:1]
07/15/09 15:07:56.428077 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 1]
07/15/09 15:07:56.461252 zms[3156].DB3-zm_event.cpp/1365 [dUs: 0]
07/15/09 15:07:56.461665 zms[3156].DB2-zm_event.cpp/807 [Got message, type 1, msg 99]
07/15/09 15:07:56.461728 zms[3156].DB1-zm_event.cpp/1027 [Got QUERY command, sending STATUS]
07/15/09 15:07:56.461760 zms[3156].DB2-zm_event.cpp/1054 [E:289, P:0, p:0 R:100, Z:100]
07/15/09 15:07:56.462485 zms[3156].DB3-zm_stream.cpp/58 [FPS:14.19, MXFPS:15.00, BFPS:14.19, EFPS:14.19, FM:1]
07/15/09 15:07:56.462572 zms[3156].DB3-zm_stream.cpp/65 [aEFPS:14.19, aFM:1]
07/15/09 15:07:56.462612 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 2]
07/15/09 15:07:56.526432 zms[3156].DB3-zm_event.cpp/1365 [dUs: 200000]
07/15/09 15:07:56.728798 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 3]
07/15/09 15:07:56.744346 zms[3156].DB3-zm_event.cpp/1365 [dUs: 130000]
07/15/09 15:07:56.874783 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 4]
07/15/09 15:07:56.885468 zms[3156].DB3-zm_event.cpp/1365 [dUs: 119999]
07/15/09 15:07:57.006571 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 5]
07/15/09 15:07:57.021843 zms[3156].DB3-zm_event.cpp/1365 [dUs: 149999]
07/15/09 15:07:57.172895 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 6]
07/15/09 15:07:57.174664 zms[3156].DB3-zm_event.cpp/1365 [dUs: 200000]
07/15/09 15:07:57.375209 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 7]
07/15/09 15:07:57.385549 zms[3156].DB3-zm_event.cpp/1365 [dUs: 119999]
07/15/09 15:07:57.507375 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 8]
07/15/09 15:07:57.511394 zms[3156].DB3-zm_event.cpp/1365 [dUs: 119999]
07/15/09 15:07:57.632478 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 9]
07/15/09 15:07:57.635040 zms[3156].DB3-zm_event.cpp/1365 [dUs: 149999]
07/15/09 15:07:57.791984 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 10]
07/15/09 15:07:57.798686 zms[3156].DB3-zm_event.cpp/1365 [dUs: 160000]
07/15/09 15:07:57.959946 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 11]
07/15/09 15:07:57.963164 zms[3156].DB3-zm_event.cpp/1365 [dUs: 179999]
07/15/09 15:07:58.143942 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 12]
07/15/09 15:07:58.145403 zms[3156].DB3-zm_event.cpp/1365 [dUs: 209999]
07/15/09 15:07:58.357036 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 13]
07/15/09 15:07:58.359009 zms[3156].DB3-zm_event.cpp/1365 [dUs: 110000]
07/15/09 15:07:58.470183 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 14]
07/15/09 15:07:58.472931 zms[3156].DB3-zm_event.cpp/1365 [dUs: 139999]
07/15/09 15:07:58.614937 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 15]
07/15/09 15:07:58.617441 zms[3156].DB3-zm_event.cpp/1365 [dUs: 119999]
07/15/09 15:07:58.738193 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 16]
07/15/09 15:07:58.739480 zms[3156].DB3-zm_event.cpp/1365 [dUs: 130000]
07/15/09 15:07:58.870676 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 17]
07/15/09 15:07:58.871980 zms[3156].DB3-zm_event.cpp/1365 [dUs: 149999]
07/15/09 15:07:59.024028 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 18]
07/15/09 15:07:59.028832 zms[3156].DB3-zm_event.cpp/1365 [dUs: 189999]
07/15/09 15:07:59.220182 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 19]
07/15/09 15:07:59.222495 zms[3156].DB3-zm_event.cpp/1365 [dUs: 149999]
07/15/09 15:07:59.374631 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 20]
07/15/09 15:07:59.376904 zms[3156].DB3-zm_event.cpp/1365 [dUs: 200000]
07/15/09 15:07:59.577695 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 21]
07/15/09 15:07:59.585139 zms[3156].DB3-zm_event.cpp/1365 [dUs: 129999]
07/15/09 15:07:59.716323 zms[3156].DB2-zm_event.cpp/807 [Got message, type 1, msg 99]
07/15/09 15:07:59.716400 zms[3156].DB1-zm_event.cpp/1027 [Got QUERY command, sending STATUS]
07/15/09 15:07:59.716487 zms[3156].DB2-zm_event.cpp/1054 [E:289, P:0, p:3 R:100, Z:100]
07/15/09 15:07:59.716568 zms[3156].DB3-zm_stream.cpp/58 [FPS:14.19, MXFPS:15.00, BFPS:14.19, EFPS:14.19, FM:1]
07/15/09 15:07:59.716623 zms[3156].DB3-zm_stream.cpp/65 [aEFPS:14.19, aFM:1]
07/15/09 15:07:59.716662 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 22]
07/15/09 15:07:59.728951 zms[3156].DB3-zm_event.cpp/1365 [dUs: 100000]
07/15/09 15:07:59.829621 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 23]
07/15/09 15:07:59.832606 zms[3156].DB3-zm_event.cpp/1365 [dUs: 159999]
07/15/09 15:07:59.996054 zms[3156].DB2-zm_event.cpp/1150 [Sending frame 24]
07/15/09 15:08:00.000246 zms[3156].DB3-zm_event.cpp/1365 [dUs: 209999]
07/15/09 15:08:00.213538 zms[3156].DB2-
As you can see, the debug output stops whilst sending the frames (presumably to the browser) (NB this is not a copy/paste error). In this case it stopped sending after frame 24. This event has nearly 300 frames.
I know that a lot of faults in this forum are because of ffmpeg, however I am not sure that ffmpeg is actually involved in the replay of a stream.
Please help.