• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Eyevinn / mp4ff
85%

Build:
DEFAULT BRANCH: master
Repo Added 01 Nov 2024 09:40PM UTC
Files 240
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • aac-asc-header
  • aac-main-and-asc-PR
  • adts-header-checks
  • av1-crypto-rap
  • av1-update
  • avc-bounds
  • avcc-encode-trailing-info
  • avcc-preserve-trailing-bytes
  • avs3
  • box-nesting-limit
  • chore-bump-min-go-1.18
  • chore-bump-min-go-1.19
  • chore/changelog-d
  • chore/changelog-union-merge
  • chore/codespell
  • chore/go-1.24-build-version
  • chore/prepare-v0.53.0
  • chore/prepare-v0.56.0
  • chore/prepare-v0.57.0
  • chore/prepare-v0.58.0
  • chore/prepare-v0.61.0
  • chore/remove-goreportcard-badge
  • ci/checkout-v7
  • codespell
  • codex/mp4ff-655-mandatory-track-children
  • colr-icc-decode
  • compressorname-length-clamp
  • dac4
  • decode-box-body-sr
  • defragment-core
  • defragment-hybrid
  • defragment-overlaps
  • docs-logo-svg
  • docs-readme-split
  • docs/benchmarks
  • docs/changelog-dec3-joc
  • docs/claude-md-history
  • docs/defragment-wording
  • docs/encoding-and-changelog
  • docs/fix-doc-comment-drift
  • docs/fix-misleading-doc-comments
  • docs/install-instructions
  • docs/mp4lens
  • docs/osc-badge-utm-2026-10-09
  • docs/readme-codec-table
  • docs/tfdt-relative-times
  • docs/trim-claude-md
  • elst-media-rate
  • esds-vocabulary
  • feat-aac-channel-config
  • feat-coll-box
  • feat-create-sei-nalu
  • feat-hevc-encrypt
  • feat-ivf
  • feat-lbli-sample-group
  • feat-lhvc-box
  • feat-linf-oinf-sample-groups
  • feat-mvhevc-builders
  • feat-mvhevc-cli
  • feat-trgr-track-group
  • feat-vexu-spatial-video
  • feat-vp-codec-sample-box
  • feat-vps-multilayer-extension
  • feat/alac-cookie
  • feat/av1-metadata-obu-cea608
  • feat/box-tree
  • feat/brands-check
  • feat/brands-defragmenter
  • feat/brands-general-type-box
  • feat/brands-generate
  • feat/caller-provided-memory
  • feat/clone-box
  • feat/discover-info-levels
  • feat/dolby-vision-dvh1-dvhe
  • feat/dref-resolver
  • feat/fragment-reset
  • feat/hevc-hdr-boxes
  • feat/mdat-payload
  • feat/motion-jpeg
  • feat/mov-decoder
  • feat/paint-model-subtitle-boxes
  • feat/piff
  • feat/pssh-widevine-playready
  • feat/quicktime
  • feat/quicktime-info-fields
  • feat/rsot-box
  • feat/saiz-v1-v2
  • feat/slice-header-into
  • feat/stream-read-mdat-data
  • feat/ttma-box
  • feat/vp09-cenc
  • feature-encryption-boxes
  • feature/exporttfhd
  • fix-32bit-bit-reads
  • fix-611-dataparts
  • fix-adts-frame-length
  • fix-adts-frequency-start-codes
  • fix-avcdecoderconfig
  • fix-bound-more-bitstream-counts
  • fix-boxseekreader-forward-seek
  • fix-co64-size-overflow
  • fix-container-children-bounds
  • fix-ftyp-styp-short-payload
  • fix-goreleaser-brew
  • fix-hdlr-reserved
  • fix-hevc-ps-dos
  • fix-hvcc-nalu-count
  • fix-interleaved-sidx-boxes
  • fix-mime-box
  • fix-senc-panic
  • fix-senc-robustness
  • fix-short-esds-issue-393
  • fix-sliceheader-spsid
  • fix-sps-num-ref-frames-overflow
  • fix-ssix-box
  • fix-stsc
  • fix-subs-box
  • fix-trailing-avc1-bytes
  • fix-typos
  • fix-vps-ols0-necessary-layers
  • fix/32bit-arch
  • fix/708-711-712
  • fix/annexb-trailing-zeros
  • fix/avc-deblock-offsets
  • fix/avc-hrd-cpb-cnt
  • fix/avc-inband-parameter-sets
  • fix/avc-param-set-ranges
  • fix/avc-parameter-sets-eof
  • fix/avc-pps-scaling-lists
  • fix/box-versions-above-1
  • fix/cenc-encrypt-conformance
  • fix/cenc-increment
  • fix/cmd-missing-boxes
  • fix/container-error-bounded
  • fix/container-size-underflow
  • fix/crop-stsc-first-chunk
  • fix/crop-tables
  • fix/crypto-missing-boxes
  • fix/databox-type-locale
  • fix/decode-missing-boxes
  • fix/decode-or-unknown-custom-reader
  • fix/decoders-exact-box-size
  • fix/dos-limits
  • fix/empty-trak-subtitle-header
  • fix/external-data-references
  • fix/extract-protect-avc3-hev1
  • fix/file-encodesw-mfra
  • fix/get-sample-data-indexing
  • fix/hevc-ctb-size
  • fix/hevc-multilayer-ext-sps
  • fix/hevc-slice-deblocking-inference
  • fix/issyncsampleflags
  • fix/lazy-decode-hardening
  • fix/leva-grouping-type
  • fix/mdat-mixed-data
  • fix/moov-decode-linear
  • fix/nalu-length-size-checks
  • fix/oob-panics
  • fix/prft-decode
  • fix/quicktime-meta-encodesw
  • fix/quicktime-mvhd-tkhd-mdhd
  • fix/quicktime-udta-terminator
  • fix/quicktime-visual-sample-entry
  • fix/sample-data-inverted-interval
  • fix/sample-table-missing-boxes
  • fix/sdtp-entry-depends-on
  • fix/segment-missing-boxes
  • fix/segmenter-last-sample
  • fix/sei-nalu-short-panic
  • fix/sgpd-description-length-bound
  • fix/slice-header-seq-param-id
  • fix/stsc-containing-chunks
  • fix/stsc-sample-description-id
  • fix/stts-decode-time-bounds
  • fix/top-level-box-attribution
  • fix/traf-requires-tfhd
  • fix/trun-mdat-bounds
  • fix/uuid-mss-sm
  • fix/vvc-decconfrec-nalus
  • flac
  • fuzz-box
  • go-releaser
  • golangci-lint-v2
  • handle-trailing-avc1-bytes
  • hevc-ref-idx-255
  • hevc-vps
  • iMro0t-feature-encryption-boxes
  • iMro0t-fix-avcdecoderconfig
  • improve-av1
  • improved-crypt-tools
  • issue-492
  • labl-box
  • lpcm-format-flags
  • master
  • mdat-header-size
  • mdhd-dur-info
  • minimal-ac4
  • more-robust-decode
  • mp4-blackbox-test
  • mpeg-h
  • mvhevc-help-doc
  • nalu-length-size
  • nalu-length-size-helpers
  • new-pssh-func
  • normalize-quicktime
  • opus
  • parse-joc-dolby-atmos
  • patch-1
  • perf-read-payload
  • perf-stream-getter-reads
  • perf/add-full-samples
  • perf/addfullsamples-always-parts
  • perf/bits-av1-allocs
  • perf/buffer-cmd-writers
  • perf/buffer-writetofile
  • perf/built-fragment-offsets
  • perf/bulk-table-decode
  • perf/cipher-hoist
  • perf/decode-allocs
  • perf/ebsp-allocs
  • perf/encode-allocs
  • perf/encrypt-allocs
  • perf/fragment-decoder
  • perfloop-pr-open-5vngg69nsk
  • perfloop-pr-open-77mvkyshvr
  • perfloop-pr-open-jjgn99rrgp
  • perfloop-pr-open-n6293cbpva
  • perfloop-pr-open-yqdd5wtxyv
  • prepare-v0.60.0
  • pslister-nallister-codecs
  • qt-legacy-audio-entries
  • qt-sound-descriptions
  • refactor/styp-delegate
  • release-v0.59.0
  • release-v0.62.0
  • release-v0.62.1
  • release-v0.63.0
  • release/v0.51.0
  • release/v0.52.0
  • release/v0.54.0
  • release/v0.55.0
  • remove-homebrew-cask
  • return-partial-files
  • sampleflags-test
  • sei-recovery-point
  • spherical-v1-no-xml
  • sphericalv1
  • stream-process
  • test-header-parsing
  • test-visualsampleentry
  • tkhd-preserve-matrix
  • update-changelog
  • update-coverage-job
  • update-docs
  • update-make
  • usac-asc
  • v0.48.0
  • v0.49.0
  • v0.50.0
  • vtpl1-master
  • vvc
  • vvc-nal-headers
  • wave-box
  • wave-box-followups
  • weird-dac3

17 Nov 2026 01:54PM UTC coverage: 84.758% (+0.1%) from 84.662%
44097516102

push

github

tobbee
fix(mp4ff-crop): crop all sample tables, durations and edit lists

After #722, the sample-to-chunk table of a cropped file is valid, but
other parts of moov still described the uncropped media:

- sbgp kept its sample counts, so ffmpeg AAC files, which have a roll
  group for all samples, mapped more samples than the track has. subs
  and cslg were not cropped either.
- mdhd kept the full media duration.
- tkhd of every track was set to the movie duration, and every edit was
  shortened by the same amount, ignoring where the edit starts in the
  media. With AAC priming (mediaTime 1024), the edit ran up to 1024
  ticks past the last sample.
- The other tracks were cut at the same media time as the video or
  audio track that decides the end, ignoring their edit lists. With
  audio delayed 0.5s by an empty edit, a 2s crop kept 87 audio samples,
  where the movie presents 66.
- A crop that kept the last sample of a track failed with "no matching
  sample found", for example -d 9999 on a 10.02s AAC file, and a
  duration after the last sync sample failed too.

The end of the movie is now the end of the presentation of the track
that decides it, mapped through its edit list, and the other tracks keep
the samples up to the media time that their edit lists present there.
Each edit list is cropped to the composition end of the kept samples and
to the movie end, tkhd is the sum of its edits, and mdhd the sum of the
sample durations. The requested duration is also presentation time: the
crop ends just before the first sync sample after sample 1 whose
composition time maps to the duration or later, and keeps all samples
if there is none. For audio without stss, the crop now ends at the start
of the first frame at or after the duration, one frame earlier than
before. The durations round up
to whole movie ticks, so that a file cropped after its end keeps its
durations.

