[gst-devel] about memory management

kedahanzi kedahanzi at 163.com
Tue Aug 10 09:47:46 CEST 2010


hello all,
i want to add a source plugin into gstreamer, but my device's memory management 
is different from general memory management(malloc/from), how can i do it?

much thanks


2010-08-10 



kedahanzi 



发件人: gstreamer-devel-request 
发送时间: 2010-08-10  15:27:29 
收件人: gstreamer-devel 
抄送: 
主题: gstreamer-devel Digest, Vol 51, Issue 16 
 
Send gstreamer-devel mailing list submissions to
gstreamer-devel at lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
or, via email, send a message with subject or body 'help' to
gstreamer-devel-request at lists.sourceforge.net
You can reach the person managing the list at
gstreamer-devel-owner at lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of gstreamer-devel digest..."
Today's Topics:
   1. Re: How to make GNonLin not to decode videoclip? (wl2776)
   2. Re: Question about caps, displayed in .dot files (Stefan Kost)
   3. Re: Why does my pipeline block on preroll? (Stefan Kost)
   4. Re: Is it possible to change the debug categories during
      runtime? (Stefan Kost)
   5. Re: Why does my pipeline block on preroll? (wl2776)
   6. Small question regarding giosrc (Tiago Katcipis)
   7. spectrum element and seeking (maxi)
   8. Re: How to make GNonLin not to decode videoclip? (Sandeep Prakash)
----------------------------------------------------------------------
Message: 1
Date: Mon, 9 Aug 2010 07:08:13 -0700 (PDT)
From: wl2776 <wl2776 at gmail.com>
Subject: Re: [gst-devel] How to make GNonLin not to decode videoclip?
To: gstreamer-devel at lists.sourceforge.net
Message-ID: <1281362893299-2318537.post at n4.nabble.com>
Content-Type: text/plain; charset=us-ascii
Edward Hervey wrote:
> 
>   Set the caps property of the gnlfilesource to the format you want
> (ex : video/mpeg,mpegversion=2 for mpeg2 video)
> 
After looking at the gnonlin sources, I have an impression, that this will
not work any way.
Because gnlurisource and gnlfilesource use uridecodebin, and there is no
code in the whole gnonlin, setting caps on that bin.
Will be happy if I am wrong.
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-make-GNonLin-not-to-decode-videoclip-tp2316321p2318537.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
------------------------------
Message: 2
Date: Mon, 09 Aug 2010 18:05:59 +0300
From: Stefan Kost <ensonic at hora-obscura.de>
Subject: Re: [gst-devel] Question about caps, displayed in .dot files
To: Discussion of the development of GStreamer
<gstreamer-devel at lists.sourceforge.net>
Message-ID: <4C601957.80301 at hora-obscura.de>
Content-Type: text/plain; charset=ISO-8859-1
On 22.07.2010 12:12, wl2776 wrote:
> While using GST_DEBUG_BIN_TO_DOT_FILE macro I am getting different pictures. 
> Sometimes links between elements have two caps definitions, and sometimes -
> only one.
>
> For example, when I build a pipeline using gst-launch, typefind and
> mpegpsdemux have a link with two labels: 
> video/mpeg 
>   mpegversion: {1, 2} 
>   systemstream: true
> video/x-cdxa
>
> at the typefind.source 
> and 
> ANY 
> at mpegpsdemux.sink
>
> However, when I use playbin2, this link has only one label:
> video/mpeg 
>   mpegversion: {1, 2} 
>   systemstream: true
>
>
> Do two caps labels mean that the linked elements are not fully negotiated
> yet?
>
>   
yes.
Stefan
------------------------------
Message: 3
Date: Mon, 09 Aug 2010 18:04:10 +0300
From: Stefan Kost <ensonic at hora-obscura.de>
Subject: Re: [gst-devel] Why does my pipeline block on preroll?
To: gstreamer-devel at lists.sourceforge.net
Message-ID: <4C6018EA.5030708 at hora-obscura.de>
Content-Type: text/plain; charset=ISO-8859-1
On 21.07.2010 18:46, wl2776 wrote:
> I have the pipeline:
>
> filesrc ! typefind ! mpegpsdemux name=demux multiqueue
> max-size-bytes=2097152 name=mq demux.audio_c0 ! mq.sink0 mq.src0 ! mp3parse
> ! flump3dec ! input-selector ! tee ! audioconvert ! audioresample !
> pulsesink  demux.video_e0 ! mq.sink1 mq.src1 ! mpegvideoparse ! mpeg2dec !
> input-selector ! queue max-size-buffers=3 max-size-bytes=0 max-size-time=0 !
> ffmpegcolorspace ! videoscale ! xvimagesink
>   
Try to reduce the pipeline one by one. E.g. remove input-selector, or
remove the "queue max-size-buffers=3 max-size-bytes=0 max-size-time=0".
Try a value >3 here.
Stefan
>
> Here is the dot file: 
> http://gstreamer-devel.966125.n4.nabble.com/file/n2297314/player.dot
> player.dot  (30kb), and produced PNG: 
> http://gstreamer-devel.966125.n4.nabble.com/file/n2297314/player.png
> player.png  (850kb)
>
> Looks like there is no negotiation between multiqueue and mpegvideoparse.
> Why an it be?
>
> I tried using seek example with this pipeline
> ($GST_PLUGINS_BASE/test/examples/seek/seek.c)
> It begins playing only after seek command.
>   
------------------------------
Message: 4
Date: Mon, 09 Aug 2010 18:46:26 +0300
From: Stefan Kost <ensonic at hora-obscura.de>
Subject: Re: [gst-devel] Is it possible to change the debug categories
during runtime?
To: Discussion of the development of GStreamer
<gstreamer-devel at lists.sourceforge.net>
Message-ID: <4C6022D2.8080302 at hora-obscura.de>
Content-Type: text/plain; charset=ISO-8859-1
On 28.07.2010 12:18, wl2776 wrote:
> For example, to start an application with 
>   --gst-debug=my_app:5,playbin2:3 
> and add/remove mpegvideoparse:5 to/from that list during program execution?
>   
If you want to do this because of a too bit log file, I'd rather
recommend gst-debug-viewer
(http://cgit.freedesktop.org/~cymacs/gst-debug-viewer/).
Otherwise use gst_debug_category_set_threshold().
Stefan
------------------------------
Message: 5
Date: Mon, 9 Aug 2010 09:01:17 -0700 (PDT)
From: wl2776 <wl2776 at gmail.com>
Subject: Re: [gst-devel] Why does my pipeline block on preroll?
To: gstreamer-devel at lists.sourceforge.net
Message-ID: <1281369677943-2318704.post at n4.nabble.com>
Content-Type: text/plain; charset=us-ascii
Stefan Kost wrote:
> 
> Try to reduce the pipeline one by one. E.g. remove input-selector, or
> remove the "queue max-size-buffers=3 max-size-bytes=0 max-size-time=0".
> Try a value >3 here.
> 
The goal I was trying to achieve was to mimic playbin2's behavior, to find
the source of its errors.
I've copied these values from it.
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Why-does-my-pipeline-block-on-preroll-tp2297314p2318704.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
------------------------------
Message: 6
Date: Mon, 9 Aug 2010 18:26:57 -0300
From: Tiago Katcipis <katcipis at inf.ufsc.br>
Subject: [gst-devel] Small question regarding giosrc
To: Discussion of the development of GStreamer
<gstreamer-devel at lists.sourceforge.net>
Message-ID:
<AANLkTindJTqsWMq01y45Yw=0Jufw50Nr1HPYrEV9=Wfo at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Some time ago i was using gnomevfssrc, and stated that it was on deprecation
and gio was replacing it, on that time (i really don't remember exactly
when) i tried giosrc on my ubuntu (dont remember exactaly the version too)
and it worked fine, just like gnomevfs, just running:
gst-launch giosrc location=remote_uri ! etc
worked just fine.
For some reasons we sticked together with gnomevfssrc.
Now we are trying to migrate from gnomevfssrc to giosrc and it simply wont
work, the same pipeline that works for gnomevfssrc gives an error when i use
giosrc.
The error is:
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstGioSrc:giosrc0: Could not open
resource for reading.
Additional debug info:
gstgiosrc.c(321): gst_gio_src_get_stream ():
/GstPipeline:pipeline0/GstGioSrc:giosrc0:
Location sftp://user:pass@ip/tmp/test not mounted: The specified location is
not mounted
Setting pipeline to NULL ...
Freeing pipeline ...
i was able to mount the location first...and then run the pipe...then it
works fine. But i remember that before i didn't have to mount anything, i
just had to use giosrc exactly as i use gnomevfssrc.  Something changed on
the giosrc element? or on the gio API? is there a way to automount things?
if the url already has the user and the password i don't understand why it
wont mount and open for me, its pretty annoying to mount and then run the
pipe.
If anyone can enlighten me i will appreciate... sorry if it is a stupid
question, I'm not very used with gvfs/gio.
Best regards,
Katcipis
-- 
http://www.getgnulinux.org/windows
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 7
Date: Tue, 10 Aug 2010 01:10:22 +0200
From: maxi <maxi at hg.homeunix.org>
Subject: [gst-devel] spectrum element and seeking
To: gstreamer-devel at lists.sourceforge.net
Message-ID: <4C608ADE.9080106 at hg.homeunix.org>
Content-Type: text/plain; charset="iso-8859-15"
Hello,
I'm trying to use the spectrum element for displaying the spectrum in an
GTK application that uses seeking. Normally, when I connect to the bus
and listen for the spectrum messages, I get a message once every 100ms.
Now if I seek and set the pipeline to PLAYING, I get the messages for a
few seconds in advance all at once, then for some time no messages. This
only happens the second time I seek.
I programmed a minimal application that shows this behavior:
http://pastebin.org/463182
It plays one second of a song, beginning from 2.0, using a spectrum
element, and printing the stream time for each spectrum message. Then it
repeats this procedure, and this is what I get:
2000000000
[100ms of music]
2100000000
[100ms of music]
2200000000
[100ms of music]
2300000000
[100ms of music]
2400000000
[100ms of music]
2500000000
[100ms of music]
2600000000
[100ms of music]
2700000000
[100ms of music]
2800000000
[100ms of music]
2900000000
[100ms of music]
[some idle time until the timeout callback is called for second playback]
2000000000
2100000000
2200000000
2300000000
2400000000
2500000000
2600000000
2700000000
2800000000
2900000000
[1s of music]
Can anyone explain this behavior? Perhaps I made something fundamentally
wrong, but how then do I program a graphical spectrum analyzer that
supports seeking? Am I doing something wrong with the seeking part of
the program?
Thank you very much in advance,
Maxi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 286 bytes
Desc: OpenPGP digital signature
------------------------------
Message: 8
Date: Tue, 10 Aug 2010 00:24:38 -0700 (PDT)
From: Sandeep Prakash <123sandy at gmail.com>
Subject: Re: [gst-devel] How to make GNonLin not to decode videoclip?
To: gstreamer-devel at lists.sourceforge.net
Message-ID: <1281425078566-2319399.post at n4.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hi All,
I have tried setting the caps for gnlfilesource for an mpeg4 video and its
not working.
caps="video/mpeg, mpegversion=(int)4"
or
caps="video/mpeg, mpegversion=(int)4, systemstream=(boolean)false"
Could anyone confirm on this?
Thanks
Sandeep Prakash
http://sandeepprakash.homeip.net
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-make-GNonLin-not-to-decode-videoclip-tp2316321p2319399.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
------------------------------
------------------------------------------------------------------------------
This SF.net email is sponsored by 
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
------------------------------
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
End of gstreamer-devel Digest, Vol 51, Issue 16
***********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100810/c30a6c4a/attachment.htm>


More information about the gstreamer-devel mailing list