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: Doesn't convert lossless AIFF on import #2005

Closed
Freso opened this issue May 18, 2016 · 4 comments
Closed

convert: Doesn't convert lossless AIFF on import #2005

Freso opened this issue May 18, 2016 · 4 comments
Labels
bug bugs that are confirmed and actionable

Comments

@Freso
Copy link
Member

Freso commented May 18, 2016

The convert plugin doesn't register an AIFF file with a pcm_s16be stream as lossless, and thus imports as-is when never_convert_lossy_files is set.

beet -vv import and beet config output: https://gist.github.com/Freso/01e5185503ec40b78e8b43bdcc98c241
Pre-tagged data of the imported files (via ffprobe): https://ptpb.pw/APyUNbU6z8_185dEUL7rYMMAyAow

@Freso
Copy link
Member Author

Freso commented May 18, 2016

Trying to run the convert command post-import also makes convert not convert them, due to the never_convert_lossy_files setting I guess.

@sampsyo
Copy link
Member

sampsyo commented May 18, 2016

Well, that would do it! There's a hard-coded list of lossless format names, and it doesn't include AIFF:

LOSSLESS_FORMATS = ['ape', 'flac', 'alac', 'wav']

I'll add AIFF to the list. Thanks for pointing this out.

@sampsyo sampsyo added the bug bugs that are confirmed and actionable label May 18, 2016
@Freso
Copy link
Member Author

Freso commented May 18, 2016

Hm. That's a bit of a shortsighted approach though, we should look into doing something more clever. ".aif" can contain lossy formats too, just like ".ogg" can contain FLAC audio. Should I open a new ticket for this?

@sampsyo
Copy link
Member

sampsyo commented May 18, 2016

Sure! The thing to do, I suppose, would be to add a lossy field to MediaFile that more accurately detects lossiness per-format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs that are confirmed and actionable
Projects
None yet
Development

No branches or pull requests

2 participants