srs
srs copied to clipboard
WebRTC: Add error tips when coverting HEVC to RTC.
When you push hevc stream by opening rtmp_to_rtc on
, we'll return error tips for WebRTC not support HEVC
.
Publish RTMP HEVC
[2023-02-15 17:33:40.292][ERROR][26356][5e93kr4y][4] serve error code=5036(RtcCodec)(RTC not support codec type) : service cycle : rtmp: stream service : rtmp: receive thread : handle publish message : rtmp: consume message : rtmp: consume video : bridge consume video : WebRTC not support HEVC
thread [26356][5e93kr4y]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:262][errno=4]
thread [26356][5e93kr4y]: service_cycle() [./src/app/srs_app_rtmp_conn.cpp:456][errno=4]
thread [26356][5e93kr4y]: do_publishing() [./src/app/srs_app_rtmp_conn.cpp:1024][errno=22]
thread [26356][5e93kr4y]: consume() [./src/app/srs_app_recv_thread.cpp:380][errno=22]
thread [26356][5e93kr4y]: handle_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1161][errno=22]
thread [26356][5e93kr4y]: process_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1189][errno=22]
thread [26356][5e93kr4y]: on_video_imp() [./src/app/srs_app_source.cpp:2468][errno=22]
thread [26356][5e93kr4y]: on_video() [./src/app/srs_app_rtc_source.cpp:996][errno=22](Interrupted system call)
Publish SRT HEVC
[2023-02-15 17:38:44.437][WARN][26356][749051kk][4] parse ts packet err=code=4019(CasterTsPse)(Invalid ts PSE payload for stream caster) : ts: ts packet decode : ts: demux payload : ts: PES fresh packet length=0, us=0, cc=5
thread [26356][749051kk]: decode() [./src/kernel/srs_kernel_ts.cpp:265][errno=4]
thread [26356][749051kk]: decode() [./src/kernel/srs_kernel_ts.cpp:630][errno=4]
thread [26356][749051kk]: decode() [./src/kernel/srs_kernel_ts.cpp:1956][errno=4]
Publish GB HEVC
Please hold on this PR, because it depends on #3392
Wow, so fucking awesome HEVC over Webrtc, crazy guys!
Wow, so fucking awesome HEVC over Webrtc, crazy guys!
This PR is just adding some error logs to notice user that HEVC over WebRTC is not supported. 😃
However, we found that Safari supports HEVC over WebRTC, so we will try to do that in another PR.
If one day, Chrome supports HEVC over WebRTC, the HEVC should be very easy to use for both live streaming and WebRTC.