Skip to content

add opus control header support in MPEG-TS#387

Merged
ireader merged 2 commits intoireader:masterfrom
Dw9:patch-2
Sep 23, 2025
Merged

add opus control header support in MPEG-TS#387
ireader merged 2 commits intoireader:masterfrom
Dw9:patch-2

Conversation

@Dw9
Copy link
Copy Markdown
Contributor

@Dw9 Dw9 commented Sep 22, 2025

Comment thread libmpeg/source/mpeg-ts-enc.c Outdated
p[6] = 0x28; // B&P&I (0x2) + rbsp stop one bit
p += 7;
}
else if (PSI_STREAM_AUDIO_OPUS == stream->codecid)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里可以加个判断是否包含opus_control_header, 例如 PSI_STREAM_AUDIO_OPUS == stream->codecid && (bytes < 3 || 0x7F != bytes[0] || 0xE0 != (bytes[1] & 0xE0))

@ireader ireader merged commit 447e3b8 into ireader:master Sep 23, 2025
2 of 3 checks passed
xia-chu pushed a commit to ZLMediaKit/ZLMediaKit that referenced this pull request Sep 23, 2025
xia-chu pushed a commit to ZLMediaKit/ZLMediaKit that referenced this pull request Oct 11, 2025
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.

[BUG] WHIP->SRT with Opus creates invalid MPEG-TS

2 participants