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

flv_write_packet实现 #6

Open
wxl-liam opened this issue Oct 16, 2023 · 1 comment
Open

flv_write_packet实现 #6

wxl-liam opened this issue Oct 16, 2023 · 1 comment

Comments

@wxl-liam
Copy link

flv_write_packet里
if (par->codec_id == AV_CODEC_ID_VP6F || par->codec_id == AV_CODEC_ID_VP6A ||
par->codec_id == AV_CODEC_ID_VP6 || par->codec_id == AV_CODEC_ID_AAC ||
par->codec_id == AV_CODEC_ID_OPUS)
flags_size = 2;
else if (par->codec_id == AV_CODEC_ID_H264 || par->codec_id == AV_CODEC_ID_MPEG4 ||
par->codec_id == AV_CODEC_ID_H265 || par->codec_id == AV_CODEC_ID_VP8 ||
par->codec_id == AV_CODEC_ID_VP9) {
if (is_flv_extern_header_enable(flv, par->codec_id) && (pkt->dts != pkt->pts)) {
flags_size = 8;
} else {
flags_size = 5;
}
}
else
flags_size = 1;

如果是扩展rtmp头,flags_size是8为什么不是5

@runner365
Copy link
Owner

enhance-rtmp的格式解析,详情请看https://mp.weixin.qq.com/s/xqfILkFg1Gmk8Be5VhsW3w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants