Default Media player recognizing video files

Hi, is there any way to prevent the media player from recognizing all files? I noticed that on the stock rom, the media player was also recognizing mp4 video files and some ringtones, its also the same on the custom roms that i flashed, is there any way to limit the media player searching to certain folders? Thank you for your help