Saving stream to file on unstable communication line

nicolas.dufresne at gmail.com nicolas.dufresne at gmail.com
Sat Nov 5 14:51:43 UTC 2016


Le 4 nov. 2016 9:42 AM, "Mailing List SVR" <lists at svrinformatica.it> a
écrit :
>
> Hi,
>
> try to set streamable = true on matroskamux, this way the produced files
have no indexes (standard seek will not work) but are always playable,
>

And additionally, send Eos from a separate thread, and use g_timeout to
cancel it (state null) if it took longer then expected.

> Nicola
>
>
> Il 04/11/2016 14:07, alexolut ha scritto:
>>
>> Hello, Mikl.
>>
>>
>> Mikl wrote
>>>
>>> Your mkv container is not finished. It is the reason it is damaged.
>>>
>>> -You need to send EOS event before stoping pipeline
>>>
>>>   gst_element_send_event(_pipeline, gst_event_new_eos());
>>>
>>> -After this, wait for GST_MESSAGE_EOS on a bus
>>>
>>> -Only then you can close pipeline
>>
>> Even if I send EOS to the pipeline it couldn't be received because
pipeline
>> is not in a PLAYING state (connection is broken now). I will wait for EOS
>> forever, that is not acceptably.
>>
>> So I need a strategy to prevent locking of application (on wait for EOS)
and
>> creation of unfinished files at the same time.
>>
>>
>>
>> --
>> View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/Saving-stream-to-file-on-unstable-communication-line-tp4680334p4680450.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161105/b0ea3af4/attachment.html>


More information about the gstreamer-devel mailing list