Firstly I want to say a great thanks to bpa and everyone else who's put
together tools, found URLs, badgered those in power and generally got us
near a point where we can get iPlayer back on the Squeezebox world.
I've put a bit of work together to get my combined squeezeplug/and
squeezelite running on a Raspberry Pi, and am now listening to 6music.
See below for some alternate scripts/programs.
expectingtofly wrote:
> Many thanks for this. I've given it to go.
> I'm finding that ffmpeg won't work with the options specified in the
> custom-convert.conf :
> >
Code:
--------------------
> > [playhls.sh] -loglevel quiet -nostdin -i $FILE$ -f wav - | [lame]
--silent -q $QUALITY$ $BITRATE$ - -
--------------------
> >
>
> the -nostidin option seems to be the culprit. I removed that and it
> worked. I'm not sure if that is important or not, as I think that
> prevent ffmpeg looking for user input but we may be doing that in the
> playhls shell script any away.
>
Yes I was seeing this also with avconv. It's an unrecognised
command-line option and so causes ffmpeg/avconv to fail.
>
> Unfortunately ffmpeg was still refusing to end.
>
I too was not having a good time with the shell script so have lashed
together a perl one which on my RaspberryPi B is a bit more robust.
You should put the script in the same directory as bpa's shell script
(e.g. /usr/local/bin on Linux). Of course you'll need to edit the
custom-convert.conf to change it to run playhls.pl:
Code:
--------------------
# PlayHLS rules to start convert application for Linux
hls mp3 * *
# RB:{BITRATE=-B %B}T:{START=-ss %s}
[playhls.pl] -loglevel quiet -i $FILE$ -f wav - | [lame] --silent -q
$QUALITY$ $BITRATE$ - -
hls pcm * *
# RB:{BITRATE=-B %B}T:{START=-ss %s}
[playhls.pl] -loglevel quiet -i $FILE$ -f s16le -
hls flc * *
# RB:{BITRATE=-B %B}T:{START=-ss %s}
[playhls.pl] -loglevel quiet -i $FILE$ -f flac -
--------------------
As mentioned above I decided to go down running avconv. I built the
latest one from one from http://libav.org/download.html
I built it directly on my Raspberry Pi as I don't have cross-compiler
tools and wanted to make sure i built it with hardware floating-point.
Note though it takes 4 hours to build on a RasPi. In case anyone is
interested and has only a little Linux knowledge, but is able to login
to a shell on their RasPi, here are the set of commands to go about it:
Code:
--------------------
$ cd $HOME
$ mkdir av_build
$ cd av_build
$ wget https://libav.org/releases/libav-11.2.tar.gz
$ tar xzf libav-11.2.tar.gz
$ cd libav-11.2
$ CFLAGS="-mfloat-abi=hard -mfpu=vfp" configure
# Note the above takes a good couple of minutes to configure and it doesn't
tell you anything while it is doing it.
$ make
# Wait 4+ hours, you'll then have a avconf executable. Install it with:
$ sudo make install
--------------------
I'm not sure what the rules are with binaries, but if it's OK then I
could also post out the version of avconv I built (on a debian armv6
3.10.25+ kernel with gcc version 4.6.3).
Thanks once again everyone.
+-------------------------------------------------------------------+
|Filename: playhls.pl |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=17374|
+-------------------------------------------------------------------+
------------------------------------------------------------------------
Parky's Profile: http://forums.slimdevices.com/member.php?userid=30307
View this thread: http://forums.slimdevices.com/showthread.php?t=53229
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins