@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.
Michael
"It doesn't work - what shall I do?" - "Please check your server.log
and/or scanner.log file!"
(LMS: Settings/Information)
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=113308
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix