Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 75 1231151 ... LastLast
Results 1 to 10 of 746
  1. #1
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,092

    Announce: PlayHLS Plugin - plugin to play Apple HLS m3u8 stream

    The PlayHLS plugin enables HLS stream to be played. HLS means HTTP Live streaming.

    There are now two versions of the PlayHLS plugin
    - V1.* original version which uses ffmpeg to handle HLS streams.
    - V2.* latest version which handles HLS within LMS.

    The V2.* of the plugin does not require any additional applications. It can display metadata on some stations such as track, album, artist and images. Also no transcoding of AAC for player which can play AAC natively.

    As V2.* is new and has more features, there may be a few bugs. Please report anythign found so the bugs may be fixed.

    When the PlayHLS plugin is installed, Tune-in menu and iHeartRadio plugin will offer HLS URLs if found.

    There are not many HLS MP3 stream and V2.* has some difficulty with URLs, please report any problem URLs.
    No HLS AC-3 URLs have been found so no V2.* support of AC-3.

    HLS stream appear as normal URL with http:// or https:// and ending with m3u8. The audio can be encoded with AAC, MP3 and AC-3.


    BBC Test URLs

    outside UK try this URL: http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/sbr_low/llnw/bbc_radio_fourfm.m3u8
    inside UK this one: http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/llnw/bbc_radio_fourfm.m3u8

    Other example m3u8 URLs
    GenX http://c9.prod.playlists.ihrhls.com/5322/playlist.m3u8
    Addict Alternative http://hls1.addictradio.net/addictalternative_aac_hls/playlist.m3u8
    YLE Klassinen https://yleuni-f.akamaihd.net/i/yleliveradiohd_4@113881/master.m3u8?set-segment-duration=quality
    Last edited by bpa; 2019-11-21 at 08:28. Reason: Update instructions for V2.*

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,092

    Linux Installation instructions

    PlayHLS V2.* Instructions.

    1. On the LMS WebGui; go to 'Settings', and select the 'Plugins' tab. Go to the bottom.
    You may need to tick a box saying something like 'allow 3rd party plugins', and press Apply.
    2. At the very bottom you should have a section called 'Additional Repositories'
    Add the line
    http://bpa-code.github.io/bpaplugins/repo-playhls-v2-beta.xml
    and Press Apply.
    3. LMS will need to be restarted either as part of the above steps or manually.

    ----------------------------------------------------------------------------------------------------------------

    PlayHLS V1.* installation instructions. Suggestion: only use V1.* if V2.* cannot be made to work.

    1. Install ffmpeg. It is in a package called ffmpeg so you may use something like "apt-get install ffmpeg"
    2. On the LMS WebGui; go to 'Settings', and select the 'Plugins' tab. Go to the bottom.
    You may need to tick a box saying something like 'allow 3rd party plugins', and press Apply.
    3. Find the line with PlayHLS and check the box and Press Apply.
    4. Restart LMS.
    5. After LMS has restarted, on the LMS WebGui; go to 'Settings', and select the 'Plugins' tab. Check the PlyHLS plugis is enabled - if not check the enable box and click Apply.
    6. Check that Plugin has been installed correctly by looking LMS WebGui; go to 'Settings", and then select "Advanced".
    Select "File Type" from the drop down box on Top Right. Scroll down until you see "Apple HLS m3u8" there should be a entries with "ffmpeg". They should not be greyed out or disabled.
    7. LMS should now be able to play the new format streams. BBC URL to test will depend whether you are UK or not in UK.



    This is a PlayHLS V1.* issue only.
    There is a significant issue about ffmpeg version. If the version is too old then either stream won't play or ffmpeg process won't die after playing a stream so that there is a build up of ffmpeg processes. These problems seem to happen with ffmpeg with versions before 1.0. Ideally install a recent build of ffmpeg - this may require building your own.


    Additional notes to use avconv instead of ffmpeg.
    Last edited by bpa; 2019-11-21 at 08:15. Reason: Add V2.* instructions andupdate repo URL for V1.*

  3. #3
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,092

    Windows Installation Instructions

    PlayHLS V2.* Instructions.

    1. On the LMS WebGui; go to 'Settings', and select the 'Plugins' tab. Go to the bottom.
    You may need to tick a box saying something like 'allow 3rd party plugins', and press Apply.
    2. At the very bottom you should have a section called 'Additional Repositories'
    Add the line
    http://bpa-code.github.io/bpaplugins/repo-playhls-v2-beta.xml
    and Press Apply.
    3. LMS will need to be restarted either as part of the above steps or manually.

    ----------------------------------------------------------------------------------------------------------------

    PlayHLS V1.* installation instructions. Suggestion: only use V1.* if V2.* cannot be made to work.

    Windows installation has been described with screenshots here http://forums.slimdevices.com/showth...l=1#post807195

    1. You need ffmpeg.exe on your system. To install that you may need to install 7Zip utility which can be found here http://www.7-zip.org
    2. The ffmpeg.exe you install depends on whether you have a 32bit or 64 bit system. The ffmpeg.exe came from here - http://ffmpeg.zeranoe.com/builds/
    Download the relevent file and use 7zip to unpack.
    3. Use windows to find the faad.exe and sox.exe in your LMS installation. It will be a directory something like C:\Program Files (x86)\Squeezebox\server\Bin\MSWin32-x86-multi-thread
    Copy the downbloaded ffmpeg.exe into the LMS Bin directory alongside faad.exe.
    4. On the LMS WebGui; go to 'Settings', and select the 'Plugins' tab. Go to the bottom.
    You may need to tick a box saying something like 'allow 3rd party plugins', and press Apply.
    5. Find the line with PlayHLS and check the box and Press Apply.
    6. Restart LMS.
    7. After LMS has restarted, on the LMS WebGui; go to 'Settings', and select the 'Plugins' tab. Check the PlyHLS plugis is enabled - if not check the enable box and click Apply.
    8. Check that Plugin has been installed correctly by looking LMS WebGui; go to 'Settings", and then select "Advanced".
    Select "File Type" from the drop down box on Top Right. Scroll down until you see "Apple HLS m3u8" there should be a entries with "ffmpeg". They should not be greyed out or disabled.
    9. LMS should now be able to play the new format streams. BBC URL to test will depend whether you are UK or not in UK.
    Last edited by bpa; 2019-11-21 at 08:15. Reason: Add V.* instructions and update old V1.* instructions

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,092

    OSX Installation instructions

    I do not have an OSX system so the following is a post from an OSX user. Please post any suggestions to improve these instructions.

    the following is what I did for the first step (install ffmpeg):

    Download ffmpeg binary for OS X from http://ffmpegmac.net/. Note: there are 2 versions, one for OS X 10.5, one for later versions.
    Unzip, and copy ffmpeg to /usr/local/bin - you may need sudo to do this.

    Then continue from step 2 in the Linux installation instructions (post #2).
    Last edited by bpa; 2015-02-17 at 02:27. Reason: Added initial instructions

  5. #5
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,092
    Quote Originally Posted by onlyconnect View Post
    Understood. It actually gets further with the other version of ffmpeg:

    > /usr/syno/bin/ffmpeg -i http://hls1.addictradio.net/addictal...c_hls/playlist.
    m3u8 -f flac - >output.flc
    ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers
    built on Jan 7 2015 14:44:28 with gcc 4.6.3 (crosstool-NG 1.17.0)
    configuration: --prefix=/usr/syno --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/i686-pc-linux-gnu/bin/i686-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib --disable-protocol=rtp --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffserver --disable-ffplay --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-decoder=amrnb --disable-encoder=zmbv --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/i686-pc-linux-gnu/bin/i686-pc-linux-gnu-ccache-gcc --disable-doc --enable-yasm --enable-libx264 --enable-encoder=libx264
    libavutil 52. 38.100 / 52. 38.100
    libavcodec 55. 18.102 / 55. 18.102
    libavformat 55. 12.100 / 55. 12.100
    libavdevice 55. 3.100 / 55. 3.100
    libavfilter 3. 79.101 / 3. 79.101
    libswscale 2. 3.100 / 2. 3.100
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 3.100 / 52. 3.100
    [hls,applehttp @ 0x8089ca0] Estimating duration from bitrate, this may be inaccurate
    Input #0, hls,applehttp, from 'http://hls1.addictradio.net/addictalternative_aac_hls/playlist.m3u8':
    Duration: 00:00:00.03, start: 0.000000, bitrate: 68 kb/s
    Program 0
    Metadata:
    variant_bitrate : 63000
    Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, 68 kb/s
    Metadata:
    variant_bitrate : 63000
    [flac @ 0x80aa3e0] encoding as 24 bits-per-sample
    Output #0, flac, to 'pipe:':
    Metadata:
    encoder : Lavf55.12.100
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s32, 128 kb/s
    Metadata:
    variant_bitrate : 63000
    Stream mapping:
    Stream #0:0 -> #0:0 (aac -> flac)
    Press [q] to stop, [?] for help
    channel element 2.4 is not allocatedrate=1525.8kbits/s
    Error while decoding stream #0:0: Operation not permitted
    channel element 2.4 is not allocatedrate=1535.0kbits/s
    Error while decoding stream #0:0: Operation not permitted
    unable to rewrite FLAC header.41 bitrate=1527.6kbits/s
    size= 7948kB time=00:00:42.62 bitrate=1527.7kbits/s
    video:0kB audio:7940kB subtitle:0 global headers:0kB muxing overhead 0.101519%

    Any insights?

    Thanks

    Tim
    It looks like it was working. Is the output.flc file empty ?

  6. #6
    Senior Member
    Join Date
    Feb 2008
    Posts
    4,835
    Just reporting that I successfully installed the plugin and ffmpeg on an armv7 Cubieboard running Debian wheezy.

    It wasn't easy! The standard ffmpeg install just gave the dreaded 0.8 version. I tried adding a couple of ppa repos which didn't work. Somehow I stumbled onto a version which installed as 1.0.x - this works.

    The bad news is that I'm so tired by all this that I didn't keep a record of what I did - apologies.

    I can say that simply copying the pi ffmpeg version doesn't work for armv7 debian wheezy.

    It's probably impossible, but a list of working ffmpeg binaries would certainly help
    Last edited by castalla; 2015-02-15 at 17:46.
    LMS server: Pi Zero

    Amp: Denon PMA-50

    Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Avantree Priva BT transmitter

    Brexit = ∞ stupidity


    ------------------------------------------------------------------------------------

  7. #7
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,092
    Quote Originally Posted by castalla View Post
    Just reporting that I successfully installed the plugin and ffmpeg on an armv7 Cubieboard running Debian wheezy.

    It wasn't easy! The standard ffmpeg install just gave the dreaded 0.8 version. I tried adding a couple of ppa repos which didn't work. Somehow I stumbled onto a version which installed as 1.0.x - this works.

    The bad news is that I'm so tired by all this that I didn't keep a record of what I did - apologies.

    I can say that simply copying the pi ffmpeg version doesn't work for armv7 debian wheezy.
    I had a bad experience of the armhf wheezy binaries on http://www.deb-multimedia.org/ - they didn't run and gave "illegal instruction" on Pi.

    All we can do is document which versions and repositories are known to work (and possibly those which are known NOT to work)

    While I have a Pi B, Odroid U3, Wandboard and Cubieboard 1 - only the Pi has LMS and the other boards have other setups (e.g. Arch) . In theory I can test a lot of variations but I'll need a very good reason as it takes time.

  8. #8
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    14,695
    Cool plugin!
    Will this keep up with changing bitrates and such, staying gapless etc? I mean... Changing sample rates will probably be a bit over the top but rare anyway but changing bitrates during a stream is one reason people use HLS so they can better load balance.
    I think the BBC a has even stated that's the reason they plan to use it,
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

  9. #9
    Junior Member
    Join Date
    Feb 2015
    Posts
    3

    Experiences with Goflex Net Debian & Squeezebox Radio

    Hi,

    [reposted because I'm afraid it was overlooked, originally posted here: http://forums.slimdevices.com/showth...l=1#post807623 ]

    First of all thanks for your great effort to quickly resolve the problems caused by the technology switch of the BBC. Special thanks to bpa for his current efforts! Go raibh maith agat! It works quite good for me at the moment, I have to report only minor issues.

    I will describe my setup first:
    • Outside UK
    • Logitech Media Server Version: 7.8.1 - 1402661598 @ Sun Jun 15 03:02:35 UTC 2014
    • on Seagate Goflex Net with Debian Wheezy
    • Kernel Linux goflex1 3.13.1-kirkwood-tld-2 (bodhi @ doozan forum)
    • ffmpeg from www . deb-multimedia . org http://www.deb-multimedia.org/ (8:1.0.10-dmo1) (update from Wheezy stock ffmpeg was necessary because otherwise ffmpeg processes would remain after stopping a stream and eating up CPU power)
    • Android-App "Logitech Squeezebox Controller" (by Logitech)
    • Squeezebox Radio
    • Triodes BBC iPlayer Plugin v1.2.14
    • bonze's non-uk menu.opml for BBC iPlayer Plugin (post #2511)
    • bpa's Plugin PlayHLS (now tweaked with bpa's latest suggestion "don't transcode when AAC in HLS" @ post #2589)


    Wheezies ffmpeg gave me a headache because processes wouldn't stop. Problem was resolved by update to newer ffmpeg (see above).

    One single ffmpeg process eats up 90% of my CPU according to top. Therefore the last mentioned tweak by bpa in post #2589 is really welcome! It cuts out the CPU load for me. The streaming starts way faster as compared to when ffmpeg is transcoding (very slow start).

    My only remaining problem: When I use the buttons and knobs on my Squeezbox Radio to select a live radio stream within Triodes plugin there is a 70% chance that the stream will never start. Sometimes a stream will buffer and start, sometimes not.

    This problem does not occur when I select the station for this Squeezebox Radio using either the Port 9000 web frontend or the Android app. I always use Triodes plugin when I select a station.

    Also, the Catchup-Shows don't start to stream when launched via the controls on my Squeezebox Radio. But they can be launched by web frontend or Android app to playback on my SBRadio fine.

    Cheers,
    hepi

  10. #10
    Senior Member
    Join Date
    Nov 2010
    Location
    Hertfordshire, UK
    Posts
    3,017
    To update the list of BBC Radio live channels in the BBC iPlayer as of 11/2/2015 see http://forums.slimdevices.com/showth...l=1#post807276.

    The original menu.opml is, on linux, in /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/BBCiPlayer. Take a copy and the replace with the UK or non-UK version as appropriate. Make sure the ownership and access rights of the file are the same as the other files in the directory.

    Can this post be moved and made into a 'sticky'?
    LMS 7.9.3 on PC, Xubuntu 18.04, FLACs 16->24 bit, 44.1->192kbps. 2 Touchs & EDO.
    LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (A308CR amp & ESLs) & Marantz CR603 UPnP renderers.
    Also Minimserver & Upplay to same & to upmpdcli/mpd PC renderers.
    Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones.
    Wireless Xubuntu 18.04 laptop firefox/upplay or Android 'phone with Squeeze-Commander/BubbleUPnP controls LMS/Minimserver.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •