bpa wrote:
> need to double check the flac DECODE output is PCM. There are force
> options to force raw (i.e. PCM) so I doubt myself now.
It seems to be a WAV, specifically: RIFF (little-endian) data, WAVE
audio, Microsoft PCM, 16 bit, stereo 44100 Hz, on a test I made.
I downloaded a minute or so of streamed ogg/flac into a file, and
'catted' it into the LMS pipeline to see what would happen. -sox- did
not fare well with the WAV, as observed earlier, but fared OK with the
AIFF.
In both cases, -flac- warned: > don't have accurate sample count available for
WAVE/AIFF header which probably bears upon matters. Why -sox- handled the AIFF
but not
the WAV remains unknown to me.
I suspect that re-running the procedure over a 'pre-converted' ogg
formatted file, no doubt with 'fuller' headers, would produce different
results.
WAV example:
Code:
--------------------
root@LMS-Server:/etc# cat
'test.ogg'|/usr/share/squeezeboxserver/Bin/arm-linux/flac --ogg -dc --
-|/usr/share/squeezeboxserver/Bin/arm-linux/sox -S -t wav - -t flac -C 0 -r
22050 - |cat >test.flac
FLAC SAYS
flac 1.3.2
Copyright (C) 2000-2009 Josh Coalson, 2011-2016 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
-: WARNING, don't have accurate sample count available for WAVE header.
Generated WAVE file will have a data chunk size of 0. Try
decoding directly to a file instead.
SOX SAYS
Input File : '-' (wav)
Channels : 2
Sample Rate : 44100
Precision : 16-bit
Sample Encoding: 16-bit Signed Integer PCM
In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0
Done.
TERMINATED ALMOST IMMEDIATELY
CHECK ON FILE:
root@LMS-Server:/etc# file test.flac
test.flac: FLAC audio bitstream data, 16 bit, stereo, 22.05 kHz, length
unknown
IT'S ONLY 114 BYTES LONG.
--------------------
FLAC example:
Code:
--------------------
root@LMS-Server:/etc# cat
'test.ogg'|/usr/share/squeezeboxserver/Bin/arm-linux/flac --ogg -dc
--force-aiff-format -- -|/usr/share/squeezeboxserver/Bin/arm-linux/sox -S -t
aiff - -t flac -C 0 -r 22050 - |cat >test.flac
FLAC SAYS
flac 1.3.2
Copyright (C) 2000-2009 Josh Coalson, 2011-2016 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
-: WARNING, don't have accurate sample count available for AIFF header.
Generated AIFF file will have a data chunk size of 0. Try
decoding directly to a file instead.
SOX SAYS
Input File : '-' (aiff)
Channels : 2
Sample Rate : 44100
Precision : 16-bit
Sample Encoding: 16-bit Signed Integer PCM
In:0.00% 00:01:39.85 [00:00:00.00] Out:2.20M [!=====|====WARNING, cannot
check MD5 signature since it was unset in the STREAMINFO
done
In:0.00% 00:01:40.31 [00:00:00.00] Out:2.21M [ ====|====- ] Hd:0.2 Clip:13
/usr/share/squeezeboxserver/Bin/arm-linux/sox WARN dither: dither clipped 13
samples; decrease volume?
Done.
SEEMED TO RUN TO COMPLETION
CHECK ON FILE:
root@LMS-Server:/etc# file test.flac
test.flac: FLAC audio bitstream data, 16 bit, stereo, 22.05 kHz, length
unknown
--------------------
So there we are.
RAW format looks more complicated to use (---force-raw-format-), and may
require communication of sample rates, etc., to -sox-. I'm not sure that
that would be available.
There is also ---force-rf64-format- and ---force-wave64-format-, which
mean nothing to me.
------------------------------------------------------------------------
mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
View this thread: http://forums.slimdevices.com/showthread.php?t=111597
_______________________________________________
Radio mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/radio