Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th April 2025, 14:51   #1781  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,343
Quote:
Originally Posted by MrVideo View Post
I'm fairly certain that I've done this before, but now it doesn't want to import FLAC files. Complains that the file format could not be recognized.

The files are created by ExactAudioCopy. Here is the mediainfo output of one of the files: -
[spoiler]
Code:
General
Complete name                            : F:\CDRips\WT40-2004-04\WT40-2004-04-1\01 - WT40-2004-04-Track01.flac
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
File size                                : 87.8 MiB
Duration                                 : 16 min 27 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 746 kb/s
Album                                    : WT40-2004-04-1
Part                                     : 1
Part/Position                            : 1
Part/Total                               : 4
Track name                               : Track01
Track name/Position                      : 01
Track name/Total                         : 4
Performer                                : WT40-2004-04
Encoded by                               : Exact Audio Copy   (Burst mode)
Genre                                    : CHR
Recorded date                            : 2004
Writing library                          : FLAC.EXE -8 -V -T "MONOSTEREO=-" -T "ARTIST=WT40-2004-04" -T "TITLE=Track01"
-T "ALBUM=WT40-2004-04-1" -T "DATE=2004" -T "TRACKNUMBER=01" -T "GENRE=CHR" -T "COMMENT="
-T "BAND=" -T "ALBUMARTIST=" -T "COMPOSER=" -T "DISCNUMBER=1" -T "TOTALDISCS=4"
-T "TOTALTRACKS=4" --picture="C:\Users\brown\AppData\Local\Temp\CPI8B1D.tmp" -o
Cover                                    : Yes / Yes
Cover description                        : CD Front Cover
Cover type                               : Cover (front) / Cover (front)
Cover MIME                               : image/ / image/jpeg
MCDI                                     : Yes
MONOSTEREO                               : -

Audio
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 16 min 27 s
Bit rate mode                            : Variable
Bit rate                                 : 744 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 87.5 MiB (100%)
Writing library                          : libFLAC 1.4.3 (UTC 2023-06-23)
[/spoiler]
Audacity reads in the file without any issues.

The files are written as FLAC, instead of WAV so that the metadata can be added.

Any thoughts? Something I can try?
What settings are you using with MediaInfo to obtain a report like that?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |

Last edited by SeeMoreDigital; 9th April 2025 at 22:27.
SeeMoreDigital is offline   Reply With Quote
Old 9th April 2025, 19:08   #1782  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,269
Quote:
Originally Posted by MrVideo View Post
I'm fairly certain that I've done this before, but now it doesn't want to import FLAC files. Complains that the file format could not be recognized.
Can you please share your log and/or provide a sample file?
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 9th April 2025 at 21:21.
LoRd_MuldeR is offline   Reply With Quote
Old 9th April 2025, 22:04   #1783  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,238
Quote:
Originally Posted by SeeMoreDigital View Post
What settings are you using with MediaInfo to obtain a report like that?
View -> text
File -> Export -> text
MrVideo is offline   Reply With Quote
Old 9th April 2025, 22:23   #1784  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,343
Quote:
Originally Posted by MrVideo View Post
View -> text
File -> Export -> text
Hmmmm... I don't understand what this is: -

Code:
Writing library                          : FLAC.EXE -8 -V -T "MONOSTEREO=-" -T "ARTIST=WT40-2004-04" -T "TITLE=Track01"
-T "ALBUM=WT40-2004-04-1" -T "DATE=2004" -T "TRACKNUMBER=01" -T "GENRE=CHR" -T "COMMENT="
-T "BAND=" -T "ALBUMARTIST=" -T "COMPOSER=" -T "DISCNUMBER=1" -T "TOTALDISCS=4"
-T "TOTALTRACKS=4" --picture="C:\Users\brown\AppData\Local\Temp\CPI8B1D.tmp" -o
I haven't seen it before in a MediaInfo file report.
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 9th April 2025, 22:26   #1785  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,238
Quote:
Originally Posted by LoRd_MuldeR View Post
Can you please share your log and/or provide a sample file?
http://vidiot.com/Zipfiles/lamexp_sample.zip

While I turned the console on, I can't cut-n-paste the text from the console. The sample file should provide the same error.

For some reason, the image is not liked (skipping unsupported image track).

Audio file format could *not* be recognized.

Then the file was rejected.

Last edited by MrVideo; 9th April 2025 at 22:32.
MrVideo is offline   Reply With Quote
Old 9th April 2025, 22:31   #1786  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,238
Quote:
Originally Posted by SeeMoreDigital View Post
Hmmmm... I don't understand what this is: -

