ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.

Home Page:https://ossrs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check if the header of the video is correct and discard any damaged packets.

winlinvip opened this issue · comments

[2015-06-06 20:56:05.701][trace][23507][109] 48B video sh, codec(7, profile=High, level=4, 1536x1280, 0kbps, 0fps, 0s)
[2015-06-06 20:56:05.757][error][23507][109][11] video codec only support video h.264/avc codec. actual=15, ret=3001(Resource temporarily unavailable)
[2015-06-06 20:56:05.757][error][23507][109][11] hls codec demux video failed. ret=3001(Resource temporarily unavailable)
[2015-06-06 20:56:05.757][warn][23507][109][11] hls process video message failed, ignore and disable hls. ret=3001

(gdb) x /4xb data
0x8d04a0: 0xaf 0x00 0x11 0x90

The first byte is 0xAF, which means the Frame Type is 0x0a, which is 10 in decimal. The valid range for Frame Type should be from 1 to 5. The CodecID is 0x0f, and the valid range for CodecID should be from 2 to 7.

TRANS_BY_GPT3

The server can handle this type of error and can only directly ignore packets with this header error.

TRANS_BY_GPT3