本文主要是介绍serve error code=5011(RtcRtpMuxer)(Failed to mux RTP packet for RTC),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
SRS日志报错如下:
[2023-02-09 12:14:02.230][ERROR][27919][4u14n5rj][4] serve error code=5011(RtcRtpMuxer)(Failed to mux RTP packet for RTC) : service cycle : rtmp: stream service : rtmp: receive thread : handle publish message : rtmp: consume message : rtmp: consume video : bridge consume video : package stap-a : sps/pps empty
thread [27919][4u14n5rj]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:262][errno=4]
thread [27919][4u14n5rj]: service_cycle() [./src/app/srs_app_rtmp_conn.cpp:456][errno=4]
thread [27919][4u14n5rj]: do_publishing() [./src/app/srs_app_rtmp_conn.cpp:1024][errno=11]
thread [27919][4u14n5rj]: consume() [./src/app/srs_app_recv_thread.cpp:380][errno=11]
thread [27919][4u14n5rj]: handle_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1161][errno=11]
thread [27919][4u14n5rj]: process_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1189][errno=11]
thread [27919][4u14n5rj]: on_video_imp() [./src/app/srs_app_source.cpp:2468][errno=11]
thread [27919][4u14n5rj]: on_video() [./src/app/srs_app_rtc_source.cpp:1006][errno=11]
thread [27919][4u14n5rj]: package_stap_a() [./src/app/srs_app_rtc_source.cpp:1093][errno=11](Interrupted system call)
这个报错是因为SRS目前不支持h265格式的RTC,所以无法将HEVC格式的RTMP数据转为RTC数据,会报错5011,将SRS配置中的配置信息修改即可,将RTC服务关闭即可
rtc {enabled off;rtmp_to_rtc off;rtc_to_rtmp off;}
这篇关于serve error code=5011(RtcRtpMuxer)(Failed to mux RTP packet for RTC)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!