expectingtofly wrote: 
> 
> If you want an immediate fix,  comment out line 94 in the m4a.pm   (this
> is untested on other players, but as the BBC Iplayer plugin doesn't set
> it, I guess it is ok)
> 
> > 
Code:
--------------------
  >   > 
  >     if ( my $atom = parseAtoms( 'moov', $dataref, $args ) ) {
  >                                     $props->{mp4a} 
=$atom->{'trak'}->{'mdia'}->{'minf'}->{'stbl'}->{'stsd'}->{'entries'}->{'mp4a'};
  >                                     $song->track->bitrate( 
$props->{bitrate}|| $props->{mp4a}->{'esds'}->{'avgbitrate'} );
  >                             #       $song->track->samplerate( 
$props->{'samplingRate'}|| $props->{mp4a}->{'samplerate'} );
  >                                     $song->track->channels( 
$props->{'channels'}|| $props->{mp4a}->{'channelcount'} );
  > 
--------------------
> > 

Thanks - this worked.

Probably needs bpa/Michael/Philippe/Ralphy input to work out a solution
that allows the plugin to continue to provide the correct data but for
LMS to determine that transcode is needed because player does not
support the source sample rate.

I suspect that this is already possible in Squeezelite so maybe Jive
needs same capability or perhaps LMS could assume everything supports
only 44.1 unless told otherwise (which could be via Audio config page
for player in LMS) ... or player tells LMS "unsupported sample rate"
when it fails and LMS tries a different one via transcode (which would
result in a delay and possibly intermediate error messages).



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland
------------------------------------------------------------------------
Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=113045

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to