Code:
Writing library                          : FLAC.EXE -8 -V -T "MONOSTEREO=-" -T "ARTIST=WT40-2004-04" -T "TITLE=Track01"
-T "ALBUM=WT40-2004-04-1" -T "DATE=2004" -T "TRACKNUMBER=01" -T "GENRE=CHR" -T "COMMENT="
-T "BAND=" -T "ALBUMARTIST=" -T "COMPOSER=" -T "DISCNUMBER=1" -T "TOTALDISCS=4"
-T "TOTALTRACKS=4" --picture="C:\Users\brown\AppData\Local\Temp\CPI8B1D.tmp" -o
I haven't seen it before in a MediaInfo file report.
I see that all the time, especially in mkv video files. It displays the command that created the file. In this case, EAC runs the external flac program to convert the ripped wave file to FLAC.
MrVideo is offline   Reply With Quote
Old 9th April 2025, 22:56   #1787  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,343
Mine look like this: -
Code:
General
Complete name                            : \\Synology_NAS\My Music\My Albums (2.0) CD's\Beatles, The\[1969] Abbey Road [2019 CD]\Abbey Road.flac
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
File size                                : 279 MiB
Duration                                 : 47 min 30 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 822 kb/s
Album                                    : Abbey Road
Performer                                : The Beatles
Genre                                    : Rock
Recorded date                            : 1969 [2019]
Cover                                    : Yes
Cover type                               : Cover (front)
Cover MIME                               : image/jpeg

Audio
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 47 min 30 s
Bit rate mode                            : Variable
Bit rate                                 : 821 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 279 MiB (100%)
Writing library                          : libFLAC 1.4.3 (2023-06-23)
MD5 of the unencoded content             : 6338CCADBA82E0BA336659B09AD9E5B9
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 9th April 2025, 22:58   #1788  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,269
Quote:
Originally Posted by MrVideo View Post
http://vidiot.com/Zipfiles/lamexp_sample.zip

The sample file should provide the same error.

For some reason, the image is not liked (skipping unsupported image track).

Audio file format could *not* be recognized.

Then the file was rejected.
I can reproduce your problem. Here is the full MediaInfo outpu in XML format that LameXP will process:
https://pastebin.com/tQb86gSR

This part definitely looks weird (not a valid MIME type string), and it's probably the reason why the image isn't extracted correctly:
Code:
<Cover_Mime>image/ / image/jpeg</Cover_Mime>
Could be a bug/quirk in MediaInfo

Anyways, even if we can't recognize the image (cover art), we still should be able to detect the file type. I suppose more in-depth analysis will be needed


Quote:
While I turned the console on, I can't cut-n-paste the text from the console.
With Windows' standard terminal emulator, hold down the left mouse button to select and then a single right click will copy the selection to clipboard.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 9th April 2025 at 23:17.
LoRd_MuldeR is offline   Reply With Quote
Old 10th April 2025, 06:04   #1789  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,238
Quote:
Originally Posted by LoRd_MuldeR View Post
I can reproduce your problem. Here is the full MediaInfo outpu in XML format that LameXP will process:
https://pastebin.com/tQb86gSR
Glad that you can reproduce.

What am I supposed to do with it in regards to LameXP? I noticed that all of the paths in the file pertain to your system.
Quote:
With Windows' standard terminal emulator, hold down the left mouse button to select and then a single right click will copy the selection to clipboard.
That's just it, holding down the left button doesn't select anything. It is completely ignored in the console terminal. (Win7-64) Even the scroll wheel is ignored.

I await word. It will kinda suck if the image can't be copied over to the MP3 file. But, it will not be the end of the world if it doesn't.
MrVideo is offline   Reply With Quote
Old 10th April 2025, 21:50   #1790  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,269
Quote:
Originally Posted by MrVideo View Post
What am I supposed to do with it in regards to LameXP? I noticed that all of the paths in the file pertain to your system.
You don't. At this point, I will need to do some in-depth debugging, when I have more time (probably at the WE).
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 10th April 2025, 22:51   #1791  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,238
Quote:
Originally Posted by LoRd_MuldeR View Post
You don't. At this point, I will need to do some in-depth debugging, when I have more time (probably at the WE).
Sorry, I misunderstood. I read the posting and thought you meant I was supposed to feed it to LameXP on my system. I look forward to your finding(s).
MrVideo is offline   Reply With Quote
Old 13th April 2025, 15:42   #1792  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,269
My analysis shows that, for your specific sample file, MediaInfo's output (XML) is missing the <Format>FLAC</Format> tag in the "general" section. Actually, there's no <Format> tag in the "general" section tag at all

All my other FLAC files, and actually all my audio files, do have a proper <Format> tag in the "general" section.

Consequently, I have now opened an issue at MediaInfo project, because at the moment I would suspect a problem on their side:
https://github.com/MediaArea/MediaIn...sue-2991294402
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 13th April 2025 at 15:45.
LoRd_MuldeR is offline   Reply With Quote
Old 14th April 2025, 02:39   #1793  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,238
Quote:
Originally Posted by LoRd_MuldeR View Post
My analysis shows that, for your specific sample file, MediaInfo's output (XML) is missing the <Format>FLAC</Format> tag in the "general" section. Actually, there's no <Format> tag in the "general" section tag at all

All my other FLAC files, and actually all my audio files, do have a proper <Format> tag in the "general" section.

Consequently, I have now opened an issue at MediaInfo project, because at the moment I would suspect a problem on their side:
https://github.com/MediaArea/MediaIn...sue-2991294402
I must be missing how things work. So, why doesn't LameXP like the FLAC files? What does MediaInfo have to do with this? Yes, I am really confused.

In other words, what is different in my FLAC file that is different your FLAC file that trips up the error? I'm guessing that the flac program that EAC uses is a little different than the flac program that you use?

Last edited by MrVideo; 14th April 2025 at 02:45.
MrVideo is offline   Reply With Quote
Old 14th April 2025, 09:31   #1794  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,343
Did/can you provide a sample?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 14th April 2025, 17:31   #1795  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 330
Quote:
Originally Posted by MrVideo View Post
Mp3tag shows that this file has FLAC tags, but also it has ID3v1 and ID3v2 tags.
lvqcl is offline   Reply With Quote
Old 14th April 2025, 19:18   #1796  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,269
Quote:
Originally Posted by MrVideo View Post
I must be missing how things work. So, why doesn't LameXP like the FLAC files? What does MediaInfo have to do with this? Yes, I am really confused.
LameXP is a GUI front-end. It uses various CLI tools "under the hood". For example, MediaInfo is used for detecting the file types of the given input files as well as for extracting the meta tags (including artwork).

Therefore, if MediaInfo doesn't recognize your file, or if MediaInfo produces inconclusive results for your file, as is the case here, then we have a problem

Quote:
Originally Posted by MrVideo View Post
In other words, what is different in my FLAC file that is different your FLAC file that trips up the error? I'm guessing that the flac program that EAC uses is a little different than the flac program that you use?
I'm not sure. I haven't seen this problem with any of my files. Might be related to the ID3 tags. Anyway, since the problem has been confirmed by the MediaInfo developer, we can hope for a fix...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 14th April 2025 at 19:22.
LoRd_MuldeR is offline   Reply With Quote
Old 14th April 2025, 19:52   #1797  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,343
Quote:
Originally Posted by lvqcl View Post
Mp3tag shows that this file has FLAC tags, but also it has ID3v1 and ID3v2 tags.
Ah... So that's the stuff I didn't understand...
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 14th April 2025, 22:21   #1798  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,238
Quote:
Originally Posted by LoRd_MuldeR View Post
I'm not sure. I haven't seen this problem with any of my files. Might be related to the ID3 tags. Anyway, since the problem has been confirmed by the MediaInfo developer, we can hope for a fix...
Here is what is really weird. I can rip music CDs and LameXP has no issue importing those flac files (I just checked). I just looked again at the track and the <Format>FLAC</Format> line is there in the "General" section.

I wonder if the issue is the image type, since none of the music CDs that I rip contain any images, i.e., I never insert a cover image (too lazy to scan the cover and add it to the rip). For the WT40 rips, I use the same image for all of them.

Hopefully there is a new version soon.
MrVideo is offline   Reply With Quote
Old 14th April 2025, 22:26   #1799  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,238
Quote:
Originally Posted by LoRd_MuldeR View Post
Anyway, since the problem has been confirmed by the MediaInfo developer, we can hope for a fix...
Ya, hopefully soon. No update in the bug database entry you pointed to.
MrVideo is offline   Reply With Quote
Old 15th April 2025, 08:54   #1800  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,343
Do you need the 'flac tags'. What happens if you remove them, does everything work correctly?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Reply

Tags
aac, aotuv, flac, lame, lamexp, mp3, mp4, ogg, oggenc, opus, vorbis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.