View Full Version : I wish they would port NSVscSrc to Linux.
cpukiller
1st July 2003, 23:12
Anyway, I wish they would port NSVscSrc to Linux (or just make a linux equivelent from scratch).
Thay way, I can just get a server from RackShack.net, dump some NSVs on there, and run a station without wasting my home bandwidth. ShoutCast already has a Linux version, so no need to make an additional server for it.
I am sure it's coming, I have already written something like this in PHP so, doing your own nsvscsrc is fairly easy.
sankt
2nd September 2003, 22:54
Originally posted by KXRM
I am sure it's coming, I have already written something like this in PHP so, doing your own nsvscsrc is fairly easy.
Will you be releasing the source for this ? :)
cirix
3rd September 2003, 20:53
I am working on something for linux with KXRM, it will be out when i have time to finish it, given that school is starting again this could be awhile, but I am working on it today, I'll post the source and some bin's when I am done enough that it is usable. It will be in java so you can in theory use it on any platform. The bin's will be compiled for linux with the GNU java compiler for better performance.
The-Dreamer
7th September 2003, 15:28
I tested it in PHP and yes, it is very easy.
But I have a little problem.
After a time, the Audio/Video sync is bad.
Knows anybody why ?
sankt
7th September 2003, 16:04
Originally posted by The-Dreamer
I tested it in PHP and yes, it is very easy.
Would you be willing to post the PHP code so others can use it as well ?
Jay
7th September 2003, 23:19
the problem seems to be that audio frames are being lost, i am still trying to figure out how to make sure they get to the player. There must be some sort of trick to make sure that winamp plays these empty video frames, but as of now I don't know it.
Sankt as soon as I figure out this last problem I will be releasing the code.
The-Dreamer
11th September 2003, 22:24
My code works as demo, but is not very good. I don't know how to stream at the right Bitrate. The Video is VBR, so it is difficult to stream not to fast and not to slow. After a while the Stream will stop and rebuffer or it overides the buffer and jump...hmm...
I think KXRMs project will be better and i will not release any alpha code.
Write your own:
connect to server:
$server = fsockopen ("mycast.com", 8001, $errno, $errstr, 40);
send
content-type:video/nsv\ricy-name:Test1\r\nicy-genre:Unknown Genre\r\nicy-pub:0\r\nicy-br:128\r\nicy-url:http://www.shoutcast.com\r\nicy-irc:%23shoutcast\r\nicy-icq:0\r\nicy-aim:N%2FA\r\r
and if you get OK2 then:
put the video data to server (fread and fputs)
good luck
Jay
13th September 2003, 06:39
yea ya gotta read the NSV frames.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.