From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: GStreamer xwidget Date: Mon, 29 Nov 2021 11:12:50 +0800 Message-ID: <87ee6z64el.fsf@yahoo.com> References: <87ee7cq2mu.fsf.ref@yahoo.com> <87ee7cq2mu.fsf@yahoo.com> <87zgpzp80c.fsf@yahoo.com> <87czmvtf68.fsf@gnus.org> <87czmunkmo.fsf@yahoo.com> <8735noajkl.fsf@yahoo.com> <87sfvn5p0j.fsf@yahoo.com> <87v90i4cmc.fsf@yahoo.com> <87pmqozm99.fsf@yahoo.com> <87ee72cix7.fsf@yahoo.com> <87a6ho99gy.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19619"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: larsi@gnus.org, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 29 05:07:32 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mrXwx-0004tj-5L for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Nov 2021 05:07:31 +0100 Original-Received: from localhost ([::1]:50064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrXww-0003r0-5N for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Nov 2021 23:07:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrX6H-0003FD-05 for emacs-devel@gnu.org; Sun, 28 Nov 2021 22:13:05 -0500 Original-Received: from sonic315-22.consmr.mail.ne1.yahoo.com ([66.163.190.148]:46577) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrX6E-0001Sd-Ta for emacs-devel@gnu.org; Sun, 28 Nov 2021 22:13:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638155580; bh=6h0WwQO0O3SlO9xV2k0bfsYE7mNYAxLi+bIRirFJOWk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=C/2rKoPEUNIfbnSEWepGnzPJQ9HT4ClL0CUbYl9RENv/WfHaz75PG4r+ETJ3zLbgoMnfBzuc40AvNwuJBpUrQofKPOixZ8Urxp/UwZvBE35iH+rDQHgK3vlW3NF4nr7UKT4pLIvNNQR9pCvcDHgcxAndaWRmpZJ86YNEqwCSHtXj6aPg9eK/ghOPNuMVOqAWZPPKK82tyPFT5FEcCgqmZdUfXPznszUJFHjrzbef8c8SQ8wWDIToJQzkebC/xLgqaMf5X7CBTm0KeclDNB9AeUEVHSejnlDX0g/MS3VBocOH0UsUAu1skBdu/IyldBO1VY8XEeJnbJNfHBNat/gpKA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638155580; bh=GD4CkH6MldDIb9mFfppcvTcyE13LDx3zqHCsEwf7Gtq=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=RkU0l/JwAl8DGUCXBJNeswkAJDsyQA5c4tapjvjp5GLA4NlZXBEOz4dCcx8Z3bcODiuSo1L4jUySjZliPbFaYNYAmvn6eXf7rP8yx2Qf/Qpy0SUHWg0NSJYaaGfq+Kdgv0LEczEqeBC9SijKbJET+Atu9TUy2labYQCmh4cZnm6bwDro/HNU6gvHsRurpiisDqRWvzInwqQxw7J/Rt6JhL9kpn6LRZtGDCuy4dntI/fkfQzq8o6IDueJcacwiu7cjeUqXf7g6sBX09BJfX98UoIuiZRF00nPxcry63iU/RCEj5TXkU+V1UMls/zoO1scfK7MEp9ZajngGr9SXQIxBg== X-YMail-OSG: DkVkxLAVM1myZe01BHDLnhkPi6EoGnnGZOdgdJqcB78nnx.oI84KY0HQKbZT2lz T7iiqsyqv6Lh.vixdq58O3oRcg2VqYGX_t3GIEESGGQsHuflDwfNsNJIlO2e0mW1j0hnmJV6_Dwo tY0DzriVtDmqV6Uo6NUDWDDHbckYoBzloZlgfkFBzaNyFNj3Uu6FiweF1CxKjKtDRrBrtz8zdias u4LB6AXKaJtGs3PJDmgyH2cGXUt32zzHTsbtOezv3BUxLFM9ggjUa5DpZCg8uOMikvF6065fLWKb W5YF2f0_0046TQISO2dB18PjbOWwhiVFNlOa1Ug2MEmCQ.VN2GFrmehgRFUYbI_9b_5XX4g.QEKN ELBlPMRmPzYrhSsNcCct57fAky8EejQb1u5ad35CIVQUa9Wep38vyHh9G0ZHZ__PDfDuEcODYU5H NmYp2ou91TT8FRp.71Ls8iFalBQk7VuYTmosDZaxc9gI0czqQ7zZYsLizBdc43hX5sr_UsBRbNua N1gcmpYmhZGbIlpuR4Kxp_lF30SZZh7whEo6d0BuibKfKmEoswHfWDjvczwLsF5kbC.1Xh4wMwU_ f.1l5TF0lPvAS1vIFiAT4lgY1AekKmwnODhSSCIPImQtOPmnuvPi7ITJYBMCVR9ate7JYTA3WDlq EkDGVP6DK8_64ctx0ti3Gwwyfc4V6unf_5MAVfOy4dUea7xlCH0.DrjFE.KgK2yxkt7_a0TyhSek rNt.yse9O.QKqr25Us1ps7O.aUOtfkvdJeoKDWIqGbT4Z_K5rKQ2rCeLKJQBFujb5RnWdS.8VDXt uU36uVPittqJTHjx2fzRibgnW7DaH6MZ7Fyp0.Kz0v X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Mon, 29 Nov 2021 03:13:00 +0000 Original-Received: by kubenode512.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 6f3faa749bbbf344770904f53832b1f6; Mon, 29 Nov 2021 03:12:56 +0000 (UTC) In-Reply-To: (Richard Stallman's message of "Sun, 28 Nov 2021 22:01:18 -0500") X-Mailer: WebService/1.1.19306 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.148; envelope-from=luangruo@yahoo.com; helo=sonic315-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280452 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > + return (gst_registry_find_feature (registry, "xvimagesink", > > + GST_TYPE_ELEMENT_FACTORY) > > + && gst_registry_find_feature (registry, "queue", > > + GST_TYPE_ELEMENT_FACTORY) > > + && gst_registry_find_feature (registry, "videotestsrc", > > + GST_TYPE_ELEMENT_FACTORY) > > + && gst_registry_find_feature (registry, "fakesink", > > + GST_TYPE_ELEMENT_FACTORY) > > + && gst_registry_find_feature (registry, "tee", > > + GST_TYPE_ELEMENT_FACTORY)); > > This takes me one step forward. But you haven't explained what > this code does, and I can't recognize the meaning of anything. > What does gst_type_element_factory do? It looks up something > in a registry, right? What does a registry mean? Essentially, it searches for a plugin (an element factory) by a name in the plugin registry, which is the data structure that tells GStreamer how to look for plugins. > What is the meaning of the "xvimagesink" feature? > What is the meaning of the "queue" feature? See below. > And so on? > > Can you tell me an example that explains what this is doing and why? > Are you saying that "xvimagesink", "queue", "videotestsrc", "fakesink" > and "tee" are the names of plug-ins? > > If so, can you describe what each one does? videotestsrc provides a test pattern. xvimagesink displays the media to an X window (solely an implementation detail, the window created is internal to Emacs), fakesink is a plugin used to keep the data flow up even if no Emacs window is currently displaying the xwidget, "tee" allows a single video stream to display in multiple windows, and "queue" provides an in-memory buffer that works in cooperation with a tee to allow that kind of display. > For instance, if the user specifies the URL of an mp4 file, which > of those plug-ins will Emacs tell GStreamer to load? That feature is not implemented yet, and it will probably not be, as the H.265 decoder is either ugly or bad (precisely which I don't remember). > Are you saying that those five plug-ins are the only five plug-ins > that Emacs will ever tell GStreamer to load? Yes, in the future I will add other free plugins once I implement the feature that allows it to load common free formats. Thanks.