After move from 22.04 to 24.04 can't get video from one camera
Posted: Wed Apr 16, 2025 6:10 am
A few days ago, I moved from ubuntu jammy 22.04 to ubuntu noble 24.04 running the same version of zoneminder, 1.36.35. Ever since then, zoneminder won't record video mp4 events for one camera, instead it only captures jpg frames. And I can't play those jpg versions from the zoneminder console. The camera in question is a wyze cam v2 with firmware that supports rtsp. I am getting video mp4 events for my other amcrest cameras. I captured debug output, the complete file from zmc process start to end is over 40 MB, but I think the relevant output is in these lines:
I can play the rtsp stream on Windows/vlc, but can't on Ubuntu/vlc. Here's what it says about the audio stream:
My guess is that I'm missing some codec so I'm attaching the output from "ffmpeg -codecs". I do see codecs for both pcm_alaw and aac in that file, as well as some s16 codecs, but no codecs containing fltp:
I do not have any of the libav*-extra packages installed on noble/24.04, and I did not have them installed on jammy/22.04. But maybe I need them now?
Some background on how I upgrade. When I want to upgrade the OS, I don't do it in place, instead I do a clean install on a second partition. That allows me to boot into either old (jammy) or new (noble) and test the new stuff while being able to revert to the old easily. I have the same version of zoneminder (1.36.35) installed on jammy and noble from https://launchpad.net/~iconnor/+archive ... inder-1.36
If there's interest, I'll put the full debug log on google drive. Thanks in advance for any help.
Code: Select all
04/16/25 00:33:14.513811 zmc_m8[51823].DB1-zm_event.cpp/625 [Starting event thread]
04/16/25 00:33:14.514300 zmc_m8[51823].DB1-zm_event.cpp/676 [Using storage area at /video4/zoneminder/events/8/2025-04-16/502656]
04/16/25 00:33:14.514327 zmc_m8[51823].DB1-zm_event.cpp/688 [Writing video file to /video4/zoneminder/events/8/2025-04-16/502656/502656-video.mp4]
04/16/25 00:33:14.514333 zmc_m8[51823].DB4-zm_swscale.cpp/27 [SWScale object created]
04/16/25 00:33:14.514352 zmc_m8[51823].DB1-zm_videostore.cpp/119 [Opening video storage stream /video4/zoneminder/events/8/2025-04-16/502656/502656-video.mp4 format: mp4]
04/16/25 00:33:14.514451 zmc_m8[51823].DB1-zm_ffmpeg.cpp/238 [Dumping codecpar codec_type(0 video) codec_id(27 h264) codec_tag(0) width(1920) height(1080) bit_rate(0) format(0 yuv420p)]
04/16/25 00:33:14.514483 zmc_m8[51823].DB2-zm_videostore.cpp/193 [No timebase found in video in context, defaulting to Q]
04/16/25 00:33:14.514488 zmc_m8[51823].DB1-zm_ffmpeg.cpp/254 [Dumping codec_context codec_type(0 video) codec_id(27 h264) width(1920) height(1080) timebase(1/1000000) format(yuv420p) gop_size 12 max_b_frames 0 me_cmp 0 me_range 0 qmin 2 qmax 31]
04/16/25 00:33:14.514506 zmc_m8[51823].DB3-zm_videostore.cpp/375 [Have orientation 1]
04/16/25 00:33:14.514510 zmc_m8[51823].DB2-zm_videostore.cpp/393 [Have audio_in_stream 0x58bd1d2279c0]
04/16/25 00:33:14.515941 zmc_m8[51823].DB2-zm_videostore.cpp/810 [Got something other than AAC (pcm_alaw)]
04/16/25 00:33:14.516030 zmc_m8[51823].DB3-zm_videostore.cpp/853 [Sample rate is good 8000]
04/16/25 00:33:14.516037 zmc_m8[51823].DB2-zm_ffmpeg.cpp/381 [Not fltp]
04/16/25 00:33:14.516040 zmc_m8[51823].DB3-zm_videostore.cpp/863 [Encoder does not support sample format s16, setting to FLTP]
04/16/25 00:33:14.516442 zmc_m8[51823].WAR-zm_ffmpeg.cpp/69 [Unsupported channel layout "1 channels"]
04/16/25 00:33:14.516602 zmc_m8[51823].DB1-zm_ffmpeg.cpp/69 [Qavg: nan]
04/16/25 00:33:14.516648 zmc_m8[51823].ERR-zm_videostore.cpp/879 [could not open codec (-22) (Invalid argument)]
04/16/25 00:33:14.516754 zmc_m8[51823].WAR-zm_event.cpp/702 [Failed to open videostore, turning on jpegs]
Code: Select all
Codec: PCM ALAW (alaw)
Type: Audio
Channels: Mono
Sample rate: 8000 Hz
Bits per sample: 16
Code: Select all
DEAIL. aac AAC (Advanced Audio Coding) (decoders: aac aac_fixed)
D.AIL. aac_latm AAC LATM (Advanced Audio Coding LATM syntax)
DEAIL. pcm_alaw PCM A-law / G.711 A-law
DEAI.S pcm_s16be PCM signed 16-bit big-endian
DEAI.S pcm_s16be_planar PCM signed 16-bit big-endian planar
DEAI.S pcm_s16le PCM signed 16-bit little-endian
DEAI.S pcm_s16le_planar PCM signed 16-bit little-endian planar
Some background on how I upgrade. When I want to upgrade the OS, I don't do it in place, instead I do a clean install on a second partition. That allows me to boot into either old (jammy) or new (noble) and test the new stuff while being able to revert to the old easily. I have the same version of zoneminder (1.36.35) installed on jammy and noble from https://launchpad.net/~iconnor/+archive ... inder-1.36
If there's interest, I'll put the full debug log on google drive. Thanks in advance for any help.