Skip to content

Add DCSS forensic mark payloads and real-time video encoder#1

Draft
Copilot wants to merge 5 commits into
masterfrom
copilot/refactor-vidstamp-for-dcss-requirements
Draft

Add DCSS forensic mark payloads and real-time video encoder#1
Copilot wants to merge 5 commits into
masterfrom
copilot/refactor-vidstamp-for-dcss-requirements

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 8, 2026

DCSS forensic marks require a 16-bit repeating 15-minute timer across 366 days and location/adapter bit payloads embedded in real time across consecutive frames. This update adds payload construction utilities and a real-time video embedding path to meet those constraints.

  • Forensic payload construction
    • Add a forensic_mark helper for timer index calculation, payload packing, and adapter-bit sizing aligned with the 56-bit ECC payload.
  • Real-time embedding workflow
    • Introduce encode_video.py to embed computed forensic payloads inline across frames with segment-based repetition and configurable output codec.
  • Usage documentation
    • Document DCSS encoding workflow, payload sizing rules, and example invocation in the README.

Example:

python encode_video.py \
  saved_models/stegastamp_pretrained \
  --video input.mp4 \
  --save_video output.avi \
  --location_id 12345 \
  --location_bits 20 \
  --adapter_bits 00000000000000000000 \
  --start_time 2026-02-08T04:00:00+00:00
Original prompt

将使vidstamp该项目改造成为符合DCI DCSS Forensic Mark要求的实时嵌入水印的程序,嵌入信息包括:

法证标记数据有效发票需要配方时间和位置信息,具体如下:
每 15 分钟(生成 4 个)生成一个计时器,每天 24 小时,每年 366 天,计时器每年重复一次。总共需要 35,136 个计时器,因此分配一个 16 位无符号数(65,536)。
位置(序列号)信息,分配19位(524,000个可能的位置/序列号)或20位(1,048,576个可能的位置/序列号)。
每五分钟的片段都必须包含所有有效的适配器位。
法证标记插入必须是实时的(即,在播放期限内)、内联过程,在相关的媒体块中执行,并且必须具有合理的计算过程。
嵌入时同时对连续的多帧进行嵌入。帮助我改造这个项目以满足DCSS的要求。


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits February 8, 2026 04:30
Co-authored-by: baronren <3402611+baronren@users.noreply.github.com>
Co-authored-by: baronren <3402611+baronren@users.noreply.github.com>
Co-authored-by: baronren <3402611+baronren@users.noreply.github.com>
Co-authored-by: baronren <3402611+baronren@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor vidstamp project to meet DCSS forensic mark requirements Add DCSS forensic mark payloads and real-time video encoder Feb 8, 2026
Copilot AI requested a review from baronren February 8, 2026 04:34
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

Successfully merging this pull request may close these issues.

2 participants