Render the EU icon into deep-fake video
Problem/motivation
Measure 1.2.2(b) of the Code wants the icon at the beginning of a deep-fake video, at regular intervals where possible, and at least after interruptions, to reach late viewers and to survive screenshots and clipped fragments. Showing it throughout is encouraged. A player overlay is lost as soon as the file is downloaded or embedded elsewhere.
Proposed resolution
A render job for #66 (closed) that overlays the PNG icon (#58 (closed)) top-right with the FFmpeg overlay filter and an enable expression:
- Schedules: the first N seconds plus N seconds every M seconds (default 5 and 60), the whole video, or segments the editor gives for footage that is only partly manipulated.
- Icon size as a share of the frame height, computed from ffprobe.
- Audio copied as is,
-movflags +faststart. - MP4 tags:
commentwith the disclosure sentence, andai_digital_source_typewith the IPTC URI (-movflags use_metadata_tags). - A PNG overlay instead of
drawtext, so no libfreetype or font files are needed.
Tested with FFmpeg 4.4: the icon is present at 2 s and 62 s and absent at 30 s, and both tags are written.
ffmpeg -i in.mp4 -i ai_generated--white-480.png -filter_complex "[1:v]scale=212:-1[ic];[0:v][ic]overlay=W-w-32:32:enable='lt(t,5)+lt(mod(t,60),5)'[v]" -map "[v]" -map 0:a? -c:a copy -movflags +faststart+use_metadata_tags -metadata comment="AI-generated. This is synthetic media produced by AI." -metadata ai_digital_source_type="http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia" out.mp4Open question: where editors enter the segments, as a field on the media type or in the rendition settings per file.
Remaining tasks
- Overlay job with the three schedules
- Segment input
- MP4 tags
- Test with a short fixture video: icon present at 0 s and at 60 s, absent at 30 s
- Docs
User interface changes
Schedule settings, and a segment input for partly manipulated video.
API changes
None.
Data model changes
Segments need storing, depending on the open question.
Part of #56 (closed).