mike_b16 wrote: 
> I also tried change the filetype in the pcm portion of
> custom-convert.conf to a wav (-t wav) with the same results. If you're
> saying LMS is picky with the formatting I can change it back.
Basically LMS will create a process using the command line created using
the "template from the convert.conf file.  LMS will then assume the
output from the process (i.e. stdout) is either PCM, MP3 or Flac
depending on which line has been used. A 44.1/16 WAV audio stream is the
same as a LMS PCM except there is a header in WAV at the start.  IIRC
whether the WAV header is interpreted or played as a PCM sample will
depend on the player's audio decoder.  Unless you are using a SB1 - I'd
advise using the Flac stream as that as LMS expects a Flac header which
means audio format of stream is part of the stream. 

In the WAV header there is a length field. A stream is considered to
have no length so I'm not sure what "arecord" would put into the length
field in the WAV header and so you might get odd problems depending on
player (e.g. player stops after approx 3hr20min which is max length of
44.1/16 WAV file)

The MP3 and Flac line have "-t wav" because the relevant encoder
lame/flac reads the WAV header created by "arecord" (which had audio
format info)  and copies it over to the MP3 or Flac header as
appropriate.  Since PCM stream has no header the PCM line should have
"-t raw"

The plugin takes the complte "wavin:" URL and removes the "wavin:" part
and LMS then uses remainder as the value for $FILE$ in the conf file
line.  So a wavin:default URL would change a  "-D $FILE$"  into "-D
default" 

For ALSA device specs I suggest always use 2 digits i.e. hw:0,0 and not
just hw:0  - as you cannot be sure what ALSA might pick for 2nd param.


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

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

Reply via email to