You need a flash card — an EZFlash V is the commonly recommended one.
With that in place the process is straightforward: convert your video into a format the DS can decode, copy it onto the card, then open it with the card's media player.
Conversion is the step people skip and then wonder why nothing plays. The DS cannot handle a normal MP4 or AVI, so budget a little time for that part.