You are not logged in.

#26 2007-09-19 20:15:13

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: [SOLVED]mplayer in the shell

Some maths for fun.
I have native 640x360 movie.
My screen is 800x600 (0x313).
Then 800/640=1.25 so 1.25*360=450
So if i do not want disortion I do:
mplayer -vo fbdev2 -fs -zoom -x 800 -y 450 FILENAME.avi
Result: real geometry movie in uperside and some output and cursor at bottom.

Offline

#27 2008-05-12 10:39:39

vomix
Member
From: Belgium
Registered: 2007-05-02
Posts: 84

Re: [SOLVED]mplayer in the shell

Hi all,

Sorry to bump this old thread, but I'm actually setting up an old machine without X.
The beast is a Dell Optiplex GX1:

CPU: Pentium III (Katmai) - 450Mhz
RAM: 312Mb
VIDEO: Integrated ATI Rage Pro (AGP 2X) with 4 MB SGRAM memory.

(More info here)

It's kinda fun, and I got mplayer & frame buffer working fine with the help of this topic!
The only problem is the slow performances when I'm trying to view vids in full-screen mode, either with "mplayer -vo fbdev2 -fs -zoom -x 1024 -y 768 file" or ProzacR's savants mathematics. lol

Is there a way to increase performances (with some useful options or something like that?), or I am limited by the hardware specs of this box?

PS: I'm using the vga=791 option in menu.lst, I don't know if it could help.

Thanks in advance!

Last edited by vomix (2008-05-12 11:15:24)

Offline

#28 2008-05-12 14:24:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED]mplayer in the shell

You can also try the cvidix driver, details here. I set it up on my laptop a while ago just for curiosity's sake, and it works fine. For full screen, I need this:

-fs -screenh 768 -screenw 1024 -quiet -vo cvidix

Offline

#29 2008-05-13 09:51:53

vomix
Member
From: Belgium
Registered: 2007-05-02
Posts: 84

Re: [SOLVED]mplayer in the shell

Thanks tomk.

Good news: my video card is recognized & it's running faster than fbdev!
Bad news: It seems that the resolution variables are correctly understood, but mplayer doesn't display the entire video!  See this:

ca457036d8ca29e08ea423e87d374t.jpg

(on the picture, you can see the volume level notification, also "cut"). 

Better than nothing. big_smile

I read somewhere that cvidix is depending on fbset variables, but once again it seems correct:

mode "1024x768-76"
# D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz
geometry 1024 768 1024 768 16
timings 12714 128 32 16 4 128 4
rgba 5/11,6/5,5/0,0/0
endmode

And the output of mplayer -fs -screenh 768 -screenw 1024 -quiet -vo cvidix file.avi:

MPlayer 1.0rc2-4.3.0 (C) 2000-2007 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Model: 7, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
115 audio & 237 video codecs

Playing /mnt/lacie/Visuals/Fight Club.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [DIVX]  640x288  24bpp  25.000 fps  621.9 kbps (75.9 kbyte/s)
Clip info:
 Software: Nandub v1.0rc2
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
[mach64] Found chip: 3D Rage Pro AGP 1X/2X
[mach64] Video memory = 4Mb
[mach64] Set write-combining type of video memory
[mach64] Planar YUV formats are supported :)
[VO_SUB_VIDIX] Description: BES driver for Mach64/3DRage cards.
[VO_SUB_VIDIX] Author: Nick Kurshev and Michael Niedermayer.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 32.0 kbit/2.08% (ratio: 4000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 288 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [cvidix] 640x288 => 640x288 Planar YV12  [fs]

[EDIT]
Ok, I don't know why but this problem seems to happen with resolutions higher than 800x600, so I'll stick to this resolution!
mplayer is now running fine on a dedicated tty, thanks tomk! smile
[/EDIT]

Last edited by vomix (2008-05-13 21:22:15)

Offline

#30 2008-05-13 22:05:16

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED]mplayer in the shell

Your cvidix-related output is more or less the same as mine - see here, with a file picked at random from my NFS share:

MPlayer dev-SVN-r25449-4.2.2 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
117 audio & 239 video codecs

Playing /common/video/random_file.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  512x384  12bpp  23.976 fps  753.8 kbps (92.0 kbyte/s)
Clip info:
 Software: Nandub v1.0rc2
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
[mach64] Found chip: Rage Mobility P/M AGP 2x
[mach64] Video memory = 8Mb
[mach64] Set write-combining type of video memory
[mach64] Planar YUV formats are supported :)
[VO_SUB_VIDIX] Description: BES driver for Mach64/3DRage cards.
[VO_SUB_VIDIX] Author: Nick Kurshev and Michael Niedermayer.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le
AO: [sdl] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [cvidix] 512x384 => 512x384 Planar YV12  [fs]

There are differences in the file properties, of course - DIVX vs XVID, Movie-Aspect (undefined vs 1.33:1), aspect ratio, fps etc. Try some other files to see if you get the same results.

Offline

#31 2009-11-27 12:47:37

kdkfly
Member
Registered: 2009-11-19
Posts: 1

Re: [SOLVED]mplayer in the shell

Have you tried using root?

If it works,add your user account to the video group.

Offline

#32 2009-11-27 17:42:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED]mplayer in the shell

kdkfly - 18 month old thread... yikes

Read this please.

Closed.

Offline

Board footer

Powered by FluxBB