OS/2, eCS & ArcaOS - Technical > Applications

mplayer - how to position the playback window?

(1/2) > >>

Dariusz Piatkowski:
I admit that I've been living a spoiled life for a while now having deployed my dual-screen setup...love it, heck now I wish I could only add the 3rd LCD.

In the meantime, I have certain applications that always need re-sizing (because they insist on treating the whole 3840x1200 screen as a single physical screen and are coded to use proportional sizing - just my guess), or applications that flat-out do not handle the dual screen all that well.

Case in point, mplayer. Here are the contents of my configuration file:


--- Code: ---# Write your default config options here!
# VIDEO
vo=kva:snap
#geometry=25%:25%
geometry=5%:5%
#aspect=16:9
double=yes # double buffering(recommended for subtitles)
autoq=100 # AUTO control the video quality
#vf=pp=de,hqdn3d # additional post-processing options
#vf=pp # additional post-processing options
#framedrop="1" # For slow machines
#hardframedrop="0" # Make sure hard frame drop is off but can turn on easily now

# AUDIO
ao=kai:dart
#ao=kai:uniaud
#srate=48000
softvol-max=300

#font=g:\psfonts\verdana.ttf
#subfont=g:\psfonts\verdana.ttf

codecpath=g:\apps\multimedia\mplayer\codecs

# OTHER CONTROLS
msglevel:all=5 # set the DEBUG level (5 = DEFAULT)
cache=8192 # set the TOTAL cache size
cache-min=25 # fill xx% of TOTAL cache before playback start
autosync=30 # sync up video/audio by adjusting the algorithm
#mc=1.0 # up to how many seconds/frame to adjust
priority=high # set the priority of mplayer (idle,belownormal,normal,abovenormal,high,realtime)

# Video Overlay Options and VIO Message Window Options
#really-quiet=yes # limit what the VIO window shows
#fixed-vo=yes # keep display output window open between different feeds
colorkey=0x000001 # change the background to off-black, instead of bright green

# Setting for Browser User Agent response
user-agent=NSPlayer/4.1.0.3856

--- End code ---

I am running in SNAP video mode and if you notice I have 'geometry=5%:5%' in place, which in theory should position that playback window in a certain spot on the screen.

This does not work.

The window always shows in the center of my dual-head display, which might be OK if it wasn't for the fact that the the 2nd screen is all BLACK, meaning, only half the video shows and that is only the video on head=1 of the dual-head setup.

And while that may be a SNAP only video mode problem (DIVE, VMAN both work) I need to be able to run in SNAP mode as opposed to the others. Either way, the playback screen positioning problem persists even with DIVE or VMAN.

So I'm curious, has anyone used the '-geometry' option successfully? Based on what on-line mplayer references state it may very well be that SNAP (or any other OS/2 video modes) do not support that option at all.

Pete:
HI Dariusz

Only running the 1 screen so I have never seen this problem and if the geometry option does not resolve it can only suggest you contact mplayer support/community forum, explain the problem and see how they resolve it on *nix systems.

I do have a question that may have some bearing on the problem: What happens if you use smplayer? - the mplayer frontend. Can you position that to your liking?


Regards

Pete

Dave Yeo:
KOMH would be the one to contact as he is the maintainer of the OS/2 port and did the video support.
*nix systems would use different video subsystem, X11 or such

Dariusz Piatkowski:
Hi Pete,


--- Quote from: Pete on January 31, 2021, 08:54:28 pm ---I do have a question that may have some bearing on the problem: What happens if you use smplayer? - the mplayer frontend. Can you position that to your liking?...
--- End quote ---

Yeah, both smplayer and vlc work fine...but I have found the simple CLI-like approach to mplayer and ease of it's configuraiton so much quicker...basically double click and video is up and running. I use that approach for everything but the longer stuff.

Dariusz Piatkowski:
Hi Dave,


--- Quote from: Dave Yeo on January 31, 2021, 09:53:53 pm ---KOMH would be the one to contact as he is the maintainer of the OS/2 port and did the video support.
*nix systems would use different video subsystem, X11 or such

--- End quote ---

Yeah, I think you're right. He's been super quick to respond to a couple of VLC inquiries I had in the past, so I'll contact him regarding this one as well.

I suspect as you and Pete pointed out, the '-geometery' may be supported with specific video configurations only. I couldn't quite get that answer out of the published docs, which typically are very *nix centric.

Navigation

[0] Message Index

[#] Next page

Go to full version