NSV – Streaming pre-encoded video

First note
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:

  • C:
    if you still isn’t at “C:\” you’ll have to use “cd..” until you are.(in my case D:\)

nsvscsrc_4

      • 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.
        NSVscSRC 1
        (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:
        content-type:video/nsv

        icy-metadata:0

        icy-name:Your stream/station name

        icy-genre:Video

        icy-pub:0

        icy-br:400

        icy-url:http://www.yourhomepage.com

        icy-reset:1

        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!
        SNVscSRC 2

        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.
        NSVscSRC_playlist_3
        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.

        Links
        Official NSV forums
        Official NSV webpage
        Official shoutcast webpage

        Advertisements

        48 Responses to NSV – Streaming pre-encoded video

        1. FoR LiFE says:

          I didint get that part
          C:
          if you still isn’t at “C:\” you’ll have to use “cd..” until you are.
          cd “Program Files”
          cd NSVTools

          Could you please be more spesifik like cd what is that sorry for those nooby questions but im new at this

        2. FoR LiFE says:

          I cant get past that first
          C: …

        3. wildex999 says:

          When you open command(Start menu->Run…->”cmd”) you will in most cases be at the directory: “C:\Documents and settings\username\” or something close to that. You have to go to the base directory, C:, and to do that you’ll have to write “cd ..” and press enter TWICE, untill it only say “C:\” in front of where you write. I added another image at the top to show what i mean. I also recommended you read up on “command line” before contiuing, so if it still doesn’t work, read up on “command line” and “cd” and “dir” by searching in google, like: “command line cd dir tutorial”

          Hope this helped 🙂

        4. wildex999 says:

          the command cd is the same as “go to” so if you write “cd NSVTools” it will go to the folder “NSVTools”. If you write “cd ..”(remember the space between “cd” and “..”) you will go up by one directory.

        5. FoR LiFE says:

          Thanks and a nother one whne i write nsvscsrc.exe /SC 77.79.24.142:8000:123:headers.txt C:\nvcs

          it says

        6. FoR LiFE says:

          you just put headers.txt into the root : C:/NSVtools/headers.thx?

        7. wildex999 says:

          The headers file should be in the same folder as nsvscsrc.exe
          It might also be that theres something wrong with the headers.txt file? What does it look like for you now? Anyway, it should be streaming ok without the headers.txt file too, but it won’t show up on the online listing.
          EDIT: I uploaded a sample headers.txt file that you can look at and use to test.

        8. FoR LiFE says:

          It thas play the sound but the video not

        9. […] I edited the Streaming pre-encoded video tutorial, so that it has an image for the explanation on changing directories, and I uploaded a […]

        10. wildex999 says:

          What codec you use? Does the video play if you play the file directly? You sure you opened the stream correctly?(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.)

        11. FoR LiFE says:

          I restardet my computer it worked perfektly thanks for your help

        12. wildex999 says:

          Happy to help 🙂 I’m working on writing some NSV software that might make streaming NSV easier, but it will take some time.

        13. FoR LiFE says:

          Nice work you keep going on

        14. Schy says:

          I have a problem…It’s all ,,good” but…when I write nsvscsrc.exe /SC 127.0.0.1:8000:yourpass:headers.txt “C:\NSV_OUTPUT” (I put my Ip and password)give me don’t send :((..why??

        15. wildex999 says:

          Hm… Could you give me some more information on what happens?
          Do you have a server running on the port/ip you give?(See tutorial 2 if you run your own server)

        16. BOGDES says:

          Thanks alot man! It works perfect! Keep it up! 🙂 BRAVO 😀

        17. Shawn says:

          Hi.. I’m having a slight problem.. I’ve gotten through almost all these tuts without a single problem but as soon as I get to the part where I have to type in nsvscsrc.exe /SC ****:*****:header.txt “NSV_OUTPUT” it begins to connect but then I get an error.. (Note: the stars are my way of censoring my ip and pass I don’t actually put that into the commend lol) It says there is an error with nsvscsrc.exe.. I’ve downloaded the new update for this file but I’m still getting this error.. Do you have any solutions? Thank you for these tuts btw! I’ve been wanting to learn how to do this for a while now..

        18. wildex999 says:

          Hello, yes, that error might come out if the command string is written wrong, or if there is something wrong with the path/files.
          You might want to check out these points:

          space between “nsvscsrc.exe” and “/SC”
          Space between headers.txt and the path
          Forward slashes /
          Forward slash at the end of path

          Also, in your case it might seem like the error lies in the PATH part of the string. You write “NSV_OUTPUT” as folder for NSV files, but it must be a complete path(Meaning you must have C:/Path/To/NSV/Files/”

          If it still doesn’t work, add another comment(or send me an E-Mail)

        19. Schy says:

          Stiil don’t work:((?why I have this error??:(…Don’t send??

        20. hi wildex nice blog have you here on my web page we stream in x264 and good is that cool thing live tv perfectly with vlc player as webplayer.

          with best regards
          radyoplay

        21. Sundar says:

          I always got the “Error parsing connect string” string. Many possible connections I tried. Still I got the same issue. Any one help me pls!!!!!

        22. wildex999 says:

          Sundar: Try one of the things further up on these comments. It might have to do with how the command was written.

        23. Jesse says:

          I typed all the stuff in cmd but this little pop up comes up and says nsvscsrc.exe has encountered a problem and needs to close. We are sorry for the inconvenience.

        24. wildex999 says:

          Jesse: look at the post above, getting that error means you have written the command line wrongly.

        25. Jesse says:

          i copied and pasted the code

        26. wildex999 says:

          Did you change the password NSV_OUTPUT to what is is on your computer? Set the password to what you set in the previous tutorial, and C:/NSV_OUTPUT to the folder where your have your NSV files.

        27. Jesse says:

          yup. ok i figured it out. you have to get rid of the “” things. it works great thanks for the amazing tutorial

        28. Jesse says:

          now you should make a tutorial on how to make your stream public, so that when people see the list of shoutcast tv on Winamp, they will see yours

        29. wildex999 says:

          I allready mention how to get it public:
          “icy-pub – set to 1 if you want the official shoutcast listing to show your station on their list.”

          And yeah, for some it needs the “”, and for some it doesn’t. Well, if anyone else get problems, they can just read you comment 😉

        30. Jesse says:

          i figured out how to make it public. you need to change the port forwarding on the router. you need to add 8000-8001

        31. Kris says:

          hey wildex99,
          i have a problem i get to the C:NSV_OUTPUT and hit enter and it says nsvscsrs.exe has encountered a problem and needs to close. We are sorry for the inconvenience. what did i do wrong

        32. wildex999 says:

          Hello Kris. Jesse had the same problem above, try what he did. Also what might be the problem might be that the path is wrong(Does C:\NSV_OUTPUT actually exists, if not you have to create it first)

          Hope this helps =)

        33. Kris says:

          how do you creat the nsv_Output

        34. FoR LiFE says:

          I have a problem it plays just the audio any suggestions?

        35. wildex999 says:

          Kris: NSV_OUTPUT is a folder under the drive C:/(Or any other if you change the folder/drive name)

          FoR LiFE:
          There might be several reasons:
          1) Try installing ffdshow, and then re-encode the video.
          2) Have you set the correct settings under video options?
          3) Try to encode different vides and see if you get the same problem

        36. Kris says:

          so just create the folder is what your saying

        37. Kris says:

          it also says Warning:cannot read headers.txt and that is how it shows in my NSVtools folder.

        38. i get this
          Adding Directory ‘NSV_OUTPUT’
          [re]connecting to 127.0.0.1:1990
          Warning:cannot read from ‘headers.txt’
          What do I do now

        39. Julema says:

          get this

          Adding Directory ‘NSV_OUTPUT’
          [re]connecting to 89.105.131.23:8001
          Warning: Don’t Send ‘nsvscsrc.exe’
          this problem happens when I try in “Start Menu/Run…” ..

          What should I’ve do?

          Thanks

        40. wildex999 says:

          What do you mean? Do you run nsvscsrc.exe directly in Start menu/run?
          I can’t realy say I have ever encountered that error before =/

        41. Julema says:

          it is like you wrote… “So in your command line, write:
          nsvscsrc.exe /SC 127.0.0.1:8000:yourpass:headers.txt “C:\NSV_OUTPUT”” I wrote this after all that tips you said on top of this page…then I have this error…

          This is my E-mail adress, contact me to send you pictures with that problem!! : isacserban@gmail.com

          THANKS

        42. Krazoom says:

          Hello once I get the part where I need to type in nsvscsrc I get an error saying nsvscsrc.exe (plus the files directory) is not a valid win32 application. Any suggestions?

        43. Krazoom says:

          oh wait.. I think the file was corrupted.. the file size was 0kb so I replaced it but now I have a new problem.. Once I get to the step in which I need add this part

          nsvscsrc.exe /SC 127.0.0.1:8000:yourpass:headers.txt “C:\NSV_OUTPUT”

          I get a debugging error in which nsvscsrc.exe has experienced a problem and needs to be shut down then when I read the cmd it says “warning: cannot read from headers.txt”

          BTW don’t worry I did change the above settings according to my own including the NSV video directory, I just copied and pasted from here to avoid posting my IP and pass.

          • wildex999 says:

            Hello Krazoom, sorry I’m so late replying.
            Are you sure you’re using the latest nsvscsrc.exe?(File is at the top of the tutorial)
            Try changing the way you provide the source file directory, like:
            “C:/NSV_OUTPUT” Changed the direction of \ to /
            or
            C:/NSV_OUTPUT without the ” on both sides.

            Hope that helps =)

        44. I thank you for your help to newbies. Your instructions was by far the easiest of any I have read. I set up my stream at 128k with files encoded at the same bit rate using the First Blood..Random Files Way. It worked perfectly with one exception that I hope you can help me on. When a NSV file plays it plays perfectly all the way through with no buffer problems and rotates to another with no crashing or error messages on the broadcast pc. However when I watch my stream (on another pc) my player STOPS and reads “buffer”. This happens when the file ends and starts to play the next one. When I hit the play button it plays fine until the file changes again. This happensw on any size files if it be full length movie features or You Tube shorts. I am broadcasting a 56k radio stream on the same pc but there are no problems with that and my browsing did not slow down when I added the NSV video feed. I am on the highest speed connection available from Time Warner Cable and a speed check registers it at a T1/Lan speed.

        45. wildex999 says:

          Hello Tiffany, nice to know the tutorials are of some help =)
          As for your problem, that is usually something that happens when the videos are encoded differently. YOu must encode every video using the exact same settings, that is, same bitrate(No too important), same Dimensions, same Framerate and of course, same codec. This also means the audio codec.
          Try encoding two videos using the same settings(Force dimensions and framerate) and then try streaming them. If it still doesn’t work, please leave some more information on what codecs you used, and the settings.

          Have a nice day =)

        46. Hi Wildex999,

          Thanks to you and your helpful site, we’ve been able to get our Shoutcast TV channel up and running…

          I was hoping you could maybe help us with one more thing?

          While we can play videos in “random” on our shoutcast station, we can not seem to get the playlist feature figured out. I am using winrar to compress the files… and I got it to save into an NSV file, but for some reason when I put the NSV file that should be the playlist into play, it’s not playing.

          Any tips you could offer? Or perhaps you could break it down into an easier step by step format? Please help!

          Thank you so much!
          Tiffany

        47. wildex999 says:

          Hello Tiffany 🙂

          When using winrar to make a playlist, you must remember to set it to “store” instead of compress!
          If this doesn’t work, maybe you could post what error or message comes up when trying to use it.

          You could also try to use one of the source/GUI programs with built in playlist.
          http://www.scvi.net/software.htm

        Leave a Reply

        Fill in your details below or click an icon to log in:

        WordPress.com Logo

        You are commenting using your WordPress.com account. Log Out / Change )

        Twitter picture

        You are commenting using your Twitter account. Log Out / Change )

        Facebook photo

        You are commenting using your Facebook account. Log Out / Change )

        Google+ photo

        You are commenting using your Google+ account. Log Out / Change )

        Connecting to %s

        %d bloggers like this: