RTSPserver and audio

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

RTSPserver and audio

Post by fennec »

Hi
I use 1.36.12 with RTSPserver for use in Homebridge Video secure

Can you confirm no audio reshare in RTSPserver ?

If no is it possible ?

Thanks
User avatar
iconnor
Posts: 2922
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: RTSPserver and audio

Post by iconnor »

Audio should work fine.
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: RTSPserver and audio

Post by fennec »

iconnor wrote: Mon Jan 31, 2022 1:17 pm Audio should work fine.
Thanks for your help

I scan flux with ffprobe
Source

Input #0, rtsp, from 'rtsp://admin:pass@10.0.0.209:554/onvif1':
Metadata:
title : H.264 Video, RtspServer_0.0.0.2
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1280x720, 10 fps, 10 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s

And the reshare rtsp

Input #0, rtsp, from 'rtsp://127.0.0.1:2000/portier?username=julien&password=pass':
Duration: N/A, start: 0.101000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1280x720, 10 fps, 10 tbr, 90k tbn, 180k tbc

No audio
User avatar
iconnor
Posts: 2922
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: RTSPserver and audio

Post by iconnor »

Do you have Record Audio set under Monitor->Storage?
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: RTSPserver and audio

Post by fennec »

Yes 3 cams with audio and always


2022-02-01 17:00:46 zm_rtsp_server 401593 ERR Unable to create source zm_rtsp_server.cpp 315
2022-02-01 17:00:46 zm_rtsp_server 401593 WAR Unknown format in /run/zm/audio_fifo_12.pcm_alaw zm_rtsp_server.cpp 312
2022-02-01 17:00:46 zm_rtsp_server 401593 ERR Unable to create source zm_rtsp_server.cpp 315
2022-02-01 17:00:46 zm_rtsp_server 401593 WAR Unknown format in /run/zm/audio_fifo_11.pcm_alaw zm_rtsp_server.cpp 312
2022-02-01 17:00:46 zm_rtsp_server 401593 ERR Unable to create source zm_rtsp_server.cpp 315
2022-02-01 17:00:46 zm_rtsp_server 401593 WAR Unknown format in /run/zm/audio_fifo_10.pcm_alaw
Attachments
Capture d’écran 2022-02-01 à 17.19.51.png
Capture d’écran 2022-02-01 à 17.19.51.png (212.61 KiB) Viewed 16057 times
Capture d’écran 2022-02-01 à 17.15.24.png
Capture d’écran 2022-02-01 à 17.15.24.png (573.41 KiB) Viewed 16059 times
User avatar
iconnor
Posts: 2922
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: RTSPserver and audio

Post by iconnor »

Oh right, I didn't implement pcm_alaw, only AAC....
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: RTSPserver and audio

Post by fennec »

:?

Do you thinks possible ? all china camera are ppm_alaw I thinks
dougmccrary
Posts: 1245
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: RTSPserver and audio

Post by dougmccrary »

What are your cameras?
I have a few and all with aac…
User avatar
iconnor
Posts: 2922
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: RTSPserver and audio

Post by iconnor »

I roughed in the support today in 1.37. You can test it. I don't have a camera that does pcm anymore.
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: RTSPserver and audio

Post by fennec »

Thanks a lot I try after release
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: RTSPserver and audio

Post by fennec »

I try but with snapshot version I have no memory free .. So I can test system no stable

I wait for version stable

1.36.10 4.5G free memory
1.37.10 0 free memory

For 16GO total memory and 18GO swap
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: RTSPserver and audio

Post by fennec »

I modify source 1.36.12 for try I add

} else if (std::string::npos != audioFifoPath.find("pcm_alaw")) {
Debug(1, "Adding G711A source at %dHz %d channels",
monitor->GetAudioFrequency(), monitor->GetAudioChannels());
session->AddSource(xop::channel_1, xop::G711ASource::CreateNew());
audioSource = new ADTS_ZoneMinderFifoSource(rtspServer,
session->GetMediaSessionId(), xop::channel_1, audioFifoPath);
audioSource->setFrequency(monitor->GetAudioFrequency());
audioSource->setChannels(monitor->GetAudioChannels());

to src/zm_rtsp_server.cpp

But I don't find how can I make deb with file modify

Thanks if you can help me
Post Reply