No sound using OMXplayer / Arcade Bonnet
-
Hello all. I hope everyone has been staying healthy, and getting buy without too much difficulty. I have been using my "quarantine" time to finish a miniature arcade build I have been working on.
I am having issues with video snaps. When I enable OMXplayer, I have video and no sound. Sound is working with OMXplayer off. I have tried changing many settings from
/etc/.asound.conf
, to/usr/share/alsa/alsa.conf
I had no sound during spash screen but was able to correct that by changing
omxplayer -o both
to
omxplayer -o alsa
in
/opt/retropie/supplementary/splashscreen/asplashscreen.sh
as referenced in this post.I can play video previews from command line with
omxplayer -o local /path/to/file/filename.mp4
When
<string name="OMXAudioDev" value="alsa:hw:0,0" />
I do not get a video at all.
When set tolocal
, I get video, but no sound.Note: I have used these same video's with OMXplayer on a pi without a hat attached.
aplay -L showsCARD=sndrpihifiberry,DEV=0
I am using a Raspberry Pi 3b+, with a Canakit powersupply, ADAfruit Arcade Bonnet, running the latest Retropie image (v 4.5.1) from a clean install.
-
Have you used this guide to set up the speaker ? Can you show the output of
aplay -Ll
in full ? -
@mitu Yes, I did use that guide. I also saw it noted in that guide:
omxplayer does not seem use the I2S interface for audio - only HDMI - so you won't be able to use it
I did not pursue sound through OMX player after that until I came across your post about testing a file using
omxplayer -o alsa
and then proceeded to get splash screen sound back (Thank you BTW)
aplay -Li
null Discard all samples (playback) or generate zero samples (capture) speakerbonnet dmixer softvol default sysdefault:CARD=sndrpihifiberry snd_rpi_hifiberry_dac, Default Audio Device dmix:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Direct sample mixing device dsnoop:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Direct sample snooping device hw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Direct hardware device without any conversions plughw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Hardware device with all software conversions **** List of PLAYBACK Hardware Devices **** card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [] Subdevices: 0/1 Subdevice #0: subdevice #0
-
@BiZzAr721 said in No sound using OMXplayer / Arcade Bonnet:
<string name="OMXAudioDev" value="alsa:hw:0,0" />
If
omxplayer -o alsa
works, try changing the above to<string name="OMXAudioDev" value="alsa" />
and see if it makes a difference.
-
@mitu Wow, well that definitely is a step in the right direction! Sound works, but is extremely low. I had to have the volume nearly all the way up, but then the emulator sound is nearly blowing the speaker.
I only have sound with audio card set as
sysdefault
,HW
, anddefault
. All others will have the volume set to0
when I go back into sound menu.
Edit : As well as anything other thanpcm
for Audio DeviceI entered
alsamixer
, but didn't find anything useful there. Is there a way to control OMXplayer volume independant of software volume (or vice versa)?Temp fix noted: I added
audio_volume = -24.0
intoretroarch.cfg
which for the most part normalizes OMXplayer video snap volume with LibRetro emulators. Since it's a miniature cabinet, I removed non-lr emulators that didn't really need to be on there. The only one I couldn't part with was Daphne (and OpenBOR when I set that back up)!note2: I altered daphne volume by creating a
<gamename>.command
file and adding volume variables (along with some other enhancements)
-nocrc -volume_nonvldp 8 -volume_vldp 8 -noissues -nolog -noserversend
Volume is rated 0-64. Daphne command line variables can be found here.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.