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

webrtc推流到SRS失败 #2

Open
abstract2015 opened this issue Oct 25, 2022 · 2 comments
Open

webrtc推流到SRS失败 #2

abstract2015 opened this issue Oct 25, 2022 · 2 comments

Comments

@abstract2015
Copy link

1)SRS配置:https.rtc.conf。部署在局域网内。
2)推流命令(windows):两种写法问题相同。ffmpeg-metartc基于"msys2+msvc"和“msys2+mingw64”两种方式编译问题相同。
ffmpeg -re -i xxx.mp4 -c copy -f webrtc webrtc://192.16.15.211/live/livestream
ffmpeg -re -i xxx.mp4 -vcodec libx264 -acodec opus -strict -2 -f webrtc webrtc://192.16.15.211/live/livestream
3)错误提示:
webrtc init>>>>>>>>>>>>>>>>>>>webrtc://192.16.15.211/live/livestream
[webrtc @ 00000000003796c0] webrtc_open webrtc://192.16.15.211/live/livestream
srtp init success!
startRtc,port=19030
candidate:ip==192.16.15.211,type=host,port=8000
candidate:ip==192.16.15.211,type=host,port=8000
remoteIp=192.16.15.211,port=8000
dtls is openssl[webrtc @ 00000000003796c0] webrtc_open exit
[webrtc @ 00000000003796c0] webrtc_write_header, filename webrtc://192.16.15.211/live/livestream
u[webrtc @ 00000000003796c0] dwebrtc_write_header wait failed, Error number -138 occurred
p [webrtc @ 00000000003796c0] swebrtc_close
erver is starting,localPort=19030
webrtc disconnect
[webrtc @ 00000000003796c0] webrtc_close exit
webrtc deinit>>>>>>>>>>>>>webrtc://192.16.15.211/live/livestream
Could not write header for output file #0 (incorrect codec parameters ?): Error number -138 occurred
Error initializing output stream 0:0 --
[opus @ 0000000000330700] 129 frames left in the queue on closing
[opus @ 0000000000330700] Average Intensity Stereo band: 20.0
[opus @ 0000000000330700] Dual Stereo used: nan%
Conversion failed!

@liuxgo
Copy link

liuxgo commented Oct 28, 2022

@abstract2015 遇到相同问题,请问您解决了吗?

@abstract2015
Copy link
Author

@abstract2015 遇到相同问题,请问您解决了吗?
还没有。linux上您试过吗? 看错误描述可能是推流时还要加一些参数。

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