[MPlayer-users] Scaling MPlayer Window in Slave Mode
Kevan Hashemi
hashemi at opensourceinstruments.com
Wed Jun 5 20:37:32 EEST 2019
Greetings,
I'm running MPlayer in slave mode, loading videos into it one after another. Sometimes, the videos are 820x616. Sometimes they are 410x308. I don't want the window to change size when going from one video to the next, so I would like to scale the smaller videos by a factor of 2.0.
It looks like the change_rectangle command is the one to use. But I get no response to any of these slave mode commands.
change_rectangle 0 820
change_rectangle 0 100
change_rectangle 2 100
But I do get responses to these commands:
get_property width
get_property height
pause
stop
loadfile infile.mp4
I have the same problem on Windows, Linux, and MacOS, but here is my MacOS installation of MPlayer:
MPlayer 1.3.0-4.2.1 (C) 2000-2016 MPlayer Team
CPU vendor name: GenuineIntel max cpuid level: 22
CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz (Family: 6, Model: 142, Stepping: 9)
extended cpuid-level: 8
extended cache-info: 16801856
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 CMOV
get_path('codecs.conf') -> '/Users/kevan/.mplayer/codecs.conf'
Reading optional codecs config file /Users/kevan/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /usr/local/Cellar/mplayer/1.3.0_1/etc/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/Users/kevan/.mplayer/fonts'
Usage: mplayer [options] [url|path/]filename
What am I missing here?
Best, Kevan
--
Kevan Hashemi, President
Open Source Instruments Inc.
www.opensourceinstruments.com
More information about the MPlayer-users
mailing list