Not Capturing issue after Reinstallation

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
andre1210
Posts: 12
Joined: Wed Oct 06, 2021 2:37 pm

Not Capturing issue after Reinstallation

Post by andre1210 »

Hi, I'm struggling for hours, bit now I have no idea any more...

I'm using Zoneminder (V1.34.22) for a long time with the same infrastructure.
Raspberry Pi 4B 4GB, latest patchlevel of Buster.
3 Cameras (Foscam HD using FFMPEG and H264, one old Foscam capturing jpgs and one Instar HD FFMPEG H264).
On my first Raspberry everything works fine.

Now I did a fresh installation on e standby RaspberryPi 4B.
- I took a backup of the mysql db of the running system and imported it on the fresh system. So the zoneminder configuration is identical.
- Mysql server config is identical
- zm.conf is identical.
(I did the same procedure successful some month ago)
But now the capturing of the cameras using ffmpeg don't work on the fresh installed system.
Due to the fact that the old Raspi ist still running, maybe I forgot something

The Old Foscam using jpgs works fine, I have a picture and events are recorded.
For the other HD cameras, the capturing doesn't start.
In zmc log I see continously:

10/06/21 16:58:00.298536 zmc_m1[1097].ERR-zm_ffmpeg_camera.cpp/516 [Unable to open codec for video stream from rtsp://xxx:xxx@192.168.178.61:88/videoSub]

The I updated to 1.36.5 but the same issue.

For me the whole configuration should be identical, but one pi is working and the other not.
Could it be that I forgot something during installation?

Thank you
BR
André
andre1210
Posts: 12
Joined: Wed Oct 06, 2021 2:37 pm

Re: Not Capturing issue after Reinstallation

Post by andre1210 »

One additional information:
I enabled debug logging and compared the output.

at one point, the logging begins to differ:
The running system - at the end zma begins:

Code: Select all

│10/07/21 08:24:10.886197 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [video codec set to: h264]                                                                                             │
│10/07/21 08:24:10.886236 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [RTP Packetization Mode: 1]                                                                                            │
│10/07/21 08:24:10.886280 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [RTP Profile IDC: 42 Profile IOP: 0 Level: 20]                                                                         │
│10/07/21 08:24:10.886312 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [Extradata set to 0x2a9ba08 (size: 22)]                                                                                │
│10/07/21 08:24:10.918172 zmc_m1[2308].DB2-zm_ffmpeg.cpp/70 [setting jitter buffer size to 0]                                                                                      │
│10/07/21 08:24:10.939860 zmc_m1[2308].DB2-zm_ffmpeg.cpp/70 [setting jitter buffer size to 0]                                                                                      │
│10/07/21 08:24:10.939930 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [hello state=0]                                                                                                        │
│10/07/21 08:24:10.968695 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [Failed to parse interval end specification '']                                                                        │
│10/07/21 08:24:10.971878 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 7(SPS), nal_ref_idc: 3]                                                                                │
│10/07/21 08:24:10.971988 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 8(PPS), nal_ref_idc: 3]                                                                                │
│10/07/21 08:24:10.982196 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 7(SPS), nal_ref_idc: 3]                                                                                │
│10/07/21 08:24:10.982286 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 8(PPS), nal_ref_idc: 3]                                                                                │
│10/07/21 08:24:11.519619 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 7(SPS), nal_ref_idc: 3]                                                                                │
│10/07/21 08:24:11.519770 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 8(PPS), nal_ref_idc: 3]                                                                                │
│10/07/21 08:24:11.520575 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 5(IDR), nal_ref_idc: 3]                                                                                │
│10/07/21 08:24:11.521522 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [Format yuv420p chosen by get_format().]                                                                               │
│10/07/21 08:24:11.521587 zmc_m1[2308].DB2-zm_ffmpeg.cpp/70 [Reinit context to 1280x960, pix_fmt: yuv420p]                                                                         │
│10/07/21 08:24:11.612771 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                   │
│10/07/21 08:24:11.627963 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                   │
│10/07/21 08:24:11.635608 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                   │
│10/07/21 08:24:11.643624 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                   │
│10/07/21 08:24:11.651549 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                   │
└10/07/21 08:24:11.659511 zmc_m1[2308].DB3-zm_ffmpeg.cpp/70 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                   │
┌10/07/21 08:24:11.762884 zma_m1[2337].DB1-zm_logger.cpp/255 [LogOpts: level=DB4 effective=DB4, screen=OFF, database=OFF, logfile=DB4->/var/log/zm/zm_debug.log.02337, syslog=OFF] │
│10/07/21 08:24:11.763174 zma_m1[2337].DB1-zm_utils.cpp/300 [Detected ARM (AArch32) processor with Neon]  
The NOT running system:

Code: Select all

