Home of the Squeezebox™ & Transporter® network music players.

Go Back   Squeezebox : Community : Forums > Developer Forums > Beta
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 2008-11-11, 17:05
britboy britboy is offline
Junior Member
 
Join Date: Oct 2007
Posts: 15
britboy is on a distinguished road
Default

Quote:
Originally Posted by IceFusion View Post
excellent. look forward to testing it, though I won't be able to get to it until Thursday...

can you help me get a jumpstart on my my custom converter defs? (assume convert.conf will contain updated defs, particularly for [alac]?)

mov flc * *
[faad] -w -f 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 -

mov wav * *
[faad] -w -f 2 $FILE$
I was able to get everything up and running with these:

# Transcoding for AAC files.
mov flc * *
# F
[faad] -w -f 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 -

mov mp3 * *
# FB:{BITRATE=-B %B}
[faad] -w -f 2 $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ $BITRATE$ -r - -

mov wav * *
# F
[faad] -w -f 2 $FILE$
Reply With Quote
  #32  
Old 2008-11-26, 14:37
pardsbane pardsbane is offline
Junior Member
 
Join Date: Nov 2008
Posts: 12
pardsbane is on a distinguished road
Default

Quote:
Originally Posted by britboy View Post
I was able to get everything up and running with these:

# Transcoding for AAC files.
mov flc * *
# F
[faad] -w -f 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 -

mov mp3 * *
# FB:{BITRATE=-B %B}
[faad] -w -f 2 $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ $BITRATE$ -r - -

mov wav * *
# F
[faad] -w -f 2 $FILE$
I can confirm these settings work. Make sure you have the white space before the #'s.
Reply With Quote
  #33  
Old 2008-12-12, 08:37
Klaas Klaas is offline
Senior Member
 
Join Date: Oct 2006
Posts: 109
Klaas is on a distinguished road
Default Problem using more than one variable

I am using the custom-convert.conf for the BruteFirDRC Plugin. I got one problem with the new syntax. I need to add the bitrate to the command line so that flac files with different bitrates can be transcoded correctly, but it looks like only the first occurence of a variable is replaced. I am using the BITRATE two times but only the first one is replaced.


flc flc * 00:04:20:06:b4:65
# F:{BITRATE=%d}
[flac] -dcs --force-raw-format --endian=little --sign=signed -- $FILE$ | /usr/share/squeezecenter/Plugins/BrutefirDrc/brutefirwrapper 00:04:20:06:b4:65 /etc/squeezecenter/BrutefirDrc/settings/filter-00_04_20_06_b4_65 $BITRATE$ | [flac] -cs -0 --totally-silent --endian=little --sign=signed --channels=2 --bps=24 --sample-rate=$BITRATE$ -

