Page 1 of 1

PLAYLIST IMPORT/EXPORT

PostPosted: Fri Sep 08, 2017 5:11 pm
by Paolo
I LIKE TO IMPORT/EXPORT M3U PLAYSILST OF MY ONLINE RESOURCE TROUGH THE MENU NOT IN .SOB FORMAT BUT IN M3U FORMAT.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Wed Mar 07, 2018 5:56 pm
by Paul C
The Serviio console/Online Sources feature enables you to add the direct stream URL and Serviio validates this to ensure it is working.
The Export and Import facility (.sob) enables you to backup your streams or import streams from another source.

There is no facility (in the audio section or the others that I can see) for playlists in Online Sources.
To implement .m3u playlists would require a different process to first read the .m3u file and isolate its contents to provide the same level of verification.
It would also be necessary to deal with .pls, m3u8 and other playlist formats to be consistent.

The .m3u playlists (and others) sometimes have multiple stream URLs within them that would all have to be verified.
The playlist approach would be additional and more difficult to implement. It would however have the advantage that the playlist names usually remain the same when streamers change the stream names due to server base or technology e.g. moving MP3 to AAC+.

However, if you have a playlist you can open it with notepad or Word (Word is better as it shows the line breaks and is then easier to read).
You can then obtain the direct stream URL and enter it into Serviio console/Online Sources using the appropriate audio/image/video options and type settings.

There are further forum posts relating to this and similar issues - see viewtopic.php?f=5&t=24337&hilit=import+playlist+online+mu3

There is also a list of around 200 Internet radio stations (created in the manner indicated) that can be imported - see viewtopic.php?f=42&t=24378

Hope this helps.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Tue Mar 13, 2018 2:29 pm
by Paul C
Paolo wrote:I LIKE TO IMPORT/EXPORT M3U PLAYSILST OF MY ONLINE RESOURCE TROUGH THE MENU NOT IN .SOB FORMAT BUT IN M3U FORMAT.

I have reflected on your idea of being able to import playlists as Online Sources and I think it is great idea.
Most stations publish their radio stream as an .m3u or .pls playlist'
This has the advantage that they can control changes of the direct streaming URL without it affecting the user.
They can also put multiple items in the playlist to cater for downed servers etc.
This would result in a more stable and reliable service.
These playlists are also more widely published than direct streaming URLs.

I think the playlist option (.m3u and.pls) should be additional to the existing stream URL for forward compatibility.

Validating the playlist should be simple if any valid stream is found (it will usually be the first).
It only fails if no valid stream is found.
I see no need to validate all streams (indeed beneficial as one may fail).
It may be easier than I initially thought.

So this is a feature request - added to BitBucket - Issue #1051.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Tue Mar 13, 2018 4:51 pm
by atc98092
Serviio already supports m3u and pls playlists, although I admit I've never tried them with an online source. Both formats support using a URL, but I don't know if Serviio has specific requirements for the media description. If I think of it over the next few days, I'll try some experiments.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Wed Mar 14, 2018 11:07 am
by Paul C
atc98092 wrote:Serviio already supports m3u and pls playlists, although I admit I've never tried them with an online source. Both formats support using a URL, but I don't know if Serviio has specific requirements for the media description. If I think of it over the next few days, I'll try some experiments.

Dan,
They are available in Shared Folders (I use m3u myself) but not in Online Sources as far as I can see.
When I tried them (before posting this request) they failed the verification.

I will try some more examples to be exhaustive.
The more I think about it this facility would be a great improvement and resolve many "disappearing" or "off-air" stations.

TEST 1
Radio Caroline - Broadband AAC stream see http://www.radiocaroline.co.uk and stream info at http://www.radiocaroline.audio/
playlist is http://sc3.radiocaroline.net:8030/listen.pls
and contains
[playlist]
NumberOfEntries=1
File1=http://78.129.202.200:8030/;
Title1=Radio Caroline
Length1=-1
Version=2

The direct stream URL works but the .pls playlist does not pass verification.

TEST 2
Venice Classic Radio see http://www.veniceclassicradio.eu/en/ and stream info at http://www.veniceclassicradio.eu/en/ind ... &Itemid=44
Playlist is https://www.veniceclassicradio.eu/live1/128.pls (note - updated from http...).
and contains
[playlist]
NumberOfEntries=4
File1=http://109.123.116.202:8010/stream1
Title1=Venice Classic Radio Italia * European Server
Length1=-1
File2=http://109.123.116.202:8022/stream1
Title2=Venice Classic Radio Italia * European Server
Length2=-1
File3=http://109.123.116.202:8020/stream1
Title3=Venice Classic Radio Italia * European Server
Length3=-1
File4=http://174.36.206.197:8000/stream1
Title4=Venice Classic Radio Italia * USA Server
Length4=-1
Version=2

Again the direct stream URL works but the .pls playlist does not pass verification.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Wed Mar 14, 2018 12:40 pm
by atc98092
Yeah, the playlist will need to have the URL to the actual stream, not to an Internet playlist. That's what I was going to try, was a local playlist with links to the actual Internet stream. The stream should have the type of file, such as mp3, flv, or something like that. And actual media file extension. Then Serviio can determine if it's playable.

And you are correct, the playlist would not be found under Online, but in the Playlists listing.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Fri Mar 16, 2018 10:46 pm
by Paul C
atc98092 wrote:The stream should have the type of file, such as mp3, flv, or something like that. And actual media file extension. Then Serviio can determine if it's playable.

Dan,
For Online Sources it is not necessary to have or know the file type.
Serviio verifies the direct stream URL and if it valid and working it passes verification i.e. it works.

Some streams may include mp3 or aac info in the stream name but not as a file type.
Probably of 150 of the 200 plus radio streams in our list I have no idea what file type they are but if they pass verification they work.
Some of the "nice" stations publish the information but most do not.

The playlists contain the direct stream URLs but no file types.
So if Serviio can read the playlists and discover a direct stream URL that works that is all that is required to implement a playlist-based approach.
Many stations publish playlist links (and it is more stable and reliable).
That is why i think it is not as difficult to implement a playlist approach as I had first thought.
Most streaming equipment uses playlists for radio stations not the direct stream URL approach.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Sat Mar 17, 2018 1:25 am
by atc98092
Yes, but to my knowledge there's no way to use a playlist with an online source. The only current way to use them is as a normal playlist which requires the file type. But I certainly see the value of being able to process a playlist for online sources.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Sat Mar 17, 2018 11:19 am
by Paul C
atc98092 wrote:Yes, but to my knowledge there's no way to use a playlist with an online source.

You are exactly right Dan - this is why this is a feature request as per earlier post that I will add to BitBucket - see Issue #1051.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Mon Mar 19, 2018 6:07 pm
by Paul C
Petr has pointed out to me there is a stream on a playlist plugin see viewtopic.php?f=20&t=6022&hilit=playlist
I will be exploring.

Playlists in Online Sources WOW.
See my post at viewtopic.php?f=20&t=6022&p=117132#p117132
It might resolve your problem.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Mon Feb 18, 2019 9:38 pm
by Paolo
Do not seems working.

any progress?

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Wed Feb 20, 2019 6:06 pm
by Paul C
Paolo wrote:Do not seems working.
any progress?

You are right. It was working but it is no longer working on 1.10.1.
I have my 5 test files in Online sources still but they no longer appear.
Presumably this is an issue with the plug-in (which has not been updated to my knowledge) and Serviio compatibility.

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Sat Feb 23, 2019 9:34 pm
by Paolo
I checked the bitbucket.
Maybe if you give a push to the 1051 re-opening re-newing the problem will be noted and implemented in the 2.0 :D

Re: PLAYLIST IMPORT/EXPORT

PostPosted: Mon Mar 04, 2019 12:13 pm
by Paul C
Paolo wrote:I checked the bitbucket.
Maybe if you give a push to the 1051 re-opening re-newing the problem will be noted and implemented in the 2.0 :D

Have added comment to BitBucket request 1051.