I installed mplayer from source, but I have a few problems. When I try to start gmplayer from user, I get:

vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.

when I try to run it from root:

vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Failed to open /dev/rtc: Device or resource busy (it should be readable by the user.)

Also when I play videos in mplayer I do not have any sound, the same is with Xine. I had the same problem with xmms and found out that xmms outputs to my modem instead of the soundcard and fixed. i do not have an idea how to fix mplayer or Xine. Any suggestions on how to fix gmplayer and get the sound working?