Hikvision - Audio Codec Mismatch?
Posted: Fri Aug 23, 2019 5:01 pm
Howdy all,
I was hoping to replace an older NVR / streaming software package with BI5, but I'm having some issues pulling audio off of our Hikvision cameras.
The audio stream is reachable in both VLC and the cameras' native web interface, but when connecting to BI5, all I hear is what I could best describe as "oscillating white noise." From the limited experience I have in digital audio encoding, the scenario sounds suspiciously like a mismatched codec, although I've tried all of them available to select in the Camera Config interface. The camera web interface shows the only option for audio as the G.711 u-law codec, though as you'll see from my testing below, I have serious reservations whether that setting's accurate... none of the variations I am able to select in BI5 result in an intelligible audio stream, just the static hiss.
After acquiring RTSP using VLC, I can view the codec information, and it shows the following:
(Acquired using rtsp://username:password@ca.me.ra.IP:554/Streaming/Channels/101)
---
Stream 0
Type: Video
Codec: H264 - MPEG-4 AVC (part 10) (h264)
Resolution: 704x482
Frame Rate: 30
Decoded format: Planar 4:2:0 YUV
Stream 1
Type: Audio
Codec: MPEG AAC Audio (mp4a)
Channels: Stereo
Sample rate: 32000Hz
---
To my eyes, it looks like the audio stream that VLC is acquiring over RTSP is definitely not encoded with the G.711 u-law setting specified in the camera's web config. My understanding is that ALL G.711 encoded audio channels will present themselves at 64KHz, and VLC is fairly clear that it's acquiring a 32KHz AAC-encoded audio channel. I can't explain the mismatch, as the current setup was all configured by an outside vendor, and I've only recently inherited it... but the audio discrepancy is the final piece of the puzzle for me to start using BI5. Has anyone else had a similar experience, or know how of any ways to get BI5 to understand the 32K AAC stream? All the other features of BI5 are perfect for what I'm hoping to accomplish, but sadly the audio component is a dealbreaker if I can't get it all working.
Any and all help or suggestions are appreciated!
-Tony
I was hoping to replace an older NVR / streaming software package with BI5, but I'm having some issues pulling audio off of our Hikvision cameras.
The audio stream is reachable in both VLC and the cameras' native web interface, but when connecting to BI5, all I hear is what I could best describe as "oscillating white noise." From the limited experience I have in digital audio encoding, the scenario sounds suspiciously like a mismatched codec, although I've tried all of them available to select in the Camera Config interface. The camera web interface shows the only option for audio as the G.711 u-law codec, though as you'll see from my testing below, I have serious reservations whether that setting's accurate... none of the variations I am able to select in BI5 result in an intelligible audio stream, just the static hiss.
After acquiring RTSP using VLC, I can view the codec information, and it shows the following:
(Acquired using rtsp://username:password@ca.me.ra.IP:554/Streaming/Channels/101)
---
Stream 0
Type: Video
Codec: H264 - MPEG-4 AVC (part 10) (h264)
Resolution: 704x482
Frame Rate: 30
Decoded format: Planar 4:2:0 YUV
Stream 1
Type: Audio
Codec: MPEG AAC Audio (mp4a)
Channels: Stereo
Sample rate: 32000Hz
---
To my eyes, it looks like the audio stream that VLC is acquiring over RTSP is definitely not encoded with the G.711 u-law setting specified in the camera's web config. My understanding is that ALL G.711 encoded audio channels will present themselves at 64KHz, and VLC is fairly clear that it's acquiring a 32KHz AAC-encoded audio channel. I can't explain the mismatch, as the current setup was all configured by an outside vendor, and I've only recently inherited it... but the audio discrepancy is the final piece of the puzzle for me to start using BI5. Has anyone else had a similar experience, or know how of any ways to get BI5 to understand the 32K AAC stream? All the other features of BI5 are perfect for what I'm hoping to accomplish, but sadly the audio component is a dealbreaker if I can't get it all working.
Any and all help or suggestions are appreciated!
-Tony