Saving stream to file on unstable communication line
Michael Yarochkin
michael.yarochkin at timetronics.be
Fri Nov 4 08:42:12 UTC 2016
Hello, alexolut
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
Mikl
________________________________
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of alexolut <alexolut at gmail.com>
Sent: Tuesday, November 1, 2016 9:32:50 AM
To: gstreamer-devel at lists.freedesktop.org
Subject: Re: Saving stream to file on unstable communication line
Tim Müller wrote
> The easiest option might be to use a container format where the content
> survives even if it's not finalised properly, for example Matroska or
> MPEG-TS.
I tried to use "muxer=matroskamux" for "splitmuxsink" but in result I also
got damaged .mkv file after interrupt my application on some condition and
switching pipeline to NULL state via:
gst_element_set_state(pipeline, GST_STATE_NULL);
before return from main().
Maybe I did it not right? Do you know how to close RTSP-connection correctly
(on some user-defined condition) and avoid damaged files in result?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Saving-stream-to-file-on-unstable-communication-line-tp4680334p4680361.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161104/2bc9c350/attachment-0001.html>
More information about the gstreamer-devel
mailing list