Old 17th May 2011, 01:58   #1
hackerdork
Forum King
 
hackerdork's Avatar
 
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
sc_trans, playlist with remote URL?

I remember reading something in beta drop5 that sc_trans2 could or would support remote url's in the playlist. Now running drop40 I do not see that this is an option.
there are applications like SAM broadcaster that do this very thing in your playlist you can point to a remote URL of a mp3 . not that SAM and sc_trans need to be exactly the same since SAM is over $300 and bloated for what it does

Two methods documented for remote scripts
code:


/music/foo.mp3
#!/bin/perl /home/user/songfromDB.pl
/music/bar.mp3

...snip..

#!php call track script
#!php call commercial script



assuming songfromDB.pl returns c:\barfoo.mp3 1, then barfoo.mp3 is played NEXT?


It would be awesome if you could point to url using something like
#!URL http://www.archive.org/download/Isci...22009_64kb.mp3
or
#!curl get
#!php get http://www.archive.org/download/Isci...22009_64kb.mp3

or even having
#playlist
c:\music\foo.mp3
http://www.archive.org/download/Isci...22009_64kb.mp3
c:\music\bar.mp3
#and so on.

More , sorry. This doesn't seem to be documented well at all .
#!php call track script
#!php call commercial scrip
I assume this would really translate to #!php c:\scripts\php\trackscript.php or similar??

if it returns c:\music\foobar.mp3 1 , I assume this coming soon would tell sc_trans that c:\music\foobar.mp3 is really NEXT, whereas foobar.mp3 3, the coming soon is 3 tracks later ??

feedback is greatly needed.

~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough.
search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn.
hackerdork is offline   Reply With Quote
Old 17th May 2011, 09:09   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
remote playlist support isn't in sc_trans to my knowledge and i doubt will be - it might have been planned but hasn't been added to my list. then again if it can be done via a remote script then that's probably the way and i know the documentation on the playlists support is a bit lacking, just haven't had the time to try it out properly.

-daz
DrO is offline   Reply With Quote
Old 18th May 2011, 06:54   #3
hackerdork
Forum King
 
hackerdork's Avatar
 
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
Daz, team and forum peeps..

This does work somewhat.


Im being very crafty but I can see a issue with how this works.

1- It expects the program/script you call to exit and have the following output

full/path/to/file.mp3 INTEGER

e.g
/usr/hackerdork/music/dazrocks.mp3 3 (meaning it is in queue coming soon , 3 tracks later

2- no method to fetch remote urls as it leads to playlist crash
#!/usr/bin/curl http://remote/site/dazrocks.mp3

as curl will output the results of the transfer, you can redirect the output to /dev/null but this still leads to crash PLAYLIST IS EMPTY, even when the playlist is not empty

3- timing. sc_trans expects an also instant value to be returned ,so if your script takes 15 seconds for example sc_trans is thinking PLAYLIST IS EMPTY

my craftyness may just lead to writing a php script that transfers the remote file to a locate file e.g /usr/hackerdork/music/remotefile.mp3 and just have this referenced as the php output. This however can be horried if the links to the external file are slow, like what you see on archive.org for example


Would love to have a similar function I used in SAM broadcaster playlists

file.mp3
URL of next file
file2.mp3
ect..

great for pulling in podcasts from remote sites or news without having to store the mp3 files on the local machine.

more coding and testing , I will get back to you...

- Jeff

~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough.
search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn.
hackerdork is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Tags
php, playlist, remote, trans, url

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump