feat(douyin): 原画画质优先抓取HEVC#1440
Open
SuperKenVery wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
抖音原画画质优先抓取 HEVC
🔍 描述(Description)
请描述这个PR做了什么/为什么这些更改是必要的:
hls_pull_url_map/flv_pull_url里通常只包含 H.264 清晰度流,但直播页 HTML 内的stream_data还可能包含一个无清晰度后缀的.flv原始流。.flv原始流的逻辑,并过滤only_audio=1的音频流。原画且成功提取到该原始流时,优先将其作为抖音flv_url使用;如果提取不到,则保持原有 H.264 流选择逻辑不变。scripts/debug_douyin_streams.py,用于调试抖音返回的清晰度、编码、stream_data、hls_pull_url_map、flv_pull_url和 HEVC 候选地址,便于后续排查编码选择问题。Closes #943 #947 #1353
📝 类型(Type of Change)
这个PR引入了哪种类型的更改?(请勾选所有适用的选项)
🏗️ 测试(Testing)
请描述您已经进行的测试:
.flv候选地址,例如:.../stream-<id>.flv。ffprobe验证该候选地址的视频流为hevc,音频流为aac。.ts样本验证文件内包含hevc视频流和aac音频流;macOS Quick Look 可能只播放音频,但ffprobe可正确识别视频流。如果适用,请提供测试更改的说明:
config.ini中保持抖音录制清晰度为原画。codec_name为hevc的视频流;如果未返回 HEVC 原始流,则自动回退到原有流选择逻辑。也可以使用调试脚本检查当前直播间返回的流信息:
📋 检查清单(Checklist)
在您创建这个PR之前,请确保以下所有框都被勾选,方法是在每个框中放置一个
x:CONTRIBUTING.md,已按现有代码风格和项目结构核对ffprobe验证原画自动优先尝试 HEVC注意: 这个PR在所有复选框被勾选之前不会被合并。
感谢您的贡献!