
On 29/02/12 22:25, Russell Coker wrote:
I want to play videos in the center of my screen. I don't want to run them full-screen because for some videos that takes too much CPU time and gets video and audio out of sync and for some other videos the resolution isn't high enough (anything scaled up by more than a factor of 2 looks bad).
Seriously? Hardware acceleration for rescaling of video (ie. upsampling so you can display it full-screen) has been supported in X and mplayer for a very, very long time. I also note that even a low-spec, first-gen core 2 duo from 2006 can play back 1920x1080 h264 video (just); so can the slowest Celeron (E1200) from that era. I know because my last media PC had one. So.. it might be worth looking into your X and mplayer configuration, as with some tweaking you should be able to get full-screen working. As for the upsampling looking bad for extremely low resolution videos..there are some filters you can enable that will sharpen/deblock/denoise the video. Those might come in handy for you.
There are mplayer options for putting the window at a specific position, this would be fine if I had many videos with the same resolution. But I want to play arbitrary resolution videos in the center of the screen.
Any ideas on how to do this?
-- .signature