From f2febd31df88b281272f43775b6b59ec857b17f9 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Wed, 7 Oct 2026 03:13:36 +0200 Subject: chore: update Go module path and source imports --- benchmark_test.go | 2 +- clip/clip.go | 4 +-- clip/clip_test.go | 6 ++-- cmd/mp4dump/README.md | 63 ++------------------------------------- cmd/mp4dump/main.go | 2 +- cmd/mp4probe/main.go | 4 +-- cmd/mp4remux/main.go | 6 ++-- fragment/benchmark_test.go | 4 +-- fragment/parse.go | 4 +-- fragment/parse_test.go | 4 +-- fragment/reader.go | 4 +-- fragment/reader_test.go | 4 +-- fragment/track_selection_test.go | 6 ++-- fragment/writer.go | 2 +- fragment/writer_benchmark_test.go | 2 +- fuzz_test.go | 2 +- go.mod | 2 +- track/benchmark_test.go | 4 +-- track/codec_test.go | 2 +- track/display_test.go | 2 +- track/ffprobe_test.go | 4 +-- track/fuzz_test.go | 4 +-- track/samplecount_test.go | 4 +-- track/sps_test.go | 4 +-- track/track.go | 2 +- 25 files changed, 44 insertions(+), 103 deletions(-) diff --git a/benchmark_test.go b/benchmark_test.go index 6ccf09f..28b6ad6 100644 --- a/benchmark_test.go +++ b/benchmark_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/tetsuo/mp4" + "git.onurgunduz.com/mp4" ) func loadTestFile(b *testing.B) []byte { diff --git a/clip/clip.go b/clip/clip.go index 288a3c8..f3eef02 100644 --- a/clip/clip.go +++ b/clip/clip.go @@ -9,8 +9,8 @@ import ( "io" "math" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/track" ) // Result describes the clip that was written. Start and Duration are what the diff --git a/clip/clip_test.go b/clip/clip_test.go index a688f69..373e281 100644 --- a/clip/clip_test.go +++ b/clip/clip_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/clip" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/clip" + "git.onurgunduz.com/mp4/track" ) // sampleMP4 is a short progressive recording. It is not checked in; the test diff --git a/cmd/mp4dump/README.md b/cmd/mp4dump/README.md index 704e34d..4726062 100644 --- a/cmd/mp4dump/README.md +++ b/cmd/mp4dump/README.md @@ -4,71 +4,12 @@ **Example:** -Pipe the output of `mp4dump` to [`indentree`](https://github.com/tetsuo/indentree) to visualize the box hierarchy: - ```sh -mp4dump "big-buck-bunny-1080p-60fps-30sec.mp4" | indentree -``` - -Output: - -``` -. -├─ [ftyp] size=32 -│ └─ brand=isom ver=512 compat=[isom,iso2,avc1,mp41] -├─ [free] size=8 -├─ [mdat] size=14373924 -│ └─ dataLen=14373916 -└─ [moov] size=49061 - ├─ [mvhd] size=108 v=0 flags=0x000000 timescale=1000 duration=30022 nextTrackId=3 - ├─ [trak] size=36795 - │ ├─ [tkhd] size=92 v=0 flags=0x000003 trackId=1 duration=30000 size=1920x1080 - │ ├─ [edts] size=36 - │ │ └─ [elst] size=28 v=0 flags=0x000000 entries=1 - │ └─ [mdia] size=36659 - │ ├─ [mdhd] size=32 v=0 flags=0x000000 timescale=15360 duration=460800 lang=21956 - │ ├─ [hdlr] size=45 v=0 flags=0x000000 type=vide name="VideoHandler" - │ └─ [minf] size=36574 - │ ├─ [vmhd] size=20 v=0 flags=0x000001 - │ ├─ [dinf] size=36 - │ │ └─ [dref] size=28 v=0 flags=0x000000 entries=1 - │ └─ [stbl] size=36510 - │ ├─ [stsd] size=154 v=0 flags=0x000000 entries=1 - │ │ └─ [avc1] size=138 1920x1080 compressor="" - │ │ └─ [avcC] size=52 codec=64002a - │ ├─ [stts] size=24 v=0 flags=0x000000 entries=1 - │ ├─ [stss] size=48 v=0 flags=0x000000 entries=8 - │ ├─ [ctts] size=13944 v=0 flags=0x000000 entries=1741 - │ ├─ [stsc] size=9472 v=0 flags=0x000000 entries=788 - │ ├─ [stsz] size=7220 v=0 flags=0x000000 entries=1800 - │ └─ [stco] size=5640 v=0 flags=0x000000 entries=1406 - ├─ [trak] size=11756 - │ ├─ [tkhd] size=92 v=0 flags=0x000003 trackId=2 duration=30022 size=0x0 - │ ├─ [edts] size=36 - │ │ └─ [elst] size=28 v=0 flags=0x000000 entries=1 - │ └─ [mdia] size=11620 - │ ├─ [mdhd] size=32 v=0 flags=0x000000 timescale=48000 duration=1441024 lang=21956 - │ ├─ [hdlr] size=45 v=0 flags=0x000000 type=soun name="SoundHandler" - │ └─ [minf] size=11535 - │ ├─ [smhd] size=16 v=0 flags=0x000000 - │ ├─ [dinf] size=36 - │ │ └─ [dref] size=28 v=0 flags=0x000000 entries=1 - │ └─ [stbl] size=11475 - │ ├─ [stsd] size=103 v=0 flags=0x000000 entries=1 - │ │ └─ [mp4a] size=87 ch=2 sampleSize=16 sampleRate=48000 - │ │ └─ [esds] size=51 v=0 flags=0x000000 codec=40.2 - │ ├─ [stts] size=32 v=0 flags=0x000000 entries=2 - │ ├─ [stsc] size=40 v=0 flags=0x000000 entries=2 - │ ├─ [stsz] size=5652 v=0 flags=0x000000 entries=1408 - │ └─ [stco] size=5640 v=0 flags=0x000000 entries=1406 - └─ [udta] size=394 - └─ [meta] size=386 v=0 flags=0x000000 - ├─ [hdlr] size=33 v=0 flags=0x000000 type=mdir name="" - └─ [ilst] size=341 (333 bytes) +mp4dump example.mp4 | indentree ``` You can also output in JSON format: ```sh -mp4dump --format=json "big-buck-bunny-1080p-60fps-30sec.mp4" +mp4dump --format=json example.mp4 ``` diff --git a/cmd/mp4dump/main.go b/cmd/mp4dump/main.go index 095b2b8..80e3c86 100644 --- a/cmd/mp4dump/main.go +++ b/cmd/mp4dump/main.go @@ -8,7 +8,7 @@ import ( "os" "strings" - "github.com/tetsuo/mp4" + "git.onurgunduz.com/mp4" ) // Format specifies the output format. diff --git a/cmd/mp4probe/main.go b/cmd/mp4probe/main.go index 3681a1d..982d450 100644 --- a/cmd/mp4probe/main.go +++ b/cmd/mp4probe/main.go @@ -6,8 +6,8 @@ import ( "io" "os" - "github.com/tetsuo/mp4/fragment" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4/fragment" + "git.onurgunduz.com/mp4/track" ) func main() { diff --git a/cmd/mp4remux/main.go b/cmd/mp4remux/main.go index 0defc25..51ba73f 100644 --- a/cmd/mp4remux/main.go +++ b/cmd/mp4remux/main.go @@ -11,9 +11,9 @@ import ( "io" "os" - mf "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/fragment" - "github.com/tetsuo/mp4/track" + mf "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/fragment" + "git.onurgunduz.com/mp4/track" ) func main() { diff --git a/fragment/benchmark_test.go b/fragment/benchmark_test.go index b3ca832..a2eb4cd 100644 --- a/fragment/benchmark_test.go +++ b/fragment/benchmark_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/tetsuo/mp4/fragment" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4/fragment" + "git.onurgunduz.com/mp4/track" ) func BenchmarkNewReader(b *testing.B) { diff --git a/fragment/parse.go b/fragment/parse.go index 0276852..98d38fb 100644 --- a/fragment/parse.go +++ b/fragment/parse.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/track" ) // ErrNoSamples is returned by ParseSegment when the data holds no moof with diff --git a/fragment/parse_test.go b/fragment/parse_test.go index 80f3f62..7c6a7d1 100644 --- a/fragment/parse_test.go +++ b/fragment/parse_test.go @@ -4,8 +4,8 @@ import ( "bytes" "testing" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/track" ) // buildSamples returns a two-track sample set laid over a synthetic data diff --git a/fragment/reader.go b/fragment/reader.go index d07fdff..d470897 100644 --- a/fragment/reader.go +++ b/fragment/reader.go @@ -32,8 +32,8 @@ import ( "io" "sort" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/track" ) var ( diff --git a/fragment/reader_test.go b/fragment/reader_test.go index 430557e..856f330 100644 --- a/fragment/reader_test.go +++ b/fragment/reader_test.go @@ -8,8 +8,8 @@ import ( "reflect" "testing" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/fragment" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/fragment" ) const testFile = "../test-data/big-buck-bunny-480p-30sec.mp4" diff --git a/fragment/track_selection_test.go b/fragment/track_selection_test.go index a632553..21b7281 100644 --- a/fragment/track_selection_test.go +++ b/fragment/track_selection_test.go @@ -11,9 +11,9 @@ import ( "strings" "testing" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/fragment" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/fragment" + "git.onurgunduz.com/mp4/track" ) const muxedTestFile = "../test-data/h264-aac-10s.mp4" diff --git a/fragment/writer.go b/fragment/writer.go index 723371b..f9b6f00 100644 --- a/fragment/writer.go +++ b/fragment/writer.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "io" - "github.com/tetsuo/mp4" + "git.onurgunduz.com/mp4" ) const defaultWriterTrackCapacity = 4 diff --git a/fragment/writer_benchmark_test.go b/fragment/writer_benchmark_test.go index 5ad98c1..4fd20bd 100644 --- a/fragment/writer_benchmark_test.go +++ b/fragment/writer_benchmark_test.go @@ -4,7 +4,7 @@ import ( "io" "testing" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4/track" ) func BenchmarkWriterPrepare(b *testing.B) { diff --git a/fuzz_test.go b/fuzz_test.go index 12ae521..d4168b1 100644 --- a/fuzz_test.go +++ b/fuzz_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/tetsuo/mp4" + "git.onurgunduz.com/mp4" ) // fuzzSample is a real MP4 used to seed the corpus when it is present. Starting diff --git a/go.mod b/go.mod index 031ce62..7c2753b 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/tetsuo/mp4 +module git.onurgunduz.com/mp4 go 1.26.4 diff --git a/track/benchmark_test.go b/track/benchmark_test.go index 12ed4ee..9e83127 100644 --- a/track/benchmark_test.go +++ b/track/benchmark_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/track" ) var benchFiles = []string{ diff --git a/track/codec_test.go b/track/codec_test.go index 2552d4c..e012635 100644 --- a/track/codec_test.go +++ b/track/codec_test.go @@ -3,7 +3,7 @@ package track_test import ( "testing" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4/track" ) // TestParseAV1CodecString checks the av01 codec string the track parser derives diff --git a/track/display_test.go b/track/display_test.go index aae4739..7c1db9c 100644 --- a/track/display_test.go +++ b/track/display_test.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "testing" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4/track" ) func TestCodedDimensionsStaySeparateFromTrackHeaderDisplayDimensions(t *testing.T) { diff --git a/track/ffprobe_test.go b/track/ffprobe_test.go index 9afd33b..ebe8184 100644 --- a/track/ffprobe_test.go +++ b/track/ffprobe_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/track" ) type ffStream struct { diff --git a/track/fuzz_test.go b/track/fuzz_test.go index 313c901..4bc8cd3 100644 --- a/track/fuzz_test.go +++ b/track/fuzz_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/track" ) const fuzzSample = "../test-data/big-buck-bunny-480p-30sec.mp4" diff --git a/track/samplecount_test.go b/track/samplecount_test.go index 66d252b..9d06afa 100644 --- a/track/samplecount_test.go +++ b/track/samplecount_test.go @@ -5,8 +5,8 @@ import ( "runtime" "testing" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/track" ) // patchFirstStsz overwrites the sample_size and sample_count fields of the first diff --git a/track/sps_test.go b/track/sps_test.go index fe0f121..f58aadb 100644 --- a/track/sps_test.go +++ b/track/sps_test.go @@ -7,8 +7,8 @@ import ( "path/filepath" "testing" - "github.com/tetsuo/mp4" - "github.com/tetsuo/mp4/track" + "git.onurgunduz.com/mp4" + "git.onurgunduz.com/mp4/track" ) // spsFromStsd digs the first SPS out of the avcC inside a raw stsd box, the diff --git a/track/track.go b/track/track.go index 00c2731..9471cae 100644 --- a/track/track.go +++ b/track/track.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/tetsuo/mp4" + "git.onurgunduz.com/mp4" ) // TrackKind classifies a track as video, audio, or unknown. -- cgit v1.3.1