-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio not working - gstreamer-audio_1 errors #28
Comments
May I ask which mic you are using? Having the exact same problem, I used same as the authors mic, which is USB and used an adapter to convert it to mini usb to plug it in as I am running this on pi zero. Ordered another mic now..I'll post the results once I get to try it. |
I actually was using the same cheap microphone originally recommended. Today I received a AmazonBasics Portable USB Condenser Microphone, and that is working with Pulse as-is. So, I think it is an issue with those cheap microphones. |
I facing the same problem. Is it an problem of Docker? or of microphone? |
The audio device (if I remember correctly hw1) is hardcoded in the docker containers. If a HDMI cable was plugged in, my cheap usb mic got the identifier hw2, and since HDMI does not provide audio-input, the container fails to start. So please make sure that hw1 actually is the microphone. |
So at first I thought my audio issues were related to the device being hw2 vs hw1 but as suggested by @J4nsen once the HDMI cable is removed that is no longer a problem. However I get the following errors when I run: I get:
When I run:
Any help would be much appreciated |
Did you change anything in the Dockefile related to the audio container? Is the image still ivadim/fruitnanny-gstreamer? |
Do you mean the Dockerfile in opt/fruitnanny/docker/gstreamer? That was unedited. However I did make a change to |
You only have to change the image to |
Thanks I'm going to try that now and update here. I figured as much when you asked if I made a change to the container. |
@J4nsen Doesn't seem to work. The error log is as below:
When I run:
|
Please make sure that hw:1 is actually your microphone. You can do this on the docker-host, e.g., by running |
I run
|
This looks ok. Sorry, I dont have my fruitnanny here anymore, so I can only give some advice. Next step would be running the container on its own and execute the steps in audio_entry.sh and audio_stream.sh (https://github.com/ivadim/fruitnanny/tree/master/docker/gstreamer) manually. |
Hey I really appreciate any advice at all. Thank you so very much!!! Trying to complete this project in time for when my baby is born. Haha. It's been a slog since I'm so unfamiliar with the software. Sorry to ask, but any chance you could elaborate on the steps to do the above? |
Make sure all other fruitnanny containers are stopped. Execute In the container run:
Check after every step if it worked. I suppose it should fail around pulseaudio/pactl. You could then run pulseaudio in the foreground with |
I have setup your project on a raspberry pi via the docker install method. Video seems to be working fine, but I have no audio. Using a cheap USB mic that shows as card1 in arecord -l.
When I run
docker-compose logs | grep gstreamer-audio
I get repeats of this output:
The text was updated successfully, but these errors were encountered: