NSV – Encoding your first video

Hello,This is the first in a series of tutorials, meant to help you set up and stream your first video station on the net.
In this first tutorial, I will try to take you trough the process of encoding an video so that it can be streamed in a later tutorial.

First Notes
The first thing you should take note of before starting, is that the NSV streaming format was left in a Beta stage. This doesn’t mean it’s dangerous, or not working. What it means is that the tools wasn’t fully completed, and that they might be a bit advanced to use.

The first thing you would want to do(if you haven’t allready) is to download the tools you need to start encoding and streaming. These tools are packed together for ease of use. If you go to the “official” NSV homepage(Here) You can find the tools. But I will give you an direct link: NSVTools Setup
After you have downloaded the .exe file and started it up, you will have to click “I Agree” at the first page, before you will be given some options on what to install. In most cases you will just leave everything as is(Checked), and you continue by clicking “Next >”

After this, you will be able to choose where to install it, for simplicity we’ll leave it as it is choosen(in my case: D:\Program Files\NSVtools) but it will most likely be C: in your case.

It will now install with all the options choosen. This shouldn’t take long at all, and after it’s complete, you can just press “Close”

NSVSetup Screenshot 2

We are now going to go to the folder we installed the NSV Tools.
You should find a program named “nsvate.exe”, that is your main encoding tool for all pre-encoded NSV streams.
What we are going encode is a pre-encoded NSV file. After it’s encoded you can’t change the quality or size of that file without encoding it again. Now, go ahead and open up nsvate.exe.

First, let’s take a look around at nsvate.
If you look at the image, I have put some numbers at the buttons there:

  1. This is the “new” button, clicking here will give you the option to add new videos to encode selecting from the useable formats of nsvate(As seen when choosing: .avi, .mpg, .mpeg, .mov) We’ll be taking a clooser look at this as we go.
  2. This is the “delete” button, and wil remove the currently selected queued encoding.
  3. Pressing this button will start the currently selected queued encoding, or give an error if unsucessfull.
  4. The stop button will stop the currently selected queued encoding, if it’s running.
  5. This will open up the profile manager, we will take a closer look at this later.
  6. This will open up the preferences window, allowing you to choose(In the order they appear)
      1. Encoding Priority: best left at normal, but can be set to low if the encoding makes you computer hang up. you would be best to NOT set this to high, as it can lock your computer.
      2. Automatically overwrite, if it should automatically overwrite the output file when starting to encode.
      3. Automatically create folder, if it should create output folder if it does not exist when starting to encode.
      4. Promt on exit, if it should give oyu a second chance when leaving, to not quit(Good if you accidentally click quit while encoding)
      5. Assume Framerate, should be left as is!

      Let’s take a closer look at “new” by selecting an video file you have somewhere(Microsoft will sometimes include an example file under “My documents”)
      After selecting the file on “new” you will be able to chose encoding profile to use, and to select where to output the encoded file. You can set both filename(automatically set to input filename) and output folder. You also have some buttons to quicken the selection.

      You will see that we have no profile, so this would be a good time to look at the profile manager, which is the most advanced part of nsvate.

      Profile, Profiles, Profiling?
      There are two ways to reach the profile manager, either trough pushing the “Edit profiles” button after selecting a file to encode, or trough the button on the main nsvate window.

      In both cases you will get the same window:
      NSvate Profile manager 1

      To the left you can see the list of all available profiles. to the right you get the buttons to manipulate that list.
      as you can see, we should have one (Default) profile right now. I can tell you right now, it won’t encode anything, and is there just to look pretty.
      We want to create our own profile, so we click “Add New”. This will add a new profile named “new profile” nice name, right? ๐Ÿ™‚
      We want to edit how that profile will work, so we click “Edit” while having our new profile selected.

      You will get a new window with a lot of buttons, drop down lists and some checkbuttons.
      I will not dive into the specifics of the encoding options of each codec on audio and video, and you will have experiment on that yourself. I will however give you a set-up to get you started. i will use the codec MP3 and VP3 as they are included in the package by default. There is other new codecs(Like AACP audio codec, and VP6 and H264 video codec) that you can find by going to the official NSV forums.

      First you might want to change the name of the profile in the text box at the top.
      NSvate Profile manager 2
      If you look at the image, you will see I have allready set it up. You will have to select the codecs from the drop down lists at the second window.
      Looking at the left window:
      Resizing: This will define how it will resize the output video.

      Output framerate: Using this you can set the output framerate.

      Remember, setting anny of those two higher, will cause the quality to drop UNLESS you set the video bitrate higher too. Likevise, setting them lover will make it possible to lover the video bitrate without quality loss. Finding the best bitrate and framerate/resolution when you encode is usually something you’ll have to find yourself by testing.
      You can leave both Video processing and Audio processing alone unless you know what you’re doing.

      Now, go ahead and press the button “NSV Encoder Configuration” and you will get to the nest window.

      Right window: This is where most of the audo and video settings are.
      NSV format option: If you find you audio and video not being in sync, you’ll have to change the two upper settings. Leaving the min/max sync frame interval at either 0/’framerate’, 0/120 or both at zero will usually work, this too is something you’ll have to test your way to. file header is usually best left ticked, as this will provide an header telling the server and player about the file. TOC size and can just be left at 1024, it defines the searching to specific times inside the stream. Metadata can also be left alone, it just allows you to define custom variables.

      Audio: Here you can select what audio codec to use. Depending on what codec you choose, the set-up will be different. For MP3 the bitrate is most likely what you would like to change. Maybe change between stereo and mono if you want really low bitrate audio.

      Video: Here, you can select what video codec to use, and like with the audio, the set-up depends on what codec you choose. In our case, we choose VP3 and we get some settings for bitrate, keyframing and encoding speed/quality. In most cases you would only want to change the bitrate. if you have a really good CPU you might want to set quality to 50(high, buyt slow) or to 63(low, but fast) if you have a slow CPU and maybe tick Quick compress.
      the rest would be best left alone.

      Encode that Shit!

      If you now press OK on both windows, you will be taken back to either the main window, or the profile chooser.
      Go ahead and add a new file using the newly made profile, and you will see it added on the main window, in the encoding queue. You can add as manny videos as you want, and they will not start encoding untill you select them and start encoding them.
      If you have manny videos you might go to the top of the window, into”misc” and press “Encode All”. This will queue all to encode after each other in the order they were added.

      If you, when starting to encode, get anny kind of error, you might want to check wether you can play the file you’re trying to encode, in Windows Media player, as the encoder can mostly only encode what WMP can play. There might also be a problem with the Video or audio encoding configurations, double check them.
      When encoding you will se a counter behind the file name under “Status”, this is the number of Minutes:Seconds thats been encoded of the video.
      NSvate Encode 1
      When it’s complete, as it will say so in the status field and you will then be able to play the NSV file using either Winamp, VLC player, or any other player that supports NSV.

      Thats the end of this tutorial, in the next tutorial we’ll go on to set up Shoutcast before trying to stream our newly encoded file(s) over the net to all who want’s to see.
      Anny questions can either be sent to me by e-mail, or asked at the comments field at the bottom of this page. Good Luck ๐Ÿ™‚

      Usefull Links
      Official NSV webpage(Very old)
      Official NSV forums(Ask here for help using NSV)


      25 Responses to NSV – Encoding your first video

      1. mysoogal says:

        i think you left out a very important thing about nsv, embeding it to html i dont think i saw this on your wp so far ๐Ÿ˜ฎ i’ll

        also, the web player needs to be on here the activeX.

        you tried getting VP7 to work on activex ?

      2. wildex999 says:

        NSv hasn’t really been embedded to html/webpages much. You have some test Active X on the NSV Forums, but they are kind of out-dated. I have tried making a Firefox Plug-in for NSV, but put it on hold until I have finished more of the NSV Library.

        And for VP7, I find X264 codec to be much better, and thus I haven’t really tried to implement VP7, neither have anyone else. VP7 is closed source, and it is therefore up to the creators of Vp7( ON2 i think) to implement it. X264 on the other hand is open source, and cross platform, and I find it to have some better quality ๐Ÿ˜‰

      3. mysoogal says:

        i have the ampx activex which plays vp3/vp6.1/6.2 with mp3, or acc plus i think etc

        check my site mysoogal.com the plugin is by aol, some guy called revax something like that. only wish the damm plugin had a x264 support im not sure but i have this nsv sdk to add like xvid support im really confused might be for the winamp support not for the web plugin :O

        i know there is x264 support in winamp but we really need a x264 support in the activex now. vp6.2 is outdated.

        by the way if your a experienced programmer, you want to try and build a x264 web player ? i just installed c# express trying to program this but my experience with c# is zero if your interested lets get this project going

        you can contact me by email contact@my

      4. wildex999 says:

        Hello mysoogal.
        Yes, I have plans to do a lot with NSV, like programming a player, and Linux encoder etc. But I’m in the middle of exams, and soon I’m moving too, so I don’t have much time to spare at the moment. =/ But I will look more into it when i get settled down during the summer.

        I’m not too fond of the .NET platform, so I’m programming using C and C++ mostly.

      5. JayDee says:

        anone know were i can get the vp7 codec stuff for nsvcap and winamp to test it

      6. wildex999 says:

        VP7 doesn’t exist for NSV.

      7. mikroby says:

        Hi All!

        I can’t encode with NSVate, because the program crashed when I click “Edit Profile” button.

        Can anybody help me ?


      8. wildex999 says:

        What Windows/OS are you running?
        Has it worked before, or is this the first time you try it?

      9. mysoogal says:

        vlc videolan has a activeX for windows and linux :O

        supports nearly all the codecs, have you tried to change this and create a cab from it ? maybe this is the best way to move forward ? i believe the nsv plugin is dead there just isn’t any updates for the plugin for ages.

      10. wildex999 says:

        I’m working on a new player for Mozilla(Firefox+Opera) and ActiveX(Internet Explorer) that will support NSV among other formats, and all codecs(X264, VP6…) on Windows, Unix/Linux and Mac. I have just recently gotten into it, and finally understand how the Mozilla source works. I will probably post more information on this on the blog soon. ๐Ÿ™‚

        I do believe the VLC ActiveX is quite unstable too =/ Their NSV implementation is so so. They’re using libavformat, and isn’t too up-to-date with NSV(They can’t play certain NSV files without hanging up etc.)

        Anyway, more information soon =)

      11. mysoogal says:

        heres what i use to test vlc activex plugin


        it works for IE6/7 firefox havn’t checked probably does.

        i’ve just changed few things on it. but if you ever need to know how to embed vlc control to html look in the code. you just need to install vlc and test the page. yup vlc does hang alot when i stream from the activex control, many people say vlc is the best, i’ve got to say its not all that.

        hey by the way, what if you try to make a filter video docoder that uses windows media player activeX vfw i believe its called ? i saw Vp7 does provide this feature. maybe it would be much easier this way. building the whole plugin could take years lol. just a idea. :O

      12. mysoogal says:

        just to list all the known activeX plugins by me

        1. Streamplug – supports xvid,divx,3ivx,h264
        2. windows media – all the crapy wmv codecs
        3. vlc activeX – supports many codecs
        4. vusion media player – its powered by cdn p2p – VP7 codec used very nice activeX plugin, it almost looks same as the NSV ravx player.

        5. real media – RM , RMVB – very good codec and activeX control, interface is can be changed via javascript

        6. NSV – ravx NSV 6.1/ 2 ACC -it looks almost same as vusion player if all the graphics added.

        these are all the plugins i know so far O_O

      13. mysoogal says:

        well, it seems i missed the divx web player or im just to blind lol, anyways divx web player supports xvid , and all divx codecs.

        divx web player will be supporting h 264 ITU video codec i believe and its in beta form right now to selected members of divx labs users.

        i really do hope something comes out from you which is far greater whats already above, if only there was a single plugin that supports it all ๐Ÿ˜€

      14. jc2k8 says:

        My NSVate crashes everytime I try to access the profile portion of the program.

      15. AlexM says:

        Your blog is interesting!

        Keep up the good work!

      16. mysoogal says:

        hey, im not sure if you tried this, but in my visual c# studioi can pull the vlc plugin into my form, :O, im wondering if its possible if you can do the same, maybe it will be easier for you, to to have a base to work from. such as the already vlc plugin, which is open source ?

        use vlc, make activeX from it with only supported video codecs, complied ? x264,divx,xvid,vp3,vp6/2

        then somehow make it into activeX type of installer into cab ? and the javascript part would be easy as that stuff is already in the open ?

        u tried to mess with vlc yet ?

        just an idea thu :p , i have emailed xvid dev team and asked if they would make a xvid offical web player, they said hmm i thought about it but hmm we cant, what a sad ending. ๐Ÿ˜ฎ

      17. mysoogal says:

        EDIT by Wildex999: *Please no spam ๐Ÿ˜‰ * Your hate can be vented elsewhere.

      18. mysoogal says:

        ” Your hate can be vented elsewhere. ” sure thing ! buddy !

      19. mysoogal says:


        vlc plugin in action , supports all the codecs listed on the vlc website, you might be interested, not spam ^_^

      20. forlife says:

        hi when i try to encode it only encodes audio and no video any suggestions?

      21. forlife says:

        when i try to encode avi file but when i encode wmv its all normal

      22. wildex999 says:

        Hi forlife.
        That problem is commonly caused by not having the correct decoders installer on your computer. I recommend you install ffdshow( http://www.free-codecs.com/download/FFDshow.htm ) and then ty to re-encode.

        If it still doesn’t work, it might be the video you file that you’re tyring to encode there is something wrong with.

      23. forlife says:

        Thx it worked

      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 )

      Google+ photo

      You are commenting using your Google+ 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 )


      Connecting to %s

      %d bloggers like this: