mherger wrote: > @bpa - would the following fix the issue? > > > Code: -------------------- > > diff --git a/Slim/Plugin/WiMP/ProtocolHandler.pm b/Slim/Plugin/WiMP/ProtocolHandler.pm > index 509de4516..d952e3c88 100644 > --- a/Slim/Plugin/WiMP/ProtocolHandler.pm > +++ b/Slim/Plugin/WiMP/ProtocolHandler.pm > @@ -40,6 +40,15 @@ sub getFormatForURL { > return $format; > } > > +sub formatOverride { > + my ($class, $song) = @_; > + my $format = Slim::Music::Info::contentType($song->currentTrack); > + > + return 'tdlflc' if $format eq 'flc'; > + return $format; > +} > + > # default buffer 3 seconds of 256kbps MP3/768kbps FLAC audio > my %bufferSecs = ( > flac => 80, > diff --git a/Slim/Plugin/WiMP/custom-convert.conf b/Slim/Plugin/WiMP/custom-convert.conf > new file mode 100644 > index 000000000..97d7ff763 > --- /dev/null > +++ b/Slim/Plugin/WiMP/custom-convert.conf > @@ -0,0 +1,19 @@ > + > +tdlflc mp3 * * > + # IFB:{BITRATE=--abr %B}T:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=--resample %D} > + [flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - - > + > +tdlflc pcm * * > + # IFT:{START=--skip=%t}U:{END=--until=%v} > + [flac] -dcs --force-raw-format --endian=little --sign=signed $START$ $END$ -- $FILE$ > + > +tdlflc aif * * > + # IFT:{START=--skip=%t}U:{END=--until=%v} > + [flac] -dcs --force-raw-format --endian=big --sign=signed $START$ $END$ -- $FILE$ > + > +tdlflc flc * * > + - > + > +tdlflc flc transcode * > + # IFT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d} > + [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ - > diff --git a/convert.conf b/convert.conf > index 90748daa2..1c0739875 100644 > --- a/convert.conf > +++ b/convert.conf > @@ -357,7 +357,7 @@ mp3 mp3 transcode * > [lame] --silent -q $QUALITY$ $BITRATE$ $RESAMPLE$ --mp3input $FILE$ - > > flc flc transcode * > - # IFT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d} > + # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d} > [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ - > > # This example transcodes MP3s to MP3s, if the target machine has the > -------------------- > > > > What this does is it defines a custom format called "tdlflc". Only > this should transcode on stdin (IFT), but not regular flac.
Couldn't the problem happen with any flac file, as long as some flac compression mode is being used? Maybe we could detect that level? Also, I don't fully remember the problem, but @bpa, doesn't that only happens with Boom and some models, right? If it does, could we make a transcode rule that only applies to these models? LMS 7.9 on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, Riva 1 & 3 ------------------------------------------------------------------------ philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=113308 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix