maximum resolution: how to extend ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



>> While waiting for a better answer, have you tried a different vo? The
>> following two commands work here:
>>
>> mplayer -quiet -demuxer rawvideo -rawvideo fps=10:w=2500:h=2000:y8
>> /dev/zero -vo gl
>
> As with Reimar, this one does not work (it shows a white screen instead of black - and still plain white instead of noise in case I replace /dev/zero by /dev/urandom), but gl2 does (not with the current debian-multimedia mplayer which shows some green screen, but with the latest svn revision)!

Uhm, all three of them work here (gl, gl2 and x11) but the fastest one
for me is gl, because both x11 and gl2 try to do colorspace conversion
in software. Here's the output using '-vo gl' and '-vo gl2' (I tried
with other values of yuv=<n> but I wasn't able to tell gl2 to do
conversion in hardware):

holden at rye:~$ mplayer -quiet -demuxer rawvideo -rawvideo
fps=10:w=2500:h=2000:y8 /dev/zero -vo gl:yuv=2 -v
MPlayer SVN-r31139-4.2.4 (C) 2000-2010 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: AMD Sempron(tm) Processor 3300+ (Family: 15, Model: 44, Stepping: 2)
extended cpuid-level: 24
extended cache-info: 8421696
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/holden/.mplayer/codecs.conf'
Reading /home/holden/.mplayer/codecs.conf: Can't open
'/home/holden/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-gui --enable-menu
CommandLine: '-quiet' '-demuxer' 'rawvideo' '-rawvideo'
'fps=10:w=2500:h=2000:y8' '/dev/zero' '-vo' 'gl:yuv=2' '-v'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/holden/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/holden/.mplayer/input.conf'
Parsing input config file /home/holden/.mplayer/input.conf
Input config file /home/holden/.mplayer/input.conf parsed: 91 binds
Setting up LIRC support...
get_path('zero.conf') -> '/home/holden/.mplayer/zero.conf'

Playing /dev/zero.
get_path('sub/') -> '/home/holden/.mplayer/sub/'
[file] File size is 0 bytes
STREAM: [file] /dev/zero
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
rawvideo file format detected.
==> Found video stream: 0
[V] filefmt:26  fourcc:0x20203859  size:2500x2000  fps:10.000  ftime:=0.1000
get_path('sub/') -> '/home/holden/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
[gl] Using 0 as slice height (0 means image height).
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 2500 x 2000 (preferred colorspace: Planar Y8)
Trying filter chain: vo
VDec: using Planar Y8 as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
VO Config (2500x2000->2500x2000,flags=0,'MPlayer',0x20203859)
VO: [gl] 2500x2000 => 2500x2000 Planar Y8
VO: Description: OpenGL
VO: Author: Reimar Doeffinger <Reimar.Doeffinger at gmx.de>
[gl] GLX chose visual with ID 0x2f
[gl] Running on OpenGL 'GeForce FX 5200/AGP/SSE2' by 'NVIDIA
Corporation', version '2.1.2 NVIDIA 169.12'
[gl] Settings after autodetection: ati-hack = 0, force-pbo = 0,
rectangle = 0, yuv = 2
[gl] Creating 4096x2048 texture...
[gl] Resize: 1272x939
Selected video codec: [rawy800] vfm: raw (RAW Y8/Y800)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
*** [vo] Exporting mp_image_t, 2500x2000x8bpp YUV packed, 5000000 bytes
Unicode font: 4861 glyphs.
Unicode font: 4861 glyphs.
Uninit video: raw
vo: uninit ...

Exiting... (Quit)



holden at rye:~$ mplayer -quiet -demuxer rawvideo -rawvideo
fps=10:w=2500:h=2000:y8 /dev/zero -vo gl2:yuv=2 -v
MPlayer SVN-r31139-4.2.4 (C) 2000-2010 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: AMD Sempron(tm) Processor 3300+ (Family: 15, Model: 44, Stepping: 2)
extended cpuid-level: 24
extended cache-info: 8421696
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/holden/.mplayer/codecs.conf'
Reading /home/holden/.mplayer/codecs.conf: Can't open
'/home/holden/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-gui --enable-menu
CommandLine: '-quiet' '-demuxer' 'rawvideo' '-rawvideo'
'fps=10:w=2500:h=2000:y8' '/dev/zero' '-vo' 'gl2:yuv=2' '-v'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/holden/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/holden/.mplayer/input.conf'
Parsing input config file /home/holden/.mplayer/input.conf
Input config file /home/holden/.mplayer/input.conf parsed: 91 binds
Setting up LIRC support...
get_path('zero.conf') -> '/home/holden/.mplayer/zero.conf'

Playing /dev/zero.
get_path('sub/') -> '/home/holden/.mplayer/sub/'
[file] File size is 0 bytes
STREAM: [file] /dev/zero
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
rawvideo file format detected.
==> Found video stream: 0
[V] filefmt:26  fourcc:0x20203859  size:2500x2000  fps:10.000  ftime:=0.1000
get_path('sub/') -> '/home/holden/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 2500 x 2000 (preferred colorspace: Planar Y8)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: using Planar Y8 as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
VO Config (2500x2000->2500x2000,flags=0,'MPlayer',0x20203859)
[swscaler @ 0x164a3c0]using unscaled gray -> yuv444p special converter
REQ: flags=0x437  req=0x0
VO: [gl2] 2500x2000 => 2500x2000 Planar 444P
VO: Description: X11 (OpenGL) - multiple textures version
VO: Author: Arpad Gereoffy & Sven Goethel
[gl2] OpenGL Driver Information:
	vendor: NVIDIA Corporation,
	renderer GeForce FX 5200/AGP/SSE2,
	version 2.1.2 NVIDIA 169.12
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] Creating 1x1 textures of size 4096x2048 ...
[gl2] antialiasing off
[gl2] bilinear linear
[gl2] Using image_bpp=8, image_bytes=1,
	gl_bitmap_format=GL_LUMINANCE, gl_bitmap_type=GL_UNSIGNED_BYTE,
	rgb_size=0 (0,0,0), a_sz=0,
	gl_internal_format=Unknown format!
[gl2] Resize: 1272x939
Selected video codec: [rawy800] vfm: raw (RAW Y8/Y800)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
*** [scale] Exporting mp_image_t, 2500x2000x8bpp YUV packed, 5000000 bytes
*** [vo] Allocating mp_image_t, 2504x2000x24bpp YUV planar, 15024000 bytes
Uninit video: raw
vo: uninit ...

Exiting... (Quit)

>> mplayer -quiet -demuxer rawvideo -rawvideo fps=10:w=2500:h=2000:y8
>> /dev/zero -vo x11
>
> Works as well, but eats all the CPU.

True :)

> What I will have to figure out is why on some computers the resulting video window fits onto the Desktop (which is some 1280x1024), so the video is scaled down, while on others the window is really 2500x2000 and can to be dragged around. This is independent of the video output (x11 or gl2). It's all Debian boxes running some gnome environment (though not exactly the same version of mplayer). In any case is more likely to be a WM or Desktop Env preference than mplayers deed, no?

The resolution of my desktop is 1280x1024 too. But from the output
above I see the following lines:

[gl] Resize: 1272x939

[gl2] Resize: 1272x939

so for some reason the video window is resized. I can confirm this
happens with x11 too. Does anyone know how to override this setting?


> Anyhow, one grep further it appears that the limitation here is not mplayer's, but the capabilities of the graphics card as exposed by X11's XV extension... (The "maximum XvImage size" given by xvinfo). So it's definitely not mplayer's limitation.

Oh, thanks for pointing that out.


Giorgio Vazzana


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux