Opened 7 years ago

Last modified 6 years ago

#8134 new bug

MediaPlayer use drawbitmap mode instead of overlay mode

Reported by: Giova84 Owned by: stippi
Priority: normal Milestone: R1
Component: Applications/MediaPlayer Version: R1/Development
Keywords: mediaplayer video overlay disabled drawbitmap slow video Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

As the title say, MediaPlayer doesn't use video overlay, so, in fullscreen mode the video track lose framerates, the video is not fluid, look very poor. MediaPlayer play video only in drawbitmap mode. No problem with VLC. VLC use video overlay, so i can play any movie in fullscreen mode and these are played very smoothly.

R1A3 and hrev43238

Change History (8)

comment:1 Changed 7 years ago by anevilyak

This doesn't seem to be universal, overlay is used over here for instance, AFAICT.

comment:2 Changed 7 years ago by axeld

MediaPlayer's overlay support is relatively poor, as it will just try the decoders preferred format. For ffmpeg, this generally seems to be RGB-32 which only few cards to support.

To get overlay working, MediaPlayer would need to ask the app_server for supported formats, and then try those. Or just try a few more anyway - the most common overlay format is YCbCr, so it should at least try that one.

comment:3 in reply to:  2 Changed 7 years ago by tangobravo

Replying to axeld:

MediaPlayer's overlay support is relatively poor, as it will just try the decoders preferred format. For ffmpeg, this generally seems to be RGB-32 which only few cards to support.

Most video codecs will encode in some YUV space by default, and use a lower resolution for the UV components than the Y. If our ffmpeg decoder is offering RGB-32 by default, that sounds like some mis-configuration (it's probably inserting a colour conversion filter automatically).

comment:4 Changed 7 years ago by ariza09

(Google Code-in)

Haiku revision: hrev42211 not a bug.When I open the video in fullscreen mode,Video is very smoothly. System: Haiku hrev1-alpha3 on VMware workstation 8 on windows 7 32 bit

comment:5 Changed 7 years ago by Giova84

Hi Ariza90,

I have two computers: on both computers Mediaplayer play videos in drawBitmap mode. On the first computer (Intel dualcore with a videocard Intel Extreme HDMI 512 Mb RAM) the videos are played smoothly in fullscreen mode, but on my older computer (pentium 4 singlecore with a Geforce 4 MX AGP 128 Mb card) the fullscreen mode looks very poor and in slow frames. VLC goes in ovlerlay mode, so in this way, on my older computer fullscreen mode is good.

Regards.

EDIT:

Ops, i am really sorry, Ariza09: I misspelled your name!

Excuse me!

Last edited 7 years ago by Giova84 (previous) (diff)

comment:6 Changed 7 years ago by Giova84

hrev44240: MediaPlayer is still using drawbitmap instead of overlay. VLC is still using overlay mode, instead. On older and slower computers this (only drawbitmap) make the video playing very poor.

Last edited 7 years ago by Giova84 (previous) (diff)

comment:7 Changed 7 years ago by diver

Version: R1/alpha3R1/Development

comment:8 Changed 6 years ago by Freeman

System: Haiku R1Alpha4.1 on Virtualbox v4.2.4r81684 Windows Ultimate x64. CPU: i5 3570k 3.4 ghz ( 1 Cpu allocated to Haiku) Ram: 4gb ddr3 (2gb allocated to Haiku) Video memory: 8mb allocated to Haiku . Acceleration not enabled in Virtualbox

Test video 720p 104.64mb ASF file was played smoothly in fullscreen. So like Giova84 says, it depends on the computer hardware.

Note: See TracTickets for help on using tickets.