We meet a problem when we trying to play RTSP sources with gstreamer.
The script we use is “/tappas/apps/h8/gstreamer/general/multistream_detection/multi_stream_detection_rtsp.sh”
We modify the rtsp path in the script to our rtsp cameras. It can be played smoothly by a few hours. But unfortunately, an error will show “GStreamer-Video-CRITICAL **: xx:xx:xx.xxx: gst_video_frame_map_id: assertion ‘info->finfo->format == meta->format’ failed gst_video_frame_map failed!” then pipeline stopped.
We searched the error, but can’t find the cause.
The error comes from gstreamer’s video-frame.c, function gst_video_frame_map_id() → “g_return_val_if_fail (info->finfo->format == meta->format, FALSE);”
It seems the the buffer’s format and the videoinfo’s format is different. I have no idea how would this happen, maybe need a debug build of gstreamer to track the Video info.
d. Handle Stream Restarts: If your RTSP camera occasionally restarts or changes format, you can add the restart-on-eos=true option to the rtspsrc element: