How can I get to know whether a element get my data or not

Ugly Face xuchangxue365812 at 126.com
Wed Mar 5 00:59:09 PST 2014


Nicolas , Thank you a lot . I have find my problem with your suggestion of
using appsink . I compared two buffers . one from piepline "appsrc !
appsink" and one form pipeline "filesrc ! qtdemux ! appsink" . I find that
what I have to give appsrc is not NALU itself but with 4 bytes length ahead
of NALU in GstBuffer . 

Another problem is that  it is different from pushing raw data(say raw NV21)
. We should not set this :

        //GST_BUFFER_TIMESTAMP (buffer) = (GstClockTime)
gst_util_uint64_scale (frame_num, GST_SECOND, data->framerate);
	//GST_BUFFER_DURATION (buffer) =  (GstClockTime) gst_util_uint64_scale (1,
GST_SECOND, data->framerate);

With your help , I think I have learned to use appsrc . May you a good day
.(As a nonnative speaker of English , I find it is hard to show my
gratitude).

Gorge Y.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-can-I-get-to-know-whether-a-element-get-my-data-or-not-tp4665599p4665752.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list