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

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

Closed
winlinvip opened this issue Jun 6, 2015 · 1 comment
Assignees
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@winlinvip
Copy link
Member

winlinvip commented Jun 6, 2015

[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

@winlinvip winlinvip added the Bug It might be a bug. label Jun 6, 2015
@winlinvip winlinvip added this to the srs 2.0 release milestone Jun 6, 2015
@winlinvip
Copy link
Member Author

winlinvip commented Jun 6, 2015

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

TRANS_BY_GPT3

@winlinvip winlinvip self-assigned this Aug 26, 2021
@winlinvip winlinvip changed the title 判断视频的头是否正确,丢弃破坏的包 Check if the header of the video is correct and discard any damaged packets. Jul 29, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

1 participant