Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not identifying truncated .mp3 in Linux #2172

Open
realiteer opened this issue Jan 10, 2025 · 0 comments
Open

Not identifying truncated .mp3 in Linux #2172

realiteer opened this issue Jan 10, 2025 · 0 comments

Comments

@realiteer
Copy link

The Linux version is not identifying truncated .mp3 files. When scanning the same .mp3 in Windows or Mac, it is identified as truncated.

Here is what we see in Windows (includes "IsTruncated=Yes"):

MediaInfo[sectionsByType={General=Sections[sections=[Section[values={Audio codecs=MPEG Audio, Audio_Channels_Total=2, Audio_Format_List=MPEG Audio, Audio_Format_WithHint_List=MPEG Audio, Commercial name=MPEG Audio, Complete name=src\test\resources\media\truncated.mp3, Conformance errors=1, Count=351, Count of audio streams=1, Count of stream of this kind=1, Duration=00:00:03.239, File creation date=2024-10-22 21:33:36.793 UTC, File creation date (local)=2024-10-22 14:33:36.793, File extension=mp3, File last modification date=2024-10-22 21:33:36.793 UTC, File last modification date (local)=2024-10-22 14:33:36.793, File name=truncated, File name extension=truncated.mp3, File size=49.86 KiB, Folder name=src\test\resources\media, Format=MPEG Audio, Format/Extensions usually used=m1a mpa mpa1 mp1 m2a mpa2 mp2 mp3, General compliance=File size 51055 is less than expected size at least 51059 (offset 0xC68E), Internet media type=audio/mpeg, IsTruncated=Yes, Kind of stream=General, MPEG-Audio=Yes, Overall bit rate=128 kb/s, Overall bit rate mode=Constant, Proportion of this stream=0.00088, Stream identifier=0, Stream size=45.0 Bytes (0%), Writing library=LAME3.100}]]], Audio=Sections[sections=[Section[values={Bit rate=128 kb/s, Bit rate mode=Constant, Channel(s)=2 channels, Commercial name=MPEG Audio, Compression mode=Lossy, Count=285, Count of stream of this kind=1, Duration=00:00:03.239, Format=MPEG Audio, Format profile=Layer 3, Format settings=Joint stereo / MS Stereo, Format version=Version 1, Frame count=124, Frame rate=38.281 FPS (1152 SPF), Internet media type=audio/mpeg, Kind of stream=Audio, Mode=Joint stereo, Mode extension=MS Stereo, Samples count=142848, Samples per frame=1152, Sampling rate=44.1 kHz, Stream identifier=0, Stream size=50.61 KiB, Writing library=LAME3.100}]]]}]

And here is what we see in Linux (does not include "IsTruncated"):

MediaInfo[sectionsByType={General=Sections[sections=[Section[values={Audio codecs=MPEG Audio, Audio_Format_List=MPEG Audio, Audio_Format_WithHint_List=MPEG Audio, Commercial name=MPEG Audio, Complete name=/opt/drps/pipeline/dept/CHD/WIP/Preservation Systems/01-Original Acquisition/MediaInfoFixed/1-Collection/b0001/f0001/ORIGINAL_MASTER/truncated.mp3, Count=331, Count of audio streams=1, Count of stream of this kind=1, Duration=00:00:03.239, File extension=mp3, File last modification date=UTC 2024-11-20 23:44:20, File last modification date (local)=2024-11-20 16:44:20, File name=truncated, File name extension=truncated.mp3, File size=49.86 KiB, Folder name=/opt/drps/pipeline/dept/CHD/WIP/Preservation Systems/01-Original Acquisition/MediaInfoFixed/1-Collection/b0001/f0001/ORIGINAL_MASTER, Format=MPEG Audio, Format/Extensions usually used=m1a mpa mpa1 mp1 m2a mpa2 mp2 mp3, Internet media type=audio/mpeg, Kind of stream=General, Overall bit rate=128 kb/s, Overall bit rate mode=Constant, Proportion of this stream=0.00088, Stream identifier=0, Stream size=45.0 Bytes (0%), Writing library=LAME3.100}]]], Audio=Sections[sections=[Section[values={Bit rate=128 kb/s, Bit rate mode=Constant, Channel(s)=2 channels, Commercial name=MPEG Audio, Compression mode=Lossy, Count=280, Count of stream of this kind=1, Duration=00:00:03.239 (00:00:03:10), Format=MPEG Audio, Format profile=Layer 3, Format settings=Joint stereo / MS Stereo, Format version=Version 1, Frame count=124, Frame rate=38.281 FPS (1152 SPF), Internet media type=audio/mpeg, Kind of stream=Audio, Mode=Joint stereo, Mode extension=MS Stereo, Samples count=142848, Samples per frame=1152, Sampling rate=44.1 kHz, Stream identifier=0, Stream size=50.61 KiB, Writing library=LAME3.100}]]]}]

@JeromeMartinez JeromeMartinez transferred this issue from MediaArea/MediaInfo Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant