-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
some FLAC files are not loaded/parsed #9685
Comments
Commented by: uklotzde The FLAC stream metadata doesn't contain the total length (in sample frames) that Mixxx expects: Format : FLAC Audio I've never seen any file without length metadata before. We need to find out how to handle this without decoding the whole file upfront until EOF. |
Commented by: daschuer We can fix it during the analyzer and may estimate the length from the file size in the meantime This bug can also be used as a prove of concept for possible steaming support. A stream is a file without a fixed length. How can we analyze that? A kind of on the fly analysis would be nice. |
Commented by: uklotzde The total length of the stream is used everywhere in Mixxx. This is the reason why files with undefined length are rejected. Supporting sources with undefined length is a major task! |
Commented by: daschuer Unfortunately yes ... |
Commented by: sals3r0 In Virtual DJ the exact stream length is figured up by the analyzer (it has to decode the file anyway). Maybe it could work in a similar way in Mixxx? This is not an infinite stream, it is a file with finite duration, but not known from metadata...handling this case should be easier than supporting streams with potentially infinite length (would be very nice though :)... |
Commented by: uklotzde We are not able to provide a solution other than improving the logging. The current architecture is not ready for streams with unknown or even unlimited length. As a workaround I suggest re-encoding the FLAC files to generate the complete stream info metadata block for those files. Please check why your encoder didn't calculate and write the data and how to include it in the future. This is the proposed solution even if Mixxx would support such files. There is no reason for excluding essential metadata from files that is known in advance. |
Commented by: daschuer Mixxx can already handle inaccurate length info in the file metadata. |
Commented by: sals3r0 Yeah I think for the time being I will just re-encode my FLAC collection with the official FLAC encoder. Thanks. |
Commented by: sals3r0 FYI Someone had the same problem and posted a simple script to re-encode his entire FLAC collection: https://forums.gentoo.org/viewtopic-t-831333-start-0.html I am running a simplified version of this script now (skipping the meta-tags logic as I don't have any tags I need to preserve) and it works. |
Reported by: sals3r0
Date: 2019-06-28T08:53:14Z
Status: Confirmed
Importance: High
Launchpad Issue: lp1834604
OS: Kubuntu 18.04
Kernel: 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Architecture: x86_64
CPU: Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz
Mixxx version: mixxx-2.3.0-alpha-pre-master-git6862-release-bionic-amd64 (nightly build)
Issue description:
Some FLAC files are not loaded/ analyzed by the software. Example FLAC file here: https://uloz.to/!dGxBLrXYOHS6/test-flac-zip
This file is loaded and parsed normally by Audacity and Virtual DJ.
From the application log:
The text was updated successfully, but these errors were encountered: