PasTim wrote: 
> With C3PO installed I tried adding a specific flc flc transcode
> 00:06:78:09:50:ce to custom-convert.conf.  This seemed to be ignored.  I
> then changed it to flc flc * 00:06:78:09:50:ce .  That worked, even with
> flc-mp3 disabled.  Your transcode table now shows all flac being
> processed by flac/sox for that MAC.
> 
> So this sort of fixes the problem, except that there is now unnecessary
> LMS processing for all flacs to that MAC, rather than just for the
> transcoding case.
> 
> I know very little about much of this stuff, but it would appear that
> LMS does not search for 'transcode' to specific MACs.  The MAC is, in
> this case, the UPnP bridge (I think masquerading as a squeezelite). 
> Whether that is "a bug" I couldn't say.
> 
> I got into all this because I was trying to test new features in the
> UPnP Bridge, where that bridge can also transcode, with some benefits
> such as cross-fade and a form of gapless play on those UPnP devices that
> don't support it.  I found flacs being converted to mp3s by LMS when I
> didn't expect it and this confused me greatly.  I now think that, with
> the help of your comments, that I'm close to closing off that particular
> issue.
> 
> I don't really want to use C-3PO for these UPnP devices because the UPnP
> bridge is also transcoding to get 'gapless' to work, and I don't want to
> do 2 lots of transcoding if I can avoid it.  I did try briefly, but the
> output from C-3PO mostly confused the UPnP bridge and/or player, so I
> gave up.  I don't plan to try that again unless someone really wants me
> too!

Sure, you better avoid double transcoding, that's why I disabled
'transcoding' at fist time, to avoid upsampling and then downsampling
becose transcoding...

That's the final word: LMS does not looks at transcode - MAC lines. I
was thinking by myself to  a specific flc - flc line, but then you have
the inconvenient of SOX being called also when trascoding is
unneccesarly, please mind that if in and out sample rate and format are
the same SOX does nothing, but is not a solution.

That's a general problem in LMS: You could not define rules depending on
actual sample rate but only on file format, so why C-3PO was initially
made. To handle that, C-3PO is used also as the 'transcoder' application
invoked runtime (instead of SOX or FLAC or...), when the file/stream to
play is known. In that case it looks at the actual format and sample
rate and apply the defined role to decide if transcode is necessarly and
what should be the output. Maybe you could use a similar trick in your
plugin.

I'll have a look at the code and maybe I'll prmpt Michael with a
proposal to handle transcode per  player.

Thanks, marco



________________________________________________________________________
Author of C-3PO plugin,  Squeezelite-R2, Falcon Web interface - See
www.marcoc1712.it
------------------------------------------------------------------------
marcoc1712's Profile: http://forums.slimdevices.com/member.php?userid=34842
View this thread: http://forums.slimdevices.com/showthread.php?t=105309

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

Reply via email to