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

Opusenc fails to encode very short flac files #291

Closed
MarcroSoft opened this issue Jun 30, 2023 · 4 comments
Closed

Opusenc fails to encode very short flac files #291

MarcroSoft opened this issue Jun 30, 2023 · 4 comments

Comments

@MarcroSoft
Copy link

Hi,
I'm not sure if it's related to opus or flac, but when I try to encode a short flac file with opusenc it says:
ERROR: Could not open FLAC stream.
Error: unsupported input file: synth1.flac
I did the following, you will need sox for this but any file will do:
sox -n synth1.flac synth 1
opusenc synth1.flac synth1.opus
Which does not work, 1 second file.
And this:
sox -n synth5.flac synth 5
opusenc synth5.flac synth5.opus
Works, 5 seconds file.
Any ideas? And sorry if it's in the wrong place, I'm not an expert in this.
Thanks,
Marc

@MarcroSoft
Copy link
Author

Hi,
I just tried it with opus-tools from homebrew on mac, and there it works.
The one that fails is both the one from rarewares and my own built from media autobuild suite for windows.
So maybe it's a windows thing?
Anyway I hope someone can take a look on it.

@jmvalin
Copy link
Member

jmvalin commented Jun 30, 2023

FLAC support in opus-tools is optional. Probably one binary was compiled with FLAC support and other wasn't.

@MarcroSoft
Copy link
Author

Hi,
No, as I say, longer files works fine, it's only short files that crash.

@MarcroSoft
Copy link
Author

I've made some progress.
It seams to work when compiling opus-tools 0.2 with dynamic libflac-8.dll, haven't tried static yet, but not from git.
I think this should be opened in opus-tools, so I'm closing it. Sorry for disturbing you.

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