-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
ALSA Audio from Raspberry PI: FFmpeg exited with code 1 #360
Comments
invert the order of the ffmpeg sources with audio first like this "-re -f alsa -i plughw:0,0 -f video4linux2 -i /dev/video0" |
I was playing around with the order earlier... I used your source configuration but this didn't help:
|
I checked the available streams in my config with
And added
to my config which solved this issue. |
@odx can you please share your camera configuration in your config.json? I would like to see how you put in the mapping. Thank you |
Sure. Please note that I am using homebridge-videodoorbell with the two-way-audio-patch.
|
I am using both those too. But cannot get around "ERROR: Speaker FFmpeg exited with code 1". Probably not appropriate for this thread. But wondering if you ran in to similar and how you fixed it?
|
i use nodejs "fluent-ffmpeg" to send rtmp video stream to my server, and find the same problem with audio .input('/dev/video0') commandLine: ffmpeg -f v4l2 -i /dev/video0 -f alsa -i plughw:2,0 -vcodec libx264 -preset ultrafast -pix_fmt yuv422p -tune:v zerolatency -framerate 25 -acodec aac -ac 1 -ar 16000 -s 320240 -bufsize 1024 -ab 96k -g 0.1 -f flv rtmp://manykit.com/live/manykit?sign=************************************** |
At the moment I am trying to configure a Raspberry PI Zero W as HomeKit Camera.
The final goal will be to use this as video doorbell with two way audio.
I got stuck configuring the plain homebridge-camera-ffmpeg plugin with one-way audio. As soon as I add the alsa audio input to the config, I get the following error in the log:
I can record audio with the following two commands:
My config is:
And this is the resulting debug log when I attempt to open the stream in the Home App:
Any ideas what I am doing wrong?
The text was updated successfully, but these errors were encountered: