Page 1 of 1

Generate DLNA video / music playlists server side?

PostPosted: Fri Jul 10, 2015 6:22 pm
by d4rk0n3
Hi,

I'm completely new to the DLNA thing, i used xbmc and samba shares for a long while but since i've purchased a smart tv i've just recently discovered this dlna thing and transcoding server side is beautiful!

The issue i've ran into is that i need a way to create random playlists for both video files and music files server side, i have a javascript that generates vlc playlists that works with XBMC but how can i do this for DLNA content and play these playlists using my LG TV?

Why is random video playlist cool? Well it acts are your own "tv channel" where you have movies, music videos, series etc and it plays everything random and updates the playlist each night everytime the scheduled job to look for new files and update the playlists server side.

Anyone have an idea how i can do this?

Thanks.

Re: Generate DLNA video / music playlists server side?

PostPosted: Fri Jul 10, 2015 8:26 pm
by atc98092
Here's an example of a playlist that works with Serviio. You could probably write a script that would write one like this, and set a timer to run it once a day or something. Notice that the file location line is the only one that contains anything important. The Title Line can be blank, and the Length line can even be absent.

  Code:
[playlist]
File1=I:\Dr. No (1962).m2ts
Title1= -  -
Length1=0
File2=E:\Video_3\From Russia With Love (1963).m2ts
Title2= -  -
Length2=0
File3=G:\Goldfinger (1964).m2ts
Title3= -  -
Length3=0
File4=I:\Thunderball (1965).m2ts
Title4= -  -
Length4=0
File5=E:\Video_3\Casino Royale (1967).mkv
Title5= -  - Casino Royale (1967)
Length5=7868
File6=I:\You Only Live Twice (1967).mpg
Title6= -  -
Length6=6993
File7=I:\Diamonds Are Forever (1971).m2ts
Title7= -  -
Length7=0
File8=F:\Recorded TV\Never Say Never Again (1983).wtv
Title8= -  -
Length8=0
File9=G:\CASINO ROYALE (2006).mkv
Title9= -  - CASINO ROYALE
Length9=8650
File10=H:\Quantum of Solace (2008).mkv
Title10= -  - Quantum of Solace
Length10=6374
File11=G:\Skyfall (2012).mkv
Title11= -  - Skyfall
Length11=8589
File12=H:\The League of Extraordinary Gentlemen (2003).mkv
Title12= -  -
Length12=6606
File13=F:\Video_4\The Hunt for Red October (1990).m2ts
Title13= -  -
Length13=8108
NumberOfEntries=13
Version=2