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

Piping FLAC or Ogg Vorbis audio to stdin doesn't work #103

Open
chrisn opened this issue Nov 3, 2019 · 2 comments
Open

Piping FLAC or Ogg Vorbis audio to stdin doesn't work #103

chrisn opened this issue Nov 3, 2019 · 2 comments

Comments

@chrisn
Copy link
Member

chrisn commented Nov 3, 2019

Examples:

$ cat test.flac | ./audiowaveform --input-format flac -o 1.dat -b 8 -z 64
Failed to read input: System error : Illegal seek.
$ cat test.oga | ./audiowaveform --input-format flac -o 1.dat -b 8 -z 64
Failed to read input: Supported file format but file is malformed.

This is due to a limitation in libsndfile (see this issue for details). I will fix this when an updated version of libsndfile is released.

@prodbyola
Copy link

Hey @chrisn thanks for the awesome work on this package! Is there any progress on this issue? Would love to generate waveform data from FLAC files. Thanks.

@chrisn
Copy link
Member Author

chrisn commented Jan 2, 2022

As a workaround, you can use either of these methods to read FLAC files:

audiowaveform -i test.flac -o test.dat -z 256 -b 8
audiowaveform --input-format flac -o test.dat -b 8 < test.flac

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