1.31.1 high CPU usage with h264 passthrough

Forum for questions and support relating to the 1.31.x releases only.
Locked
hubertp
Posts: 1
Joined: Wed Feb 28, 2018 2:35 am

1.31.1 high CPU usage with h264 passthrough

Post by hubertp »

    I'm running: zoneminder-1.31.1-1.337.20180223gitgab11e9ec.fc27.x86_64.rpm

    I'm running a camera with 2 streams, a low res 480p stream and a high res 1440p stream. I've added 1 monitor for each of the 2 streams. The low res stream is used for motion detection and the high res stream is set to just record with h264 pass through and jpeg saving disabled.

    When the high res 1440p stream is enabled I'm seeing about 15% cpu usage on a 4 core system (or about 80% of a single core). If I disable this monitor CPU usage drops to 0-2%.

    The log is showing "Analysing" entries for the "Test - High Res" monitor, which I have set to
    • Function: Record
    • Save Jpegs: Disabled
    • Video Writer: H264 Camera Passthrough
    • 0 zones defined for this monitor
    Are these log events expected for this configuration?

    I'm was hoping that just recording a 1440p stream would have no noticeable CPU usage. Should just recording a pass through stream, no analyzing, be this CPU heavy?


    DATE/TIME
    COMPONENT SERVER PID LEVEL MESSAGE FILE LINE
    2018-02-27 20:50:51.571276 zmc_m2 20131 INF Test - High Res: 14000 - Capturing at 10.00 fps zm_monitor.cpp 2910
    2018-02-27 20:50:00.206933 zmc_m2 20131 INF Opening video storage stream /var/lib/zoneminder/events/2/18/02/27/20/50/00/6-video.mp4 format: mp4 zm_videostore.cpp 56
    2018-02-27 20:50:00.165819 zmc_m2 20131 INF Re-starting video storage module zm_ffmpeg_camera.cpp 627
    2018-02-27 20:50:00.127126 zma_m2 20205 INF Test - High Res: 13131 - Opening new event 6, section start zm_monitor.cpp 1362
    2018-02-27 20:50:00.118019 zma_m2 20205 INF Test - High Res: 13131 - Closing event 5, section end zm_monitor.cpp 1342
    2018-02-27 20:49:46.974244 zma_m2 20205 INF Test - High Res: 13000 - Analysing at 10.00 fps zm_monitor.cpp 1154

    2018-02-27 20:49:24.433817 zmc_m1 20106 INF Test - Low Res: 7000 - Capturing at 5.00 fps zm_monitor.cpp 2910
    2018-02-27 20:49:11.414835 zmc_m2 20131 INF Test - High Res: 13000 - Capturing at 10.00 fps zm_monitor.cpp 2910
    2018-02-27 20:48:06.845453 zma_m2 20205 INF Test - High Res: 12000 - Analysing at 10.00 fps zm_monitor.cpp 1154
    Locked