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

HEVC: Error empty SPS/PPS when coverting RTMP to HEVC. #3407

Open
zhza opened this issue Feb 9, 2023 · 3 comments · Fixed by #3408 · May be fixed by #3425
Open

HEVC: Error empty SPS/PPS when coverting RTMP to HEVC. #3407

zhza opened this issue Feb 9, 2023 · 3 comments · Fixed by #3408 · May be fixed by #3425
Assignees
Labels
TransByAI Translated by AI/GPT.
Milestone

Comments

@zhza
Copy link

zhza commented Feb 9, 2023

  1. SRS Version: XCORE-SRS/6.0.23(Bee)

  2. SRS Log:

[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)
  1. SRS Config:
vhost __defaultVhost__ {
    rtc {
        enabled on;
        rtmp_to_rtc on;
        rtc_to_rtmp on;
    }
    http_remux {
        enabled on;
        mount [vhost]/[app]/[stream].flv;
    }
    hls {
        enabled on;
    }
	dvr {
        enabled      off;
        dvr_path     ./objs/nginx/html/[app]/[stream].[timestamp].mp4;
        dvr_plan     session;
    }
}

Replay

Client pushes RTMP (H265) to SRS service.
rtc { enabled on;rtmp_to_rtcis set toon; it will cause an error, but when set to off, it works normally. rtc_to_rtmp on; }

TRANS_BY_GPT3

@chundonglinlin
Copy link
Member

chundonglinlin commented Feb 10, 2023

webrtc still does not support h265

TRANS_BY_GPT3

@winlinvip winlinvip changed the title RTMP(H265) 转RTC包异常serve error code=5011(RtcRtpMuxer) HEVC: Error code=5011(RtcRtpMuxer) when coverting RTMP to HEVC. Feb 13, 2023
@winlinvip winlinvip added this to the 6.0 milestone Feb 13, 2023
@winlinvip
Copy link
Member

winlinvip commented Feb 13, 2023

@chundonglinlin We should make this error code more explicit. Currently, it says SPS/PPS is empty. We can specify that it is RTC not supporting H.265 when RTMP2RTC is enabled.

TRANS_BY_GPT3

@winlinvip winlinvip changed the title HEVC: Error code=5011(RtcRtpMuxer) when coverting RTMP to HEVC. HEVC: Error empty SPS/PPS when coverting RTMP to HEVC. Feb 13, 2023
@chundonglinlin
Copy link
Member

error tips will be resolved by PR #3408

@chundonglinlin chundonglinlin linked a pull request Feb 13, 2023 that will close this issue
chundonglinlin added a commit to chundonglinlin/srs that referenced this issue Feb 15, 2023
@chundonglinlin chundonglinlin linked a pull request Feb 15, 2023 that will close this issue
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
3 participants