diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-06-30 15:35:01 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-30 15:35:01 +0200 |
| commit | 0f5c3761970cdf122da63a2454dfcce545ab357c (patch) | |
| tree | 3f050071c6b41c900dfba3e346c8216fc1b14593 /test-data | |
| parent | 3535c58b2104bc9efe377aadadf6ee8577137c0b (diff) | |
| download | mp4-0f5c3761970cdf122da63a2454dfcce545ab357c.tar.gz mp4-0f5c3761970cdf122da63a2454dfcce545ab357c.zip | |
track: add AV1 support, edit list parsing, and sync flag packing
Diffstat (limited to 'test-data')
| -rw-r--r-- | test-data/.gitignore | 1 | ||||
| -rwxr-xr-x | test-data/generate.sh | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test-data/.gitignore b/test-data/.gitignore new file mode 100644 index 0000000..2641667 --- /dev/null +++ b/test-data/.gitignore @@ -0,0 +1 @@ +*.mp4 diff --git a/test-data/generate.sh b/test-data/generate.sh new file mode 100755 index 0000000..7780b0f --- /dev/null +++ b/test-data/generate.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# Generates synthetic ISOBMFF files for benchmarking the track parser. Each file +# carries an H.264 video track and an AAC audio track. B-frames produce a ctts +# table and faststart places the moov box before mdat. +set -euo pipefail + +dir="$(cd "$(dirname "$0")" && pwd)" + +gen() { + local dur="$1" name="$2" + ffmpeg -y -loglevel error \ + -f lavfi -i "testsrc=duration=${dur}:size=640x480:rate=30" \ + -f lavfi -i "sine=frequency=440:duration=${dur}:sample_rate=48000" \ + -c:v libx264 -preset veryfast -pix_fmt yuv420p \ + -c:a aac -b:a 128k \ + -movflags +faststart \ + "${dir}/${name}" + echo "wrote ${name}" +} + +gen 10 h264-aac-10s.mp4 +gen 60 h264-aac-60s.mp4 |
