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

No audio in published video #1

Open
Arjit0762 opened this issue Mar 6, 2024 · 5 comments
Open

No audio in published video #1

Arjit0762 opened this issue Mar 6, 2024 · 5 comments

Comments

@Arjit0762
Copy link

Videos is working fine but there is no audio in my video

<NodePublisher
ref={cameraRef}
style={{ flex: 1 }}
url={publishUrl}
audioParam={{
codecid: NodePublisher.NMC_CODEC_ID_AAC,
profile: NodePublisher.NMC_PROFILE_AUTO,
samplerate: 48000,
channels: 1,
bitrate: 64 * 1000,
}}
videoParam={{
codecid: NodePublisher.NMC_CODEC_ID_H264,
profile: NodePublisher.NMC_PROFILE_AUTO,
width: 720,
height: 1280,
fps: 30,
bitrate: 2000 * 1000,
}}
frontCamera={frontCamera}
HWAccelEnable={true}
denoiseEnable={false}
torchEnable={torchEnable}
keyFrameInterval={2}
videoOrientation={NodePublisher.VIDEO_ORIENTATION_PORTRAIT}
onEvent={(e, msg) => {
console.log(e, msg)
}}
/>

@zomem
Copy link

zomem commented Mar 6, 2024

0.3.1 可以了,感谢大佬

@illuspas
Copy link
Member

illuspas commented Mar 6, 2024

别急,等下还有个问题,用下个版本

@Arjit0762
Copy link
Author

感谢你的快速回复

我发现这个库很棒,但它有大约 30 秒的延迟。如果可以将其减少到最低限度,那将是非常有益的

@illuspas
Copy link
Member

illuspas commented Mar 7, 2024

可能与前一个版本音频采样问题有关,使用0.3.2版本应该可以解决。

@talhatsk
Copy link

talhatsk commented Apr 7, 2024

@Arjit0762 audio stops after few seconds, were you able to fix this?

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

4 participants