Skip to content
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

[omxplayer] Allow small audio packets to be concatenated to make better use of audio fifo #4777

Merged
merged 2 commits into from May 25, 2014

Conversation

popcornmix
Copy link
Member

Some audio codecs produce small packets which causes a high overhead when submitting to GPU, and doesn't make full use of GPU side buffering.
TrueHD in particular can produce packets with 40 samples (so 1200 packets per second) which causes very high overhead.

What this aims to do is to concatenate audio packets until they approach the ideal audio packet size, and then deal with the awkardness of concatenated planar formats.

The second commit uses the media time for determining the audio delay more accurately.

@popcornmix
Copy link
Member Author

jenkins build this please

@MartijnKaijser MartijnKaijser added this to the Pending for inclusion milestone May 24, 2014
@MartijnKaijser
Copy link
Member

@huceke for review please

…er use of audio fifo

Some audio codecs produce small packets which causes a high overhead when submitting to GPU, and doesn't make full use of GPU side buffering.
TrueHD in particular can produce packets with 40 samples (so 1200 packets per second) which causes very high overhead.

What this aims to do is to concatenate audio packets until they approach the ideal audio packet size,
and then deal with the awkardness of concatenated planar formats.
I've also added caching to the call to OMXMediaTime as the GPU round trip is expensive when called too frequently
@popcornmix
Copy link
Member Author

jenkins build this please

@huceke
Copy link
Contributor

huceke commented May 25, 2014

@popcornmix: hit the green button ;)

popcornmix added a commit that referenced this pull request May 25, 2014
[omxplayer] Allow small audio packets to be concatenated to make better use of audio fifo
@popcornmix popcornmix merged commit 3eaeade into xbmc:master May 25, 2014
@popcornmix popcornmix deleted the small_audio branch May 25, 2014 09:58
@MartijnKaijser MartijnKaijser modified the milestones: Helix 14.0-alpha1, Pending for inclusion May 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants