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

Support Opus in MPEG-TS #2022

Open
imilab1023 opened this issue Jan 7, 2025 · 1 comment
Open

Support Opus in MPEG-TS #2022

imilab1023 opened this issue Jan 7, 2025 · 1 comment

Comments

@imilab1023
Copy link

I want to play a online file, This is a video & audio record file. The SimpleExoPlayer is normal, I can see the video, but silence.
I found the reason,maybe ts contianer have a opus codec for audio. It is not normal ts file audio codec. TsExtractor skip the audio pid who 257,so i want to develop a OpusReader for decode opus frame, let the TsExtractor support opus audio format.
How can I do for this,Thanks.

@icbaker icbaker changed the title How to develop a OpusReader for TsExtractor & Extractor module? Support Opus in MPEG-TS Jan 8, 2025
@icbaker icbaker self-assigned this Jan 8, 2025
@icbaker
Copy link
Collaborator

icbaker commented Jan 8, 2025

This looks very similar (most of it word for word) to google/ExoPlayer#9803.

The answer we gave there remains the same, so I'll copy-paste it too for convenience :)

Creating a new TS ElementaryStreamReader for Opus seems right. I am afraid I cannot help more because we don’t have the resources to debug and correct user’s code. We can answer precise questions, but this is too vague.

When you get your code to work, feel free to submit a pull request if you want the new reader to be integrated to ExoPlayer.

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

No branches or pull requests

2 participants