I want to ask what programs you normally use. I use sony vegas (which is ofcourse a trail mode) and i uploaded on youtube and sony claim copyright infringement and my video got removed. Since sony vegas is damn costly, i want to know is there a way to use it legally since it's the best(according to me) video editing tool. Please help.

This actually has nothing to do with the software that you're using, but rather the music (or even possibly the anime) you used in your video. Youtube is taking your video, doing some hardcore math, figuring out what source(s) are in your video, and then asks the copyright holders if they want to block, show ads on your video, or do something else.

I'll also take this time to mention that you don't have to worry about your video being taken down if you upload here. Uploading is more involved (takes more steps) here than it is at youtube, but there are guides to help you with that. (Moonslayer's uploading guide) (My using FTP guide)

Browsers (in general) don't handle FTP (at least not without a plugin). So, that'd be the point where you switch over to my using FTP guide. I suppose it would've been helpful if I had said that before

Moonslayer's guide gets you through entering the video into the catalog and requesting upload permission, then my guide takes you through FTP, and then Moonslayer's guide leads you through confirming the upload.

it's most likely the music.any music Ytube analyzes as owned by Someone, (in this case Sony Music Associated, the copyright holder) Ytube automatically processes what Someone told Ytube to do.There are several options that copyright holders can choose from; They can take down the video along with the music, or mute the music part only, or leave it alone.. (not exhaustive)

It's most likely coincidential since you used Vegas trial version, which is also from Sony.If you'd want to be sure just render your video without any audio, then upload it to see what happens.