Hello Team,
i am currently using amazon-kinesis-video-streams-webrtc-sdk-c to stream my local video over cloud from my jetson orin nano.
i downloaded the source and made some changes in the kvsWebrtcClientMasterGstSample.c file which is located in samples dir.
I added a resolution in the GStreamer pipeline and changed the bitrate to min and max bitrate.
by this setting when the client is connecting with the master it shows an error, it opens a stream in blocking mode, attaching the log file for better reference. The same code works fine in my Ubuntu 20.04 machine and can stream successfully. How to overcome this issue.
I have also tried fakesink replacing appsink but still issue persists.
log.txt (9.4 KB)
case RTSP_SOURCE: {
UINT16 stringOutcome = snprintf(rtspPipeLineBuffer, RTSP_PIPELINE_MAX_CHAR_COUNT,
"uridecodebin source::latency=0 uri=%s ! "
"nvvideoconvert ! "
"videoconvert ! "
"videoscale ! video/x-raw,width=256,height=144 ! "
"x264enc bframes=0 speed-preset=veryfast bitrate=100 byte-stream=TRUE tune=zerolatency ! "
"video/x-h264,stream-format=byte-stream,alignment=au,profile=baseline ! queue ! "
"vbv-maxrate=2048 vbv-buf-capacity=1000 bitrate-tolerance=100 ! "
"appsink sync=TRUE emit-signals=TRUE name=appsink-video "
“src. ! audioconvert ! "
“audioresample ! opusenc ! audio/x-opus,rate=48000,channels=2 ! queue ! "
“appsink sync=TRUE emit-signals=TRUE name=appsink-audio”,
pSampleConfiguration->rtspUri);
if (stringOutcome > RTSP_PIPELINE_MAX_CHAR_COUNT) {
printf(”[KVS GStreamer Master] ERROR: rtsp uri entered exceeds maximum allowed length set by RTSP_PIPELINE_MAX_CHAR_COUNT\n”);
goto CleanUp;
}
pipeline = gst_parse_launch(rtspPipeLineBuffer, &error);
break;
}
}
break;