Skip to content

Commit

Permalink
Support MP3 with leading ID3 in .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Jan 30, 2022
1 parent cc2dd7a commit 69fe1ce
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
30 changes: 30 additions & 0 deletions mp3/metadata/diff/chirp-5-id3.mp3.txt
Original file line number Diff line number Diff line change
@@ -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 = <omitted for regression testing as checkout dependent>

JAVA EXCEPTION: File format could not be determined
DOTNET - MP3
DOTNET - File Type
DOTNET - File

Generated using metadata-extractor
https://drewnoakes.com/code/exif/

24 changes: 22 additions & 2 deletions mp3/metadata/dotnet/chirp-5-id3.mp3.txt
Original file line number Diff line number Diff line change
@@ -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 = <omitted for regression testing as checkout dependent>

- MP3
- File Type
- File

Generated using metadata-extractor
https://drewnoakes.com/code/exif/

0 comments on commit 69fe1ce

Please sign in to comment.