From 69fe1ce87e64418d42d87c5cf34ed86d1e5229c6 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Mon, 31 Jan 2022 09:53:39 +1100 Subject: [PATCH] Support MP3 with leading ID3 in .NET --- mp3/metadata/diff/chirp-5-id3.mp3.txt | 30 +++++++++++++++++++++++++ mp3/metadata/dotnet/chirp-5-id3.mp3.txt | 24 ++++++++++++++++++-- 2 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 mp3/metadata/diff/chirp-5-id3.mp3.txt diff --git a/mp3/metadata/diff/chirp-5-id3.mp3.txt b/mp3/metadata/diff/chirp-5-id3.mp3.txt new file mode 100644 index 000000000..e4dc5b2b6 --- /dev/null +++ b/mp3/metadata/diff/chirp-5-id3.mp3.txt @@ -0,0 +1,30 @@ + FILE: chirp-5-id3.mp3 +JAVA TYPE: UNKNOWN +DOTNET TYPE: MP3 +DOTNET +DOTNET [MP3 - 0x0001] ID = MPEG-1 +DOTNET [MP3 - 0x0002] Layer = Layer III +DOTNET [MP3 - 0x0003] Bitrate = 128 +DOTNET [MP3 - 0x0004] Frequency = 44100 +DOTNET [MP3 - 0x0005] Mode = Mono +DOTNET [MP3 - 0x0007] Copyright = False +DOTNET [MP3 - 0x0006] Emphasis Method = none +DOTNET [MP3 - 0x0008] Frame Size = 417 bytes +DOTNET +DOTNET [File Type - 0x0001] Detected File Type Name = MP3 +DOTNET [File Type - 0x0002] Detected File Type Long Name = MPEG Audio Layer III +DOTNET [File Type - 0x0003] Detected MIME Type = audio/mpeg +DOTNET [File Type - 0x0004] Expected File Name Extension = mp3 +DOTNET +DOTNET [File - 0x0001] File Name = chirp-5-id3.mp3 +DOTNET [File - 0x0002] File Size = 2125 bytes +DOTNET [File - 0x0003] File Modified Date = + +JAVA EXCEPTION: File format could not be determined +DOTNET - MP3 +DOTNET - File Type +DOTNET - File + + Generated using metadata-extractor + https://drewnoakes.com/code/exif/ + diff --git a/mp3/metadata/dotnet/chirp-5-id3.mp3.txt b/mp3/metadata/dotnet/chirp-5-id3.mp3.txt index 7d32543ac..aca6ffd0e 100644 --- a/mp3/metadata/dotnet/chirp-5-id3.mp3.txt +++ b/mp3/metadata/dotnet/chirp-5-id3.mp3.txt @@ -1,7 +1,27 @@ FILE: chirp-5-id3.mp3 -TYPE: UNKNOWN +TYPE: MP3 -EXCEPTION: File format could not be determined +[MP3 - 0x0001] ID = MPEG-1 +[MP3 - 0x0002] Layer = Layer III +[MP3 - 0x0003] Bitrate = 128 +[MP3 - 0x0004] Frequency = 44100 +[MP3 - 0x0005] Mode = Mono +[MP3 - 0x0007] Copyright = False +[MP3 - 0x0006] Emphasis Method = none +[MP3 - 0x0008] Frame Size = 417 bytes + +[File Type - 0x0001] Detected File Type Name = MP3 +[File Type - 0x0002] Detected File Type Long Name = MPEG Audio Layer III +[File Type - 0x0003] Detected MIME Type = audio/mpeg +[File Type - 0x0004] Expected File Name Extension = mp3 + +[File - 0x0001] File Name = chirp-5-id3.mp3 +[File - 0x0002] File Size = 2125 bytes +[File - 0x0003] File Modified Date = + +- MP3 +- File Type +- File Generated using metadata-extractor https://drewnoakes.com/code/exif/