Bimblis
Posts: 23
Joined: Tue Dec 20, 2016 11:41 pm

Omxplayer supports 5.1 surround?

Wed Dec 28, 2016 11:50 pm

Omxplayer supports 5.1 surround? (with an USB soundcard, of course).

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 8:13 am

AFAIK omxplayer only supports the native audio interfaces on the Pi - that is the HDMI and the A/V jack socket. Unless something has changed it doesn't support any other audio devices, including USB ones.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 8:29 am

Newer versions of omxplayer support ALSA and even PulseAudio via PulseAudios ALSA compatibility layer.
That means that omxplayer does support sound over Bluetooth indirectly too.

viewtopic.php?f=66&t=162289#p1050089

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 8:52 am

ghans wrote:Newer versions of omxplayer support ALSA and even PulseAudio via PulseAudios ALSA compatibility layer.
That means that omxplayer does support sound over Bluetooth indirectly too.
Ok cool, I sit corrected ;)

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 10:54 am

If your TV / sound system connected to HDMI supports AC3 / DTS decoding you can use the "-p" or "--passthrough" option.
tvservice -a
will tell you if it is supported.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Bimblis
Posts: 23
Joined: Tue Dec 20, 2016 11:41 pm

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 12:14 pm

With omxplayer, using the option of -o alsa like "omxplayer -o alsa bubles2.wav", is able to send sound through the USB soundcard to the speakers. But the question is if it supports 5.1 surround, because all the 5.1 audio I send through it is downmixed to stereo.

Code: Select all

omxplayer -o alsa bubles2.wav
Audio codec pcm_s24le channels 6 samplerate 44100 bitspersample 24
Subtitle count: 0, state: off, index: 1, delay: 0
The same file, with mplayer, uses the speakers correctly in 5.1

Code: Select all

mplayer --channels=6 bubles2.wav

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 1:38 pm

You could try the
--layout 5.1
option.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Bimblis
Posts: 23
Joined: Tue Dec 20, 2016 11:41 pm

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 2:42 pm

Interesting. With that option --layout 5.1, the audio file is not downmixed to stereo. The front right and front left speakers play their channel, but the other 4 speakers dont play anything.

From where does omxplayer pick the configuration when doing the -alsa thing?

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 3:58 pm

You already asked in the right place: https://github.com/popcornmix/omxplayer/issues/511
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Bimblis
Posts: 23
Joined: Tue Dec 20, 2016 11:41 pm

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 4:11 pm

I guess you looked up in google and discovered my footprints :)

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Omxplayer supports 5.1 surround?

Thu Dec 29, 2016 5:04 pm

Bimblis wrote:I guess you looked up in google and discovered my footprints :)
No, I went directly to the issues.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Advanced users”