I’m trying to live stream two merged streams (rtsp from ip-camera and laptop screen capture through capture card) with gstreamer on Jetson Nano with hardware acceleration. The code execution doesn’t stop, but the live stream doesn’t appear.
I think that the main problem is this warning:
0:00:01.291620055 6383 0x559cf90590 WARN videoencoder gstvideoencoder.c:678:gst_video_encoder_setcaps: rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, format=(string)I420, pixel-aspect-ratio=(fraction)15/11
Because when I try to stream only screen capture or video from ip-cam all the warning except the above-mentioned exist, but they don’t interfere program operation.
Here is my code:
Here is grepped warnings log(there is no errors in full log too).