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

IOException: [file name] issue #175

Closed
vkallsen opened this issue Apr 3, 2023 · 10 comments
Closed

IOException: [file name] issue #175

vkallsen opened this issue Apr 3, 2023 · 10 comments

Comments

@vkallsen
Copy link

vkallsen commented Apr 3, 2023

Hi, I converted one aax file to m4b after adding it using the Add... button. Then I deleted the item on my list since it was already converted. I've tried to add more to convert but then I get this error message: "IOException: [file name]" and that's it. I've tried adding them through the Add... button, drag and drop, and open with but I get nothing or the same error message. Closing and re-opening program doesn't resolve. Doesn't matter which file I pick either. Please advise, thanks!

@vkallsen
Copy link
Author

vkallsen commented Apr 3, 2023

I am using an external hard drive in case that matters?

@audiamus
Copy link
Owner

audiamus commented Apr 4, 2023

That sounds strange. This IO exception, is this a Windows message box, or an internal message by AAX Audio Converter?

  • If the former, could you copy the message box text and post the call stack part here?
  • If the latter, could you run AAX Audio Converter with logging activated (see the manual, chapter 4), log level 3, and post the log here?

@vkallsen
Copy link
Author

vkallsen commented Apr 4, 2023

image

@vkallsen
Copy link
Author

vkallsen commented Apr 4, 2023

AaxAudioConverter_2023-04-04_001.log

12:28:28.463 0001 Level=3
12:28:28.602 0001 [MainForm..ctor] AaxAudioConverter 1.18.1.0 as 64bit process on Windows 10.0.22621 64bit
12:28:28.619 0001 [ActivationCode.init] add from user settings
12:28:28.622 0001 [ActivationCode.init] #unique=1
12:28:28.622 0001 [AaxAudioConverter.cleanTempDirectory] "\?\C:\Users\USER\AppData\Local\audiamus\AaxAudioConverter\tmp"
12:28:29.701 0005 [FileAssoc.Associate]
12:28:29.750 0006 [AaxAudioConverter.VerifyFFmpegPath] dir="C:\Program Files\audiamus\AAX Audio Converter"
12:28:29.931 0006 [AaxAudioConverter.VerifyFFmpegPath] version 4.2.2
12:28:30.114 0001 [OnlineUpdate.updateDefaultPackageAsync] AaxAudioConverter: server=1.18.1, installed=1.18.1.0
12:28:30.118 0001 [OnlineUpdate.updateOtherPackagesAsync] BookLibConnect: declined by setting.
12:28:55.817 0010 [AaxAudioConverter.addFilesParallel] "F:\Audible Audiobooks\AAX Files\Dark Age_1980000174_LC_64_22050_Stereo.aax"
12:28:55.819 0010 [TagAndFileNamingHelper.readMetaData]
12:28:55.820 0010 [TagAndFileNamingHelper.readMetadataFFmpeg] "F:\Audible Audiobooks\AAX Files\Dark Age_1980000174_LC_64_22050_Stereo.aax"
12:28:56.009 0010 [AaxFileItem..ctor] F:\Audible Audiobooks\AAX Files\Dark Age_1980000174_LC_64_22050_Stereo.aax, error reading meta data
12:28:56.011 0010 [AaxAudioConverter.exceptionCallback] IOException:
"F:\Audible Audiobooks\AAX Files\Dark Age_1980000174_LC_64_22050_Stereo.aax"

@audiamus
Copy link
Owner

audiamus commented Apr 4, 2023

OK, this happens either when reading meta data through FFmpeg or through the ATL library. Meta data must be read before AAX Audio Converter can display anything in the list. That list is never filled from the file name, always from meta data within the file. And if that fails, the list remains empty. To find out more, could you raise the log level to 4? That will also log FFmpeg output.

And is this the only .aax file causing problems? If not and all the affected files are on an external disk, can you copy one of them to a local disk and retry? It could be a disk access problem.

You can also try to run FFmpeg directly from a console window. Open console in
C:\Program Files\audiamus\AAX Audio Converter
Run
ffmpeg.exe -hide_banner -i "F:\Audible Audiobooks\AAX Files\Dark Age_1980000174_LC_64_22050_Stereo.aax"

@vkallsen
Copy link
Author

vkallsen commented Apr 4, 2023

@vkallsen
Copy link
Author

vkallsen commented Apr 4, 2023

Happens regardless of .aax file. Happens even if I run off local disk too. I forget if I mentioned this at the top but I did convert 1 .aax file successfully before this error started happening.

@vkallsen
Copy link
Author

vkallsen commented Apr 4, 2023

I think I found the problem! It appears something happened when I exported the files to .aax with Book Lib Connect. I tried your command and got this:
image

Which made me suspicious. So I went over to look at the .aax files, and some of them are 0 KB.
image

Ones that are 0 KB are not working, ones that have some size to them are. Now I have to figure out how Book Lib Connect failed to export properly? Any thoughts on that or should I just delete all the 0 KB ones and try again?

@audiamus
Copy link
Owner

audiamus commented Apr 4, 2023

It appears something happened when I exported the files

Exactly.
Line 33 in the log, same FFmpeg message:
[FFmpeg.ffMpegAsyncHandlerAudioMeta] {#2} C:\Users\USER\Desktop\A Rare Book of Cunni_B071NDRLBK_LC_64_22050_Stereo.aax: Invalid data found when processing input

Ones that are 0 KB are not working, ones that have some size to them are.

Delete those empty files and and start over with Book Lib Connect. Book Lib Connect will try to figure out what is still present and what is not. So, if you are lucky, it will not re-download the books and hereby save time.

If empty files are created again, the Book Lib Connect log might help. Logging in Book Lib Connect is on by default, with log level 3, which should suffice.

@audiamus
Copy link
Owner

audiamus commented Apr 6, 2023

I close this for now. Please open a new issue in the Book Lib Connect section if the empty aax exports persist.

@audiamus audiamus closed this as completed Apr 6, 2023
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

2 participants