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

rtp推流增加PCM音频的处理 #3419

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rayjay214
Copy link
Contributor

No description provided.

@@ -102,6 +102,16 @@ bool GB28181Process::inputRtp(bool, const char *data, size_t data_len) {
_rtp_decoder[pt] = Factory::getRtpDecoderByCodecId(track->getCodecId());
break;
}
case Rtsp::PT_L16_Mono: {
Copy link
Member

Choose a reason for hiding this comment

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

PT_L16_Mono 好像是44100的采样率,你这里固定为16000 是不是有问题?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是的,这里没注意,因为之前我们这边固件端推PCM的时候,pt采用的是自定义的97,采样率也是固定的16000,我当时就这样写了,case也用的是97。后来在pr里面就借用zlm里面已有的一个枚举值L16_Mono放在case分支里了

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

2 participants