Can't find codec for video stream

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Daniel26
Posts: 6
Joined: Fri Nov 14, 2014 10:02 am

Can't find codec for video stream

Post by Daniel26 »

Hello,

I try to run Zoneminder 1.36.12 on a machine with openSUSE Tumbleweed. Packages are downloaded from https://build.opensuse.org/project/show ... nex:stable

Work so far, I added a cam (after searching a while for the correct URL, can't find Info how to configure it via ONVIF), but there is no picture displayed.
The log says:

Code: Select all

..
..
..
03/14/22 15:58:23.747100 zmc_m2[105370].ERR-zm_ffmpeg_camera.cpp/411 [Can't find codec for video stream from rtsp://zm:zm_cam1@10.3.64.6:88/videoMain]
03/14/22 15:58:23.747252 zmc_m2[105370].ERR-zmc.cpp/258 [Failed to prime capture of initial monitor]
03/14/22 15:58:34.026127 zmc_m2[105370].ERR-zm_ffmpeg_camera.cpp/411 [Can't find codec for video stream from rtsp://zm:zm_cam1@10.3.64.6:88/videoMain]
03/14/22 15:58:34.027219 zmc_m2[105370].ERR-zmc.cpp/258 [Failed to prime capture of initial monitor]
03/14/22 15:58:37.128600 zmc_m2[105370].ERR-zm_ffmpeg_camera.cpp/321 [Unable to open input rtsp://zm:zm_cam1@10.3.64.6:88/videoMain due to: Immediate exit requested]
03/14/22 15:58:37.128675 zmc_m2[105370].ERR-zmc.cpp/258 [Failed to prime capture of initial monitor]
VLC can play the stream, vlc info shows, that the stream is h264.
ffmpeg -codecs |grep h264:

Code: Select all

brain# ffmpeg -codecs | grep h264
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (SUSE Linux)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g' --optflags='-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g' --disable-htmlpages --enable-pic --disable-stripping --enable-shared --disable-static --enable-gpl --enable-version3 --disable-openssl --enable-avresample --enable-gnutls --enable-ladspa --enable-vulkan --disable-cuda-sdk --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcelt --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librav1e --enable-librubberband --enable-libsvtav1 --enable-libsoxr --enable-libspeex --enable-libssh --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lto --enable-lv2 --enable-libmfx --enable-vaapi --enable-vdpau --enable-version3 --enable-muxers --enable-demuxers --disable-encoders --disable-decoders --disable-decoder='mpeg4,h263,h264,hevc,vc1' --enable-encoder=',aac,apng,ass,ayuv,bmp,ffv1,ffvhuff,flac,gif,huffyuv,jpegls,libaom,libaom_av1,libcodec2,libgsm,libmp3lame,libopenjpeg,libopus,librav1e,libschroedinger,libspeex,libsvtav1,libtheora,libtwolame,libvorbis,libvpx_vp8,libvpx_vp9,libwebp,libwebp_anim,mjpeg,mp2,mp2fixed,mpeg1video,mpeg2video,opus,pam,pbm,pcm_alaw,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,pcm_s24be,pcm_s24le,pcm_s24le_planar,pcm_s32be,pcm_s32le,pcm_s32le_planar,pcm_s8,pcm_s8_planar,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,pcx,pgm,pgmyuv,png,ppm,rawvideo,sgi,srt,ssa,sunrast,targa,text,tiff,v210,v308,v408,v410,vorbis,webvtt,wrapped_avframe,xbm,xwd,y41p,yuv4,zlib,' --enable-decoder=',aac,ac3,ansi,apng,ass,ayuv,bmp,dirac,exr,ffv1,ffvhuff,ffwavesynth,flac,gif,gsm,huffyuv,ilbc,libaom,libaom_av1,libcelt,libcodec2,libdav1d,libgsm,libopenjpeg,libopus,libschroedinger,libspeex,libvorbis,libvpx_vp8,libvpx_vp9,mjpeg,mp1,mp1float,mp2,mp2float,mp3,mp3float,mpeg1video,mpeg2video,,opus,pam,pbm,pcm_alaw,pcm_bluray,pcm_dvd,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,pcm_s24be,pcm_s24le,pcm_s24le_planar,pcm_s32be,pcm_s32le,pcm_s32le_planar,pcm_s8,pcm_s8_planar,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,pcx,pgm,pgmyuv,pgssub,png,ppm,rawvideo,sgi,srt,ssa,sunrast,targa,text,theora,tiff,v210,v210x,v308,v408,v410,vorbis,vp3,vp5,vp6,vp6a,vp6f,vp8,vp9,webp,webvtt,wrapped_avframe,xbm,xwd,y41p,yuv4,zlib,'
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
 ..V.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
Any ideas why this fails?

Regards

DAniel
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Can't find codec for video stream

Post by Magic919 »

It's a weird looking config for the stream. Can you test that with VLC?
-
Daniel26
Posts: 6
Joined: Fri Nov 14, 2014 10:02 am

Re: Can't find codec for video stream

Post by Daniel26 »

Sorry, forgot to mention that....it works with VLC, VLC says the codec is h264.

Greetings

Daniel
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Can't find codec for video stream

Post by Magic919 »

Assuming it's from the same machine, that eliminates some potential problems.

Special characters in username/password can cause problems.

No further ideas currently.
-
Post Reply