mrw wrote: 
> That was my schoolboy error ! I intended to write -wav- as follows:
> 
> > 
Code:
--------------------
  >   > 
  > ogf flc * *
  > # IFRD:{RESAMPLE=-r %d}
  > [flac] --ogg -dcs -- $FILE$ | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ -
  > 
--------------------
> > 
> 
> But, for reasons unknown to me, it does not seem to produce any sound
> output, it just seemed to pack up streaming.
> 
> But this does look promising:
> > 
Code:
--------------------
  >   > 
  > ogf flc * *
  > # IFRD:{RESAMPLE=-r %d}
  > [flac] --ogg -dcs --force-aiff-format -- $FILE$ | [sox] -q -t aiff - -t 
flac -C 0 $RESAMPLE$ -
  > 
--------------------
> > 
> That does seem to work. I don't know why forcing -aiff- as an
> intermediate flac output format makes a difference, but it does. So it
> might be worth the OP trying it out, as an interim step, to see if it
> works in a real set up. I have no ogg/flac 96000 sample rate sources
> to test this on.
> 
> Assuming that it does work, perhaps a better understanding of flac/sox
> options could produce a "better" decoder pipeline specification.

The output of a flac DECODE is PCM - no WAV header - so no way to tell
sox what bit rate ,sample size etc.
The output of a flac ENCODE is flac  - second example is encode.


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111597

_______________________________________________
Radio mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/radio

Reply via email to