Files
MemRelay/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/Checkpoint 2026-10-10 07-14-53 UTC [61267fc6a2].md
T
memrelay d61d442d9a create: Checkpoint 2026-10-10 07:14:53 UTC [61267fc6a2]
MemRelay-Operation: checkpoint-save:ckpt-audio-remux-20261010
MemRelay-Resource: 5ed69308-922f-4988-a542-c7f55fb5a86f
2026-10-10 15:14:56 +08:00

28 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-10-10 07:14:53 UTC [61267fc6a2]
type: checkpoint
permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/checkpoint-2026-10-10-07-14-53-utc-61267fc6a2
stable_id: 5ed69308-922f-4988-a542-c7f55fb5a86f
scope: project
memory_type: checkpoint
project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: ckpt-audio-remux-20261010
created_at: '2026-10-10T07:14:53.831479+00:00'
updated_at: '2026-10-10T07:14:53.831479+00:00'
tags:
- audio
- packaging
- handoff
---
完成:无声 MP4 是因为只合成了 video.m3u8,没有合并 #EXT-X-MEDIA 音频。已改为下载音频分片并与视频一起合成;下载进度页增加「重新合成」,只读本地 source 目录,不访问账号接口。已打出 dist/RaptDrama-Download-Tools-windows-x64.zip(258.5 MB)。
原因:用户 VIP 已过期,文件在另一台电脑,要拿新程序按已有的 video.m3u8 和 playlist.m3u8 重新合成。
关键实现:expand_variant 跟随音频列表,音频文件名加 audio- 前缀,避免覆盖视频 init.mp4。convert_to_mp4 在有 audio.m3u8 时 -map 0:v:0 -map 1:a:0,否则保留视频分片自带的音轨。结果没有 Audio 流则不覆盖原 MP4。重新合成会用 playlist.m3u8 的音频地址、segments.json 推测的 .../audio/audio.m3u8,以及 master.url。
验证:tests/test_audio_remux.py 通过。用 ffmpeg 6.1.1 把分开的画面和声音列表合成后,结果同时有 h264 和 aac;只有画面时会拒绝覆盖。打包退出码 0,分发包内服务端只有 31 个 pyc、没有 py,字节码含 audio.m3u8、remux_saved、ensure_saved_audio,界面含「重新合成」。
问题:这台电脑没有用户那边的真实分片,没有对真实剧集跑过重新合成。CDN 签名过期后无法凭空补出音频。
下一步:用户把 zip 拷到另一台电脑,解压运行,把下载目录指到各部剧文件夹的上一层,点重新合成。
给下个会话:代码尚未提交、未推送。不要改窗口宽度 1080 和背景 #363636。不要在打包时重新下载 adb 或 WebView2。不要把 token 写进记忆。模拟器下次开机仍要删掉系统证书 c8750f0d.0 并重启框架,这次没做。