RPi 3 as a media player for video with multichannel audio

Discussion of all things Raspberry Pi / Raspberry Pi 2 related

Moderators: khz, MattKingUSA

goldenhours
Posts: 1
Joined: Tue Sep 05, 2017 1:29 pm

RPi 3 as a media player for video with multichannel audio

Postby goldenhours » Tue Sep 05, 2017 2:02 pm

Hi, this is my first post here, and I'm also relatively inexperienced with Linux. Please go nice and slow...

I'm looking to use RPi3 as a media player for an audiovisual installation. I have a video file with 6 channels of PCM audio (individual mono files for a corresponding ambisonic speaker array). I want to send the video to the HDMI output and the 6 channels of audio to an external USB soundcard (Behringer FCA1616 or RME Fireface UCX).

1) One problem is to configure ALSA in a way that it uses one of my USB cards as default device. There are various threads around but it's tricky to filter out the wrong advice. I was able to play some glitchy stereo on my FCA1616 card by temporarily changing the alsa default device to USB. But I haven't been able to play more than two channels. Is jack the way forward here?

2) The other problem is, I've looked into various players, like KODI, omxplayer, VLC, ffmpeg, but none of them seem to allow me to assign the 6 streams of audio in my video file to 6 discrete channels, without following commercial surround sound speaker layouts (5.1, 7.1 etc).

Any advice would be greatly appreciated.

David

folderol
Established Member
Posts: 723
Joined: Mon Sep 28, 2015 8:06 pm
Location: Here, of course!
Contact:

Re: RPi 3 as a media player for video with multichannel audio

Postby folderol » Tue Sep 05, 2017 6:46 pm

I can't remember the details now, but it is possible to tell ALSA to use a soundcard identified by name. That way it doesn't matter what USB ID it has,. Also works for multiple installed PCIE soundcards.

User avatar
CrocoDuck
Established Member
Posts: 929
Joined: Sat May 05, 2012 6:12 pm
Contact:

Re: RPi 3 as a media player for video with multichannel audio

Postby CrocoDuck » Tue Sep 05, 2017 7:25 pm

Various methods to assign default cards are listed here.

As for the routing, it is possible to do it manually. I think this should be relevant for you.

I am not very accustomed to ALSA configuration. JACK would make routing discrete applications outputs channels to discrete hardware device channels more straightforward I think. You can set a script to do it automatically.

EDIT: maybe this is relevant?
Check my Linux audio experiments on my SoundCloud.
Browse my AUR packages.
Fancying a swim in the pond?


Return to “Raspberry Pi”

Who is online

Users browsing this forum: No registered users and 1 guest