Error code -133: File couldn't be opened or doesn't exist. #68
-
I've written the above code to read the opus file but I'm getting the following error "PyOggError: file couldn't be opened or doesn't exist. Error code -133" even though the file exists. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
One possibility is that the opus file is corrupt. Can you play it with the
likes of VLC or Firefox?
OpusFile doesn’t use the standard python file handling facilities. I’m not
a Windows user, but I’d consider trying swapping out the slashes: / for \.
You could try moving the file to the working directory. That would allow
you to refer to the file as just “renamed.opus”. If it still doesn't work,
then it’s probably a corrupt file. If it does work then it’s likely the
slashes or similar that are causing difficulties.
Please report back to tell us how you go.
Cheers,
Matthew
…On Wed, 9 Dec 2020 at 18:51, ArunGeorge ***@***.***> wrote:
import pyogg
opus_file = pyogg.OpusFile("C:/voice/renamed.opus")
I've written the above code to read the opus file but I'm getting the
following error "PyOggError: file couldn't be opened or doesn't exist.
Error code -133" even though the file exists.
Is there a solution to this issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/TeamPyOgg/PyOgg/issues/68>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA653XEJR757GO2ZZAXUBSLST4F6PANCNFSM4US7TIAA>
.
|
Beta Was this translation helpful? Give feedback.
-
Also, it would be worthwhile trying the examples out. They should work
without error on your machine. That should give you confidence that PyOgg
is installed correctly.
For even more confidence generation, you could also run the tests. They too
should pass without error.
Both the examples and tests check file reading.
Matthew
…On Wed, 9 Dec 2020 at 19:04, Matthew Walker ***@***.***> wrote:
One possibility is that the opus file is corrupt. Can you play it with the
likes of VLC or Firefox?
OpusFile doesn’t use the standard python file handling facilities. I’m not
a Windows user, but I’d consider trying swapping out the slashes: / for \.
You could try moving the file to the working directory. That would allow
you to refer to the file as just “renamed.opus”. If it still doesn't work,
then it’s probably a corrupt file. If it does work then it’s likely the
slashes or similar that are causing difficulties.
Please report back to tell us how you go.
Cheers,
Matthew
On Wed, 9 Dec 2020 at 18:51, ArunGeorge ***@***.***> wrote:
> import pyogg
>
> opus_file = pyogg.OpusFile("C:/voice/renamed.opus")
>
> I've written the above code to read the opus file but I'm getting the
> following error "PyOggError: file couldn't be opened or doesn't exist.
> Error code -133" even though the file exists.
> Is there a solution to this issue?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/TeamPyOgg/PyOgg/issues/68>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA653XEJR757GO2ZZAXUBSLST4F6PANCNFSM4US7TIAA>
> .
>
|
Beta Was this translation helpful? Give feedback.
-
Interesting that it’s a voice recorder. But if VLC can’t play it, then yes,
I would suspect it’s a corrupt file and it’s not a problem with PyOgg.
Sorry I can’t be of more help.
Matthew
…On Wed, 9 Dec 2020 at 20:21, ArunGeorge ***@***.***> wrote:
The proper source is not known other than it's a voice recording device. I
guess you're right the files might be corrupt.
Sorry, I won't be able to share the files due to data privacy violations.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#68 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA653XEJWTZASYJI4LC4CPDST4QN5ANCNFSM4UTAQ42Q>
.
|
Beta Was this translation helpful? Give feedback.
-
If the recording is of significant value to you, you might consider using Opusinfo will give you indications of what's wrong with the file. However I know of no automated tools to fix a corrupt Opus-encoded file. Cheers, Matthew |
Beta Was this translation helpful? Give feedback.
If the recording is of significant value to you, you might consider using
opusinfo
(part ofopustools
).Opusinfo will give you indications of what's wrong with the file. However I know of no automated tools to fix a corrupt Opus-encoded file.
Cheers,
Matthew