Last active
March 22, 2023 06:58
-
-
Save thijstriemstra/c792e47edc21d9344384ff698d6fc284 to your computer and use it in GitHub Desktop.
omxplayer USB audio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Playback on USB audio device (the second soundcard's first device), | |
# with omxplayer: | |
# | |
# $ ./play.sh myfile.mp4 | |
# | |
# Use 'aplay -l' to list available devices, e.g: | |
# | |
# $ aplay -l | |
# card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio] | |
# Subdevices: 1/1 | |
# Subdevice #0: subdevice #0 | |
omxplayer -o alsa:hw:1,0 --loop --no-osd -b "$1" |
helped me as well, thanks
sounds great! I'm quite new, so ich have some problems with this script.
have i got it right, that things i would have to change to fit my data and hardware are:
line 4: # $ ./play.sh myfile.mp4
and change "my file.mp4" to my data path
line 9: # card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
and change "Device" to my usb sound card which would be "GIGAPort HD+"
And of course thank you for the script. would be so good to use omxplayer with usb audio
It works on my raspberry pi & usb headset.
card 1: MS [Jabra EVOLVE 20 MS], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
$ omxplayer -o alsa:hw:1,0 'Zootopia.flac'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this! I looked forever for how to use omxplayer with USB audio. Much obliged 😄