Manuscript Offprint
arXiv:2611.22996The Rhythm of Generated Video: Latent Chunking Leaves Periodic Traces in Compressed Bitstreams
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
Most AI-generated video detectors analyze decoded pixels and overlook how videos are produced. We show that causal video autoencoders leave an architecture-specific rhythm in compressed bitstreams: their temporal stride concentrates ”surprise” at latent-chunk boundaries, so rate–distortion optimized encoders allocate bits periodically. We observe four-frame pulses in CogVideoX and Wan2.2 and eight-frame pulses in LTX-Video, which are absent from similar camera footage. Passing camera footage through a generator’s autoencoder alone induces the pulse. A training-free peak-ratio statistic separates generated from camera video (AUC 0.84–0.94) and persists across tested quantization settings and H.264/H.265 encoding. Frame-size traces also identify four commercial generators, with 89.2%, 84.1%, and 83.0% accuracy under H.264, H.265, and AV1, beating the pixel-based UnivFD baseline (72.7–73.6%). Our results directly link generative architecture to measurable coding demand.
(a) Per-frame bits, x265 at constant QP 27, P-frames only
(b) Where in the chunk the extra bits fall
Figure 1: A standard rate-distortion optimizing encoder spends its bits on AI generated video in pulses. (a) Bits per frame, divided by each clip’s mean, for camera clips and for image-to-video clips generated from their first frames. The pulse comes every fourth frame for CogVideoX and Wan2.2 and every eighth for LTX-Video, the temporal strides of their autoencoders; grey lines mark the predicted latent-chunk starts . Camera footage at its native frame rate has no pulse. (b) The same bits, detrended and averaged by frame residue over P-frames 6–45: the stride-4 models put their excess on the chunk-start residue.
1 Introduction
Text-to-video and image-to-video generators now produce clips that are hard to tell from camera footage by eye [13, 3, 22, 21]. Much work detects AI-generated images, and increasingly video, from decoded pixels [24, 15, 23]. Far less links detection to the generative process itself, perhaps because a delivered video is shaped not only by the generator but also by a video encoder, a system many vision researchers rarely look inside. This paper follows a generated video through both.
Nearly all current generators are latent generators: a diffusion or flow model samples a compact latent video, and a video autoencoder decodes it to pixels [29, 21, 12]. To compress time, these autoencoders are causal 3-D networks with a fixed temporal stride : the first frame is decoded alone, and every later latent frame is decoded into pixel frames. Call the part of a frame that cannot be predicted from its past its surprise. In camera footage, surprise arrives continuously, at roughly the same rate in every frame. We propose that in a latent video it can enter only where a new latent frame enters, once every frames, since the frames in between are decoded from the same latent. Generated video should then carry a surprise rhythm with period , locked in phase to the latent-chunk grid (Fig. 2). The stride is an established architectural fact; the rhythm is the mechanism we propose and test.
The second half of the pipeline is a conventional video encoder. Codecs such as H.264/AVC [25], HEVC [20] and AV1 predict each frame from frames already coded and are rate–distortion (RD) optimized [19]: they spend bits only on what their temporal prediction cannot anticipate, that is, on surprise (Fig. 3). The bits an encoder spends on each frame, readable from the bitstream without decoding, should therefore trace the generator’s rhythm. Figure 1 shows that they do. Re-encoded under identical settings, clips from CogVideoX [29] and Wan2.2 [21] (stride 4) pulse every fourth frame and clips from LTX-Video [12] (stride 8) every eighth, while content-matched camera clips do not pulse; a training-free peak ratio separates them at an AUC of 0.84–0.94.
We tell the story in three steps. First, the pattern originates in the latent representation: the pulse frequency moves with the stride, its phase follows the chunk grid for the stride-4 models, and passing camera clips through a generator’s autoencoder alone creates it (Secs. 3 and 6). Second, it survives video encoding: in both H.264 and H.265, and from quantization parameter (QP) 22 to 37 (AUC 0.92 to 0.80) (Secs. 4 and 6). Third, its persistence has limits we state plainly: delivery-style encodes with rate control and B-frames erase the per-frame pulse in 14 of 15 tested cases, although x265 still places its reference frames on the stride-4 grid.
The traces are simple to read (Sec. 5). We divide each frame’s size by the clip’s mean, giving frame-size ratios, and feed them to a logistic regression or to a small transformer with 26K parameters. We evaluate on DeepAction [4], 2,605 clips of human actions from camera footage and six generators, and on a self-collected Frontier dataset of four commercial generators (Grok, HeyGen, MiniMax, Wan) on 40 shared prompts, with 160, 159 and 155 clips re-encoded in H.264, H.265 and AV1. On Frontier, where all generators share frame size and length, the logistic regression identifies the generator at 89.2%, 84.1% and 83.0% in H.264, H.265 and AV1, and the transformer at 80.6% and 78.4% in H.264 and H.265 (chance 25%); on the same clips and task, the pixel-based UnivFD detector [15] reaches 72.7%, 73.6% and 73.4%, so bitstream traces outperform it by 10–17 points. The advantage is specific to this generator-identification task: for camera versus generated video on DeepAction with size and length controlled, UnivFD remains stronger (90.5% vs. 69.9–74.1% balanced accuracy on 16-frame crops, known generators), while gradient-boosted trees on bit statistics reach 88.8% on 192-frame clips. On DeepAction we equalize frame size and clip length throughout, since its sources differ in file format, and a classifier that works need not use the rhythm, which we test with ablations and attributions (Secs. 6 and 6).
Our contributions are two:
- Linking temporal compression in video generation to a detectable trace. To our knowledge, we are the first to tie a video generator’s temporal stride to a measurable trace, as prior work did for spatial up-sampling and autoencoders in images [10, 9, 17].
- A decoding-free method that reads the rhythm directly from the encoded bitstream. CoDe takes frame and row sizes from the bitstream without reconstructing pixels and identifies four frontier commercial generators at 83.0–89.2%, against 72.7–73.6% for the pixel-based UnivFD
AI-generated image and video detection.
CNN-generated images carry traces that a classifier trained on one generator can detect in others [24], and frequency analyses attribute many of them to up-sampling layers [10, 9]. Large pretrained features generalize better to unseen generators [15], diffusion images leave weaker traces [8], and the reconstruction error of a latent model’s autoencoder exposes images it generated [17]. B-Free [11] removes content, format and resize biases one at a time; we adopt the same discipline for video (Sec. 6). For video, synthetic-image detectors fail on synthetic video, compression is not the main reason, and video generators leave traces a learned detector finds even after H.264 re-compression [23]. Spatio-temporal detectors trained on GenVideo [7] and training-free detectors that model the likelihood of real video [2] extend this line. All of these operate on decoded pixels; we instead analyze how a video encoder allocates its bits, read from the bitstream without reconstructing pixels.
Latent video generators and temporal stride.
CogVideoX [29] and Wan [21] use causal 3-D autoencoders with temporal stride , in which the first frame is encoded alone and every later latent frame summarizes four pixel frames; LTX-Video [12] compresses time by . The stride is an architectural constant, shared by every clip a model produces, whatever its content or sampler. Reconstruction by a latent model’s autoencoder already exposes generated images [17]; we study the effect of the autoencoder’s temporal structure on the generated video, and use the resulting rhythm for classification.
Video coding and rate–distortion optimization.
Hybrid codecs such as H.264/AVC [25] and HEVC [20] predict each block from the same frame (intra) or from reference frames (inter) and code the residual. Frames form groups of pictures (GOPs) that begin with an intra-coded I-frame, followed by predicted P- and B-frames. For each block the encoder minimizes [19], with set by the quantization parameter (QP). The resulting allocation is an operational estimate of the content’s rate–distortion function [18] as seen through the encoder’s predictors, and when frames depend on each other the optimal allocation favors heavily referenced frames [16]. Rate control (constant QP, constant rate factor (CRF), target bitrate), adaptive quantization and MB-tree then move bits in space and time, which is why the encoder and its settings are part of our measurement. Holding these settings fixed (constant QP, one I-frame followed by P-frames, adaptive tools off) removes the encoder’s own patterns, so the bit allocation that remains can be studied as a property of the content (Sec. 6).
Compressed-domain analysis.
Motion vectors and residuals support action recognition without full decoding [26], and entropy-based compression statistics were recently shown to form a rich and highly efficient spatial–temporal representation for video understanding [1]. These works recognize what a video shows. Closest to us, codec motion-vector statistics have been used to rate the temporal realism of generated video [5]; that study reports oscillations in per-frame averages but attributes them to interpolation and resamples clips to a common length, which would blur a native stride rhythm. The same group showed that frame-type counts identify which corpus a clip came from [6], the confound our protocol is built to remove. We ask what the encoder’s bit allocation reveals about how a video was made; to our knowledge, a stride-locked rhythm in encoder bits has not been reported before.
3 Generator-Induced Temporal Rhythms
Latent video generation.
Nearly all current video generators work in a latent space. A sampler, a diffusion or flow-matching transformer, turns noise into a short sequence of latent frames . A causal 3-D variational autoencoder (VAE) then decodes them to pixels. Its decoder is causal (it uses only to produce chunk ) and has a temporal stride : decodes to frame alone, and each later decodes to a chunk of frames, (Fig. 2). The stride is for CogVideoX [29] and Wan2.2 [21] and for LTX-Video [12].
Generated video (causal VAE, stride )z_{0}$$z_{1}$$z_{2}$$z_{3}latentframes2346781011120159decodedframes surpriseone pulse per chunkCamera video (no chunking)frames surprisea little surprise in every frame
Figure 2: A causal video autoencoder lets new information in once per chunk. The decoder expands into frame 0 and each later into frames; only frame 0 and the first frame of each chunk (dark; ) carry much that the past cannot predict. Camera footage carries surprise at a roughly constant rate.
In an autoencoder, surprise enters once per chunk.
The surprise of a frame is the part of it that cannot be predicted from its past. Formally, for a video it is the conditional entropy . In camera footage the scene and the sensor change a little in every frame, so is roughly constant in .
We propose that in a latent video, new information can enter only with a new latent frame. The later frames of a chunk are decoded from the same as its first, so most of the chunk’s surprise should sit on its first frame:
Under this model the surprise is periodic in , and its phase is fixed by the chunk grid, not by the content; Sec. 6 tests both predictions.
Equation 1 makes two testable predictions that can be checked separately. Stride: the period moves with , a dose-response test between stride-4 and stride-8 generators. Phase: the pulse is locked to the chunk grid, so removing the first frames of a clip rotates it by . The model is idealized: temporal up-sampling that mixes neighbouring latents can blur the phase, and LTX-Video’s phase is only partly locked (Sec. 6).
The sources then form a family: camera video is the member with no chunking, . Generators with stride 4 and stride 8 are two further members. Stride and phase index the family, much as the pooling axis indexes normalization layers [27].
4 Encoder-Induced Bit Allocation Rhythms
How an encoder spends bits.
A modern encoder such as HEVC [20] codes a video as a group of pictures (GOP). An intra (I) frame is coded on its own, like a still image. A predicted (P) frame is coded as a prediction from an earlier, already decoded frame (motion-compensated copying of blocks) plus a residual, the part the prediction got wrong. A bidirectional (B) frame may also predict from a later frame. The residual is quantized with a step size set by the quantization parameter (QP; larger means coarser) and entropy-coded. The encoder is rate–distortion (RD) optimized: for each block it chooses the mode, motion and quantized residual that minimize , distortion plus times rate [19]. At a fixed QP, what a P-frame costs is therefore what its predictor could not anticipate, i.e. its surprise (Fig. 3).
framex_{t}$$-predict fromprevious framequantize atfixed QP, codebits forframe : residual surprisebits per frame generatedcameraspectrum of b_{t}$$1/s$$2/speak (generated)flat (camera)
Figure 3: At fixed QP, a P-frame’s bits measure its surprise. The encoder predicts each frame from the previous one and pays only for the residual. On generated video the bits per frame pulse once per chunk and their spectrum peaks at , with harmonics; on camera video they are flat. Measured: median peak ratio 27–29 for the stride-4 generators, 1.1–1.4 for camera clips (Tab. 1).
Coding demand.
HEVC splits each frame into coding tree units (CTUs), square blocks of up to pixels. We record the bits the encoder spends on each block of frame , , counting mode, motion and residual syntax, and call this allocation the video’s coding demand. We use it at three resolutions, , and , per frame, per row of blocks, and per block:
In a P-frame at fixed QP, is an operational estimate of as seen through the encoder’s predictors, so coding demand measures surprise. We divide by the clip mean, , to keep only the shape of the allocation.
Read without decoding.
None of these quantities requires reconstructing a pixel. The frame sizes are the packet sizes in the container. With HEVC wavefront parallel processing (WPP), each row of CTUs is coded as its own substream so that rows can be decoded in parallel, and the slice header lists where each substream starts; the differences between these entry points give .
5 A Decoding-Free Approach to Reading the Rhythm Directly from the Bitstream
Our method, CoDe, reads the rhythm directly from the encoded bitstream and never reconstructs a pixel (Fig. 4). A clip is coded at constant QP with one I-frame followed only by P-frames (Sec. 6); a delivered file is first re-encoded. A parser reads the packet sizes and the WPP entry points without decoding a single pixel. The signals are normalized per clip and passed to one of three detectors.
bitstream(HEVC)parse packet& row sizes(no decoding)normalizeper clip, (b) transformer(a) & phase(c) treesreal / generatedor generator ID
Figure 4: CoDe reads frame and row sizes from the bitstream and never decodes pixels. The three detectors share the same normalized coding-demand signals: (a) needs no training, (b) and (c) are learned.
(a) Peak ratio and phase, training-free.
In words, the peak ratio asks how far the spectrum of the bits stands out at the stride frequency compared with nearby frequencies. We take P-frames 6–45 (skipping the transient after the I-frame), detrend linearly, and compute its power spectrum over these frames. For a candidate stride ,
the power at over the median of its eight neighbouring bins, harmonics excluded. A flat spectrum gives . The phase is the residue that receives the most bits; Eq. 1 predicts residue 1. We score real versus generated by the area under the ROC curve (AUC), the probability that a generated clip outscores a camera clip.
(b) A lightweight transformer on row bytes.
The row sequence is cut into 16-frame patches per row. A linear layer embeds each patch, and a sinusoidal row position is added. Rows are pooled by mean and max, and a 2-layer transformer (width 32, 4 heads, feed-forward 64) with a learned temporal position runs over the patches, followed by mean pooling and a linear head. It has 26,247 parameters for seven classes (26,148 for four), of which 6,016 are the temporal position table; values are z-scored over the training set.
(c) Gradient-boosted trees on bit statistics.
From and , normalized per frame type, we compute about 50 statistics: quantiles and moments, band powers of the spectrum, , and phase, temporal autocorrelation, and the spatial concentration of the rows. They are fed to gradient-boosted decision trees (GBDT) [14], an ensemble of small trees fitted one after another to the remaining error.
6 Experiments
Data.
Throughout, is the peak ratio of the per-frame bit spectrum at frequency for stride (Sec. 5), and AUC the area under the ROC curve for camera vs. generated clips. The stride corpus isolates generation. It has 20 camera clips of natural scenes from the Xiph derf 1080p collection [28] and, for each, an image-to-video clip generated from its first frame by CogVideoX-5B-I2V [29] (, 30 steps), Wan2.2-TI2V-5B [21] (, 50 steps) and LTX-Video [12] (, 50 steps), all 49 frames, seed 0. Each generated clip has a content-matched camera reference: the first 49 frames of its source at the native frame rate, scaled and cropped to the generator’s resolution, with no frame dropped. Clips are encoded from lossless frames by x265 and x264 at a constant quantization parameter (QP), with one I-frame followed only by P-frames and with adaptive quantization, MB-tree and scene-cut detection off, so that the encoder adds no rhythm of its own. The self-collected Frontier set has clips of four commercial generators (Grok, HeyGen, MiniMax, Wan) for 40 shared prompts, re-encoded at and 192 frames by x264 (constant QP 23), x265 (constant QP 28, wavefront parallel processing (WPP), 8 rows) and an AV1 encoder, all with keyframes every 16 frames; there is no camera class, and only Wan differs in format (30 instead of 24 fps). AV1 uses libaom’s real-time mode, because its good-quality mode imposes a 4/8/16-frame cadence even on camera clips. DeepAction [4] has 2,605 clips of human actions from Pexels (camera) and six generators, re-encoded by x265 with WPP at constant QP 28, keyframes every 16 frames and no B-frames. With WPP, x265 also exposes the bytes of each row of coding blocks. All splits are prompt-grouped: no prompt appears in both training and test data.
The rhythm exists and differs by family.
| Median | Share of clips | ||||
|---|---|---|---|---|---|
| Generator | AUC | ||||
| CogVideoX | 4 | 27.3 / 1.4 | 0.80 / 0.25 | 0.65 / 0.05 | 0.84 |
| Wan2.2 | 4 | 29.0 / 1.1 | 0.85 / 0.15 | 0.65 / 0.00 | 0.94 |
| LTX-Video | 8 | 6.1 / 1.1 | 0.75 / 0.10 | 0.40 / 0.00 | 0.89 |
Table 1: Generated clips pulse at their own stride; camera clips do not. x265, QP 27. Pairs are generated / camera: 20 generated clips per row vs. their 20 content- and resolution-matched camera references. : peak ratio of the bit spectrum at the generator’s own stride.
Figure 5: The peak follows the stride. Mean ( standard error, s.e.) power spectrum of normalized, detrended per-frame bits, x265 QP 27, P-frames 6–45. Dashed: camera clips frame-dropped to the generator’s rate, which acquire a spurious peak at ; all camera references in this paper are therefore used at their native rate.
Does generated video carry a bit rhythm at the autoencoder’s stride, and camera video not? Both stride-4 generators peak at exactly , with a harmonic at , and the stride-8 generator at exactly ; camera clips at their native rate show no peak (Fig. 5). The median peak ratio at the generator’s own stride is 27–29 for CogVideoX and Wan2.2 and 6.1 for LTX-Video, against 1.1–1.4 for their camera references (Tab. 1). The AUC is 0.84–0.94 with x265 and 0.85–0.93 with x264 (CogVideoX, Wan2.2, LTX-Video: 0.85, 0.90, 0.93). Generated video does not have a flatter bit spectrum than camera video; it concentrates the temporal variation of its bits at the stride frequency. Doubling the stride moves the peak from to : LTX-Video has but , whereas the stride-4 generators have of 0.6–1.4. The scenes are shared across generators, so only the stride explains the shift. If the rhythm comes from latent chunks, removing the first frames must rotate the peak residue by . For Wan2.2, 85–95% of encodes match the predicted residue across and time reversal; for CogVideoX, 58–75% (chance 25%). LTX-Video is periodic at , but only 23–58% of its encodes match (chance 12.5%), and its excess spreads over the first half of the chunk (Fig. 1b). The phase prediction thus holds for stride 4 and fails for LTX-Video, whose decoder evidently does not place each chunk’s new content on its first frame. In time, the mean bits on frames exceed those on the other frames by 25% of the clip mean for Wan2.2, 12% for CogVideoX and 8% for LTX-Video, against 0–1% for camera clips.
The rhythm is amplified by the encoder.
The same statistic on luma frame-difference energy, with no encoder, finds the peak in 70% of Wan2.2, 45% of CogVideoX and 40% of LTX-Video clips (camera: 5%; AUC 0.88, 0.73, 0.75), with median peak ratios of 2.1–4.8. The rhythm is thus in the pixel dynamics, and the encoder amplifies it three- to twelve-fold, as expected when the chunk-start frame is referenced by the rest of its chunk.
The autoencoder is the culprit.
| Autoencoder | Median | AUC [95% CI] | |
|---|---|---|---|
| CogVideoX | 4 | 87.0 / 1.4 | 0.99 [0.96, 1.00] |
| Wan2.2 | 4 | 12.9 / 1.1 | 0.86 [0.72, 0.96] |
| LTX-Video | 8 | 10.4 / 1.1 | 0.86 [0.74, 0.96] |
Table 2: An autoencoder round trip alone puts the rhythm into camera clips. x265 QP 27, 20 clips, no frames dropped (). Median : round trip / original. CI: bootstrap confidence interval. Median PSNR of the round trip: 30.8, 31.4 and 27.7 dB.
Does the autoencoder alone, with no diffusion sampler, create the rhythm? We pass each camera clip through each generator’s autoencoder (official weights; encode, take the latent mode, decode) and encode the round-trip clip exactly like the original; shifts drop leading frames before the round trip. The decision rule was registered before any round-trip data existed: median , AUC against the originals, and a phase locked to one residue at every for at least 50% of clips. All three autoencoders create the rhythm (Tab. 2). CogVideoX’s raises the median peak ratio from 1.4 to 87.0 (AUC 0.99); Wan2.2’s and LTX-Video’s reach 12.9 and 10.4. The modal residue is for all three at every shift, held by 75% of CogVideoX clips and 60–65% of Wan2.2 clips, but only 30–50% of LTX-Video clips, so LTX-Video is only partially supported. x264 agrees (AUC 0.81–0.995). The autoencoder is therefore sufficient to produce the rhythm, without the sampler.
The rhythm propagates into the encoded video bitstream.
| Condition | AUC |
|---|---|
| Quantization: constant QP 22 / 27 / 32 / 37 | |
| x265 | 0.92 / 0.89 / 0.85 / 0.81 |
| x264 | 0.92 / 0.89 / 0.82 / 0.80 |
| Edits of generated clips† (unedited: 0.72–0.90) | |
| Temporal smoothing of every frame | 0.70–0.93 |
| Blending chunk-start frames with neighbours | 0.93–0.99 |
| Within each motion tercile, | 0.83–0.98 |
| Near-static tercile, LTX-Video | 0.46 |
| Grain and denoising‡ (clean: 0.80–0.99) | |
| Gaussian ( 2, 4, 8) or film grain, | 0.91–0.99 |
| Gaussian 2, 4, LTX-Video | 0.80–0.81 |
| Gaussian 8 / film grain, LTX-Video | 0.62 / 0.64 |
| Generated vs. denoised camera (3 filters) | 0.80–0.99 |
Table 3: The rhythm propagates into the encoded video bitstream and mostly survives quantization, edits and grain. Training-free detector (), stride corpus, camera vs. generated, 20 vs. 20 clips per generator. Quantization: mean over the three generators; other rows: range over generators, x265 QP 27 unless stated. †,‡: two regenerations of the corpus, with their own clean AUC; motion terciles have 3–10 clips per class. Learned detectors on this corpus: Tab. 4.
| Bitstream (ours) | Pixels | |||
|---|---|---|---|---|
| Condition | GBDT | Transf. | UnivFD | |
| Wan2.2 | ||||
| QP 27 | 0.935 | 0.960 | 0.895 | 0.540 |
| QP 37 | 0.902 | 0.858 | 0.810 | 0.487 |
| Smoothing | 0.858 | 0.848 | 0.828 | 0.535 |
| Chunk-start blend | 0.963 | 0.978 | 0.818 | 0.545 |
| Grain 8 | 0.910 | 0.877 | 0.378 | 0.340 |
| LTX-Video | ||||
| QP 27 | 0.802 | 0.960 | 0.755 | 0.677 |
| QP 37 | 0.750 | 0.907 | 0.698 | 0.637 |
| Smoothing | 0.815 | 0.968 | 0.795 | 0.703 |
| Chunk-start blend | 0.985 | 0.953 | 0.703 | 0.677 |
| Grain 8 | 0.623 | 0.902 | 0.400 | 0.645 |
Table 4: On the stride clips, bitstream detectors beat the pixel detector: the GBDT reaches AUC 0.85–0.98 where UnivFD sits at 0.34–0.70. Camera vs. generated, 20 vs. 20 clips, x265 QP 27 unless stated; learned detectors trained on clean clips and tested on the edited ones, grouped 5-fold3 by source clip. 95% group-bootstrap CI widths at QP 27: 0.10–0.18 (Wan2.2), 0.11–0.29 (LTX-Video). LR on normalized / raw bits at QP 27: 0.863 / 0.955 (Wan2.2), 0.983 normalized (LTX-Video). CogVideoX’s learned-detector run was incomplete at submission.
Which processing keeps the rhythm? Tab. 3 applies the training-free detector () to the stride corpus. On Wan2.2 and LTX-Video, the best bitstream detector beats UnivFD on every row (Tab. 4); the Transformer is weaker and collapses under grain (0.38–0.40). UnivFD is near chance on Wan2.2 because these are image-to-video clips started from the camera clip’s own first frame at matched resolution.
The rhythm mostly survives through quantization edits and grain perturbations.
The AUC falls from 0.92 at QP 22 to 0.80–0.81 at QP 37, with x264 and x265 within 0.04 at every QP. Blending the chunk-start frames with their neighbours does not hide the rhythm but adds to it (0.93–0.99), because editing every -th frame is itself a period- operation. Grain moves the stride-4 AUC by at most 0.07. LTX-Video is the fragile family: its rhythm needs motion (0.46 on near-static clips) and is largely removed by strong () or film grain (0.62, 0.64). Denoising camera clips creates no peak (x265: medians ); under x264, 35% of denoised camera clips exceed 3 in 3 of 9 cells, formally failing our 30% bound, with clean camera already at 25–30%.
Classification with format controlled.
Can a classifier trained on coding demand tell generators apart? We train the two detectors of Sec. 5, a small Transformer on per-frame (or per-row) bits and gradient-boosted decision trees (GBDT), and two simple models on per-frame bits, a logistic regression (LR) and a two-layer perceptron (MLP, 32 hidden units), and compare them with UnivFD [15] on decoded pixels and a size probe, a logistic regression on frame widthheight alone.
| Detector | H.264 | H.265 | AV1 |
|---|---|---|---|
| Same codec | |||
| Bitstream (ours) | |||
| Transformer, frame/block bits | 80.6 | 78.4/68.4 | 60.6/59.9 |
| GBDT, frame/block bits | 87.9 | 83.1/82.0 | 60.0/65.0 |
| LR, normalized/raw bits | 89.2/86.5 | 84.1/83.7 | 83.0/82.4 |
| MLP, normalized/raw bits | 85.4/82.9 | 81.5/81.6 | 77.6/76.2 |
| Pixels | |||
| UnivFD [15] | 72.7 | 73.6 | 73.4 |
| Format only | |||
| Size probe (wh) | 25.0 | 25.2 | 25.4 |
| Across codecs (column: test codec) | |||
| Bitstream (ours) | |||
| Transformer | 70.8 | 44.8 | 25–49 |
| GBDT | 83.3 | 84.7 | 25–35 |
| Pixels | |||
| UnivFD | 70.8–73.0 in every direction |
Table 5: Bitstream detectors identify the generator at equal size and length, and a linear model on per-frame bits beats the pixel baseline by 10–17 points. Frontier set, 4 commercial generators, 4-way accuracy (%, chance 25), mean over prompt-grouped folds (s.d. 3.9–7.5 for LR, 5.1–6.5 for MLP, 5.3–7.5 for UnivFD). Block bits: per WPP row (H.265) or superblock (AV1). Transformer: 150 epochs. LR, MLP: per-frame bits normalized by the clip mean, or raw. UnivFD: CLIP ViT-L/14 probe on 16 decoded frames. Size probe: all files are . Across codecs: trained on the other H.26x codec; AV1 column: all directions to or from AV1.
Rhythm remains on frontier models.
All four generators of the Frontier set share frame size and length, so format cannot help (Tab. 5). A logistic regression on per-frame bits normalized by the clip mean identifies the generator at 89.2%, 84.1% and 83.0% (H.264, H.265, AV1), at least as well as the Transformer and trees and 9.6–16.5 points above UnivFD on decoded frames (72.7–73.6%); the size probe is at chance (25.0–25.4%). The trees transfer between H.264 and H.265 at 83–85%, but on AV1 they reach only 60–65% and fail to transfer to or from it (25–35%); UnivFD transfers at 70.8–73.0% in every direction. AV1 files carry 84 hidden reference frames per clip and the encoder’s own reference pyramid; since LR still reaches 83.0% on AV1, the drop of the Transformer and trees there is a failure of those models, not a lack of signal.
The classifier reads predicted frames.
Retrained with keyframe values interpolated away, the Transformer and trees lose only 0.4–1.9 points (79.2% and 87.5% in H.264, 76.6% and 81.6% in H.265), within the standard deviation (s.d.) across folds; keyframe sizes alone give 49–55%, and the four rhythm features ( at , , and phase) alone 52.6–54.8%. The accuracy thus comes from the statistics of predicted frames, of which the stride rhythm is one component. Post hoc, the strong peak here is Grok’s (median 16.0 / 16.8 in H.264 / H.265), not Wan’s (2.5 / 1.7; others 0.7–2.0). This is consistent with a stride-4 latent model behind Grok, whose architecture is unknown, and with Wan’s delivery encode having erased its pulse before our re-encode.
| Classes | |||
|---|---|---|---|
| Input | (chance) | Transformer | GBDT |
| Native | 7 (19.2) | 98.7 | 91.6§ |
| Crop, first 16 frames | 7 (19.2) | 65.6 | 61.7§ |
| Crop, first 48 frames | 5 (31.2) | 73.3 | 71.5 |
| Crop, first 192 frames | 3 (72.1) | 74.4 | 86.2 |
| camera vs. generated | 2 (50.0) | 51.1 | 88.8 |
Table 6: On DeepAction, source identification falls once frame size and clip length are equalized. Source identification, accuracy (%; chance: majority class). Native: original frame size and length. Crop: ; fewer classes: subsets of the sources (192 frames: 24–30 fps only); camera vs. generated is balanced. Transformer: 3 seeds, 70/15/15 split; §5-fold protocol of Tab. 7.
| Crop, | ||
|---|---|---|
| Detector | Native | 16 frames |
| Bitstream | ||
| CoDe, Transformer¶ | 94.5/75.6 | 74.1/70.0 |
| CoDe, GBDT | 94.9/87.0 | 69.9/67.3 |
| Motion vectors [26] | 84.9/84.4 | 71.4/68.8 |
| Pixels | ||
| UnivFD [15] | 93.9/86.4 | 90.5/85.9 |
| Format only | ||
| Size probe (wh) | 96.0/89.4 | 50.0/50.0 |
Table 7: Camera vs. generated on DeepAction: on 16-frame crops, where the size probe fails, the pixel baseline beats the bitstream detectors. Balanced accuracy (%), known / unseen generator, 5 prompt-grouped folds; unseen: mean over six held-out generators. ¶Two-head Transformer, 18,985 parameters. Motion vectors: gradient-boosted statistics; native reads the delivered H.264 files.
Baseline Comparison with a Pixel-Based AIGC Detector.
DeepAction’s sources differ in frame size and clip length, and accuracy drops once these are equalized (Tab. 6), so we compare detectors on crops of equal size and length. Natively, binary CoDe ties UnivFD [15] (94.9% vs. 93.9% known, 87.0% vs. 86.4% on held-out generators), but so does the size probe on widthheight alone (96.0% and 89.4%). On 16-frame crops, where the size probe falls to 50.0%, UnivFD keeps 90.5% and 85.9%, while CoDe reaches 69.9–74.1% and 67.3–70.0%, and motion-vector statistics [26] 71.4% and 68.8% (Tab. 7). With format controlled on DeepAction, pixels thus beat coding demand on 16-frame crops, unlike on the Frontier set (Tab. 5); the advantage of coding demand here is cost: parsing takes 0.31–0.37 s per clip vs. 3.9 s for UnivFD’s decode (H.264 input needs a s re-encode).
What the classifier picked up.
| , train / test | Rollout | ||
|---|---|---|---|
| Class | I-frame share | top residue mod 4 | I-frame share |
| Grok | 0.44 / 0.32 | 0 | 0.06 |
| HeyGen | 0.34 / 0.33 | 0 | 0.06 |
| MiniMax | 0.24 / 0.21 | 0 | 0.06 |
| Wan () | 0.50 / 0.57 | 0 (predicted: 1) | 0.06 |
| Uniform | 0.06 | — | 0.06 |
Table 8: Attributions follow the encoder’s keyframes, not the stride grid. Frontier set, H.265 WPP Transformer. IG: integrated gradients; rollout: attention rollout. I-frames: . Among the other frames, the share on residue 0 mod 4 is 0.21–0.24 (uniform 0.20).
Where in time does the trained classifier look? For the WPP Transformer trained on the H.265 Frontier set (21 training, 5 test clips per class) we compute integrated gradients (IG) and attention rollout on its 32-band192-frame input, sum over bands, and measure its share on the I-frames () and, among the other frames, on each residue mod 4. IG concentrates on keyframes: 21–57% of its mass falls on the 6% of frames that are I-frames (Tab. 8). Among the other frames there is no 4-frame grid (residue-0 share 0.21–0.24, uniform 0.20), and the top residue is 0 in every class, including Wan (predicted: 1). Attention rollout is temporally uniform. On DeepAction, IG on CogVideoX’s chunk-start frames is 0.200 (uniform 0.267), though they carry 5.9% more bytes. The attributions thus follow the encoder’s I-frame schedule, not the autoencoder’s grid, yet that intra-frame cost is not necessary: retrained on P-frames only, the detectors reach 76.6–87.5%, within 2 points of all frames. Retraining shows sufficiency, not use; a test-time ablation was not run.
Inside the frame: time versus space.
Is the rhythm carried by individual blocks of the frame, and does the autoencoder’s spatial compression leave a grid? Under registered rules we compute each block’s own for AV1 superblocks (libaom real-time mode, fixed quantizer) and x265 rows of coding blocks. The share of active superblocks with is 0.62, 0.60 and 0.31 for generated CogVideoX, Wan2.2 and LTX-Video, 0.60, 0.29 and 0.32 for round trips, and 0.11–0.13 for camera (noise floor ); x265 rows reach 1.0, 1.0 and 0.50. By the rule () the rhythm lives inside blocks for CogVideoX and generated Wan2.2, not for the Wan2.2 round trip or LTX-Video (clear only per row or frame), and is strongest in textured blocks (Spearman 0.59–0.61 with texture, 0.10–0.30 with motion). Decoded pixels show no stationary grid at the spatial factors , , (medians ; rule: 3), only a few percent of excess power (AUC 0.70–0.97, also after round trips); post hoc, LTX-Video has a horizontal-only line at (median PR 13.9 generated, 13.3 round trip, 1.0 camera). The temporal compression thus makes the rhythm, block by block; the spatial compression leaves at most a faint grid.
7 Conclusion
We reveal a previously unrecognized link between how AI videos are generated and how they are compressed. A latent video generator’s temporal autoencoder leaves an architectural fingerprint: a periodic rhythm in temporal surprise, determined by its latent stride and chunk boundaries. Conventional video encoders translate this hidden rhythm into measurable fluctuations in coding demand, exposing the generator’s internal structure directly in the compressed bitstream, without reconstructing a single pixel.
We trace this fingerprint to its source. A video’s period follows the autoencoder stride, its phase aligns with latent chunk boundaries, and an autoencoder round trip alone induces the rhythm in camera footage. The trace persists across codecs and quantization settings, although delivery-style encoding can erase the per-frame pulse. Beyond this specific rhythm, lightweight classifiers exploit coding-demand statistics to identify four commercial video generators with 83–89% accuracy, significantly outperforming pixel-based approach.
These findings establish a new connection between generative architecture and video coding and opens a decoding-free direction for studying and identifying synthetic video through the computational traces of its generation process.
8 LLM Usage Statement
LLMs were utilized for assistance and refining of author-produced content. OpenAI’s ChatGPT assisted in code generation, dataset preparation, and experiment implementation. Google’s AI powered search played a role in the discovery of related sources and editing of the references list. Google’s Gemini and OpenAI’s ChatGPT were also employed for the refinement of prose and LaTeX markup. All LLM generations underwent scrutiny by authors.
References
[1] Anonymous. Entropy-based compression finds rich and highly efficient spatial-temporal representation for video understanding. Under review, 2026.
[2] Omer Ben Hayun, Roy Betser, Meir Yossef Levi, Levi Kassel, and Guy Gilboa. Training-free detection of generated videos via spatial-temporal likelihoods. In CVPR, 2026.
[3] Andreas Blattmann, Tim Dockhorn, Sumith Kulal, Daniel Mendelevitch, Maciej Kilian, Dominik Lorenz, Yam Levi, Zion English, Vikram Voleti, Adam Letts, Varun Jampani, and Robin Rombach. Stable video diffusion: Scaling latent video diffusion models to large datasets. arXiv preprint arXiv:2311.15127, 2023.
[4] Matyas Bohacek and Hany Farid. Human action CLIPS: Detecting AI-generated human motion. arXiv preprint arXiv:2412.00526, 2024.
[5] Mert Onur Cakiroglu, Idil Bilge Altun, Zhihe Lu, Mehmet Dalkilic, and Hasan Kurban. Temporal realism evaluation of generated videos using compressed-domain motion vectors. arXiv preprint arXiv:2511.13897, 2025.
[6] Mert Onur Cakiroglu, Zhihe Lu, Mehmet Dalkilic, and Hasan Kurban. Where the real clips came from: Corpus identity in AI-generated video detection. arXiv preprint arXiv:2606.31004, 2026.
[7] Haoxing Chen, Yan Hong, Zizheng Huang, Zhuoer Xu, Zhangxuan Gu, Yaohui Li, Jun Lan, Huijia Zhu, Jianfu Zhang, Weiqiang Wang, and Huaxiong Li. DeMamba: AI-generated video detection on million-scale GenVideo benchmark. arXiv preprint arXiv:2405.19707, 2024.
[8] Riccardo Corvi, Davide Cozzolino, Giada Zingarini, Giovanni Poggi, Koki Nagano, and Luisa Verdoliva. On the detection of synthetic images generated by diffusion models. In ICASSP, 2023.
[9] Ricard Durall, Margret Keuper, and Janis Keuper. Watch your up-convolution: CNN based generative deep neural networks are failing to reproduce spectral distributions. In CVPR, 2020.
[10] Joel Frank, Thorsten Eisenhofer, Lea Schönherr, Asja Fischer, Dorothea Kolossa, and Thorsten Holz. Leveraging frequency analysis for deep fake image recognition. In Int. Conf. Mach. Learn., 2020.
[11] Fabrizio Guillaro, Giada Zingarini, Ben Usman, Avneesh Sud, Davide Cozzolino, and Luisa Verdoliva. A bias-free training paradigm for more general AI-generated image detection. In CVPR, pages 18685–18694, 2025.
[12] Yoav HaCohen, Nisan Chiprut, Benny Brazowski, Daniel Shalem, Dudu Moshe, Eitan Richardson, et al. LTX-Video: Realtime video latent diffusion. arXiv preprint arXiv:2501.00103, 2024.
[13] Jonathan Ho, Tim Salimans, Alexey Gritsenko, William Chan, Mohammad Norouzi, and David J. Fleet. Video diffusion models. In NeurIPS, 2022.
[14] Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. LightGBM: A highly efficient gradient boosting decision tree. In NeurIPS, 2017.
[15] Utkarsh Ojha, Yuheng Li, and Yong Jae Lee. Towards universal fake image detectors that generalize across generative models. In CVPR, 2023.
[16] Kannan Ramchandran, Antonio Ortega, and Martin Vetterli. Bit allocation for dependent quantization with applications to multiresolution and MPEG video coders. IEEE TIP, 3(5):533–545, 1994.
[17] Jonas Ricker, Denis Lukovnikov, and Asja Fischer. AEROBLADE: Training-free detection of latent diffusion images using autoencoder reconstruction error. In CVPR, pages 9130–9140, 2024.
[18] Claude E. Shannon. Coding theorems for a discrete source with a fidelity criterion. In IRE National Convention Record, 1959.
[19] Gary J. Sullivan and Thomas Wiegand. Rate-distortion optimization for video compression. IEEE Signal Processing Magazine, 15(6):74–90, 1998.
[20] Gary J. Sullivan, Jens-Rainer Ohm, Woo-Jin Han, and Thomas Wiegand. Overview of the high efficiency video coding (HEVC) standard. IEEE TCSVT, 22(12):1649–1668, 2012.
[21] Team Wan, Ang Wang, Baole Ai, Bin Wen, et al. Wan: Open and advanced large-scale video generative models. arXiv preprint arXiv:2503.20314, 2025.
[22] Tim Brooks and Bill Peebles and Connor Holmes and Will DePue and Yufei Guo and Li Jing and David Schnurr and Joe Taylor and Troy Luhman and Eric Luhman and Clarence Ng and Ricky Wang and Aditya Ramesh. Video generation models as world simulators. Technical report, https://openai.com/research/video-generation-models-as-world-simulators, 2024.
[23] Danial Samadi Vahdati, Tai D. Nguyen, Aref Azizpour, and Matthew C. Stamm. Beyond deepfake images: Detecting AI-generated videos. In CVPRW, pages 4397–4408, 2024.
[24] Sheng-Yu Wang, Oliver Wang, Richard Zhang, Andrew Owens, and Alexei A. Efros. CNN-generated images are surprisingly easy to spot… for now. In CVPR, 2020.
[25] Thomas Wiegand, Gary J. Sullivan, Gisle Bjøntegaard, and Ajay Luthra. Overview of the H.264/AVC video coding standard. IEEE TCSVT, 13(7):560–576, 2003.
[26] Chao-Yuan Wu, Manzil Zaheer, Hexiang Hu, R. Manmatha, Alexander J. Smola, and Philipp Krähenbühl. Compressed video action recognition. In CVPR, 2018.
[27] Yuxin Wu and Kaiming He. Group normalization. In ECCV, pages 3–19, 2018.
[28] Xiph.org. Xiph.org video test media [derf’s collection]. https://media.xiph.org/video/derf/, 2026. Accessed 2026-11.
[29] Zhuoyi Yang, Jiayan Teng, Wendi Zheng, Ming Ding, Shiyu Huang, Jiazheng Xu, et al. CogVideoX: Text-to-video diffusion models with an expert transformer. In ICLR, 2025.