-
Notifications
You must be signed in to change notification settings - Fork 295
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
Bug: Approximate duration doubled on mp3 files #160
Comments
Can you tell me the value of these tags?: AudioBitrate ExifTool calculates the approximate duration from these tags. Also, is the file mono or stereo?
|
Sure. According to exiftool V12.16:
However, my exiftool doesn't print any VBRFrames tag. I don't know what this tag does, but I think it might not be set, since
- Dominik |
The VBRFrames is only used for variable bitrate encoding, which this file is apparently not. I think that ffprobe probably analyzes the audio stream to exactly determine the duration. ExifTool doesn't analyze the whole stream, and just calculates an approximate duration from the header information. Taking the extracted information at face value, if the bitrate really is 64 kbps you would get about 10 minutes out of a 4.7 MiB file, so the calculation makes sense. Either the extracted bitrate is wrong, or half of the file doesn't contain audio information. I can't say which without analyzing the sample carefully.
|
You are right, ffprobe indeed shows a framerate of about 129 kbit/s, pretty much double of exiftool. - Dominik |
Ok |
Hi, I think I found a bug in exiftool version 12.16 concerning mp3 metadata. I don't know if its already fixed in newer versions, I'm sorry if that's the case.
exiftool "Mono Inc. - Voices of Doom.mp3"
prints
Duration : 0:10:03 (approx)
Which is twice the correct amount of time (0:05.01). This happens to me with any mp3 file downloaded with spotdl (I don't have any other mp3s to test it with). ffprobe delivers the correct time for this file:
duration=301.272000
I'm not sure if I can share this file due to copyright, otherwise I would.
Thank you!
The text was updated successfully, but these errors were encountered: