logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

omapdmaifbsink and Xwindow

posted in Uncategorized
Wednesday, February 01 2012, 01:41 PM
0
Hi, I have a problem regarding X and omapdmaifbsink. I have to video in window in my gui application, but whenever I use omapdmaifbsink it opens in new window, which looks odd. If I use ximagesink it loads video in same window, Anybody came across this behavior? In the end I get following error: [code]Error: Resource not found. omapfb.c(225): gst_omapfbsink_handle_xevents (): /GstPipeline:mypipeline/GstOmapFbSink:omapfbsink2[/code] Any suggestions?
Responses (4)
  • Accepted Answer

    Friday, February 03 2012, 04:16 PM - #permalink
    0
    Pratik, 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) ?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 03 2012, 04:32 PM - #permalink
    0
    Dear 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.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, February 06 2012, 08:39 AM - #permalink
    0
    I read the omapfb.c and found that
    X code largely copied from ximagesink by Julien Moutte and * vo_omapfb.c by Gregoire Gentil.
    But I could understand what to alter to get work for my issue. Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 02 2012, 01:15 PM - #permalink
    0
    Hello 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
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat