LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2006, 12:18 AM   #1
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Rep: Reputation: 30
mplayer -vo gl too slow


I want to be able to resize video so I'm using mplayer -vo gl and then it goes very slow. I used -dropframe and it was good until I maximized it, then it went very slow...

Anyone know how I can get it to play normal at fullscreen?

Also it suggested I try -forceidx which I did, and now it does that everytime. This also makes the quality very shitty, so I'm very anxious to not have it do this everytime.
 
Old 02-05-2006, 04:06 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why use gl if it's slow?? use xv or something else, most scale jsut fine. most likely it's slow because you're not use a real OpenGL module, and instead rendering in software under MesaGL or something.
 
Old 02-05-2006, 11:11 AM   #3
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Original Poster
Rep: Reputation: 30
When I use xv it tells me to use x11, which works, but doesn't scale.
 
Old 02-05-2006, 11:16 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sounds like you have no xvideo extensions then.. what does "xvinfo" say about them? if you don't get a nice long list of junk, then you're probably not using the card to it's best... what is it?
 
Old 02-05-2006, 11:22 AM   #5
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
Have you installed drivers for your video card?

XV is the better output choice compared to gl for almost every card and system, but you need to have the correct drivers. If you do not, you cannot use XV at all, and GL is just via software and not hardware accellerated.

Try to use other output options if xv is not supported on your card, such as sdl.
 
Old 02-14-2006, 02:05 PM   #6
dj_prime
LQ Newbie
 
Registered: Oct 2004
Posts: 23

Rep: Reputation: 15
thanks acid

thanks acid for you advise.

I had a problem with mplayer not being able to play movies. changed to gl and it worked but it was slow

changing it to x11 has put it to usable speed.

cheers
 
Old 12-31-2008, 07:38 AM   #7
runesvend
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 2
hey

Hello

I'm bringing up this old thread because I'm having the same problem as the original poster. The only way, as far as I know, that I can get video playback without video tearing is by using the gl video output in mplayer.

Unfortunately, using this video output causes video playback to be too slow. The thing is, I don't understand why it is slow.

I have a fairly powerful CPU (Quad Core 2.83 GHz) and GPU (ATI Radeon HD 3870).

I can see when playing the video and monitoring CPU usage that it isn't the CPU that is the problem. It never gets to 100% CPU usage on either of the cores.

This is the command I'm using:

Code:
mplayer -vo gl -ao alsa -vc coreserver -cache 20000 -demuxer lavf -fs <file.ts>
Why is it so slow?

Here's the output from mplayer from running the above command:

Code:
rune@runescomp:~$ mplayer -vo gl -ao alsa -vc coreserver -cache 20000 -demuxer lavf -fs 1080p-test.ts
MPlayer dev-SVN-r28207-4.2.4 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad  CPU   Q9550  @ 2.83GHz (Family: 6, Model: 23, Stepping: 7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
129 audio & 259 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 1080p-test.ts.
Cache fill: 13.32% (2727936 bytes)   
libavformat file format detected.
LAVF: Program 1 
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [H264]  1920x1080  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Forced video codec: coreserver
Opening video decoder: [dshowserver] DirectShowServer video codecs
Opening device
Called unk_IsDebuggerPresent
len: 992
ProductVersion: 1.7.0
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420 
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
Dshowserver Connected to host
VDec: vo config request - 1920 x 1080 (preferred colorspace: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x8d7d970]using unscaled yuv420p -> rgb32 special converter
VO: [gl] 1920x1080 => 1920x1080 BGRA  [fs]
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
Found DirectShow filterSelected video codec: [coreserver] vfm: dshowserver (CoreAVC DShow H264 decoder 1.3 for x86 - http://corecodec.org/)
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
pts value <= previous: -0.757 ct: -0.004   0/  0 ??% ??% ??,?% 1 0 91% 
pts value <= previous: -0.679 ct: -0.017   0/  0 ??% ??% ??,?% 2 0 88% 
pts value <= previous: -0.587 ct: -0.029   0/  0 23% 82%  5.1% 2 0 85% 
pts value <= previous: -0.491 ct: -0.042   0/  0 19% 81%  5.2% 2 0 81% 
pts value <= previous: -0.395 ct: -0.054   0/  0 17% 82%  4.8% 2 0 78% 
pts value <= previous: -0.299 ct: -0.067   0/  0 15% 82%  4.5% 2 0 75% 
pts value <= previous: -0.153 ct: -0.071   0/  0 15% 86%  5.0% 2 0 73% 
pts value <= previous: -0.084 ct: -0.075   0/  0 16% 91%  5.2% 2 0 72% 
pts value <= previous: -0.023 ct: -0.079   0/  0 16% 96%  5.5% 3 0 71% 
pts value <= previous:  0.045 ct: -0.083   0/  0 17% 101%  5.6% 4 0 70% 
pts value <= previous:  0.104 ct: -0.088   0/  0 17% 105%  5.9% 5 0 68% 
pts value <= previous:  0.163 ct: -0.092   0/  0 17% 109%  5.9% 6 0 68% 
pts value <= previous:  0.222 ct: -0.096   0/  0 18% 113%  6.2% 7 0 67% 
pts value <= previous:  0.283 ct: -0.100   0/  0 18% 118%  6.4% 8 0 66% 
pts value <= previous: -0.006 ct: -0.108   0/  0 14% 94%  5.0% 10 0 64% 
A:2736.9 V:2735.9 A-V:  1.005 ct: -0.268   0/  0 14% 116%  5.6% 50 0 49% 

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

************736.7 A-V:  1.392 ct: -0.277   0/  0 13% 118%  5.5% 69 0 49% 
in-frames: 100 out-frames: 90
************
Destroying filter
Exiting... (Quit)

Last edited by runesvend; 12-31-2008 at 07:44 AM.
 
Old 12-31-2008, 07:42 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
please, never drag up dead threads. reference them, but don't resurrect them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer says my computer is too slow... Its not! stellarmarine1 Linux - Software 5 12-29-2004 03:20 AM
Mplayer slow playing movies. Druaga Linux - Software 3 11-13-2003 07:26 PM
mplayer plays videos slow coolamit78 Linux - General 3 09-15-2003 10:18 AM
Mplayer is slow on some video format ... ?? Elijah Linux - Software 2 04-17-2003 10:10 PM
MPlayer 0.9 Slow DivX ;-) Playback Null Linux - Software 2 12-29-2002 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration