Playback is too fast
Playback is too fast
Running 1.36.4 on CentOS 7.
Its started with the previous version. 1.36.1, I think and I hoped this release would have fixed the issue.
When I playback events, the first 5 or 6 are fine, then it jumps into ultra high speed.
Been doing gapless events at 1X. I have even tried 1/4 speed and no difference.
Its started with the previous version. 1.36.1, I think and I hoped this release would have fixed the issue.
When I playback events, the first 5 or 6 are fine, then it jumps into ultra high speed.
Been doing gapless events at 1X. I have even tried 1/4 speed and no difference.
Re: Playback is too fast
I'm still having this problem. I posted on github a while back but got no response.
At this point, Zoneminder is unusable.
At this point, Zoneminder is unusable.
Re: Playback is too fast
I'm having this too. Fresh install of Zoneminder 1.36.14 on Debian bullseye. To me it appears that playback speed varies between a 'nearly normal' to x3 or something. This is a problem specially with gapless play. It seems that the first event played is at normal speed. After that, rest of events plays mostly a way too fast. Is there any solutions for this? Is this a bug? I did not notice this problem with 1.34.x. If so, I hope it will be fixed in the future.
Re: Playback is too fast
This is fixed in 1.36.15, which I just tagged. Packages building.
Re: Playback is too fast
I'm getting this speed up in playback of "gapless" events. It seems to alternate between every other event, with gapless..
I'm trying to see if there is a buffer setting for this, or is this a bug still?
FYI - I'm on 1.36.15
Great work on the Zoneminder software tho, love it.. Been using for over 10 years now.
thanks in advance..
I'm trying to see if there is a buffer setting for this, or is this a bug still?
FYI - I'm on 1.36.15
Great work on the Zoneminder software tho, love it.. Been using for over 10 years now.
![Smile :)](./images/smilies/icon_smile.gif)
thanks in advance..
Re: Playback is too fast
I am on version 1.37 and this problem still exist
-
- Posts: 1
- Joined: Thu Jun 09, 2022 3:57 am
Re: Playback is too fast
I'm having this exact problem on v1.36.18
Thanks
Thanks
Re: Playback is too fast
I'm seeing this behavior in 1.36, specifically in a machine upgraded from 1.34 to 1.36, now on 1.36.32
The speedup is only on the web stream of old footage. The videos downloaded, play at normal speed. It also only happens
on MJPEG cameras (axis) using FFMPEG. I have an h264 rtsp stream which plays back at regular speeds.
Videos play back at about 10-20 seconds per frame. I should mention this is a core 2 duo, and it's overloaded a bit. It runs at a load of about 4. I'll probably upgrade the hw. I also see some problems downloading videos from timeline on ZMNinja, which I think is due to lack of CPU.
I was able to get logs of just this event by using _zms_e###### in the debug section. I guess playback of events is not logged to zms_m#, that's only for live view. I'm impressed you can get debug logs for a specific streamed event.
The logs are like 50000 lines and 9MB so I'll just post a snippet here.
The speedup is only on the web stream of old footage. The videos downloaded, play at normal speed. It also only happens
on MJPEG cameras (axis) using FFMPEG. I have an h264 rtsp stream which plays back at regular speeds.
Videos play back at about 10-20 seconds per frame. I should mention this is a core 2 duo, and it's overloaded a bit. It runs at a load of about 4. I'll probably upgrade the hw. I also see some problems downloading videos from timeline on ZMNinja, which I think is due to lack of CPU.
I was able to get logs of just this event by using _zms_e###### in the debug section. I guess playback of events is not logged to zms_m#, that's only for live view. I'm impressed you can get debug logs for a specific streamed event.
The logs are like 50000 lines and 9MB so I'll just post a snippet here.
Code: Select all
11/22/22 12:54:51.735117 zms_e455171[14579].DB1-zm_logger.cpp/232 [LogOpts: level=DB4 effective=DB4, screen=OFF, database=OFF, logfile=DB4->/var/log/zm/zm_debug_event.log.14579, syslog=FAT]
11/22/22 12:54:51.735357 zms_e455171[14579].DB1-zm_utils.cpp/207 [Detected a x86\x86-64 processor with SSE4.1]
11/22/22 12:54:51.735364 zms_e455171[14579].DB4-zm_image.cpp/396 [Blend: Using SSE2 fast blend function]
11/22/22 12:54:51.735376 zms_e455171[14579].DB4-zm_image.cpp/458 [Delta: Using SSSE3 delta functions]
11/22/22 12:54:51.735383 zms_e455171[14579].DB4-zm_image.cpp/559 [Deinterlace: Using standard functions]
11/22/22 12:54:51.735389 zms_e455171[14579].DB4-zm_image.cpp/572 [Image buffer copy: Using standard memcpy]
11/22/22 12:54:51.735718 zms_e455171[14579].DB2-zm_stream.h/224 [Setting replay_rate 100]
11/22/22 12:54:51.735726 zms_e455171[14579].DB3-zms.cpp/317 [Setting stream start to frame (1)]
11/22/22 12:54:51.736457 zms_e455171[14579].DB2-zm_storage.cpp/62 [Loading Storage for 2 using SELECT `Id`, `Name`, `Path`, `Type`, `Scheme` FROM `Storage` WHERE `Id`=2]
11/22/22 12:54:51.736560 zms_e455171[14579].DB1-zm_storage.cpp/80 [Loaded Storage area 2 '1TBHDD']
11/22/22 12:54:51.736569 zms_e455171[14579].DB1-zm_monitor.cpp/493 [Have camera type Ffmpeg]
11/22/22 12:54:51.736576 zms_e455171[14579].DB1-zm_monitor.cpp/2216 [Reloading linked monitors for monitor Front_Hallway, '(null)']
11/22/22 12:54:51.736584 zms_e455171[14579].DB3-zm_monitor.cpp/570 [Decoding enabled: 1 function 5 Mocord savejpegs 0 videowriter 1]
11/22/22 12:54:51.736593 zms_e455171[14579].DB1-zm_packetqueue.cpp/714 [Setting pre_event_video_packet_count to 0]
11/22/22 12:54:51.736599 zms_e455171[14579].DB1-zm_packetqueue.cpp/708 [Setting max_video_packet_count to 20]
11/22/22 12:54:51.736605 zms_e455171[14579].DB1-zm_monitor.cpp/668 [mem.size(8) SharedData=760 TriggerData=560 VideoStoreData=4128 timestamps=48 images=3x1228800 = 3686400 total=3691960]
11/22/22 12:54:51.736613 zms_e455171[14579].DB1-zm_monitor.cpp/694 [Loaded monitor 1(Front_Hallway), 0 zones]
11/22/22 12:54:51.736621 zms_e455171[14579].DB2-zm_storage.cpp/62 [Loading Storage for 2 using SELECT `Id`, `Name`, `Path`, `Type`, `Scheme` FROM `Storage` WHERE `Id`=2]
11/22/22 12:54:51.736657 zms_e455171[14579].DB1-zm_storage.cpp/80 [Loaded Storage area 2 '1TBHDD']
11/22/22 12:54:51.736667 zms_e455171[14579].DB3-zm_stream.cpp/100 [FPS:7.01, MaxFPS:30.00, BaseFPS:7.01, EffectiveFPS:7.01, FrameMod:1, replay_rate(100)]
11/22/22 12:54:51.841171 zms_e455171[14579].DB3-zm_eventstream.cpp/268 [Frame 1 timestamp:(1669115046.000000), offset(0.000000) delta(0.000000), in_db(1)]
11/22/22 12:54:51.841446 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 2 timestamp:(1669115046.143030), offset(0.143030) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841460 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 3 timestamp:(1669115046.286061), offset(0.286061) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841472 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 4 timestamp:(1669115046.429091), offset(0.429091) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841484 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 5 timestamp:(1669115046.572121), offset(0.572121) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841495 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 6 timestamp:(1669115046.715152), offset(0.715152) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841507 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 7 timestamp:(1669115046.858182), offset(0.858182) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841518 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 8 timestamp:(1669115047.001212), offset(1.001212) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841530 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 9 timestamp:(1669115047.144243), offset(1.144243) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841541 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 10 timestamp:(1669115047.287273), offset(1.287273) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841563 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 11 timestamp:(1669115047.430303), offset(1.430303) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841575 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 12 timestamp:(1669115047.573333), offset(1.573333) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841586 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 13 timestamp:(1669115047.716364), offset(1.716364) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841601 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 14 timestamp:(1669115047.859394), offset(1.859394) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841609 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 15 timestamp:(1669115048.002424), offset(2.002424) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841616 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 16 timestamp:(1669115048.145455), offset(2.145455) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841624 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 17 timestamp:(1669115048.288485), offset(2.288485) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841631 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 18 timestamp:(1669115048.431515), offset(2.431515) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841639 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 19 timestamp:(1669115048.574545), offset(2.574545) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841646 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 20 timestamp:(1669115048.717576), offset(2.717576) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841654 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 21 timestamp:(1669115048.860606), offset(2.860606) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841661 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 22 timestamp:(1669115049.003636), offset(3.003636) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841669 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 23 timestamp:(1669115049.146667), offset(3.146667) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841677 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 24 timestamp:(1669115049.289697), offset(3.289697) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841684 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 25 timestamp:(1669115049.432727), offset(3.432727) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841706 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 26 timestamp:(1669115049.575758), offset(3.575758) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841714 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 27 timestamp:(1669115049.718788), offset(3.718788) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841722 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 28 timestamp:(1669115049.861818), offset(3.861818) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841730 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 29 timestamp:(1669115050.004848), offset(4.004848) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841737 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 30 timestamp:(1669115050.147879), offset(4.147879) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841745 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 31 timestamp:(1669115050.290909), offset(4.290909) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841752 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 32 timestamp:(1669115050.433939), offset(4.433939) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841760 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 33 timestamp:(1669115050.576970), offset(4.576970) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841767 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 34 timestamp:(1669115050.720000), offset(4.720000) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841775 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 35 timestamp:(1669115050.863030), offset(4.863030) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841783 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 36 timestamp:(1669115051.006061), offset(5.006061) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841790 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 37 timestamp:(1669115051.149091), offset(5.149091) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841798 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 38 timestamp:(1669115051.292121), offset(5.292121) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841805 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 39 timestamp:(1669115051.435152), offset(5.435152) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841813 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 40 timestamp:(1669115051.578182), offset(5.578182) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841820 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 41 timestamp:(1669115051.721212), offset(5.721212) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841828 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 42 timestamp:(1669115051.864242), offset(5.864242) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841835 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 43 timestamp:(1669115052.007273), offset(6.007273) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841843 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 44 timestamp:(1669115052.150303), offset(6.150303) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841851 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 45 timestamp:(1669115052.293333), offset(6.293333) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841858 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 46 timestamp:(1669115052.436364), offset(6.436364) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841866 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 47 timestamp:(1669115052.579394), offset(6.579394) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841873 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 48 timestamp:(1669115052.722424), offset(6.722424) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841881 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 49 timestamp:(1669115052.865454), offset(6.865454) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841888 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 50 timestamp:(1669115053.008485), offset(7.008485) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841896 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 51 timestamp:(1669115053.151515), offset(7.151515) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841908 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 52 timestamp:(1669115053.294545), offset(7.294545) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841916 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 53 timestamp:(1669115053.437576), offset(7.437576) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841923 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 54 timestamp:(1669115053.580606), offset(7.580606) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841931 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 55 timestamp:(1669115053.723636), offset(7.723636) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841938 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 56 timestamp:(1669115053.866667), offset(7.866667) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841946 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 57 timestamp:(1669115054.009697), offset(8.009697) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841954 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 58 timestamp:(1669115054.152727), offset(8.152727) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841961 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 59 timestamp:(1669115054.295758), offset(8.295758) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841969 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 60 timestamp:(1669115054.438788), offset(8.438788) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841976 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 61 timestamp:(1669115054.581818), offset(8.581818) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841984 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 62 timestamp:(1669115054.724849), offset(8.724849) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841992 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 63 timestamp:(1669115054.867879), offset(8.867879) delta(0.143030), in_db(0)]
11/22/22 12:54:51.841999 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 64 timestamp:(1669115055.010909), offset(9.010909) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842007 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 65 timestamp:(1669115055.153939), offset(9.153939) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842014 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 66 timestamp:(1669115055.296970), offset(9.296970) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842022 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 67 timestamp:(1669115055.440000), offset(9.440000) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842030 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 68 timestamp:(1669115055.583030), offset(9.583030) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842037 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 69 timestamp:(1669115055.726061), offset(9.726061) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842045 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 70 timestamp:(1669115055.869091), offset(9.869091) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842052 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 71 timestamp:(1669115056.012121), offset(10.012121) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842060 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 72 timestamp:(1669115056.155152), offset(10.155152) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842068 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 73 timestamp:(1669115056.298182), offset(10.298182) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842076 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 74 timestamp:(1669115056.441212), offset(10.441212) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842084 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 75 timestamp:(1669115056.584242), offset(10.584242) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842092 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 76 timestamp:(1669115056.727273), offset(10.727273) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842100 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 77 timestamp:(1669115056.870303), offset(10.870303) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842108 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 78 timestamp:(1669115057.013333), offset(11.013333) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842119 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 79 timestamp:(1669115057.156364), offset(11.156364) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842128 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 80 timestamp:(1669115057.299394), offset(11.299394) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842136 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 81 timestamp:(1669115057.442424), offset(11.442424) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842144 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 82 timestamp:(1669115057.585454), offset(11.585454) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842151 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 83 timestamp:(1669115057.728485), offset(11.728485) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842159 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 84 timestamp:(1669115057.871515), offset(11.871515) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842167 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 85 timestamp:(1669115058.014545), offset(12.014545) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842175 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 86 timestamp:(1669115058.157576), offset(12.157576) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842183 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 87 timestamp:(1669115058.300606), offset(12.300606) delta(0.143030), in_db(0)]
11/22/22 12:54:51.842191 zms_e455171[14579].DB3-zm_eventstream.cpp/252 [Frame 88 timestamp:(1669115058.443636), offset(12.443636) delta(0.143030), in_db(0)]
snip...
22/22 12:54:53.272998 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 559482 * 1/12800=43.709531, dts: 557893, size: 161, stream_index: 0, video flags: 0000, keyframe(0) pos: 77964, duration: 1828]
11/22/22 12:54:53.276200 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 557893 keyframe: 0]
11/22/22 12:54:53.276246 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7141 keyframe: 0]
11/22/22 12:54:53.276254 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7141 keyframe: 0]
11/22/22 12:54:53.276283 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 570680 * 1/12800=44.584375, dts: 559482, size: 353, stream_index: 0, video flags: 0000, keyframe(0) pos: 78125, duration: 1828]
11/22/22 12:54:53.279676 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 559482 keyframe: 0]
11/22/22 12:54:53.279713 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7161 keyframe: 0]
11/22/22 12:54:53.279721 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7161 keyframe: 0]
11/22/22 12:54:53.279749 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 566925 * 1/12800=44.291016, dts: 561334, size: 228, stream_index: 0, video flags: 0000, keyframe(0) pos: 78478, duration: 1828]
11/22/22 12:54:53.282895 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 561334 keyframe: 0]
11/22/22 12:54:53.282937 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7185 keyframe: 0]
11/22/22 12:54:53.282945 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7185 keyframe: 0]
11/22/22 12:54:53.282979 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 563241 * 1/12800=44.003203, dts: 563241, size: 153, stream_index: 0, video flags: 0000, keyframe(0) pos: 78706, duration: 1828]
11/22/22 12:54:53.286093 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 563241 keyframe: 0]
11/22/22 12:54:53.286137 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7209 keyframe: 0]
11/22/22 12:54:53.286145 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7209 keyframe: 0]
11/22/22 12:54:53.286173 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 565150 * 1/12800=44.152344, dts: 565150, size: 178, stream_index: 0, video flags: 0000, keyframe(0) pos: 78859, duration: 1828]
11/22/22 12:54:53.289274 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 565150 keyframe: 0]
11/22/22 12:54:53.289311 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7234 keyframe: 0]
11/22/22 12:54:53.289319 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7234 keyframe: 0]
11/22/22 12:54:53.289346 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 568705 * 1/12800=44.430078, dts: 566925, size: 151, stream_index: 0, video flags: 0000, keyframe(0) pos: 79037, duration: 1828]
11/22/22 12:54:53.292407 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 566925 keyframe: 0]
11/22/22 12:54:53.292451 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7257 keyframe: 0]
11/22/22 12:54:53.292458 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7257 keyframe: 0]
11/22/22 12:54:53.292485 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 579714 * 1/12800=45.290156, dts: 568705, size: 337, stream_index: 0, video flags: 0000, keyframe(0) pos: 79188, duration: 1828]
11/22/22 12:54:53.295870 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 568705 keyframe: 0]
11/22/22 12:54:53.295914 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7279 keyframe: 0]
11/22/22 12:54:53.295923 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7279 keyframe: 0]
11/22/22 12:54:53.295956 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 576013 * 1/12800=45.001016, dts: 570680, size: 293, stream_index: 0, video flags: 0000, keyframe(0) pos: 79525, duration: 1828]
11/22/22 12:54:53.299336 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 570680 keyframe: 0]
11/22/22 12:54:53.299376 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7305 keyframe: 0]
11/22/22 12:54:53.299385 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7305 keyframe: 0]
11/22/22 12:54:53.299419 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 572281 * 1/12800=44.709453, dts: 572281, size: 178, stream_index: 0, video flags: 0000, keyframe(0) pos: 79818, duration: 1828]
11/22/22 12:54:53.302479 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 572281 keyframe: 0]
11/22/22 12:54:53.302519 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7325 keyframe: 0]
11/22/22 12:54:53.302527 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7325 keyframe: 0]
11/22/22 12:54:53.302556 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 574402 * 1/12800=44.875156, dts: 574402, size: 160, stream_index: 0, video flags: 0000, keyframe(0) pos: 79996, duration: 1828]
11/22/22 12:54:53.305627 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 574402 keyframe: 0]
11/22/22 12:54:53.305668 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7352 keyframe: 0]
11/22/22 12:54:53.305676 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/327 [frame->pts <= seek_target, got: format 0 u8 sample_rate 0 nb_samples 0 layout 0 pts 7352]
11/22/22 12:54:53.305685 zms_e455171[14579].DB1-zm_image.cpp/226 [Image.Assign(frame): format 0 yuv420p 1024x768 linesize:1024x512 pts: 7352 keyframe: 0]
11/22/22 12:54:53.305906 zms_e455171[14579].DB1-zm_image.cpp/256 [PopulateFrame: width 1024 height 768 linesize 4096 colours 4 imagesize 3145728 rgba]
11/22/22 12:54:53.305914 zms_e455171[14579].DB1-zm_image.cpp/285 [PopulateFrame: width 1024 height 768 linesize 4096 colours 4 imagesize 3145728]
11/22/22 12:54:53.305921 zms_e455171[14579].DB1-zm_image.cpp/286 [Image.Populate(frame): format 26 rgba 1024x768 linesize:4096x0 pts: -9223372036854775808 keyframe: 1]
11/22/22 12:54:53.305946 zms_e455171[14579].DB1-zm_image.cpp/315 [source frame before convert: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7352 keyframe: 0]
11/22/22 12:54:53.307156 zms_e455171[14579].DB1-zm_image.cpp/329 [dest frame after convert: format 26 rgba 1024x768 linesize:4096x0 pts: 7352 keyframe: 1]
11/22/22 12:54:53.307181 zms_e455171[14579].DB2-zm_eventstream.cpp/777 [Not Rotating image 1]
11/22/22 12:54:53.307188 zms_e455171[14579].DB3-zm_stream.cpp/236 [Sending 1024x768]
11/22/22 12:54:53.311491 zms_e455171[14579].DB3-zm_eventstream.cpp/941 [frame delta 143030us ]
11/22/22 12:54:53.311516 zms_e455171[14579].DB2-zm_eventstream.cpp/984 [New delta_us now 1669139693311515 - start 1669139691877925 = 1433590 offset 858181.715012 - elapsed = -575408usec]
11/22/22 12:54:53.311532 zms_e455171[14579].DB3-zm_eventstream.cpp/615 [No event change required, as curr frame 7 <=> event frames 4200]
11/22/22 12:54:53.311544 zms_e455171[14579].DB3-zm_eventstream.cpp/873 [not paused at cur_frame_id (7-1) mod frame_mod(1)]
11/22/22 12:54:53.311550 zms_e455171[14579].DB2-zm_eventstream.cpp/684 [Sending frame 7]
11/22/22 12:54:53.311558 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/248 [Getting frame from stream 0 at 0.858182]
11/22/22 12:54:53.311566 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/251 [Getting frame from stream 0 at seektarget: 858181]
11/22/22 12:54:53.311573 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/253 [Getting frame from stream 0 at 10985]
11/22/22 12:54:53.311580 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7352 keyframe: 0]
11/22/22 12:54:53.311617 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 577832 * 1/12800=45.143125, dts: 576013, size: 164, stream_index: 0, video flags: 0000, keyframe(0) pos: 80156, duration: 1828]
11/22/22 12:54:53.315095 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 576013 keyframe: 0]
11/22/22 12:54:53.315139 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7373 keyframe: 0]
11/22/22 12:54:53.315148 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7373 keyframe: 0]
11/22/22 12:54:53.315176 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 588821 * 1/12800=46.001641, dts: 577832, size: 279, stream_index: 0, video flags: 0000, keyframe(0) pos: 80320, duration: 1828]
11/22/22 12:54:53.318862 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 577832 keyframe: 0]
11/22/22 12:54:53.318903 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7396 keyframe: 0]
11/22/22 12:54:53.318912 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7396 keyframe: 0]
11/22/22 12:54:53.318939 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 585095 * 1/12800=45.710547, dts: 579714, size: 160, stream_index: 0, video flags: 0000, keyframe(0) pos: 80599, duration: 1828]
11/22/22 12:54:53.321922 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 579714 keyframe: 0]
11/22/22 12:54:53.321965 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7420 keyframe: 0]
11/22/22 12:54:53.321973 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7420 keyframe: 0]
11/22/22 12:54:53.322002 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 581495 * 1/12800=45.429297, dts: 581495, size: 137, stream_index: 0, video flags: 0000, keyframe(0) pos: 80759, duration: 1828]
11/22/22 12:54:53.325376 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 581495 keyframe: 0]
11/22/22 12:54:53.325441 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7443 keyframe: 0]
11/22/22 12:54:53.325449 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7443 keyframe: 0]
11/22/22 12:54:53.325479 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 583472 * 1/12800=45.583750, dts: 583472, size: 147, stream_index: 0, video flags: 0000, keyframe(0) pos: 80896, duration: 1828]
11/22/22 12:54:53.328524 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 583472 keyframe: 0]
11/22/22 12:54:53.328566 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7468 keyframe: 0]
11/22/22 12:54:53.328575 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7468 keyframe: 0]
11/22/22 12:54:53.328602 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 587078 * 1/12800=45.865469, dts: 585095, size: 188, stream_index: 0, video flags: 0000, keyframe(0) pos: 81043, duration: 1828]
11/22/22 12:54:53.331863 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/212 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 585095 keyframe: 0]
11/22/22 12:54:53.331902 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/237 [resulting video frame: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7489 keyframe: 0]
11/22/22 12:54:53.331910 zms_e455171[14579].DB1-zm_ffmpeg_input.cpp/318 [pts <= seek_target: format 0 yuv420p 1024x768 linesize:1024x512 pts: 7489 keyframe: 0]
11/22/22 12:54:53.331938 zms_e455171[14579].DB2-zm_ffmpeg_input.cpp/188 [Received packet: pts: 597891 * 1/12800=46.710234, dts: 587078, size: 300, stream_index: 0, video flags: 0000, keyframe(0) pos: 81231, duration: 1828]
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl
If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl
If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Re: Playback is too fast
So you are encoding an mjpeg stream to an mp4, and then viewing that using zms... are you encoding it to h265? Otherwise why use the zms viewer?
Re: Playback is too fast
Ok, with that info I can get it working. i.e., if I keep it as jpegs instead of trying to encode H264 it
works no problem. But the mp4 playback should be working for the encoded video.
So to summarize:
mjpeg camera, 1024x768 8fps
-> source: ffmpeg, encode to h264, no jpegs
-> live view works, download of mp4 to local computer works. video playback is normal.
-> previously recorded video view auto codec fails (video can not be loaded)
-> change to mjpeg codec in drop down menu
-> video playback at 10 seconds per 1 frame or so.
I think the problem here is that the auto / mp4 codec is not working for recorded videos.
Note that auto/mp4 playback does work, as I have a different camera which I do h264 passthrough
on (same machine) and that works OK for previously recorded videos. It also plays in either mp4 or mjpeg, but default
is mp4 codec. I can make a video to demonstrate all this if necessary.
I'll try this with another machine and see if I can replicate the issue.
Seems my issue is similar to :
viewtopic.php?p=112522#p112522
except that I'm using encoding not passthrough.
edit: I tested with a different server and got the same results, so this appears to be a bug unless I am doing something wrong.
I noticed the second server had no date/timezone set in php, but that's a red herring. The first one did have it set. It must of
been clobbered at some time. I added it in, but it doesn't have an effect here.
works no problem. But the mp4 playback should be working for the encoded video.
So to summarize:
mjpeg camera, 1024x768 8fps
-> source: ffmpeg, encode to h264, no jpegs
-> live view works, download of mp4 to local computer works. video playback is normal.
-> previously recorded video view auto codec fails (video can not be loaded)
-> change to mjpeg codec in drop down menu
-> video playback at 10 seconds per 1 frame or so.
I think the problem here is that the auto / mp4 codec is not working for recorded videos.
Note that auto/mp4 playback does work, as I have a different camera which I do h264 passthrough
on (same machine) and that works OK for previously recorded videos. It also plays in either mp4 or mjpeg, but default
is mp4 codec. I can make a video to demonstrate all this if necessary.
I'll try this with another machine and see if I can replicate the issue.
Seems my issue is similar to :
viewtopic.php?p=112522#p112522
except that I'm using encoding not passthrough.
edit: I tested with a different server and got the same results, so this appears to be a bug unless I am doing something wrong.
I noticed the second server had no date/timezone set in php, but that's a red herring. The first one did have it set. It must of
been clobbered at some time. I added it in, but it doesn't have an effect here.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl
If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl
If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Re: Playback is too fast
Testing in ZM 1.36.33 different server.
This occurs again under the following conditions.
Camera is MJPEG (older axis). FFMPEG source.
Encode to H264.
Playback on MP4 fails. I see a js console DOM error which indicates it might be the browser permissions, but I think that's a red herring as the next camera I'll explain works in MP4. I couldn't find any ZM logging errors for the failed MP4 playback (except for the browser). I did find some zms errors when switching to mjpeg, as well as the ffmpeg encoding below.
Playback window gives "This video could not be loaded, either because the server or network failed..." error.
If you download the video, it plays properly. So the video is on the server and properly encoded.
If you change the codec to MJPEG (in an effort to get playback working, even though I will admit this doesnt make any sense here) the playback is extremely fast. This error appears in the /var/log/apache2/error.log as the following where ffmpeg gets called to create the video (paraphrased here):
I think you need to carry over the FPS from the H264 video to the MJPEG if this is going to work. Or maybe some JS can disable it. Although I'd leave it in, because why not. I should note that the camera FPS is low for line noise reasons, and would usually be 7 FPS... But it's clear the reencoding is not taking the frame rate. I assume it sets a default of 10?
On a second camera, which is a newer RTSP axis, using passthrough, MP4 playback works as expected. I don't know why it won't playback the MP4 from encode properly. If there's anything I should test, let me know.
I recall now, that I hadn't set these MJPEG cameras up on 1,.36 at first, as they are becoming obsolete. Maybe it's just a case of, stick with RTSP H264 cams, and forget about MJPEG compatibility, but not sure what ZM devs want to do. I guess if I set the camera up as Save JPEGs it will work, but that takes up a lot of HDD space, thus the H264 encode. And the video is there, so it should work. I think encode works in 1.34. Not sure what changed with 1.36.
EDIT: Ok, I think I figured it out. FFprobe on the downloaded videos shows the encode by default encodes to HEVC aka H265 (why not just call it H265...). That won't play in firefox. However the passthroughs are being set to H264, and playback properly. So it's an H265 error, at least in this case.
This occurs again under the following conditions.
Camera is MJPEG (older axis). FFMPEG source.
Encode to H264.
Playback on MP4 fails. I see a js console DOM error which indicates it might be the browser permissions, but I think that's a red herring as the next camera I'll explain works in MP4. I couldn't find any ZM logging errors for the failed MP4 playback (except for the browser). I did find some zms errors when switching to mjpeg, as well as the ffmpeg encoding below.
Playback window gives "This video could not be loaded, either because the server or network failed..." error.
If you download the video, it plays properly. So the video is on the server and properly encoded.
If you change the codec to MJPEG (in an effort to get playback working, even though I will admit this doesnt make any sense here) the playback is extremely fast. This error appears in the /var/log/apache2/error.log as the following where ffmpeg gets called to create the video (paraphrased here):
Code: Select all
Stream #0:0 Stream #0:0(und)(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv), 400x300, 1 kb/s: Vide
o: hevc (Main) (hev1 / 0x31766568), yuv420p(tv), 400x300, 1 kb/s, , 1.26 fps, 1.26 fps, 10 tbr, 10 tbr, 12800 tbn, 1
2800 tbn, 1000k tbc1000k tbc (default) (default)
Stream mapping:
Stream #0:0 -> #0:0 Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native)) (hevc (native) -> mjpeg (native))
Stream #0:0 Stream #0:0(und)(und): Video: mjpeg, yuvj420p(pc), 400x300, q=2-31, 200 kb/s: Video: mjpeg, yuvj420p(pc), 400x300, q=2-31, 200 kb/s, , 10 fps, 10 fps, 10 tbn, 10 tbn, 10 tbc10 tbc (default) (default)
On a second camera, which is a newer RTSP axis, using passthrough, MP4 playback works as expected. I don't know why it won't playback the MP4 from encode properly. If there's anything I should test, let me know.
I recall now, that I hadn't set these MJPEG cameras up on 1,.36 at first, as they are becoming obsolete. Maybe it's just a case of, stick with RTSP H264 cams, and forget about MJPEG compatibility, but not sure what ZM devs want to do. I guess if I set the camera up as Save JPEGs it will work, but that takes up a lot of HDD space, thus the H264 encode. And the video is there, so it should work. I think encode works in 1.34. Not sure what changed with 1.36.
EDIT: Ok, I think I figured it out. FFprobe on the downloaded videos shows the encode by default encodes to HEVC aka H265 (why not just call it H265...). That won't play in firefox. However the passthroughs are being set to H264, and playback properly. So it's an H265 error, at least in this case.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl
If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl
If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
-
- Posts: 3
- Joined: Sat Jul 26, 2014 4:34 pm
Re: Playback is too fast
For what it's worth, I am seeing this with V1.36.33 on Debian Bullseye (11.6) and Firefox. Strange thing is that the first playback of an event is fine, but further playbacks are at high speed, but if I refresh the browser page and retry, playback is normal again for one go.