Old 2nd December 2003, 08:29   #1
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
NSV for Linux

I just finished writing a tool that will source your SHOUTcast server with NSV content from a Linux box, hopefully it works on all linux distributions.

It was written and compiled on Redhat 7.3 with the latest patches.

Let me know if you get it working on other linux flavors. or if not. I will do my best to get it working on all POSIX environments.

Project Page: www.radiotoolbox.com/sc_nsv/

Features Include:
  • Autoreconnect if the server disappears, the source application waits 30 seconds
    before attempting to reconnect.
  • Screen and File logging, so you know what's going on with sc_nsv
  • RealTime Display of Outgoing bitrate, NSV Video and Audio Formats as well as
    fps and title of current video
  • PLO playlist format, designed by Jay Krivanek of Radio toolbox an object
    based playlisting system allowing you to structure content on a clock wheel.
  • Basic playlist file system as an alternative if you want to do all the work
    yourself
  • PLO playlist format includes features like #reload #shuffle which tell
    sc_nsv when the proper times to shuffle and reload are and based off of
    which list you would like the action to occur
  • TRUE shuffle logic based off of Hardware CD Player style which plays items
    off of playlist in a random order as opposed to just randomly picking items
    from a list which is NOT technically shuffling hint hint
  • PLO supports a virtually unlimited amount of playlist objects.
    For more information about PLO read the Playlist section of this document.
  • Reading of the TITLE tag of NSV headers, this will be displayed to your
    users in through meta data titling, you can also use URL to specify a url
    to be sent to your users. MAKE SURE THAT TITLE IS CAPITALIZED Title or title
    will not be understood, if TITLE is not found the file's name is passed.
  • Dynamic Subtitles with profiles and scripting. Read README for more information on the scripting.

Known issues:
  • Supports framerates which are whole numbers only, this will probably be fixed
    soon, so you fractional framerate lot may not get much use out of this tool.

Last edited by Jay; 2nd December 2003 at 09:44.
Jay is offline   Reply With Quote
Old 2nd December 2003, 09:34   #2
shingiru
Junior Member
 
Join Date: Nov 2003
Location: Seoul, Korea
Posts: 6
Whar a nice job!!!

Hint.
If you cannot unzip it, rename it.
It seems not a tar.gz file, but just tar one.
shingiru is offline   Reply With Quote
Old 2nd December 2003, 09:42   #3
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
Quote:
Originally posted by shingiru

If you cannot unzip it, rename it.
It seems not a tar.gz file, but just tar one.
Do'h thanks for that.
Jay is offline   Reply With Quote
Old 2nd December 2003, 11:45   #4
sankt
Moderator
 
sankt's Avatar
 
Join Date: Apr 2003
Location: www.ScenicRadio.com
Posts: 2,975
Once you get the bugs worked out, you should submit this to knoppix or dynbolic. Both are live boot linux cd's. You just pop the cd into your player and boot into linux. Both are GNU and Free as well.

Scenic Television is your ambient window to the world - - Television.ScenicRadio.com
sankt is offline   Reply With Quote
Old 2nd December 2003, 21:12   #5
Christophe
Sexaholic
 
Join Date: Oct 2000
Posts: 114


-Christophe

- time heals but i'm forever broken
Christophe is offline   Reply With Quote
Old 2nd December 2003, 21:27   #6
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
great to see it working

I have set up a project page at www.radiotoolbox.com/sc_nsv/ I would have edited my original post but it won't let me, guess it's been up too long.

I am also making some strides on the syncing issue thanks to some not so subtle hints in the CURRENT nsvscsrc
Jay is offline   Reply With Quote
Old 3rd December 2003, 00:28   #7
sankt
Moderator
 
sankt's Avatar
 
Join Date: Apr 2003
Location: www.ScenicRadio.com
Posts: 2,975
Once this application is optimized, are there any plans for making encode software for live capture ?

Scenic Television is your ambient window to the world - - Television.ScenicRadio.com
sankt is offline   Reply With Quote
Old 3rd December 2003, 03:05   #8
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
not sure, I am working in a shell environment only right now, so I really don't have access to the hardware to code for that.

For now my priorities are to fix the current bugs in sc_nsv and refine my NSVReader classes to allow very extensive control over the NSV output and File and porting to BSD, and any other environment that it won't already run in, (especially targetting systems that SHOUTcast DNAS can run in with the exception of Windows for now. And apply support for dynamic subtitles thanks to shingiru for some insight into how I might be able to go about that.

I also already have in the works some fixes for the playlist management capabilities one with which a #shuffle <int> and #relaod can be called in the same object.
Jay is offline   Reply With Quote
Old 3rd December 2003, 22:11   #9
sankt
Moderator
 
sankt's Avatar
 
Join Date: Apr 2003
Location: www.ScenicRadio.com
Posts: 2,975
You know what would really kick is a version of this written in Java. Just load the Java runtime and fire away. Would be available to any O/S that is capable of running JRE.

Oh the possibilities

Scenic Television is your ambient window to the world - - Television.ScenicRadio.com
sankt is offline   Reply With Quote
Old 4th December 2003, 00:56   #10
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
hmm yea I got the java compiler on my windows box, needed it for a class, I guess once I get this thing debugged I look at possibly coding for java as well, just to make sure everyone is covered
Jay is offline   Reply With Quote
Old 4th December 2003, 01:09   #11
sankt
Moderator
 
sankt's Avatar
 
Join Date: Apr 2003
Location: www.ScenicRadio.com
Posts: 2,975
Most Excellent

Scenic Television is your ambient window to the world - - Television.ScenicRadio.com
sankt is offline   Reply With Quote
Old 4th December 2003, 01:18   #12
DJ Killer
Major Dude
 
DJ Killer's Avatar
 
Join Date: Jul 2003
Location: O-Town FLA
Posts: 1,357
Send a message via AIM to DJ Killer Send a message via Yahoo to DJ Killer
w00t nice job KXRM! I would kiss you but i just dont groove like that haha

Ill let u know if i get any issues on SuSE 9

I Make. Perform. Mix. Play. Music.
DJ Killer is offline   Reply With Quote
Old 4th December 2003, 01:42   #13
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
yes please, this is my first effort to actually distribute linux binaries so, any issues on any system that is linux based and can handle glib6 images should be reported
Jay is offline   Reply With Quote
Old 9th December 2003, 03:12   #14
Sn1p3
Junior Member
 
Join Date: Nov 2003
Posts: 15
Yea nice Job i need a FreeBSD version tho so i can stream from server->to server thx so far
Sn1p3 is offline   Reply With Quote
Old 9th December 2003, 06:24   #15
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
well I found that it works if you have linux emulation enabled, at least the static build I have currently does, not sure about the one on the project page. I will release it in a little bit. The sync issues are fixed, and it worked in FreeBSD. A temp solution until I port it
Jay is offline   Reply With Quote
Old 9th December 2003, 07:50   #16
Sn1p3
Junior Member
 
Join Date: Nov 2003
Posts: 15
Getting closer thx. My host wont allow base_linux because some vunerability issues with somethings they run. Anyways looking forward to the port
Sn1p3 is offline   Reply With Quote
Old 13th December 2003, 01:57   #17
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
SHOUTcast NSV Source for Linux beta 2 has been released.

Visit Project page for download

New in version 1.0.0 beta 2
- Hostname lookups added.
- Fixed Audio Sync bug, (yay) Tested with VP6 and VP3 with MP3 audio
- Fixed Log, various screen to file log problems
- No longer opens two handles to the currently playing file.
- Dynamic Subtitle support added
- signal handling added, read the README file section Run-Time Management
for more details.
- Autoreconnect stuff fixed
- sc_nsv now statically linked so that it may work on FreeBSD in linux emulation.
- shuffling is now more random.
Jay is offline   Reply With Quote
Old 13th December 2003, 05:48   #18
shingiru
Junior Member
 
Join Date: Nov 2003
Location: Seoul, Korea
Posts: 6
Good job.
I have a plan to take a similar project(win32) in the future.
Your job is very encouraging to me.

I offer my congratulations to you from the bottom of my heart.
shingiru is offline   Reply With Quote
Old 13th December 2003, 06:12   #19
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
heh, thanks, if you want to see some of the power in that dynamic subtitle feature check go into your winamp library and watch XRM - TV then go to www.xrmradio.com/irc/ and chat, your message will be displayed in the stream in near real time.

Thanks for your post on NSV subtitles, it motivated me to include it in sc_nsv
Jay is offline   Reply With Quote
Old 13th December 2003, 21:45   #20
sankt
Moderator
 
sankt's Avatar
 
Join Date: Apr 2003
Location: www.ScenicRadio.com
Posts: 2,975
Someone is live testing your software. Seems to work very well for live capture.

Is it designed specifically around VP3 or could you drop in the VP6 codec as well?

Scenic Television is your ambient window to the world - - Television.ScenicRadio.com
sankt is offline   Reply With Quote
Old 13th December 2003, 23:19   #21
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
it works with VP3 or VP6 but it is not a live capture tool
Jay is offline   Reply With Quote
Old 14th December 2003, 00:05   #22
sankt
Moderator
 
sankt's Avatar
 
Join Date: Apr 2003
Location: www.ScenicRadio.com
Posts: 2,975
Hrmmm, someone is capturing from a video card and claims to be
running nsvenc linux.

My TV ( Powered by nsvenc-linux!)
http://205.188.234.33:8044/;stream.nsv

Scenic Television is your ambient window to the world - - Television.ScenicRadio.com
sankt is offline   Reply With Quote
Old 14th December 2003, 00:19   #23
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
ya I saw that, not sure what they mean, whether they wrote up a nsvenc in linux or are somehow using a Windows Emulator.
Jay is offline   Reply With Quote
Old 14th December 2003, 21:17   #24
Sawg
Guest
 
Posts: n/a
http://genghis.winamp.com/~christophe/nsv/
  Reply With Quote
Old 18th December 2003, 15:55   #25
yedo
Senior Member
 
Join Date: Jun 2003
Location: Basecamp of Mt.Kailas
Posts: 146
I think it is very interesting the function of display IRC chat message on video screen.
However it is not display all messeage text.
Does somebody in XRM server chose message?
Do you have any plan release this tool for windows?
yedo is offline   Reply With Quote
Old 18th December 2003, 17:11   #26
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
The IRC bot is what does the sending to sc_nsv's script.txt file, it sends all of the messages but winamp ignores subtitles sent while a current subtitle is displayed, hince the loss of some messages.

As for the windows port, well my project site pretty much says it all. I will try to port this over to windows in GUI fashion (as that is what everyone really wants), but POSIX environments are my priority due to the fact that nsvscsrc exists for windows.
Jay is offline   Reply With Quote
Old 19th December 2003, 03:09   #27
shingiru
Junior Member
 
Join Date: Nov 2003
Location: Seoul, Korea
Posts: 6
Maybe, there is a subtitle display time field in nsv format.
If you add some subtitle with nsv tools, you may find the time field.

And, the posix environments are acquired by cygwin toolkit.
It's not so bad idea to use the toolkit, imho. ^^
shingiru is offline   Reply With Quote
Old 19th December 2003, 15:33   #28
winamp5
Junior Member
 
Join Date: Dec 2003
Location: www.So-Pro.co.uk
Posts: 27
Send a message via AIM to winamp5
http://www.radiotoolbox.com/download.../sc_nsv.tar.gz

doesnt work?
winamp5 is offline   Reply With Quote
Old 19th December 2003, 15:42   #29
winamp5
Junior Member
 
Join Date: Dec 2003
Location: www.So-Pro.co.uk
Posts: 27
Send a message via AIM to winamp5
Wow XRM TV may not have the best content (to my taste), but its certainly the best station.

I love the little logo int he bottom right, the short XRM TV commercial/transition. And how he song title come on the screen.

Its very much like an MTV or The Box channel, especally with the IRC text.

***** 5 Stars, Thumbs up (Y)
winamp5 is offline   Reply With Quote
Old 20th December 2003, 01:58   #30
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
I put up a mirror for now until my hosting company gets off it's ass. http://jay.xmhosting.com/sc_nsv.tar.gz
Jay is offline   Reply With Quote
Old 20th December 2003, 02:16   #31
winamp5
Junior Member
 
Join Date: Dec 2003
Location: www.So-Pro.co.uk
Posts: 27
Send a message via AIM to winamp5
I have my windows station working fine, but what do i have to do in regards to setting up a linxu station?

I have installed this sc_nsv but i cannot start it, im guessing that i will need to install and configure an VP6 codec somehow?

When trying to start i get the error:
$ ./sc_nsv &
[1] 6922
-bash: ./sc_nsv: Permission denied
winamp5 is offline   Reply With Quote
Old 20th December 2003, 02:26   #32
winamp5
Junior Member
 
Join Date: Dec 2003
Location: www.So-Pro.co.uk
Posts: 27
Send a message via AIM to winamp5
my bad

that'll teach me for unrar'ing it on windows then uploading... rofl.

Working great now, thanks a lot.

Any chance we can get your plo file with the IRC bot?
winamp5 is offline   Reply With Quote
Old 20th December 2003, 04:16   #33
winamp5
Junior Member
 
Join Date: Dec 2003
Location: www.So-Pro.co.uk
Posts: 27
Send a message via AIM to winamp5
Im unsure if its the NSV files buggy or the software, but on file-change the program seems to freeze, i have to restart it
winamp5 is offline   Reply With Quote
Old 20th December 2003, 13:15   #34
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
what encoding specs are your videos in?
Jay is offline   Reply With Quote
Old 20th December 2003, 16:33   #35
winamp5
Junior Member
 
Join Date: Dec 2003
Location: www.So-Pro.co.uk
Posts: 27
Send a message via AIM to winamp5
VP61/VFW with MP3 (LAME encoder) v1.0

Its crashing almost every track change, which is kind of tasking
winamp5 is offline   Reply With Quote
Old 20th December 2003, 17:51   #36
winamp5
Junior Member
 
Join Date: Dec 2003
Location: www.So-Pro.co.uk
Posts: 27
Send a message via AIM to winamp5
OK its getting very annoying now
Any ideas?
winamp5 is offline   Reply With Quote
Old 20th December 2003, 23:53   #37
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
what are you encoding to, framerates, screen res. etc.
Jay is offline   Reply With Quote
Old 21st December 2003, 00:02   #38
winamp5
Junior Member
 
Join Date: Dec 2003
Location: www.So-Pro.co.uk
Posts: 27
Send a message via AIM to winamp5
Default really.

To NSV
320x240 high quality resize
30fps
winamp5 is offline   Reply With Quote
Old 21st December 2003, 00:28   #39
slavas
Major Dude
 
Join Date: Apr 2003
Location: kaimas šalia Anykščių
Posts: 680
it's karma for wasting bits by encoding at 30 fps

probably post file(s) to check (short if possible)
slavas is offline   Reply With Quote
Old 21st December 2003, 01:55   #40
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
yea if you could give me access to one of the files that seems to cause it that would make this easier to debug, from what you have told me I see no reason for it to crash.

Also what Distro are you running this on?
Jay is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast TV / Nullsoft Video

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