![]() |
#1 |
Major Dude
|
DL's Streaming Toolbox
audio/video streaming, music management, automation, podcast generation, encoding, recording, transcoding, stats generation, etc, etc.
http://www.dlnetworks.net/tools the quick list scserv dnas v1/2 liquid soap ffmpeg streamtranscoder eyed3 perl/curl/php/python/html/javascript/shell scripting htaccess/mod rewrite api usage (youtube/soundcloud) crontab |
![]() |
![]() |
![]() |
#2 |
Major Dude
|
DL’s Streaming Toolbox: How to Liquidsoap
http://www.dlnetworks.net/tools/stre...ox-liquidsoap/
install liquidsoap the following commands were tested on a fresh/default install of ubuntu server 14.04 lts, and is expected you already have an ice/shoutcast server running, and know your way around the linux command line. you can find a list of the available liquidsoap packages for install by searching the apt list: code: i take the easy route and just go ahead and also install all the supported streaming plugins as well. code: once installed you are ready to write a script. this example will have the following functions/capabilities: the script runs in the background (deamon mode) plays local mp3’s listed in a playlist file (txt) immediately switch to live dj (and back) on connect/disconnect play a local backup file of any of the above fails for any reason manually set title via url GET request (http://127.0.0.1:8080/setmeta?title=SongTitleGoesHere) output the stream to multiple instances of shoutcast at different bit rates and formats (transcoding) to execute simply code: create a file containing the following and name it whateveryouwant.liq and edit values as needed code: another example, relay a shoutcast stream relay.liq code: other samples can be found on the liquidsoap website http://liquidsoap.fm/doc-svn/scripts |
![]() |
![]() |
![]() |
#3 |
Major Dude
|
jquery shoutcast status
https://github.com/Wavestreaming/jqu...iki/Easy-Setup
this will display shoutcast dnas v2 status/info, auto updating every 5 seconds without page reload. Prerequisites Your DNAS version must have JSON support, if it does not then you will not be able to use this plugin. Setup Download the plugin and store jquery.shoutcast.easy.min.js somewhere on your server. https://github.com/Wavestreaming/jquery-shoutcast.git Configuration In the second script tag you need to edit example.com to be your host and also edit the port if necessary, this is the minimum configration that is required by the plugin, there are more options which can be found here Usage Once you have configured the plugin you will need to add various elements to your page. Showing Stats To show any statistics from your stream you simply need to add an element with adata-shoutcast-value=”” attribute, for example, if I wanted to show the currently playing song this is what you would have: code: Or current listeners: code: All of the available values can be found here Showing played tracks To show played tracks you need to an an ul element with an id of played to your page: code: With the above element on the page the names of the recently played tracks will be displayed in order. Example HTML code: The above HTML will display the server title, the current song, the current listeners, the maximum listeners and a list of all of the recently played tracks. |
![]() |
![]() |
![]() |
#4 |
Major Dude
|
DL’s streaming toolbox: ffmpeg to shoutcast with remote sources
http://www.dlnetworks.net/tools/dls-...emote-sources/
use ffmpeg to encode/re-encode any local or remote media to mp3 and stream to shoutcast. prerequisites: ffmpeg with libmp3lame and openssl enabled http://ffmpeg.org youtube-dl http://yt-dl.org shout-perl http://downloads.us.xiph.org/release...out-2.1.tar.gz libshout3 http://packages.ubuntu.com/search?keywords=libshout3 libmp3lame http://packages.ubuntu.com/search?keywords=libmp3lame usage: code: streaming to shoutcast is handled by piping audio data to a perl script (shout-perl) here is the perl script that reads audio data from pipe or STDIN shout_stdin.pl code: remote sources are handled using youtube-dl by using backticks in the ffmpeg command. this will enable you to stream any media resource thats supported by youtube-dl and ffmpeg, such as soundcloud, mixcloud, youtube, vimeo, twitch.tv, etc. usage: code: shout_perl.pl expects raw mp3 audio data via pip or STDIN. this means you can simply: code: and it will stream a single mp3. a little bit of crafty scripting and you can easily create your own auto dj. |
![]() |
![]() |
![]() |
#5 |
Major Dude
|
multi server shoutcast listener stats tcl for eggdrop irc bot
https://github.com/dlnetworks/multi-...cl-for-eggdrop
tcl script for eggdrop irc bots with multi server totals, bandwidth totals, and record/peak tracking. triggers: .stat .record output: bitrate - current/max/bandwidth Radio Name Stats: (24 Kbps - 0/100/0.00 Mbps) (64 Kbps - 2/100/0.12 Mbps) (128 Kbps - 8/200/1.00 Mbps) (256 Kbps - 52/400/13.00 Mbps) (Total - 62/800/14.12 Mbps) code: |
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Dec 2015
Posts: 15
|
Sorry Please If i may ask, How can i run this on a remote server ? . If this is not possible then how can i run it on MacBook Pro ?
|
![]() |
![]() |
![]() |
#7 | |
Major Dude
|
Quote:
it is possible... even on the mac =] most or all of the tools are compatible with any modern *nix flavor |
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|