-
Notifications
You must be signed in to change notification settings - Fork 18
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
Length of a trimmed MP3 is not set correctly #14
Comments
try removing the metadata. the right length of a file should be deduced from the file size and the block size. if it shows another number for the duration, it is probably stored in the meta data of the MP3 file. |
Tried that doing this:
No difference, unfortunately. It seems that it works correctly with a few files, but it fails with most mp3s I try. |
I find the same issue on my end with all the MP3 files I tried. |
hi example: thank you so much |
When I trim an MP3 using
\falahati\PHPMP3\MpegAudio::fromFile($names[0])->trim(0, 30)->saveFile($trimmed='tmp/trimmed/trimmed.mp3');
the original length will show up in any given MP3 player when I open the trimmed file rather than 30s.
The text was updated successfully, but these errors were encountered: