Re: [maemo-developers] gtk, gstreamer movie window = problem
Hi! I tried to solve this problem but still the same happens. I'm running program from xterm so I think I don't need osso_initialize(), and on console I don't get any error messages. This is code I'm using (I'm out of ideas what can be wrong): //main gui function gui(){ HildonProgram *app; /* Create the hildon application and setup the title */ app = HILDON_PROGRAM (hildon_program_get_instance ()); g_set_application_name (Menu Example App); /* Create HildonAppView and set it to HildonApp */ appview = HILDON_WINDOW (hildon_window_new ()); hildon_program_add_window (app, appview); /* Create menu for view */ create_menu (appview); ///box1 = gtk_hbox_new (FALSE, 0); ///box2 = gtk_vbox_new (homogeneous, spacing); ///label = gtk_label_new (Volume:); ///gtk_misc_set_alignment (GTK_MISC (label), 0, 0); ///gtk_box_pack_start (GTK_BOX (box2), label, FALSE, FALSE, 0); ///gtk_widget_show (label); ///adj1 = gtk_adjustment_new (1.0, 0.0, 4.0, 0.1, 1.0, 1.0); ///g_signal_connect (G_OBJECT (adj1), value_changed,G_CALLBACK (cb_digits_scale), NULL); ///scale = gtk_vscrollbar_new (GTK_ADJUSTMENT (adj1)); ///gtk_box_pack_start (GTK_BOX (box2), scale, TRUE, TRUE, 0); ///gtk_box_pack_start (GTK_BOX (box1), box2, expand, fill, padding); content = gtk_event_box_new (); gtk_container_add (GTK_CONTAINER (appview), content); GstBus *bus; bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); gst_bus_set_sync_handler (bus, (GstBusSyncHandler) create_window, NULL); gst_object_unref (bus); g_signal_connect (content, expose-event, G_CALLBACK (cb_expose), videosink); //gtk_box_pack_start (GTK_BOX (box1), content, TRUE, TRUE, padding); ///gtk_container_add (GTK_CONTAINER (appview), box1); ///gtk_widget_show (box1); gtk_widget_show_all (appview); g_signal_connect(G_OBJECT(appview), delete_event, G_CALLBACK(item_close_cb), NULL); } //callback functins static GstBusSyncReply create_window (GstBus * bus, GstMessage * message, GstPipeline * pipeline) { XGCValues values; if (GST_MESSAGE_TYPE (message) != GST_MESSAGE_ELEMENT) return GST_BUS_PASS; if (!gst_structure_has_name (message-structure, prepare-xwindow-id)) return GST_BUS_PASS; // ignore anything but 'prepare-xwindow-id' element messages content = gtk_event_box_new (); gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (GST_MESSAGE_SRC (message)), content-window); return GST_BUS_DROP; } cb_expose (GtkWidget * w, GdkEventExpose * ev, GstElement * e) { if (GST_IS_X_OVERLAY (e) !GTK_WIDGET_NO_WINDOW (w) GTK_WIDGET_REALIZED (w)) { gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (e), GDK_WINDOW_XWINDOW (w-window)); } } As described in http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstxoverlay.html#desc you need to set it in a message handler in order to set it at the right time. This sounds indeed like the element creates the window itself instead of using the one you want. -- Kalle Vahlman, [EMAIL PROTECTED] Powered by http://movial.fi Interesting stuff at http://syslog.movial.fi -- Regards, -= Bartosz Put =- ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] gtk, gstreamer movie window = problem
Hi! In my gstreamer movie player I have connected gstreamer movie window with gtk menu (gstreamer window is inside gtk app window) using this code: static void cb_expose (GtkWidget * w, GdkEventExpose * ev, GstElement * e) { if (GST_IS_X_OVERLAY (e) !GTK_WIDGET_NO_WINDOW (w) GTK_WIDGET_REALIZED (w)) { gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (e), GDK_WINDOW_XWINDOW (w-window)); } } (...) g_signal_connect (content, expose-event, G_CALLBACK (cb_expose),videosink ); Everything is ok when I start app (movie window is in right place in app window) but when I click on some item on maemo system menu (right top border of the screen ) eg. volume control and I click back on my app, window with my gtk elements disappears (probably is killed) and gstreamer movie window is the only window left from my app (it looks like when you start raw pipeline with some movie, without any additional gtk elements). Do you have any ideas??? Please help me. Bart ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] custom gstreamer plugins
No, because there is no gst-registry, it seems that in gstreamer-0.10 they have removed gst-registry , instead gst-launch builds registry.arm.xml file in user's home directory. Any other ideas?? On 7/28/06, raoul [EMAIL PROTECTED] wrote: Have you tried a gst-register ? Le Jeudi 27 Juillet 2006 17:05, cmonst a écrit: Hi! I compiled some additional gstreamer plugins with armel terget and tried to install on maemo 2.0 (nokia 770) by copying it to /usr/lib/gstreamer-0.10 directory, but gst-inspect doesn't see these plugins. Does anyone have any suggestions? How can I make these plugins visible I tried ldconfig, but without any results. -- Raoul Hecky ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers -- -= Bartosz Put =- ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] custom gstreamer plugins
: MultiFd sink tcp: tcpserversrc: TCP Server source tcp: tcpserversink: TCP Server sink tcp: tcpclientsrc: TCP Client source tcp: tcpclientsink: TCP Client sink rtp: rtpspeexdepay: RTP packet parser rtp: rtpspeexpay: RTP packet parser rtp: rtpmp4vdepay: RTP packet parser rtp: rtpmp4vpay: RTP packet parser rtp: asteriskh263: RTP packet parser rtp: rtpilbcdepay: RTP iLBC packet depayloader rtp: rtpilbcpay: RTP Payloader for iLBC Audio rtp: rtph263pay: RTP packet parser rtp: rtph263pdepay: RTP packet parser rtp: rtph263ppay: RTP packet parser rtp: rtpmpapay: RTP packet parser rtp: rtpmpadepay: RTP packet parser rtp: rtppcmapay: RTP packet parser rtp: rtppcmupay: RTP packet parser rtp: rtppcmudepay: RTP packet parser rtp: rtppcmadepay: RTP packet parser rtp: rtpamrpay: RTP packet parser rtp: rtpamrdepay: RTP packet parser rtp: rtpgsmpay: RTP GSM Audio Payloader rtp: rtpgsmdepay: RTP packet parser rtp: rtpdepay: RTP Payloader subparse: ssaparse: SSA Subtitle Parser subparse: subparse: Subtitle parsers subparse: subparse_typefind: srt, sub, mpsub, mdvd dspmp3: dspmp3sink: DSP MP3 Sink playbin: playbin: Player Bin staticelements: bin: Generic bin staticelements: pipeline: Pipeline object Total plugins: 25 Total features: 146 There should be plugins like ximagesink and mpeg2dec, this is content of gstreamer plugin directory: Nokia770-23:~# ls /usr/lib/gstreamer-0.10/ libgstadder.so libgstdspamrsink.so.0.0.0 libgstdspmpeg4.so.0.0.0 libgstsubparse.so libgstaudioconvert.so libgstdspfb.so libgstdsppcm.so libgsttcp.so libgstaudiorate.so libgstdspfb.so.0 libgstdsppcm.so.0 libgsttypefindfunctions.so libgstaudiotestsrc.so libgstdspfb.so.0.0.0 libgstdsppcm.so.0.0.0 libgstudp.so libgstavi.solibgstdspilbc.so libgstffmpegcolorspace.so libgstvolume.so libgstcoreelements.so libgstdspilbc.so.0 libgstgnomevfs.so libgstwavparse.so libgstdecodebin.so libgstdspilbc.so.0.0.0 libgstmpeg2dec.la libgstximagesink.a libgstdspaacsink.so libgstdspmp3sink.so libgstmpeg2dec.so libgstximagesink.la libgstdspaacsink.so.0 libgstdspmp3sink.so.0 libgstmpegstream.la libgstximagesink.so libgstdspaacsink.so.0.0.0 libgstdspmp3sink.so.0.0.0 libgstmpegstream.so libgstdspamrsink.so libgstdspmpeg4.so libgstplaybin.so libgstdspamrsink.so.0 libgstdspmpeg4.so.0 libgstrtp.so I still dont'd have clue what is wrong... On 7/28/06, Christian Fredrik Kalager Schaller [EMAIL PROTECTED] wrote: gst-register is gone from 0.10. Now GStreamer automatically rebuilds its registry if there is any changes to the directories watched. My guess is that the problem here is one failing to load the plugins due to lack of linking symbols or some such. Running 'GST_DEBUG=*:3 gst-inspect' on the device and probably outputting the text into a file should tell you why it fails to load the plugin. Christian On Fri, 2006-07-28 at 00:49 +0200, raoul wrote: Have you tried a gst-register ? Le Jeudi 27 Juillet 2006 17:05, cmonst a écrit : Hi! I compiled some additional gstreamer plugins with armel terget and tried to install on maemo 2.0 (nokia 770) by copying it to /usr/lib/gstreamer-0.10 directory, but gst-inspect doesn't see these plugins. Does anyone have any suggestions? How can I make these plugins visible I tried ldconfig, but without any results. -- Christian Fredrik Kalager Schaller Business Development Manager Fluendo S.A. Mobile Phone: +34 666927819 Office Phone: +34 933175153 Fax : +34 934127034 ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers -- -= Bartosz Put =- ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] custom gstreamer plugins
Hi! I compiled some additional gstreamer plugins with armel terget and tried to install on maemo 2.0 (nokia 770) by copying it to /usr/lib/gstreamer-0.10 directory, but gst-inspect doesn't see these plugins. Does anyone have any suggestions? How can I make these plugins visible I tried ldconfig, but without any results. -- -= Bartosz Put =- ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] Re: custom gstreamer plugins
By additional plugins I mean some of bad and ugly plugins from gstreamer.org On 7/27/06, cmonst [EMAIL PROTECTED] wrote: Hi! I compiled some additional gstreamer plugins with armel terget and tried to install on maemo 2.0 (nokia 770) by copying it to /usr/lib/gstreamer-0.10 directory, but gst-inspect doesn't see these plugins. Does anyone have any suggestions? How can I make these plugins visible I tried ldconfig, but without any results. -- -= Bartosz Put =- -- -= Bartosz Put =- ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] dspmpeg4sink
Hi! Does anyone get dspmpeg4sink gstreamer plugin working with video on new maemo release? -- Bart ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] gstreamer 0.10
Hi! I would like to know if I install gstreamer 0.10 (from gstreamer.org) on Nokia 770 will dsp sink plugins work with this gstreamer version? (ie. plugins from 0.8 gstreamer, because I think that there is no dsp sinks in official gstreamer release). Are anywhere avilable packages or sources of gstreamer 0.10 with dsp support for 770??? This issue is very important for me. Bart ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers