RamonUnch / in_opus

Winamp 2.x and 5.x input plugin for Opus file
38 stars 0 forks source link

in_opus err -129 Offline #4

Closed schivore closed 1 year ago

schivore commented 1 year ago

Hello

I can read mp3 files without a problem, but cannot read opus files located either in the winamp drive nor on my NAS drive. The error I get is in_opus err -129 Offline

I will try to fiddle with the plugin a but more, but any help would be appreciated.

Thanks for developing this plugin.

Screen Shot 2022-12-06 at 09 53 26

RamonUnch commented 1 year ago

I guess you are using version 2.x of Winamp that does not support Unicode..

I see interrogation marks ? in the filename, it means that the Japanese characters are not available in the current local. The issue here is that Winamp2.x is limited to non Unicode characters. This mean that the plugins cannot retrieve the real file name and only gets a file name that was converted from the original unicode file name to the current local character encoding and thus you get ? instead of kanjis. Then the plugin tryes to open the given file name and actually it does not exist in its form with ? inside.

So there is not much in_opus can do. You can try to add a Japanese character also to an MP3 file and you will have the same problem.

I also use Winamp 2.x and this is a limitation. you must ensure that all audio files are not containing any characters that are not in you local code-page.

Under Winamp 5 in_opus.dll is no longer limited to local code page and can handle any Unicode character. The same rule applies to all other default plugins.

For now the only option is renaming the files.

I am working on a workaround that consists in guessing the real path name from the local-converted one. This would not be 100% reliable however.

schivore commented 1 year ago

thank you that makes sense, removing the kanjis worked!

I thought I was using winamp 5.05 (see screenshot) but since I am playing it via PlayOnMac on Mac Os X and the opus files are on a mounted folder pointing to a NAS drive, the problem is probably on my side somewhere along the chain :)

Thanks for this excellent plugin 👍

Screen Shot 2022-12-06 at 12 59 18

RamonUnch commented 1 year ago

Actually I think Winamp supports Unicode only since version 5.3 EDIT: Yes I double checked Unicode file names is only possible since Winamp 5.3

I was able to make a somewhat reliable routine to resolve file names. Have a try with this build:

in_opus_v0.913test.zip

It should work as long as turning special characters to ? will not create file name collision and as long as the directory contains only ANSI characters.

So the idea is:

x:\Path\Without\non\ANSI\characters
* file1日.opus
* file2本.opus
* file1語.opus

In this case you will be able to play files file2本.opus but not file1日.opus or file1語.opus because I cannot know from file1?.opus which one it is.

RamonUnch commented 1 year ago

This is strange however, I did not write any MacOS support, So I do not know how you can run a Win32 plugin on MasOS?

schivore commented 1 year ago

PlayOnMac creates a virtual C drive on the Mac hard drive, namely in: /Users/mac/Library/PlayOnMac/wineprefix/Winamp/drive_c/Program Files/Winamp/Plugins I saved your plugin in there and it worked right away.

schivore commented 1 year ago

Thanks for the routine, it works very well (despite the "in_opus err - 129 Offline" warning appearing in the Playlist window, the file plays perfectly well). It saves me the hassle of renaming my collection of opus files.

Thanks again.

Screen Shot 2022-12-06 at 15 13 55