Files
MemRelay/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/Checkpoint 2026-10-23 17-29-26 UTC [761d4b2311].md
T
memrelay a95cdb70d0 create: Checkpoint 2026-10-23 17:29:26 UTC [761d4b2311]
MemRelay-Operation: checkpoint-save:ckpt-dramabox-decrypt-play-20261024
MemRelay-Resource: 2e9a8b94-6256-4ff6-893a-82814cf722f1
2026-10-24 01:29:29 +08:00

26 lines
2.1 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-23 17:29:26 UTC [761d4b2311]
type: checkpoint
permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/checkpoint-2026-10-23-17-29-26-utc-761d4b2311
stable_id: 2e9a8b94-6256-4ff6-893a-82814cf722f1
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-dramabox-decrypt-play-20261024
created_at: '2026-10-23T17:29:26.440347+00:00'
updated_at: '2026-10-23T17:29:26.440347+00:00'
tags:
- dramabox
- handoff
- playback
---
完成:DramaBox 阿里云 License 私有加密 MP4 已按播放器路径解开并接入播放、下载。解密后是标准 H.264 High 1080x1920 + AAC LC,HTML5 可播。测试剧 42000028209 第一集 cid 701724013:4635 个视频样本 NAL 全部有效,直接调 /api/dramabox/play/.../file 返回 200 video/mp4、30MB,有音轨;浏览器 video 读到 duration 185.43 秒并正在播。原因:CDN 上的 encrypt.mp4 是样本级 AES-ECB,原样转发 HTML5 只能看到时长黑屏。
关键实现:server/services/dramabox/private_mp4.py 解 keys/ilst 里的 AliyunPrivateKeyUri,KDF + AES-CBC 解封套,按 stsz/stsc/stco 对视频和音频样本 AES-128-ECB。play_file 整段缓冲解密并缓存 2 集;DramaBox 下载 prepare_file 解密后再 has_audio。
验证:tests/test_dramabox.py 通过(含合成加密片、下载回调、播放缓存、实盘加密文件)。现网 play 接口 200。ffmpeg 能解码出画面。
问题:桌面程序当前没在跑新 Python,用户需完全退出再打开才能在软件里播。未提交。
下一步:完全退出桌面程序后打开,进 DramaBox 播一集免费正片,确认不再黑屏。分类 120 页上限仍在。
给下个会话:不要提交 cache、session、dist、探针、APK、libdzst.so、LicenseKey、PEM。不要在聊天里打出 LicenseKey 或 AliyunPrivateKeyUri。不要换掉 RaptDrama PlayerPage。Python 改 uvicorn 没有 --reload。不要把第三方 HLS AES 博客当成本方案。加密样例在 Temp\dbx_enc.mp4。