New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALSA support (support for HiFi berry audio) when playing video (MP4) inside GPU #442

Closed
vdegrandpre opened this Issue Mar 31, 2016 · 8 comments

Comments

Projects
None yet
4 participants
@vdegrandpre

vdegrandpre commented Mar 31, 2016

Hi,

I want to use the rPI's GPU to decode a mp4 video and to send included AAC audio to HiFiBerry DAC+ Light sound card (currently ALSA).

Searches pointed out that no support for ALSA exist in omxplayer but I want to get engaged to provide such functionality.

Can you tell what's the related effort and/or it ALSA support (or HiFiBerry support by other means) is already achieved ?

If not .. where should I start ?

N.B. Raspbian is the OS that is needed, XBMC/OpenELEC is NOT going to be used.

Very best,
Vincent de Grandpré

@vdegrandpre vdegrandpre changed the title from ALSA support (support for HiFi berry audio) to ALSA support (support for HiFi berry audio) when playing video (MP4) inside GPU Mar 31, 2016

@popcornmix

This comment has been minimized.

Owner

popcornmix commented Mar 31, 2016

No. omxplayer is a purely gpu based player that doesn't support ALSA.
You may be better off with VLC which can support HW acceleration.
https://www.raspberrypi.org/forums/viewtopic.php?t=59814

@popcornmix popcornmix closed this Mar 31, 2016

@pylover

This comment has been minimized.

pylover commented May 9, 2016

So, i can not transfer the playing movie's audio to bluetooth ad2p and or usb sound card.

@popcornmix

This comment has been minimized.

Owner

popcornmix commented May 9, 2016

Not with omxplayer. It may be possible with VLC (or any video player that does use alsa).

@pylover

This comment has been minimized.

pylover commented May 9, 2016

Of-course, thanks very much for the link. vlc is good idea

@pylover

This comment has been minimized.

pylover commented May 9, 2016

I am thinking about adding this feature to the omxplayer, is it technically possible ? i am ready to fork it.

@popcornmix

This comment has been minimized.

Owner

popcornmix commented May 9, 2016

Not really possible.
The clock, video_decode, video_schedule, video_render, audio_decode, audio_mixer, audio_render are tunnelled components that all run on the GPU. audio_render can only output to GPU controlled audio (i.e. hdmi or analogue headphone socket).
To output audio to ALSA you would want a completely different architecture.
Something very like VLC (which can support GPU video acceleration), which handles the clock scheduling and audio paths on the ARM.
Kodi is another option that supports ALSA.

@pylover

This comment has been minimized.

pylover commented May 10, 2016

Tanks a lot for the time.

@chengjianwen

This comment has been minimized.

chengjianwen commented Jan 5, 2017

The newest omxplayer has support output to alsa,
in omxplayer man page:
-o --adev device Audio out device : e.g. hdmi/local/both/alsa[:device]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment