RTSP stops playing the video after sometime - continuous video

Shaf shaf.nttf at gmail.com
Thu Jul 18 02:26:07 UTC 2019


pipeline_graph.zip
<http://gstreamer-devel.966125.n4.nabble.com/file/t378739/pipeline_graph.zip>  

I am creating a rtsp video stream using appsink and appsrc elements in the
pipeline. The video plays continuously for some hours (approx 15 hrs) and
then stops playing.
Please find the attached pipeline used for appsink and appsrc (RTSP) for
streaming the video.

I have noticed that the x264enc element consumes a lot of CPU therefore used
the below attributes to x264enc :
 x264enc tune=fastdecode speed-preset=ultrafast
 
Can someone point me the issue in the pipeline ?


*Note*: I am changing the location attribute of filesrc to do continuous
streaming in the appsink pipeline bus call-back as below.

gboolean callback(GstBus *bus, GstMessage *msg, gpointer data) {
	App *app_data = (App*)data;
	GstElement *pipeline = GST_ELEMENT(app_data->pipeline);	
	switch (GST_MESSAGE_TYPE(msg)) {
	case GST_MESSAGE_EOS:		
		gst_element_set_state(pipeline, GST_STATE_NULL);
		g_object_set(app_data->source, "location", retrive_media_file(app_data),
NULL);		
		gst_element_set_state(pipeline, GST_STATE_PLAYING);
		break;	
	default:
		break;
	}
	return TRUE;
}


*There is a lot of warning related to timestamp in the log file (added in
the attachmnet) :*
0:23:59.063677400 24120   07AF9E98 WARN            videodecoder
gstvideodecoder.c:2762:gst_video_decoder_prepare_finish_frame:<avdec_h264-0>
decreasing timestamp (0:00:27.333000000 < 0:04:38.033000000)

Regards,
Shabeer V C



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list