debug output from server.log (the last BITRATE at the end is not replaced):
[08-12-12 17:23:46.1510] Slim::Player::TranscodingHelper::checkBin (237) Found command: [flac] -dcs --force-raw-format --endian=little --sign=signed -- $FILE$ | /usr/share/squeezecenter/Plugins/BrutefirDrc/brutefirwrapper 00:04:20:06:b4:65 /etc/squeezecenter/BrutefirDrc/settings/filter-00_04_20_06_b4_65 $BITRATE$ | [flac] -cs -0 --totally-silent --endian=little --sign=signed --channels=2 --bps=24 --sample-rate=$BITRATE$ -
[08-12-12 17:23:46.1513] Slim::Player::TranscodingHelper::getConvertCommand 2 (454) Matched: flc->flc via: [flac] -dcs --force-raw-format --endian=little --sign=signed -- $FILE$ | /usr/share/squeezecenter/Plugins/BrutefirDrc/brutefirwrapper 00:04:20:06:b4:65 /etc/squeezecenter/BrutefirDrc/settings/filter-00_04_20_06_b4_65 $BITRATE$ | [flac] -cs -0 --totally-silent --endian=little --sign=signed --channels=2 --bps=24 --sample-rate=$BITRATE$ -
[08-12-12 17:23:46.1515] Slim::Player::Song:pen (340) Transcoder: streamMode=F, streamformat=flc
[08-12-12 17:23:46.1526] Slim::Player::TranscodingHelper::tokenizeConvertCo mmand2 (557) Using command for conversion: "/usr/bin/flac" -dcs --force-raw-format --endian=little --sign=signed -- "/music/slimserver/flac/Bands/Agalloch/The_White/02.Birch_Black.flac" | /usr/share/squeezecenter/Plugins/BrutefirDrc/brutefirwrapper 00:04:20:06:b4:65 /etc/squeezecenter/BrutefirDrc/settings/filter-00_04_20_06_b4_65 44100 | "/usr/bin/flac" -cs -0 --totally-silent --endian=little --sign=signed --channels=2 --bps=24 --sample-rate=$BITRATE$ -
[08-12-12 17:23:46.1528] Slim::Player::Song:pen (457) Tokenized command "/usr/bin/flac" -dcs --force-raw-format --endian=little --sign=signed -- "/music/slimserver/flac/Bands/Agalloch/The_White/02.Birch_Black.flac
" | /usr/share/squeezecenter/Plugins/BrutefirDrc/brutefirwrapper 00:04:20:06:b4:65 /etc/squeezecenter/BrutefirDrc/settings/filter-00_04_20_06_b4_65 44100 | "/usr/bin/flac" -cs -0 --totally-silent --endian=little --sign=signed --channels=2 --bps=24 --sample-rate=$BITRATE$ -
[08-12-12 17:23:46.2558] Slim::Player::SongStreamController::new (32) live=1


Do I miss something or is this a bug? With SqueezeCenter 7.2.x I used the RATE and the variable was replaced n-times.

Regards Klaas
__________________
Creator of BrutefirDrc see http://klaasprause.com/brutefirdrc

Hardware:
Squeezebox v3 with digital out tweaking and custom power supply, Tact TDA2200 Digital Amplifier, MBL 311-D Speaker
Reply With Quote
  #34  
Old 2008-12-18, 09:06
awy awy is offline
Senior Member
 
Join Date: Sep 2006
Location: Zurich, Switzerland
Posts: 633
awy is on a distinguished road
Default

I'm not sure that I would classify it as a bug, just an omitted piece of functionality.

If you want to hack up a solution yourself, then just add a g to the variable substitution in TranscodingHelper.pm:
Code:
	foreach (keys %subs) {
		$command =~ s/\$$_\$/$subs{$_}/;
	}
with
Code:
	foreach (keys %subs) {
		$command =~ s/\$$_\$/$subs{$_}/g;
	}
You could also file an enhancement request.

Alan.
Reply With Quote
  #35  
Old 2009-01-24, 02:46
Klaas Klaas is offline
Senior Member
 
Join Date: Oct 2006
Posts: 109
Klaas is on a distinguished road
Default enhancement request created

I created a bug for this in the tracking tool:
http://bugs.slimdevices.com/show_bug.cgi?id=10814
__________________
Creator of BrutefirDrc see http://klaasprause.com/brutefirdrc

Hardware:
Squeezebox v3 with digital out tweaking and custom power supply, Tact TDA2200 Digital Amplifier, MBL 311-D Speaker
Reply With Quote
  #36  
Old 2009-10-08, 01:05
Klaas Klaas is offline
Senior Member
 
Join Date: Oct 2006
Posts: 109
Klaas is on a distinguished road
Default ticket reopened

Somehow the transcoding does not work as expected, so I reopened the bug, see there for more information. Maybe it should be a new ticket or is no bug at all? If the ticket should remain closed, I would be happy to discuss the problem here.
__________________
Creator of BrutefirDrc see http://klaasprause.com/brutefirdrc

Hardware:
Squeezebox v3 with digital out tweaking and custom power supply, Tact TDA2200 Digital Amplifier, MBL 311-D Speaker
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 20:41.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.