Accepted Answer0Pratik, If i understand, you don\\\'t want to display your decoded video on the windows created by omapDmaifbsink or xvimagesink but in your own windows ? If not : Sry but i\\\'m not an english expert, so please other word to explain. If it\\\'s that you want to do : - How do you create your gui video windows ? SDL ? - I suggest you to look on th source code of each pluggin (they may be quite similar) and find how/when they create the windows etc... To point a direction, start with omapDMaifbsink, which may include /ti/sdo/dmai/display.c, fb-dev.c etc... I will be interesting to make something like this at home on my igepv2board, to have a real player. If someone has already do that ? Did you already test your gui with a file encoded with h264enc (from ti) ?
Accepted Answer0Dear Mika, We are building a GUI application in python, we are using pygtk and pygst bindings. the application works well with ximagesink (previously because of problems I faced in compilation of igep-gst-dsp and kernel 2.6.37 I used ximagesink, horrible CPU consumption :o ) now I have omapdmaifbsink, I replaced ximagesink with omapdmaifbsink. (lot of CPU usage dropped!) but that is opening in new window. I will follow your suggestions.
Did you already test your gui with a file encoded with h264enc (from ti) ?Yes its working fine. only this problem and that resize problem, I am using 4.3 display, if resize works properly I can display preview on 4.3 lcd (its working with ximagesink :) ) If these things go well soon, I will try SGX acceleration for X11, some folks have implemented that.
I will be interesting to make something like this at home on my igepv2board, to have a real player.I would like to contribute, we can have discussion on that. ;) Thank you very much for your help.
Accepted Answer0Hello Pratikshide, if the arbitrary scaling of the video output not matter, you could try tho shift the omapfb to the desired position. Take a look on the variables in /sys/devices/platform/omapdss/manager0/ and /sys/devices/platform/omapdss/overlay1 If your application i.e. display a black rectangle on position X,Y with dimension W,H set • /sys/devices/platform/omapdss/manager0/trans_key_enabled to 1 (for gui) • /sys/devices/platform/omapdss/overlay1/output_size to W,H • /sys/devices/platform/omapdss/overlay1/position to X,Y Scaling did not work in all cases in my tests, but this should allow you to use omapdmaifbsink in a X application. Regards, Olaf