jshridha / docker-blueiris

Blueiris in a docker using wine!
Apache License 2.0
106 stars 52 forks source link

Does Audio recording work with wine? Or is it just me? #21

Open jennettwheeler opened 4 years ago

jennettwheeler commented 4 years ago

Hi,

I have audio capable cameras and cannot for the life of me get them to work. I managed to work out that the audio plays through the VNC because I heard an alert.

I can connect to the camera through VLC and hear the microphone, but it won't play live or record from within BlueIris? Perhaps I need a codec?

P.s. I can tell that BlueIris can kinda see the audio because when I click Find/Inspect it detects the same audio setting as set on my camera ('G711 A' which comes up as '64kbps G.711 a-law'). This also automatically switches to 'u-law' at the end when I change the camera to 'G711 U' (the only other option)

jennettwheeler commented 4 years ago

Further to the above. I have just installed the evaluation version on my wife's laptop and the sound works there. So it isn't a problem with the camera or with blue iris...

OscarVanL commented 4 years ago

Hi, I'm not the developer but am currently trawling through Wine logs looking for GPU related stuff, and some auto-related errors caught my attention:

ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default

ALSA is: "Advanced Linux Sound Architecture (ALSA) provides audio and MIDI functionality to the Linux operating system"

I wonder if these errors are at all related to your audio not working.

Here's how you can view the same logs:

  1. Change to home directory cd ~

  2. List the names of the containers. sudo docker ps

  3. Open a bash shell to the container docker exec -it <container name> /bin/bash

  4. Stop blueiris.sh automatically running mv blueiris.sh blueiris-bak.sh

  5. Connect to VNC and close off Blue Iris's program

  6. Run this command:

WINEDBEUG=+wgl wine prefix32/drive_c/Program\ Files/Blue\ Iris\ 5/BlueIris.exe &> wine.blueiris.log

(Note: Change Blue Iris 5 to Blue Iris 4 if using BI4)

This will start Blue Iris and create a wine.blueiris.log

FYI: I have no idea how to actually solve this problem, but logs are the first step, right :)