fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Unable to pipe output to stdout


From: Pedro Lopez-Cabanillas
Subject: Re: [fluid-dev] Unable to pipe output to stdout
Date: Fri, 25 Mar 2011 21:19:58 +0100
User-agent: KMail/1.13.5 (Linux/2.6.34.7-0.7-desktop; KDE/4.4.4; i686; ; )

On Friday 25 March 2011, Stefan Parviainen wrote:
> The following command
> "fluidsynth -vilF - mysoundfont.sf2 mymidifile.mid | cat"
> gives the error
> "fluidsynth: error: Failed to open audio file '-' for writing"
> 
> However,
> "fluidsynth -vilF - mysoundfont.sf2 mymidifile.mid > somefile.wav"
> works fine.
> 
> So there seems to be something strange going on with piping. Any ideas
> what the problem is or how to work around it?

FluidSynth uses libsndfile for WAV file format output (and for other types, 
except raw). WAV format is not suitable for piping. See libsndfile FAQ:
http://www.mega-nerd.com/libsndfile/FAQ.html#Q017

The workaround is selecting a different output format, like AU or RAW
$ fluidsynth -oaudio.file.type=raw -vilF - mysoundfont.sf2 mymidifile.mid | cat

> The Trac on sourceforge seems to be broken, I'm unable to browse it if
> I am logged in (goes into infinite redirect-loop) so I'm reporting the
> bug here instead.

Works fine here. Are you using this URL?
https://sourceforge.net/apps/trac/fluidsynth/

Regards,
Pedro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]