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

Convert from Opus to Mp3 format results in unmatch length of track #39

Closed
duytrung opened this issue Apr 12, 2017 · 2 comments
Closed

Comments

@duytrung
Copy link

Hi all,

I used Freac converter which convert a mp3 track to opus then from the opus back to mp3. However, the lengths of the original and converted is now different. Could you give explanation?

Kind regards

Will

@rillian
Copy link
Contributor

rillian commented Apr 12, 2017

How much different?

Opus supports sample-accurate audio durations, but the older mp3 format does not. I'm not familiar with freac. It's possible it doesn't implement trimming correctly, or that it changed the sample rate in a way which made it impossible to match the duration between the two mp3 versions. Either of those could cause a slight change in the playback length.

If you mean the size of the compressed files, that's normal. Both opus an mp3 are lossy compression techniques, and depending on the exact compression settings and the details of the input audio, the size (in bytes) of the compressed file can vary widely.

@jmvalin
Copy link
Member

jmvalin commented May 30, 2017

The duration of a file (for encoding or decoding) is a tools issue, not something that libopus can do anything about. Would be better to file your bug against the tools you're using.

@jmvalin jmvalin closed this as completed May 30, 2017
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

3 participants