-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
ffmpeg / Alarm Sound problem #44
Comments
Finally i got ffmpeg installed directly to docker, now i still got errors, but different. Any suggestions? Thanks: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Looks like it's not supported by the Synology Docker UI but — there's something else we can do.
Now all the devices should be mounted to the container (including the audio one). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hello, I'm facing exactly the same problem. I've search, and found that the default Alsa card was not good to play sounds. FYI, I'm running this plugin in a computer under Linux with multiple sound devices (HDMI, Webcam, Audio USB card, Line out...) So, for me, the solution would be to use this ffmpeg command instead of ffplay, to select the right Alsa audio card : For Linux with Alsa, you can find all audio cards with command : @MiguelRipoll23, do you think it's possible to provide an option to override the audio sound card? But you should keep using 'ffplay' for default configuration, because you won't know what output device to use depending on OS. |
@macjl sure, thanks for your help!
It doesn't work using ffplay? I thought they shared options.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@macjl okay I think I figured this out:
Hopefully it works now. |
You got it!!! I have added this to my docker-compose, and it's working now :
So I think you don't have to add the 'audio_arguments' feature in your plugin. Thank you! |
Thanks both for your patience on this issue, great to hear that. @mfischcgn can you connect via SSH to your docker container and do the following steps?
You may need to try hw:2,0, hw:3,0... for it to work as the sound card may have a different identifier, hopefully we fix the issue for you too! :) |
Oh I have no problems with audio. I am running homebridge on a mac. What I was asking before was about the audio_path. I didn't realize you had added that option in the GUI. |
Sorry! I meant the author of this issue (@mfischcgn) instead. Refer to 44#issuecomment-658295471 to solve this issue. Thank you! |
@MiguelRipoll23 I was just testing the update today. Took me a while to figure out how to make the custom sounds folder. Had to read the committed code in order to see that I have to have folder 'en-US' inside and the audio file has to follow the same naming convention. But finally got it working. |
@raixer just added these changes to the beta channel:
My biggest priority has been adding debug messages to the plugin, they're very helpful during testing. I was hoping to improve the documentation and Wiki this week but unfortunately I was quite busy. Thanks! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi there.
If I want to use the audio options for the Alarm, I get this error message:
Error: spawn ffplay ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
I tried to install ffmpeg. It seemed that it is installed, but the error persists.
Maybe someone could help me getting this working. Thanks in advance!
(I use docker with a Homebridge image on a Synology NAS)
The text was updated successfully, but these errors were encountered: