Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

On Ubuntu 10.04 I experience choppy video playback.

I am running Mplayer and have an Nvidia GeForce 9800 GTX+ video card. I have already installed the libvdpau1 library. I don't know if hardware acceleration is enabled on my video card or if it is supported.

Can anyone provide suggestions on how to decrease the choppiness?

Here is my xorg.conf file:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@yellow)  Fri Apr  9 11:51:21 UTC 2010

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "ACI ASUS VH236H"
    HorizSync       30.0 - 85.0
    VertRefresh     55.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 9800 GTX+"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: nvidia-auto-select +1920+0, DFP-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
share|improve this question
    
curious why do you have an xorg.conf? most of the time these days xorg auto detects everything? I speculate that even if you need one for something things you could leave a lot of stuff out like the kbd and mouse sections. –  xenoterracide Aug 21 '10 at 19:06
    
The xorg.conf file is still configured and used in Ubuntu 10.04 even though its all done through a gui. –  Noah Goodrich Aug 21 '10 at 19:42
    
This really belongs on ubuntu.stackexchange.com, not here. –  clee Aug 24 '10 at 10:06

2 Answers 2

The reason you have an xorg.conf with all those settings is that you use the proprietary nvidia driver and the GUI tools that come with it; my Intel & ATI graphics (with open source drivers) don't need any xorg.conf settings anymore.

Now, about the choppiness:

  1. what sort of video are you trying to play (resolution, codec, ...)?
  2. does mplayer actually use vdpau? (I'm pretty sure it will say that somewhere in the output you get when you start it in a terminal.)
  3. is your PC doing other things at the time you try to play this?
  4. are you playing this from a local drive or over a network? (wired/wireless?)
share|improve this answer
    
Are we even sure that the proprietary nVidia drivers are installed, what framerate do you get when you run glxgears, a really low one ( less than 1000 ) indicates that they are not installed correctly. If they are installed does the card support hardware accelerated video? Some higher end gaming cards from that time period do not, despite impressive 3d performance. –  Sqeaky Aug 22 '10 at 20:39
    
@Sqeaky: his xorg.conf is hardcoded to work with the binary driver: ` Driver "nvidia"` –  JanC Aug 23 '10 at 5:45

Are you sure your mplayer is configured with vdpau support? If unsure, add this ppa to your sources and install the mplayer package: ppa:rvm/mplayer

To make sure you're using VDPAU, try this (assuming ALSA sound here, YMMV):

mplayer -ao alsa -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau,ffodivx, foo.avi

VDPAU uses hardware-accelerated playback, so the CPU shouldn't be really busy while playing a video file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.