Audio in playback of recorded events from RTSP streams not working
Posted: Fri Jul 23, 2021 10:11 pm
I'm using Zoneminder v1.36.4 and followed all instructions to be able to setup audio like
- set "Source Type" to "Ffmpeg" in "General" config
- set "Video Writer" to "Camera Passthrough" in "Storage" config
- enable the option "Whether to store the audio stream when saving an event." in "Storage" config
I've red, that monitor live viewing in Zoneminder does not support audio (which is ok for me), but it should work in recorded events.
The camera provides two streams (low res and hi res) both with audio support. The URL's are
LowRes: rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_sub
HiRes: rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_main
The streams seems to be ok, because the following three command line tests worked with audio on both streams
- vlc "rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_main"
- ffplay -i rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_main
- ffmpeg -i rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_main foo.mp4
(and playing foo.mp4 later with an other player)
So it must have do to with my Zoneminder settings, which I may not use in the correct way?
What am I doing wrong?
Btw. The cameras also support RTMP streaming and with RTMP URL's the audio recording/playback in Zoneminder works, but unfortunately I can't use these RTMP streams because of a camera firmware bug which makes it impossible to use the RTMP streams in general (they freeze after some hours and only a camera reboot will help than and the camera vendor told me that I have to use RTSP streams to get rid of that problem with...)
Thanks,
Frank
- set "Source Type" to "Ffmpeg" in "General" config
- set "Video Writer" to "Camera Passthrough" in "Storage" config
- enable the option "Whether to store the audio stream when saving an event." in "Storage" config
I've red, that monitor live viewing in Zoneminder does not support audio (which is ok for me), but it should work in recorded events.
The camera provides two streams (low res and hi res) both with audio support. The URL's are
LowRes: rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_sub
HiRes: rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_main
The streams seems to be ok, because the following three command line tests worked with audio on both streams
- vlc "rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_main"
- ffplay -i rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_main
- ffmpeg -i rtsp://<userid>:<pw>@<cameraIP>:554/h264Preview_01_main foo.mp4
(and playing foo.mp4 later with an other player)
So it must have do to with my Zoneminder settings, which I may not use in the correct way?
What am I doing wrong?
Btw. The cameras also support RTMP streaming and with RTMP URL's the audio recording/playback in Zoneminder works, but unfortunately I can't use these RTMP streams because of a camera firmware bug which makes it impossible to use the RTMP streams in general (they freeze after some hours and only a camera reboot will help than and the camera vendor told me that I have to use RTSP streams to get rid of that problem with...)
Thanks,
Frank