[gst-devel] 3gp demux plugin working on PC but not on target

Rahul Verma rahul.verma at sasken.com
Fri Jan 23 12:46:43 CET 2009


Hi,

>ffmpeg_demux should not be used as a reference plugin for anything.
>It's not a good example to use at all. Don't use it for any
>comparisons; the ffmpeg demuxers are known to work poorly (and in many
>cases not work at all).

>I don't actually know what it does internally - I haven't looked -
>but a gstreamer demuxer plugin can't act on a file directly, because
>it doesn't even know if there IS a file involved at all.

>By "it must pull data" I mean that to get data from the upstream
>element (in pull mode), you must use gst_pad_pull_range().

Thanks Mike, this helped a lot. I was referring to ffmpeg_demux all this while and was going on the wrong track. As you said, I used gst_pad_pull_range() and it works wonderfully well. Now I don't have any dependency on the file source file handle.

One additional thing I needed to clarify. I tried using the same buffer returned by gst_pad_pull_range() in the function gst_pad_push() and got a crash. I tried functions like gst_buffer_make_writeable(), but even that did not help much. For the time being I am doing a memcpy and pushing the data, which I think is not a clean way. It is also causing audio breaks. Is there a way I can bypass this memcpy??

>I don't know either. Sorry, I can only give general suggestions, since
>you're not writing an open source plugin. Looking at the debug output
>(GST_DEBUG) might help you.

This AV sync is the last major issue I am facing. For a few streams, AV sync works fine, but for one particular stream I am having a pretty hard time. Anyways, I will keep my experiments going and try to keep you informed too. GST_DEBUG is also of not much help because GST_DEBUG:3 and above causes crash at random places when I run the code on target.

Regards,
Rahul Verma
SASKEN BUSINESS DISCLAIMER
-------------------------
This message may contain confidential, proprietary or legally privileged information. In 
case you are not the original intended Recipient of the message, you must not, directly or 
indirectly, use, Disclose, distribute, print, or copy any part of this message and you are 
requested to delete it and inform the sender. Any views expressed in this message are 
those of the individual sender unless otherwise stated. Nothing contained in this message 
shall be construed as an offer or acceptance of any offer by Sasken Communication 
Technologies Limited ("Sasken") unless sent with that express intent and with due 
authority of Sasken. Sasken has taken enough precautions to prevent the spread of 
viruses. However the company accepts no liability for any damage caused by any virus 
transmitted by this email





More information about the gstreamer-devel mailing list