10/07/21 08:22:49.612079 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [video codec set to: h264]                                                                                            │
│10/07/21 08:22:49.612140 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [RTP Packetization Mode: 1]                                                                                           │
│10/07/21 08:22:49.612181 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [RTP Profile IDC: 42 Profile IOP: 0 Level: 20]                                                                        │
│10/07/21 08:22:49.612225 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [Extradata set to 0x43777f0 (size: 22)]                                                                               │
│10/07/21 08:22:49.638969 zmc_m1[13654].DB2-zm_ffmpeg.cpp/69 [setting jitter buffer size to 0]                                                                                     │
│10/07/21 08:22:49.656574 zmc_m1[13654].DB2-zm_ffmpeg.cpp/69 [setting jitter buffer size to 0]                                                                                     │
│10/07/21 08:22:49.656673 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [hello state=0]                                                                                                       │
│10/07/21 08:22:49.675649 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [Failed to parse interval end specification '']                                                                       │
│10/07/21 08:22:49.679063 zmc_m1[13654].DB1-zm_ffmpeg_camera.cpp/341 [Finding stream info]                                                                                         │
│10/07/21 08:22:49.679488 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 7(SPS), nal_ref_idc: 3]                                                                               │
│10/07/21 08:22:49.679553 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 8(PPS), nal_ref_idc: 3]                                                                               │
│10/07/21 08:22:49.680179 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 7(SPS), nal_ref_idc: 3]                                                                               │
│10/07/21 08:22:49.680244 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 8(PPS), nal_ref_idc: 3]                                                                               │
│10/07/21 08:22:49.689381 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:49.689477 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [Format yuv420p chosen by get_format().]                                                                              │
│10/07/21 08:22:49.689518 zmc_m1[13654].DB2-zm_ffmpeg.cpp/69 [Reinit context to 1280x960, pix_fmt: yuv420p]                                                                        │
│10/07/21 08:22:49.690058 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [Frame num gap 7 5]                                                                                                   │
│10/07/21 08:22:49.718310 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:49.727366 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:49.736527 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
.... 30 Lines skipped

│10/07/21 08:22:50.255812 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:50.263513 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:50.271167 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:50.306022 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3] 
10/07/21 08:22:50.946657 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 7(SPS), nal_ref_idc: 3]                                                                               │
│10/07/21 08:22:50.946787 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 8(PPS), nal_ref_idc: 3]                                                                               │
│10/07/21 08:22:50.947832 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 5(IDR), nal_ref_idc: 3]                                                                               │
│10/07/21 08:22:51.031265 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:51.038455 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:51.045400 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:51.052438 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:51.059505 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:51.066343 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3]                                                  │
│10/07/21 08:22:51.710835 zmc_m1[13654].DB3-zm_ffmpeg.cpp/69 [All info found]                                                                                                      │
│10/07/21 08:22:51.711350 zmc_m1[13654].DB2-zm_ffmpeg.cpp/453 [Not a video type 1 != 0]                                                                                            │
│10/07/21 08:22:51.711389 zmc_m1[13654].DB3-zm_ffmpeg_camera.cpp/384 [Found video stream at index 0, audio stream at index 1]                                                      │
│10/07/21 08:22:51.711452 zmc_m1[13654].DB1-zm_ffmpeg_camera.cpp/397 [Success finding decoder (h264_mmal)]                                                                         │
│10/07/21 08:22:51.711506 zmc_m1[13654].DB1-zm_ffmpeg.cpp/280 [Dumping stream index i(0) index(0)]                                                                                 │
│10/07/21 08:22:51.711526 zmc_m1[13654].DB1-zm_ffmpeg.cpp/290 [    Stream #0:0]                                                                                                    │
│10/07/21 08:22:51.711542 zmc_m1[13654].DB1-zm_ffmpeg.cpp/301 [frames:66, frame_size:0 stream timebase: 1/90000]                                                                   │
│10/07/21 08:22:51.711563 zmc_m1[13654].DB1-zm_ffmpeg.cpp/307 [codec: h264 video]                                                                                                  │
│10/07/21 08:22:51.711585 zmc_m1[13654].DB1-zm_ffmpeg.cpp/232 [90k stream tb numerator]                                                                                            │
│10/07/21 08:22:51.711785 zmc_m1[13654].WAR-zm_ffmpeg.cpp/69 [Cannot initialize MMAL VC driver!]                                                                                   │
│10/07/21 08:22:51.712447 zmc_m1[13654].ERR-zm_ffmpeg_camera.cpp/516 [Unable to open codec for video stream from rtsp://xxx:xxx@192.168.178.61:88/videoSub]               │
│10/07/21 08:22:51.712531 zmc_m1[13654].ERR-zmc.cpp/259 [Failed to prime capture of initial monitor]  
In the not running system there is the log entry "Not a video type"
What can be different in the running system?
andre1210
Posts: 12
Joined: Wed Oct 06, 2021 2:37 pm

Re: Not Capturing issue after Reinstallation

Post by andre1210 »

Issue is solved.
I started to compare again all settings.
In the last step I only increased the GPU memory. In the new installed system it was set to 64GB.
After changing that, everything is working.

BR
André
Post Reply