[gst-devel] How I test the FLV demux plugin

michael mcygogo at gmail.com
Sun Dec 12 12:34:19 CET 2010


I do not just want to play the FLV file, I want to demux the FLV file trough
the gstflvdemux plugin.
So maybe I should go on to look for the reason why the gstflvdemux cannot
work without the playbin.
I can demux the MP4 file following this :
gst-launch filesrc location=test.mp4 ! qtdemux name=demux demux.video_00 !
queue ! filesink location=test.ves demux.audio_00 ! queue ! filesink
location=test.aes
But why this  can NOT work with the flvdemux ?


On Sun, Dec 12, 2010 at 6:41 PM, sudarshan bisht
<bisht.sudarshan at gmail.com>wrote:

>
> Ok, it seems playbin takes care of caps negotiations correctly when
> "codec_data" is a part of caps.
>
> So does this solve your problem ? Or still you want to use your old
> pipeline ?
>
>
>
>
> On Sun, Dec 12, 2010 at 2:46 PM, michael <mcygogo at gmail.com> wrote:
>
>> Hi sadarshan:
>>     I can play the file by your command:  gst-launch -v playbin uri=file:
>> ///path/test.flv
>>
>>
>> On Sun, Dec 12, 2010 at 3:53 PM, sudarshan bisht <
>> bisht.sudarshan at gmail.com> wrote:
>>
>>> I suggest you to use capsfilter, as you said in your earlier mails
>>> that gst_pad_push returns -1 , that means flvdemux is not able to push
>>> buffer to the next element and it may happen because of lack of
>>> caps negotiations.
>>>
>>> By the way how did you create this test.flv file ? and are you able to
>>> play this file with other players ?
>>>
>>> and give a try to following pipeline;
>>>  gst-launch -v playbin uri=file:///path/test.flv
>>>
>>>
>>>
>>> On Sat, Dec 11, 2010 at 10:55 PM, Timothy Braun <braunsquared at gmail.com>wrote:
>>>
>>>> Your best bet is to use gst-inspect and look at what the various
>>>> templates of the pads are. It sounds like you need to do some conversion
>>>> somewhere.
>>>>
>>>> Sent from my iPhone
>>>>
>>>> On Dec 11, 2010, at 8:46 AM, michael <mcygogo at gmail.com> wrote:
>>>>
>>>> Hi sudarshan:
>>>>      I followed your command, I got information :
>>>> WARNING: erroneous pipeline: could not parse caps "video/x-h264,\
>>>> pixel-aspect-ratio=(fraction)1/1,\
>>>> codec_data=(buffer)01640015ffe1001e67640015ac34e602808effc028402804000003000400000300ca3c58b67801000468e9bbcb\"
>>>>
>>>>
>>>>
>>>> On Sat, Dec 11, 2010 at 7:32 PM, sudarshan bisht <<bisht.sudarshan at gmail.com>
>>>> bisht.sudarshan at gmail.com> wrote:
>>>>
>>>>> Ok, now can you try following,
>>>>>
>>>>> gst-launch filesrc location=test.flv ! flvdemux name=demux
>>>>> demux.video_00 ! queue !  "video/x-h264,
>>>>> pixel-aspect-ratio=(fraction)1/1,
>>>>> codec_data=(buffer)01640015ffe1001e67640015ac34e602808effc028402804000003000400000300ca3c58b67801000468e9bbcb
>>>>> " ! filesink location=test.ves demux.audio_00 ! queue ! filesink
>>>>> location=test.aes
>>>>>
>>>>>
>>>>> On Sat, Dec 11, 2010 at 10:49 AM, michael < <mcygogo at gmail.com>
>>>>> mcygogo at gmail.com> wrote:
>>>>>
>>>>>> Hi sudarshan:
>>>>>>     I run it with the -v option, and the result  like this:
>>>>>> Setting pipeline to PAUSED ...
>>>>>> Pipeline is PREROLLING ...
>>>>>> /GstPipeline:pipeline0/GstFlvDemux:demux.GstPad:video: caps =
>>>>>> video/x-h264, pixel-aspect-ratio=(fraction)1/1,
>>>>>> codec_data=(buffer)01640015ffe1001e67640015ac34e602808effc028402804000003000400000300ca3c58b67801000468e9bbcb
>>>>>>  ERROR: from element /GstPipeline:pipeline0/GstFlvDemux:demux:
>>>>>> Internal data stream error.
>>>>>> Additional debug info:
>>>>>> gstflvdemux.c(2283): gst_flv_demux_loop ():
>>>>>> /GstPipeline:pipeline0/GstFlvDemux:demux:
>>>>>> stream stopped, reason not-linked
>>>>>> ERROR: pipeline doesn't want to preroll.
>>>>>> Setting pipeline to NULL ...
>>>>>> /GstPipeline:pipeline0/GstFlvDemux:demux.GstPad:audio: caps = NULL
>>>>>> /GstPipeline:pipeline0/GstFlvDemux:demux.GstPad:video: caps = NULL
>>>>>> Freeing pipeline ...
>>>>>>
>>>>>> I have found that the in function: gst_flv_demux_parse_tag_video() ,
>>>>>> the call gst_pad_push(demux->video_pad, outbuf) returned the -1;
>>>>>>
>>>>>> On Sat, Dec 11, 2010 at 4:33 PM, sudarshan bisht <<bisht.sudarshan at gmail.com>
>>>>>> bisht.sudarshan at gmail.com> wrote:
>>>>>>
>>>>>>> Could you run the same pipeline with -v option and paste the log here
>>>>>>> ?
>>>>>>>
>>>>>>>
>>>>>>>  On Sat, Dec 11, 2010 at 11:47 AM, michael < <mcygogo at gmail.com>
>>>>>>> mcygogo at gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi all:
>>>>>>>>      Now I am learning some about the flv plugin--flvdemux, I try to
>>>>>>>> demux my flv test file like this:
>>>>>>>> gst-launch filesrc location=test.flv ! flvdemux name=demux
>>>>>>>> demux.video_00 ! queue ! filesink location=test.ves demux.audio_00 ! queue !
>>>>>>>> filesink location=test.aes
>>>>>>>>      But when I run it , I just get the information like this:
>>>>>>>> Setting pipeline to PAUSED ...
>>>>>>>> Pipeline is PREROLLING ...
>>>>>>>> ERROR: from element /GstPipeline:pipeline0/GstFlvDemux:demux:
>>>>>>>> Internal data stream error.
>>>>>>>> Additional debug info:
>>>>>>>> gstflvdemux.c(2283): gst_flv_demux_loop ():
>>>>>>>> /GstPipeline:pipeline0/GstFlvDemux:demux:
>>>>>>>> stream stopped, reason not-linked
>>>>>>>> ERROR: pipeline doesn't want to preroll.
>>>>>>>> Setting pipeline to NULL ...
>>>>>>>> Freeing pipeline ...
>>>>>>>>
>>>>>>>> I just want test the flvdemux plugin , So How I fixed it? tks:)
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Oracle to DB2 Conversion Guide: Learn learn about native support for
>>>>>>>> PL/SQL,
>>>>>>>> new data types, scalar functions, improved concurrency, built-in
>>>>>>>> packages,
>>>>>>>> OCI, SQL*Plus, data movement tools, best practices and more.
>>>>>>>>  <http://p.sf.net/sfu/oracle-sfdev2dev>
>>>>>>>> http://p.sf.net/sfu/oracle-sfdev2dev
>>>>>>>> _______________________________________________
>>>>>>>> gstreamer-devel mailing list
>>>>>>>>  <gstreamer-devel at lists.sourceforge.net>
>>>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>>>>  <https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>>
>>>>>>> Sudarshan Bisht
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Oracle to DB2 Conversion Guide: Learn learn about native support for
>>>>>>> PL/SQL,
>>>>>>> new data types, scalar functions, improved concurrency, built-in
>>>>>>> packages,
>>>>>>> OCI, SQL*Plus, data movement tools, best practices and more.
>>>>>>>  <http://p.sf.net/sfu/oracle-sfdev2dev>
>>>>>>> http://p.sf.net/sfu/oracle-sfdev2dev
>>>>>>> _______________________________________________
>>>>>>> gstreamer-devel mailing list
>>>>>>>  <gstreamer-devel at lists.sourceforge.net>
>>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>>>  <https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>
>>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Oracle to DB2 Conversion Guide: Learn learn about native support for
>>>>>> PL/SQL,
>>>>>> new data types, scalar functions, improved concurrency, built-in
>>>>>> packages,
>>>>>> OCI, SQL*Plus, data movement tools, best practices and more.
>>>>>>  <http://p.sf.net/sfu/oracle-sfdev2dev>
>>>>>> http://p.sf.net/sfu/oracle-sfdev2dev
>>>>>> _______________________________________________
>>>>>> gstreamer-devel mailing list
>>>>>>  <gstreamer-devel at lists.sourceforge.net>
>>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>>  <https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>
>>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards,
>>>>>
>>>>> Sudarshan Bisht
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Oracle to DB2 Conversion Guide: Learn learn about native support for
>>>>> PL/SQL,
>>>>> new data types, scalar functions, improved concurrency, built-in
>>>>> packages,
>>>>> OCI, SQL*Plus, data movement tools, best practices and more.
>>>>>  <http://p.sf.net/sfu/oracle-sfdev2dev>
>>>>> http://p.sf.net/sfu/oracle-sfdev2dev
>>>>> _______________________________________________
>>>>> gstreamer-devel mailing list
>>>>>  <gstreamer-devel at lists.sourceforge.net>
>>>>> gstreamer-devel at lists.sourceforge.net
>>>>>  <https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>
>>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>>
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Oracle to DB2 Conversion Guide: Learn learn about native support for
>>>> PL/SQL,
>>>> new data types, scalar functions, improved concurrency, built-in
>>>> packages,
>>>> OCI, SQL*Plus, data movement tools, best practices and more.
>>>> http://p.sf.net/sfu/oracle-sfdev2dev
>>>>
>>>> _______________________________________________
>>>> gstreamer-devel mailing list
>>>> gstreamer-devel at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Oracle to DB2 Conversion Guide: Learn learn about native support for
>>>> PL/SQL,
>>>> new data types, scalar functions, improved concurrency, built-in
>>>> packages,
>>>> OCI, SQL*Plus, data movement tools, best practices and more.
>>>> http://p.sf.net/sfu/oracle-sfdev2dev
>>>> _______________________________________________
>>>> gstreamer-devel mailing list
>>>> gstreamer-devel at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Sudarshan Bisht
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Oracle to DB2 Conversion Guide: Learn learn about native support for
>>> PL/SQL,
>>> new data types, scalar functions, improved concurrency, built-in
>>> packages,
>>> OCI, SQL*Plus, data movement tools, best practices and more.
>>> http://p.sf.net/sfu/oracle-sfdev2dev
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Oracle to DB2 Conversion Guide: Learn learn about native support for
>> PL/SQL,
>> new data types, scalar functions, improved concurrency, built-in packages,
>> OCI, SQL*Plus, data movement tools, best practices and more.
>> http://p.sf.net/sfu/oracle-sfdev2dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
>
> ------------------------------------------------------------------------------
> Oracle to DB2 Conversion Guide: Learn learn about native support for
> PL/SQL,
> new data types, scalar functions, improved concurrency, built-in packages,
> OCI, SQL*Plus, data movement tools, best practices and more.
> http://p.sf.net/sfu/oracle-sfdev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101212/79a537de/attachment.htm>


More information about the gstreamer-devel mailing list