I’m working on an app in C++ with multiple RTSP servers, each one sending a different type of url to my pipeline.
My problem is that when the url contains the resolution in it, my pipeline works fine, but when the url doesn’t contain it, my pipeline fails.
Does someone know if there’s a way of creating a pipeline that accepts both types of links ? If not, which is the best approach for each type of link ?
Link type 1: rtsp://admin:XXXXX@XXXXX/axis-media/media.amp?resolution=1280x720
Link type 2: rtsp://admin:XXXXX@XXXXX/Streaming/Channels/2
My current pipeline: pipeline_str = “rtspsrc location=” + source_video + " ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! videorate ! video/x-raw,format=BGR,framerate=10/1 ! queue ! appsink name=stream";
Take into account that I cannot change the links that arrive to my code, they are always going to arrive with different structure, so I have to adapt to them.
Thank you