First thing is install libresonic on the PC which will become the server. To help Mede8er1 i have put everything needed to get Libresonic working in a zip, with instructions. This is for 64 bit windows.
https://www.dropbox.com/s/dvh7evgs5rmyxfe/Libresonic.zip?dl=0You may have a firewall running on the host PC. You need to port forward 8080 through that firewall. That was automatic with Norton Security. Mede8er1 had to change Windows Firewall manually.
Once running as the Admin, got to Libresonic Settings /Users...and create a new User with Admin privileges. Log out, and back in as them.
Go to Libresonic Settings / Network. Select Automatically configure Router.
Go to Libresonic Settings / Transcoding. Use the Add Transcoder input to create a new Transcoder
Name. Convert From Convert To
vod avi mpg mpeg mp4 m4v mkv mov wmv ogv divx m2ts ts
Step 1
ffmpeg -ss %o -i %s -c:v libx264 -preset medium -crf 5 -maxrate %bk -bufsize %bk -s 1920x1080 -c:a ac3 -ac 6 -ab 448k -f mpegts -threads 0 -
This produces a Sat/Cable HD TV quality stream with Dolby Digital Surround.
This is where reality has to be accepted. If your stuck with ADSL, then a 1 meg upload rate is next to useless. If you want to try..change the maxBitrate to 400 as described further down. This is a game for those with VDSL or full fibre optic.
Go to Settings / Media Folders. Add the host folder for your movies. This assumes they are on the PC. Other places will have to be tested. Select Scan media folders now.
Go to Settings / Players. This lists instances of players that have been connected. Each user gets an instance for each player client player they use. It can mount up quickly. You should just have Player (Admin), and Player (your user name). Make sure it's the latter shown. Scroll down to the enabled transcoders. Disable flv and mkv, and select vod. Scroll back up, and select External Player with Playlist.
Now Logout (top right), and log back in. Some changes only take effect on the next log in. Select Videos, under the Libresonic Logo. You should have a very long list......
Now select the Play icon on the first movie. The server should now create an m3u playlist, which may take some time. When ready, the browser will ask if you want to Open it , or save it. Select Save.
At this point you can test it using a PC Media Player which understands m3u video playlists. You guessed it...VLC. But first we need to set the bitrate via the stream commands in the m3u. The default rate is 2000k, if the m3u is not modified this way. Using Wordpad, do a Global Find and Replace..change:-
stream?
to
stream?maxBitRate=2048&
You can have mutiple iptv files, with different rates. For LAN, very high, for WAN...2048. There is no need to do the next step for a LAN optimised iptv. .
Any kind client/server system over the internet is best done using using a domain url, not IP. So sign up to a free DDNS service. Every time your modem reboots you will get a new WAN ip. The DDNS will then update to map that to your fixed domain name. The iptv file will not need changing, well only when your collection changes. Here is the service i use:-
https://www.dtdns.com/After testing the supplied version using LAN ip, open the m3u again with WordPad. Find every instance of the lan IP for the libresonic host, and replace with the WAN DDNS domain name. So replace something like:-
192.168.1.67
with something like:-
fred.dtdns.net
Test the modified m3u with VLC.
With View Extensions enabled, rename Play.m3u to Collection.iptv. Copy the iptv to the X3D, and select via Media Library. You should get Added Successfully. Go to Internet Services....IPTV. Select Collection.
You should have a very long list to choose from.