first of all you need a nios-ii, and in eclipse create a application like Hello Word, rename this hello word to your desire name , if you r code won't taking any OS related stuff's make sure you should add all the relevant header file in this project, and copy past you h.264 main file to your application.add related C file also.
the best way is to go through the simple socket example.
you need lot's of memory also so batter to use some high end FPGA
which development board you are using...?
what are the error's...?