Opened 17 years ago

Last modified 13 years ago

#778 new defect

resize automatically if video exceeds maximum overlay size

Reported by: compn Owned by: reimar
Priority: normal Component: core
Version: HEAD Severity: normal
Keywords: Cc: stranche@…, bugzilla.mplayerhq.hu@…, luis6674@…, gilesbathgate@…
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

how about an option to automatically scale if video is greater than maximum
overlay?

similar to -lavdopts lowres=1,1024 ...

[xv] Source image dimensions are too high: 1280x720 (maximum is 1024x1088)

Change History (6)

comment:1 by luis6674@…, 17 years ago

Cc: luis6674@… added

comment:2 by gilesbathgate@…, 17 years ago

This would solve my problem I have when using directx. When I try to view a video of 950x540 I get the error message: <vo_directx><FATAL ERROR>can't use overlay mode: please use -vo directx:noaccel

After supplying -v an error code is also spit out which I have googled and found to be DDERR_TOOBIGSIZE "Size requested by DirectDraw is too large, but the individual height and width are OK."

(it might be handy to include something like the following code in the dx driver to give a better clue as to the problem http://www.koders.com/cpp/fidEA98EA108909A12B31CB54222EBDDEF48D3532C3.aspx)

I can work around the problem by supplying -vf scale=700

Using this option is obviously faster for me than using -vo directx:noaccel

I would welcome code to automatically detect the direct draw overlay size and scale the video as needed.

comment:3 by gilesbathgate@…, 17 years ago

I have opened this as a new bug# 911

comment:4 by compn, 13 years ago

Cc: gilesbathgate@… added

comment:5 by compn, 13 years ago

Cc: stranche@… added

comment:6 by compn, 13 years ago

Cc: bugzilla.mplayerhq.hu@… added
Note: See TracTickets for help on using tickets.