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

视频流有杂音,这样改过就好了 #7

Open
huchangquan opened this issue Dec 23, 2020 · 2 comments
Open

视频流有杂音,这样改过就好了 #7

huchangquan opened this issue Dec 23, 2020 · 2 comments

Comments

@huchangquan
Copy link

///下面这两种方法计算的大小是一样的
#if 1
int resampled_data_size = len2 * audio_tgt_channels * av_get_bytes_per_sample(out_sample_fmt);
#else
int resampled_data_size = av_samples_get_buffer_size(NULL, audio_tgt_channels, aFrame_ReSample->nb_samples, out_sample_fmt, 1);
#endif

测试视频流地址: rtmp://58.200.131.2:1935/livetv/hunantv

@ferrellsl
Copy link

You can fix the audio noise by replacing videoplayer-master/module/VideoPlayer/src/VideoPlayer.cpp with this one:
VideoPlayer.cpp.zip

@itopsoft
Copy link
Member

You can fix the audio noise by replacing videoplayer-master/module/VideoPlayer/src/VideoPlayer.cpp with this one:
VideoPlayer.cpp.zip

ok,thank you!

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

3 participants