AW: Video break when using with splitmuxsink

Thornton, Keith keith.thornton at zeiss.com
Sun Aug 30 09:17:19 UTC 2020


Hi,
it is enough when you send EOS to the pipeline, but you have to wait for an EOS message on the message bus before setting the pipeline to NULL.
Gruesse

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von ToanVnET
Gesendet: Samstag, 29. August 2020 11:40
An: gstreamer-devel at lists.freedesktop.org
Betreff: Video break when using with splitmuxsink

I'm using splitmuxsink in Gstreamer with C language to record video. This is my pipeline:

source -> frameratefilter -> encoder -> h264parse -> splitmuxsink

My pipeline is working good. But my video has been broken when I stop the pipeline by send EOS event to elements. I set video duration is 5 minutes.
By some reason, I want to close it earlier. This is way I close them:

  gst_element_send_event(source, gst_event_new_eos());
  gst_element_send_event(splitmuxsink, gst_event_new_eos());
  gst_element_send_event(frameratefilter, gst_event_new_eos());
  gst_element_send_event(encoder, gst_event_new_eos());
  gst_element_send_event(h264parse, gst_event_new_eos());
  gst_element_send_event(pipeline, gst_event_new_eos());

  gst_object_unref (bus);
  gst_element_set_state (pipeline, GST_STATE_NULL);
  gst_object_unref (pipeline);
And this is the error I got:

ERROR GStreamer encountered a general stream error. for file://video1.mp4 ERROR debug information:
../../../imx-gst1.0-plugin-4.1.6/plugins/aiurdemux/aiurdemux.c(1015):
aiurdemux_pull_task ():
/GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAiurDemux:aiurdemux0:
streaming stopped, reason error, state 1 Reached end of play list.

I also try to set state of elements from: PLAYING --> PAUSED --> READY --> NULL --> send EOS. But It's also not working.

How can I fix it ?



--
Sent from: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&data=02%7C01%7C%7C562c7c1d2bf5487f523408d84c08ac38%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637342947430416216&sdata=aWvJFmDuwfQWK%2F5EkH4fswP5bhwGdgzNkWohFV7rhe0%3D&reserved=0
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=02%7C01%7C%7C562c7c1d2bf5487f523408d84c08ac38%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637342947430416216&sdata=qUuOt3G88ShgnI5wpGhXQsz25Ao%2BKtjmQTIhAYvTSTY%3D&reserved=0


More information about the gstreamer-devel mailing list