maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   screen rotation : video mode playback bug (https://talk.maemo.org/showthread.php?t=26537)

lcuk 2009-01-30 22:25

screen rotation : video mode playback bug
 
hi,

I have noticed that when using the rotation patch (www.sse2.net/rotate - hello jott!) and having my screen tipped to the side on my diablo system there is a glitch when I update the screen using XV.

liqbase in normal orientation works nicely.
liqbase on its side will only work if I keep the XV mode <= 480*480 (and do extra tweaking, the released version does not rotate at all and crashes as described lower down).

http://liqbase.net/liqbase_rotate_480x480.jpg

If I choose a resolution greater than this the application will crash when it updates:

The program 'liqbase' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 39 error_code 2 request_code 136 minor_code 19)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)


At first I thought this might have been something specific within liqbase (which it is, but after tweaking the parameters passed found out that it worked if <480*480)
I then went about testing this situation with something easier for you guys to reproduce and confirm: mplayer

It doesn't crash when sending data to the screen but it reports errors in a similar manner and does not play the video correctly.

I have uploaded 3 example videos in different resolutions to test and confirm with (really stupid videos made for the resolution, not the contents)

http://liqbase.net/hello_480x480.avi
http://liqbase.net/hello_800x480.avi
http://liqbase.net/hello_480x800.avi

playing these with default mplayer and not specifying options on a normal screen displays and scales the movies correctly.

ie:

# mplayer hello_480x480.avi


however, when I rotate the screen I get a corrupted display and the video does not sit in the centre of the screen or scale correctly. This is a different bug to the initial one noticed because I believe the default mplayer renderer bypasses XV mode itself.


If I alter the mplayer parameters to force it into xv mode, again for a normal orientation the 2 videos which fit inside the screen work correctly (the other one doesnt because I have not specified scaling).

# mplayer -vo xv hello_480x480.avi


When I rotate however I get a green initialized screen displayed and repeated errors for every frame:

Ignoring Bad Value Error ??,?% 0 0 82%
Ignoring Bad Value Error ??,?% 0 0 82%
Ignoring Bad Value Error ??,?% 0 0 82%

---------------------------------------

In summary, there are a few issues I have unearthed in trying to get liqbase to operate in portrait mode.

My problem is that I do not know who to contact or how to find out which parts of the system need fixing.

I know there is an interplay between (liqbase/mplayer) and the xv extension and we both have problems eventually with the omapfb framebuffer driver, and that we both have no problems in normal orientation which does point to the xrandr rotation patch.
However I do not know enough about the way its coded to go jumping in with a detailed report which might not actually be directed at xrandr (ie, does xrandr just switch on already existing features?)

So, I am posting this here where relevant parties can come together and discuss as required and we can hopefully get movie playing (and liqbase) working in portrait mode.

qole 2009-01-31 01:38

Re: screen rotation : video mode playback bug
 
I did video tests too, back in November. Watch and laugh!

Problem video (240x400)
Expected output (manually rotated, 400x240)


Here's my post
on the subject, followed by Serge's response.

lcuk 2009-01-31 10:39

Re: screen rotation : video mode playback bug
 
yeah qole,
I have sent a mail to jott and obviously put together this outline, I didnt see yours come up in the subject matches thing else I wouldv added it there.
it would be good to fixup xv to work correctly, but being limited to what I can compile on device means I cannot easily follow it down the line to see where its going wrong.
I would like in the future to have compilation (including the ./configure stage) working on device :)

qole 2009-02-01 08:32

Re: screen rotation : video mode playback bug
 
So did you like my movie? His name is "Mook-Mook". The other one is "Mike-Mike".

lcuk 2009-02-01 11:00

Re: screen rotation : video mode playback bug
 
qole, your video was MUCH better than mine
it reminds me of Mr Flibble from red dwarf.

http://uk.youtube.com/watch?v=hKHLOo1WgDQ

I'm so pleased that show is coming back (at least for a special)

fanoush 2009-02-01 22:36

Re: screen rotation : video mode playback bug
 
I'm not sure but I think this is (at least partly) kernel issue. Dimensions of video planes are not handled correctly. They are cropped when rotating (to fit width of 480 in 90 degree mode) but never enlarged. This was done on purpose because initial patches had some issues with video plane when blindly setting 800x480/480x800 dimensions of main framebuffer to planes (because video plane was smaller). I'm not sure this is still the case so maybe the code can be put back? Or maybe not. Or maybe this is something completely different :-)

EDIT: See the original post back then and history around it
http://www.internettablettalk.com/fo...704#post155704


All times are GMT. The time now is 19:33.

vBulletin® Version 3.8.8