I tested readsf~ with a wav file and it worked, but mp3, m4a, flac, and all video files i tried didn't work. how do you make these work?
error:
dsp: /path/to/file.flac: unknown or bad header format
I can't play mp3 files with readsf~ (purr-data)
I tested readsf~ with a wav file and it worked, but mp3, m4a, flac, and all video files i tried didn't work. how do you make these work?
error:
dsp: /path/to/file.flac: unknown or bad header format
@4ZZ4 It just does not work.
But you can use this external instead: https://forum.pdpatchrepo.info/topic/12980/ffplay-an-implementation-of-ffmpeg-for-audio-playback-of-any-media-format
@Jona I tried installing it, but i got this error:
$ sudo make
++++ info: using Makefile.pdlibbuilder version 0.6.0
ls: cannot access '/m_pd.h': No such file or directory
pd-lib-builder/Makefile.pdlibbuilder:802: Where is Pd API m_pd.h? Do 'make help' for info.
++++ info: making target all in lib ffmpeg
++++ info: making ffplay~.o in lib ffmpeg
cc -DPD -I "" -DUNIX -fPIC -Wall -Winline -Wstrict-aliasing -Wshadow -Wno-unused-function -Wno-unused-parameter -Wno-unused-value -Wno-unused-variable -O3 -ffast-math -funroll-loops -fomit-frame-pointer -march=core2 -mfpmath=sse -msse -msse2 -msse3 -o ffplay~.o -c ffplay~.c
In file included from ffplay~.c:1:
ufloat.h:1:10: fatal error: m_pd.h: No such file or directory
1 | #include "m_pd.h"
| ^~~~~~~~
compilation terminated.
make: *** [pd-lib-builder/Makefile.pdlibbuilder:957: ffplay~.o] Error 1
EDIT: I did some research and it turns out I have to compile it in /opt/purr-data/include/pd-l2ork/
, oops...
Oops! Looks like something went wrong!