ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.16k stars 5.31k forks source link

serve error code=3001(HlsDecode)(HLS decode av stream failed) #3621

Closed erosiners closed 11 months ago

erosiners commented 1 year ago

Note: Please read FAQ before file an issue, see #2716

Description

Please description your issue here

  1. SRS Version: srs:v6.0-d0

  2. SRS Log:

[2023-07-17 01:01:01.556][ERROR][1][k817h4t5][4] serve error code=3001(HlsDecode)(HLS decode av stream failed) : service cycle : rtmp: stream service : rtmp: receive thread : handle publish message : rtmp: consume message : rtmp: consume video : format consume video : demux NALU : avc demux annexb : not annexb
thread [1][k817h4t5]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:263][errno=4]
thread [1][k817h4t5]: service_cycle() [./src/app/srs_app_rtmp_conn.cpp:457][errno=4]
thread [1][k817h4t5]: do_publishing() [./src/app/srs_app_rtmp_conn.cpp:1031][errno=22]
thread [1][k817h4t5]: consume() [./src/app/srs_app_recv_thread.cpp:380][errno=22]
thread [1][k817h4t5]: handle_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1186][errno=22]
thread [1][k817h4t5]: process_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1214][errno=22]
thread [1][k817h4t5]: on_video_imp() [./src/app/srs_app_source.cpp:2432][errno=22]
thread [1][k817h4t5]: video_avc_demux() [./src/kernel/srs_kernel_codec.cpp:990][errno=22]
thread [1][k817h4t5]: video_nalu_demux() [./src/kernel/srs_kernel_codec.cpp:2532][errno=22]
thread [1][k817h4t5]: do_avc_demux_annexb_format() [./src/kernel/srs_kernel_codec.cpp:2571][errno=22](Interrupted system call)

Streaming information

Input #0, flv, from 'https://pull-flv-l96.douyincdn.com/stage/stream-689844777752986217_or4.flv?expire=1690159848&sign=2bc543ec59182646a2eb3e09d3a39cf5&abr_pts=-800&session_id=037-20230717085048946A9140F7722B3452B9':
  Metadata:
    interval        : 2
    sdk_version     : 14.4.1.4
    platform        : Android
    os_version      : 12
    model           : PCLM50
    start_time      : 1689553667524
    signResult      : {"signversion":"1.0","signinfo":"3f14dc1f88598baac382098be8d1054afe53d3b422d30be1391681f162065f224a01659fe3e257f7195056885be618668db7fb5e2e8b757da4ebf4dc681ae75110a2d821ed07f97daf787420318a301ee4bd5cf91f3e6893555288c5f6e847c14403af79b7a7d90361cadd66917066
    push_protocol   : rtmp
    hit_node_optimize: 1
    qId             : {"denoiseV2_highDenoise_1_0703":true,"app_log_v2":1,"video_frame_elapse":true}
    is_hardware_encode: 0
    default_bitrate : 972
    min_bitrate     : 720
    max_bitrate     : 1137
    encoder         : Lavf59.16.100
  Duration: N/A, start: 2081.917000, bitrate: 1564 kb/s
  Stream #0:0: Audio: aac (HE-AAC), 44100 Hz, stereo, fltp, 64 kb/s
  Stream #0:1: Video: h264 (High), yuv420p(progressive), 720x1280, 1500 kb/s, 15 fps, 15 tbr, 1k tbn
Output #0, flv, to 'rtmp://localhost/live/livestream':
  Metadata:
    interval        : 2
    sdk_version     : 14.4.1.4
    platform        : Android
    os_version      : 12
    model           : PCLM50
    start_time      : 1689553667524
    signResult      : {"signversion":"1.0","signinfo":"3f14dc1f88598baac382098be8d1054afe53d3b422d30be1391681f162065f224a01659fe3e257f7195056885be618668db7fb5e2e8b757da4ebf4dc681ae75110a2d821ed07f97daf787420318a301ee4bd5cf91f3e6893555288c5f6e847c14403af79b7a7d90361cadd66917066
    push_protocol   : rtmp
    hit_node_optimize: 1
    qId             : {"denoiseV2_highDenoise_1_0703":true,"app_log_v2":1,"video_frame_elapse":true}
    is_hardware_encode: 0
    default_bitrate : 972
    min_bitrate     : 720
    max_bitrate     : 1137
    encoder         : Lavf60.10.100
  Stream #0:0: Video: h264 (High) ([7][0][0][0] / 0x0007), yuv420p(progressive), 720x1280, q=2-31, 1500 kb/s, 15 fps, 15 tbr, 1k tbn
  Stream #0:1: Audio: aac (HE-AAC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 64 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[vost#0:0/copy @ 0000022fc8022840] Error submitting a packet to the muxer: End of file
[flv @ 0000022fc5ce7140] Failed to update header with correct duration.
[flv @ 0000022fc5ce7140] Failed to update header with correct filesize.
[out#0/flv @ 0000022fc5cbef00] Error writing trailer: End of file
[out#0/flv @ 0000022fc5cbef00] Error closing file: End of file
[out#0/flv @ 0000022fc5cbef00] video:83kB audio:6kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
frame=   12 fps=0.0 q=-1.0 Lsize=      86kB time=00:00:00.81 bitrate= 867.8kbits/s speed=2.58x
Conversion failed!
  1. SRS Config:
conf/docker.conf

Replay

Please describe how to replay the bug?

Step 1: xxxxxx

Transmit Douyin web version live streaming to SRS server

Expect

Please describe your expectation.

TRANS_BY_GPT3

srhben commented 1 year ago

check this link maybe helpful to you, https://github.com/ossrs/srs/issues/1405

songyinke commented 1 year ago

Is there a solution to this please?

xiaozhihong commented 1 year ago

check this link maybe helpful to you, #1405

@erosiners try to solve follow #1405, if the problem still occurred, dump the stream and provide it.

winlinvip commented 11 months ago

Dup to #1405 Fixed.

Powrch commented 4 months ago

Is there a solution to this please?

winlinvip commented 4 months ago

@Powrch This issues is closed for duplicated issue, this reason means you should follow #1405 instead and should never update this issue.