You are not logged in.

#1 2009-11-19 03:47:00

shak
Member
Registered: 2009-03-16
Posts: 405

Not normal cpu usage when playing video files

Hi guys !

I've noticed that when playing videos (with every player , i've tried them all) there is a noticable cpu usage and with hd videos well the video is extremeley slow and unwatchable .

I have all the gstreamer plugins installed and i'm using gnome environment .

Does anyone know what might be the issue ?

my xorg.conf is :

  Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
    Load  "glx"
    Load  "dri2"
    Load  "extmod"
    Load  "dbe"
    Load  "record"
    Load  "dri"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"               # [<bool>]
        #Option     "DefaultRefresh"         # [<bool>]
        #Option     "ModeSetClearScreen"     # [<bool>]
        Option "RenderAccel" "True"
    Identifier  "Card0"
    Driver      "nvidia"
    VendorName  "nVidia Corporation"
    BoardName   "NV43 [GeForce Go 6600]"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Thanks in advance!

Last edited by shak (2009-11-19 03:55:53)

Offline

#2 2009-11-19 03:56:46

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Not normal cpu usage when playing video files

The issue is that Linux and hardware decoding don't necessarily go hand-in-hand like it does on Windows. There are some options though. You can try mplayer with coreavc or one of the mplayer-mt builds. Just search for mplayer in the AUR and you'll see a few options.

Offline

#3 2009-11-19 04:13:01

shak
Member
Registered: 2009-03-16
Posts: 405

Re: Not normal cpu usage when playing video files

Strange , with mplayer-coreavc i have no cpu usage at all . WIth smplayer which is a frotend of mplayer i have the cpu usage problem again .

It seems that i'l have to use mplayer . Is there any way to choose an option for subtitles encoding ? I've tried the -slang option with gr which stands for Greece but it doesn't work .

Also is there an easier way for mplayer to play my files , with default settings , so that i don't have to type a big command each time i want to play a video ?

Thanks a lot for your time !

Last edited by shak (2009-11-19 04:28:06)

Offline

#4 2009-11-19 04:29:58

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Not normal cpu usage when playing video files

shak wrote:

Also is there an easier way for mplayer to play my files , with default settings , so that i don't have to type a big command each time i want to play a video ?

Yes. You can put all of your personal default settings in the file ~/.mplayer/config. If it doesn't already exist, just create it. On my VDPAU enabled system it looks like this:

[default]

vo=vdpau,xv,
deint=4
hqscaling=9
vc=ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,
channels=2

As far as subtitles go, I never use them so I have no idea.

Offline

#5 2009-11-19 05:37:34

shak
Member
Registered: 2009-03-16
Posts: 405

Re: Not normal cpu usage when playing video files

Thanks again for your help skottish !

Offline

#6 2009-11-19 14:08:36

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Not normal cpu usage when playing video files

One tip for subs: ass=yes
ssa/ass subs are really nice.

/me awaits the obligatory unfunny comments about the option name.

When it comes to slang, that depends on that the dude encoding the movie actually put in a language code for the sub stream. Most don't.

Last edited by Mr.Elendig (2009-11-19 14:11:44)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2009-11-19 15:23:26

shak
Member
Registered: 2009-03-16
Posts: 405

Re: Not normal cpu usage when playing video files

/me awaits the obligatory unfunny comments about the option name.

haha i wouldn't have noticed it if you haven't said that tongue

Thanks a lot for your help , i like ass as well wink

Offline

Board footer

Powered by FluxBB