I asked Claude to to create a sample from BluRay:
## The sample itself
The trick is to keep every byte and every timestamp of the region of interest exactly as the
disc has them, and blank the rest. A **sparse file of the original length** does that: the
`.clpi` seek tables still point at the right offsets, so the playlist opens and seeks
normally, and the file costs only the bytes kept - both on disk and in a compressed archive.
Copy `BDMV` off the disc (or mount the ISO), then, from the copy:
```
cd BDMV/STREAM
CLIP_SECONDS=3048 # length of play item 0 - both 00037 and 00069 cover it
FROM=500 # seconds into the clip to start keeping - a little before the glitch
KEEP=60 # seconds to keep
for f in *.m2ts; do
size=$(stat -c%s "$f")
mv "$f" "$f.orig"
truncate -s "$size" "$f" # sparse: same length, all zeros
case "$f" in
00037.m2ts|00069.m2ts)
start=$(( size * FROM / CLIP_SECONDS / 192 * 192 )) # 192 = one M2TS packet
len=$(( size * KEEP / CLIP_SECONDS / 192 * 192 ))
dd if="$f.orig" of="$f" bs=192 skip=$((start/192)) seek=$((start/192)) \
count=$((len/192)) conv=notrunc status=none
;;
esac
rm "$f.orig"
done
```
Display More
Every other stream on the disc becomes an empty file of the right size, so nothing else has
to be edited: `index.bdmv`, `MovieObject.bdmv`, the playlists and the clip info files all stay
as they are, and the disc still opens, lists its playlists and seeks.
The byte offset is worked out by proportion rather than from the seek table, which is only
approximate on a variable bitrate stream - hence starting well before the glitch and keeping
a generous minute. Playback will begin at the first I-frame after the cut and the demuxer
pairs the two views by timestamp, so an approximate start does no harm.
Then pack it in a way that keeps the holes:
```
cd ../..
tar --sparse -cf - BDMV | zstd -19 -T0 -o drive-angry-sample.tar.zst
```
That should come out at roughly the size of the two 60 second windows.
## If that is too much trouble
Ask instead for `BDMV/PLAYLIST/00100.mpls`, `BDMV/CLIPINF/00037.clpi` and
`BDMV/CLIPINF/00069.clpi` (a few hundred KB in total) plus the exact time. Those settle what
the playlist and the clips claim - which eye is the base view, where the dependent view is,
and what the seek tables say - and are worth having whatever else happens.