Posts: 13,424
Threads: 304
Joined: Mar 2018
Reputation:
545
@ kit1cat,
Both sample files you provided have some sort of corruption. The flac decoder dies after 684 "crc mismatch" errors are thrown.
Code: pi@moode9:~ $ flac -t "/media/VFAT64/Test/Kit1kat/Harry Nilsson - Without You (Remastered).flac" 2>&1 | grep -m 1 error
Harry Nilsson - Without You (Remastered).flac: *** Got error code 2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH
pi@moode9:~ $ flac -t "/media/VFAT64/Test/Kit1kat/Harry Nilsson - Without You (Remastered).flac" 2>&1 | grep -c1 error
684
Posts: 283
Threads: 22
Joined: Apr 2018
Reputation:
1
(10-24-2024, 11:09 AM)Tim Curtis Wrote: @kit1cat,
Both sample files you provided have some sort of corruption. The flac decoder dies after 684 "crc mismatch" errors are thrown.
Code: pi@moode9:~ $ flac -t "/media/VFAT64/Test/Kit1kat/Harry Nilsson - Without You (Remastered).flac" 2>&1 | grep -m 1 error
Harry Nilsson - Without You (Remastered).flac: *** Got error code 2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH
pi@moode9:~ $ flac -t "/media/VFAT64/Test/Kit1kat/Harry Nilsson - Without You (Remastered).flac" 2>&1 | grep -c1 error
684
Thanks Tim.
I have tried the files in the free audio converter program for windows, It throws up a checksum error. Turned input file checking off, and it did convert the files. Looks like I will be able to resample the files. I will then check the resampled files in moode.
Posts: 283
Threads: 22
Joined: Apr 2018
Reputation:
1
(10-23-2024, 04:51 PM)TheOldPresbyope Wrote: Well, for starters, there's the flac decoder itself. It's present in every moOde install.
From the man page,
Quote: In test mode, flac acts just like in decode mode, except no output file
is written. Both decode and test modes detect errors in the stream,
but they also detect when the MD5 signature of the decoded audio does
not match the stored MD5 signature, even when the bitstream is valid.
So, from the command line, try flac wilth the test option -t for a quick check. You should get back something like
Code: rho@sunroom:~ $ flac -t /mnt/SDCARD/'Stereo Test'/LRMonoPhase4.flac
flac 1.4.2
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
LRMonoPhase4.flac: ok
There's also the analyze option -a (which may need to be run as root) which is like the test option but also output an analysis file.
If your files pass this test then there's likely something really cockeyed about how the audio encoding was done (RIFF WAVE, Wave64, RF64, AIFF, FLAC or Ogg FLAC).
Regards,
Kent
Thanks for info Kent.
Posts: 179
Threads: 8
Joined: Sep 2023
Reputation:
0
10-24-2024, 05:15 PM
(This post was last modified: 10-24-2024, 05:42 PM by kurt1970.)
I did some tests.
1) Your files are playing fine on VLC on my Windows machine
2) I ran them through my own flac health check software. This is the outcome:
Code: FlacProbe V1.9.230724
=====================
-> Analyzing files in [D:\Music\For_NAS\Flac]
-> Checking file errors
|- OK
-> Checking metadata tags
|- Sorting per path (2 file(s)/90.72 MiB)
METADATA TAGS: [D:\Music\For_NAS\Flac\Bad Company - Shooting Star.flac]: MISSING ALBUMARTIST, MISSING COMPOSER, REMOVE COVER ART
METADATA TAGS: [D:\Music\For_NAS\Flac\Harry Nilsson - Without You (Remastered).flac]: MISSING ALBUMARTIST, MISSING COMPOSER, REMOVE COVER ART
"Checking file errors" actually checks the correctness of the flac file structure. This is OK
"Checking metadata tags" is about the tags I expect or not. I double checked this in Mp3tag, and this is correct.
I also ran the real flac tool test. Seems to be ok as well.
Code: D:\Music>d:\FLAC\Win64\flac.exe -t "For_NAS\Art Pepper - Tokyo Encore (1979) {1991, Dreyfus Jazz}\01 - Besame Mucho.flac"
flac 1.4.2
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
01 - Besame Mucho.flac: ok
In summary, there's nothing wrong with those files...
Posts: 283
Threads: 22
Joined: Apr 2018
Reputation:
1
(10-24-2024, 05:15 PM)kurt1970 Wrote: I did some tests.
1) Your files are playing fine on VLC on my Windows machine
2) I ran them through my own flac health check software. This is the outcome:
Code: FlacProbe V1.9.230724
=====================
-> Analyzing files in [D:\Music\For_NAS\Flac]
-> Checking file errors
|- OK
-> Checking metadata tags
|- Sorting per path (2 file(s)/90.72 MiB)
METADATA TAGS: [D:\Music\For_NAS\Flac\Bad Company - Shooting Star.flac]: MISSING ALBUMARTIST, MISSING COMPOSER, REMOVE COVER ART
METADATA TAGS: [D:\Music\For_NAS\Flac\Harry Nilsson - Without You (Remastered).flac]: MISSING ALBUMARTIST, MISSING COMPOSER, REMOVE COVER ART
"Checking file errors" actually checks the correctness of the flac file structure. This is OK
"Checking metadata tags" is about the tags I expect or not. I double checked this in Mp3tag, and this is correct.
I also ran the real flac tool test. Seems to be ok as well.
Code: D:\Music>d:\FLAC\Win64\flac.exe -t "For_NAS\Art Pepper - Tokyo Encore (1979) {1991, Dreyfus Jazz}\01 - Besame Mucho.flac"
flac 1.4.2
Copyright (C) 2000-2009 Josh Coalson, 2011-2022 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
01 - Besame Mucho.flac: ok
In summary, there's nothing wrong with those files...
Thanks for testing Kurt,
The files play fine under VLC on my Windows machine, but not under Foobar2000 and other media players, they have played fine on all earlier versions of moode. They also play on my Eversolo A6.
Converting the files also did not work.
Posts: 179
Threads: 8
Joined: Sep 2023
Reputation:
0
10-25-2024, 07:29 AM
(This post was last modified: 10-25-2024, 07:45 AM by kurt1970.)
I was a little too fast and made a mistake. It seems I ran the wrong flac file through the flac -T test. When trying yours, I get plenty of CRC errors in the music fragments. The FLAC header is correct, but there is something wrong with the music fragments itself.
Seems like VLC is kindly ignoring the "FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH" and "FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC" errors, which is dangerous, as this could crash the decoder.
Not sure if there's a way to fix this; don't think so. Only option I believe is to re-encode from the source.
Posts: 283
Threads: 22
Joined: Apr 2018
Reputation:
1
(10-25-2024, 07:29 AM)kurt1970 Wrote: I was a little too fast and made a mistake. It seems I ran the wrong flac file through the flac -T test. When trying yours, I get plenty of CRC errors in the music fragments. The FLAC header is correct, but there is something wrong with the music fragments itself.
Seems like VLC is kindly ignoring the "FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH" and "FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC" errors, which is dangerous, as this could crash the decoder.
Not sure if there's a way to fix this; don't think so. Only option I believe is to re-encode from the source.
Thanks Kurt, the files came from albums I downloaded years ago, I will try and re-source.
|