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

Demuxed opus packet is corrupt #23

Open
ebekebe opened this issue Mar 15, 2022 · 2 comments
Open

Demuxed opus packet is corrupt #23

ebekebe opened this issue Mar 15, 2022 · 2 comments

Comments

@ebekebe
Copy link

ebekebe commented Mar 15, 2022

I generated an opus stream in gstreamer and muxed it into ts: gst-launch-1.0 audiotestsrc ! opusenc ! mpegtsmux ! filesink location=out.ts.

The opus stream in this file has 160 byte packets, but when I decode it with ts-demuxer, it returns 163 byte packets, where the first 3 bytes are always the same: [127, 224, 160]. If I remove the first 3 bytes manually, the decoder can decode the stream again.

I don't have a good understanding of the ts format, so I don't why this happens. For now, I can work around this by slicing off the first three bytes, but it would be nice to have this fixed here.

@ebekebe ebekebe changed the title Decoded opus packet is corrupt Demuxed opus packet is corrupt Mar 15, 2022
@gliese1337
Copy link
Owner

Odd. If it were two bytes, I would suspect self-delimited Opus packet headers, but I don't know why there would be three.
Do you see similar issues with any other encodings?

@ebekebe
Copy link
Author

ebekebe commented Mar 21, 2022

I use h264 with opus in one ts stream. Only the opus data is weird. H264 has no issues.

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

No branches or pull requests

2 participants