We need a lot more info than that in order to diagnose your problem.
What windows version do you have?
What type of mouse and keyboard do you have? PS2 or USB?
Have you added any software or hardware just before the problem began?
What virus and malware protection do you have?
Sorry, I don's play video and music, I just open an browser.
what im to to get at is it just the mouse and keyboard or is the computer itself freezing up.if you go to a web page with video playing [ try www.youtube.com ,click a video to see if it keeps playing after the mouse and keyboard stop responding !