Opened 12 years ago

Last modified 8 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: Analyzed by developer:

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 Changed 12 years ago by luis6674@…

  • Cc luis6674@… added

comment:2 Changed 12 years ago by gilesbathgate@…

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 Changed 12 years ago by gilesbathgate@…

I have opened this as a new bug# 911

comment:4 Changed 8 years ago by compn

  • Cc gilesbathgate@… added

comment:5 Changed 8 years ago by compn

  • Cc stranche@… added

comment:6 Changed 8 years ago by compn

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