[gst-devel] Issue regarding pushing data
Edward Hervey
edward.hervey at collabora.co.uk
Tue Jul 22 12:16:01 CEST 2008
On Mon, 2008-07-21 at 17:39 +0530, Rahul Nikose wrote:
> Hi Everyone,
>
> I have develop demuxer which pull data from filesrc then I parse
> data inside my demuxer .
> I have implemented activate_pull and _loop() ..so to pull data
> from Filesrc
> I am able to pull data and parse header , but after parsing data
> when i am trying to push
> data into decoder.....I see nothing happening ( same pipeline
> work with gstremer QTdemux element.)
>
> Inside _loop function I have implemented
> 1. find_video_cap() ..which will find appropriate cap
> 2. gst_pad_set_caps (filter->srcpad_video, caps) which will
> set caps on srcpad
> 3. gst_buffer_set_caps (buf,caps); which will set caps onto
> buffer
> 4. Also set required field inside buffer
> gst_buffer_set_data ( buf, pData, nLength);
> GST_BUFFER_SIZE (buf) = nLength;
> GST_BUFFER_TIMESTAMP(buf) = pMilliSec/1000000;
> (convert milisec into nano sec and then insert)
If pMilliSec is in milliseconds, you should be multiplying that value
by GST_MSECOND to get nanoseconds. If not, you're going to end up with
really small values, which will make those buffers plaid back REALLY
FAST.
my 2 cents,
Edward
> 5. gst_pad_push (GST_PAD_CAST(filter->srcpad_video), buf);
> this will push buffer to decoder..
>
> Is there somthing I am missing ..... Give me some clue..
> --
> Thanks and warm Regards
> Rahul S. Nikose
> 09739949798
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list