Skip to Content
It is currently November 22nd, 2019, 3:16 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: August 20th, 2012, 4:00 am 
Offline
New User
New User

Joined: March 23rd, 2010, 5:06 am
Posts: 2
Hello,

I'm testing SAM cast, is perfect as encoder.. really love it!
but I didnt find a way to send the ARTIST-TITLE from a .TXT file to the stream (the automation create a file each etime songs change).
I read many threads and I test many complex examples, but I didnt find how to simply read this information.

FILEPOLLER watch and send correctly the data from TXT to SAM Cast, then TCP (Scripted) receive the text "ARTIST- TITLE"..
What the easily way to send this content to title in shoutcast 2?

I spent two night trying to do.. but nothing..
Someone could help me?

Thanks


Top
 Profile  
Reply with quote  
PostPosted: September 16th, 2012, 5:14 pm 
Offline
New User
New User

Joined: September 14th, 2012, 9:28 pm
Posts: 10
Location: Maranguape, Brazil
Hello,

Use the TCP Client (Scripted) to connect to your automation program, load the script "vb.static_update" (click on load and browse to it) after that set it to find the txt file and read it instead of title music.

I recommend that you disable RAW debug output.


Top
 Profile  
Reply with quote  
PostPosted: September 22nd, 2012, 9:52 am 
Offline
New User
New User

Joined: September 14th, 2012, 9:28 pm
Posts: 10
Location: Maranguape, Brazil
Are you still needing help?
I have a script that can solve your problem.


Top
 Profile  
Reply with quote  
PostPosted: October 19th, 2012, 11:12 am 
Offline
New User
New User

Joined: October 19th, 2012, 11:09 am
Posts: 3
vitorfelipe wrote:
Are you still needing help?
I have a script that can solve your problem.



I need help to Samcast read information from a file. Txt to display the names of the songs played
Hello, you have this script? How it works? Where Samcast carries it?

Can anyone help?

Grateful and thank you


Preciso de ajuda para o Samcast ler informações de um arquivo .txt para mostrar os nomes das músicas tocadas
Olá, você tem este script ? Como funciona ? Onde o Samcast carrega ele ?

Alguém pode ajudar ?

Grato e obrigado


Top
 Profile  
Reply with quote  
PostPosted: May 30th, 2013, 12:10 pm 
Offline
New User
New User

Joined: September 14th, 2012, 9:28 pm
Posts: 10
Location: Maranguape, Brazil
Hello, use this VBScript that was made by me:

Code:
Function HandleLine(sLine)

divisao = (sline)
divisao = split(divisao,"-")

SongInfo.Value("artist") = (Trim(divisao(0)))
SongInfo.Value("title") = (Trim(divisao(1)))
SongInfo.Value("songtype") = "S"

SongInfo.DoSongChange

End Function


Note: Your songs must be so named "artist - title" (The hyphen separates the artist from the title, so the artist must always come before the hyphen for the script to work properly.)

If your songs are written differently, use this other script I made:

Code:
Function HandleLine(sLine)

SongInfo.Value("title") = (sLine)
SongInfo.Value("songtype") = "S"

SongInfo.DoSongChange

End Function


Note: No matter the form of how the songs are named. The script works normally.

For apply these vbscripts, follow: Settings -> Event Adaptors (select TCP scripted) -> Script (and select VBScript) -> Paste the script.

bye! :lol:


Top
 Profile  
Reply with quote  
PostPosted: May 30th, 2013, 12:12 pm 
Offline
New User
New User

Joined: September 14th, 2012, 9:28 pm
Posts: 10
Location: Maranguape, Brazil
Oh, forgot to say

Logically so that it displays the name music of the application "FilePoller" must be open, connected to SimpleCast and you must select the file .txt to read it.

;)


Top
 Profile  
Reply with quote  
PostPosted: November 12th, 2013, 12:46 pm 
Offline
New User
New User

Joined: August 10th, 2013, 2:27 am
Posts: 3
Hi, I have been trying to read the metadata that our software (called PC Radio) generates.

From this topic I found out about the mysterious Filepoller software bundled with Sam Cast which I have started, and which I directed towards my text file via 'open'. There's an option for a port there which I set to 8080.

Then in Samcast, under Settings / Event Adaptors I selected TCP (Scripted), added port 8080 again, and used this script which user vitorfelipe suggested above. Still didn't get this to work. Did I forget anything? And what is the best way to see whether Samcast is receiving any data?

Thanks in advance for any help! Been planning to fix this for over a year.


Top
 Profile  
Reply with quote  
PostPosted: November 12th, 2013, 12:49 pm 
Offline
New User
New User

Joined: August 10th, 2013, 2:27 am
Posts: 3
Another question - in the Encoder section Sam Cast has a few options on scripting. Does any of those have to be changed? EG 'allow scripts in stream'


Top
 Profile  
Reply with quote  
PostPosted: November 12th, 2013, 4:25 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
The Allow Scripts in stream option is for Windows Media Server only.
Just don't ask me what it does or how it works.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: November 19th, 2013, 6:40 pm 
Offline
New User
New User

Joined: August 10th, 2013, 2:27 am
Posts: 3
OK I finally got this to work using Vitorfelipe's first solution and running Filepoller:

Use the TCP Client (Scripted) to connect to your automation program, load the script "vb.static_update" (click on load and browse to it)

What confused me was this: "after that set it to find the txt file and read it instead of title music."
Actually I had to just set Filepoller to find the text file, NOT Samcast. The VB.static_update script works well though one may want to adjust the time in millisecond that it takes to send updates; and the default artist and song title.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group