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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'