Corrupted Metadata from filesink element
Prabhakar Lad
prabhakar.csengg at gmail.com
Thu Sep 4 06:45:02 PDT 2014
Hi Tim,
Thanks for the response!
On Wed, Sep 3, 2014 at 9:20 PM, Tim Müller <tim at centricular.com> wrote:
> On Wed, 2014-09-03 at 19:40 +0100, Prabhakar Lad wrote:
>
> Hi,
>
>> I have the following pipieline in which the queue is holding data for
>> min-threshold time ie, for arround 10 seconds, the queue is connected
>> to 'valve' element in which drop property is set to TRUE, and the
>> valve is connected to filesink and the pipeline is streaming.
>> ----------- - ---------- ------------
>> src | | | | | |
>> ---------> | queue | ---->| valve |----->| filesink |
>> |------------| |----------| |------------
>>
>>
>> After getting some event I change the min-threshold to zero and the
>> drop property of valve to false so that it writes to the file.
>> The pipeline works fine, but the mp4 created by this is not recognized
>> by any media players.
>>
>> I recon the gstreamer is not writing the metadata properly.
>>
>> What could be the issue any pointers would be helpful.
>
> Is the mp4mux before or after the valve?
>
> It must after the valve, as mp4 is not a streaming format, you can't
> just write some data and not write other data, the entire output stream
> needs to be intact and written to file as output.
>
Yes the mux was after the valve I moved it before the valve element and got
it working.
I have the following pipeline:-
gst_element_link_many (appvideosrc, videoparse, videoqueue, vvalve,
mux, filesink, NULL);
gst_element_link_many (appaudiosrc, audioparse, audioqueue, avalve,
mux, NULL);
On an event when I change the drop values I get following error,
"GStreamer-CRITICAL **: gst_caps_get_structure: assertion 'index <
GST_CAPS_LEN (caps)' failed"
Any possible reasons for the error ?(I dont get this error when the drop=false)
Is it possible to print the pipeline how it looks when completely linked ?
Thanks,
--Prabhakar
> Also, when done you need to make sure that mp4mux and filesink receive
> and process an eos event so that the file get finalised properly and
> headers get written.
>
> Cheers
> -Tim
> --
> Tim Müller, Centricular Ltd - http://www.centricular.com
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list