If you’ve read the two last tutorials, you’re probably bored of reading without much happening, and is eager to see your videos streamed live to your friends or other people.
In the first tutorial you downloaded the nsvtools installer and installed them, but the tool we are going to use here have had an update since. Get the file HERE and then extract it over the old one where you installed the nsvtools.
In this tutorial I will take you trough the process of taking your pre-encoded video, and putting it into nsvscsrc.exe for streaming to a shoutcast server. Please note, the NSV tools are in beta, and the streaming tool hasn’t gotten a GUI yet(But manny custom ones exists) so if you’re VERY unfamiliar with the command line, you might want to read ip a little bit on that. but if you know what “cd” and “dir” does, you should be safe.
First blood…. erm… random files way
First, open your command line, this can be done by going to the start menu->”Run…” and then writing “cmd” and pressing enter.
You will have a black window open now where you can write in text. cd your way to where you installed the tools, in my case:
if you still isn’t at “C:\” you’ll have to use “cd..” until you are.(in my case D:\)
- cd “Program Files”
- cd NSVTools
You should now be in “C:\Program Files\NSVTools” and this is where the tool nsvscsrc.exe is.
if you try to write: “nsvscsrc.exe”, you will get some text printed to the screen. This is the instructions on how to use the tool.
(If it does not look like that for you, go to the top of this page and look for the new version of nsvscsrc)
If you study the lines that is printed, you’ll see that it will want a header.txt file, we’ll have to create this file. It doesn’t have to be named headers.txt, but if you name it anything else, you’ll have to remember to change the name when you write the command later.
Go on and create the file, either by typing “notepad” in the command line, or getting to the folder and create it. Remember to save it where you have the tools, or else the command line will be a mess with a path in the middle of it.
After you’ve created/saved the empty headers.txt file in the nsvtools folder, you can copy and paste this as a template to start with:
icy-name:Your stream/station name
content-type – This should be left as is.
icy-metadata – leave at 0 unless you have inserted metadata when you encoded the files.
icy-name – The name of your station/stream
icy-genre – the genre of your stream(music, anime, movies, webcam etc.)
icy-pub – set to 1 if you want the official shoutcast listing to show your station on their list.
icy-br – The bitrate you encoded your files to(audio+video bitrate avg.)
icy-url – the url to your website(if you have one)
icy-reset – should ALWAYS be set to 1!!!
after you’ve copied and changed these as you want you can save the file and close it.
I also uploaded a sample headers.txt file for you to use and edit: sample_headers.txt
Now we’ll go on to stream, this first method will let you stream one folder with NSV files, looping them randomly.
So in your command line, write:
nsvscsrc.exe /SC 127.0.0.1:8000:yourpass:headers.txt “C:\NSV_OUTPUT”
You will ofcourse have to change those to fit your need.
127.0.0.1 is the ip to the host, in this case, to your computer(localhost)(Change if you got another IP from host)
8000 is the port you set in the shoutcast settings(or got from your host)
yourpass change to the password you set in your shoutcast server, or that you got form your host.
headers.txt is the file we just created, change the name if you named it anything else(or set full path if you have it elsewgere)
“C:\NSV_OUTPUT” The path where you nsv file(s) are, set it to where you output the nsv file(s) when you encoded them(or where you moved them)
Pressing enter, it will look for nsv files in the directory you specified, then if your server is running ok, it will now try to connect to the ip you set, and the port+1(8000+1=8001 in this case), this is because that’s the port the server receives on.
After it has connected, it will be streaming. easy!
You can now connect to the stream by opening winamp, going to “file->Open URL..” and typing “http://127.0.0.1:8000\;stream.nsv” changing ip and port to what you have.
Second blood…erm…. playelist…
There really isn’t much into a playlist, you need to have winzip or winrar or Any other program that can make .zip files. You just put all files into this zip, arrange them like you want them to be played(number in front of filename), and then compressing with “store” and then rename the .zip file to .nsv.
Then you just put it into the NSV_OUTPUT folder(or where you pointed the input on nsvscsrc) and it will play the playlist as if it were one long NSV file. You can also have multiple playlists.
Now, that is everything this tutorial will cover about streaming pre-encoded. There are some more options on nsvscsrc, but you’ll have to look at them yourself. I recommend you go look at the “Introduction to NSV” post over at the official NSV forums and then, have fun encoding your videos and streaming them. Any questions is also best asked at the NSV forums, but I can answer some here or over E-mail too.