cropStsc merges an entry that it shrinks into the entry before when they
then match, so that th... (continued)

209 of 226 new or added lines in 1 file covered. (92.48%)

7 existing lines in 2 files now uncovered.

27782 of 32778 relevant lines covered (84.76%)

0.85 hits per line

Relevant lines Covered
Build:
Build:
32778 RELEVANT LINES 27782 COVERED LINES
0.85 HITS PER LINE
Source Files on master
  • Tree
  • List 240
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
44097516102 master fix(mp4ff-crop): crop all sample tables, durations and edit lists After #722, the sample-to-chunk table of a cropped file is valid, but other parts of moov still described the uncropped media: - sbgp kept its sample counts, so ffmpeg AAC files, ... push 17 Nov 2026 01:55PM UTC tobbee github
84.76
44097413385 master perf(mp4): read contiguous sample runs together in stream getters push 17 Nov 2026 01:54PM UTC tobbee github
84.66
44089257940 fix/crop-tables fix(mp4ff-crop): crop all sample tables, durations and edit lists After #722, the sample-to-chunk table of a cropped file is valid, but other parts of moov still described the uncropped media: - sbgp kept its sample counts, so ffmpeg AAC files, ... Pull #725 17 Nov 2026 01:05PM UTC tobbee github
84.73
44087947731 perf-stream-getter-reads perf(mp4): read contiguous sample runs together in stream getters Pull #721 17 Nov 2026 12:57PM UTC perfloop-agent github
84.66
44085561355 master fix: write a valid stsc in mp4ff-crop when the cut is in an entry's first chunk push 17 Nov 2026 12:42PM UTC tobbee github
84.64
44025192813 fix/crop-stsc-first-chunk fix: write a valid stsc in mp4ff-crop when the cut is in an entry's first chunk Pull #722 17 Nov 2026 12:33PM UTC jayhemnani9910 github
84.61
44081780078 master fix(mp4): read only up to the target on a forward BoxSeekReader seek On a forward seek past the buffer, Seek read newPos - currentPos bytes, but the underlying reader is at the end of the buffer. After a backward seek inside the buffer, currentPo... push 17 Nov 2026 12:18PM UTC tobbee github
84.63
44081367506 fix-boxseekreader-forward-seek fix(mp4): read only up to the target on a forward BoxSeekReader seek On a forward seek past the buffer, Seek read newPos - currentPos bytes, but the underlying reader is at the end of the buffer. After a backward seek inside the buffer, currentPo... Pull #724 17 Nov 2026 12:15PM UTC tobbee github
84.63
44061198732 master fix(mp4): bind cbcs encryption to the init IV Reject cbcs IVs that differ from the tenc constant IV and init data without one, before constructing the sample protector and AES cipher. Keep the existing zero-padding behavior for eight-byte IVs. C... push 17 Nov 2026 10:03AM UTC tobbee github
84.63
43608752946 perfloop-pr-open-77mvkyshvr fix(mp4): bind cbcs encryption to the init IV Reject cbcs IVs that differ from the tenc constant IV and init data without one, before constructing the sample protector and AES cipher. Keep the existing zero-padding behavior for eight-byte IVs. C... Pull #720 17 Nov 2026 10:02AM UTC perfloop-agent github
84.63
See All Builds (789)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc