Closed msalmonw closed 9 months ago
if you replace kvssink
with a test sink or a display sink of some kind does the pipeline function?
Yes it worked, I resolved the issue by compiling the with -DALIGNED_MEMORY_MODEL=TRUE.
Also now I have another problem, I can generate session tokens completely fine with my certificates, but I can not start the stream directly using the certificates. The command I use is:
gst-launch-1.0 -v rtspsrc location=rtsp://admin:GatewiseCamera123@192.168.1.141:554 short-header=TRUE ! rtph264depay ! h264parse ! kvssink stream-name=$"STREAM_NAME" iot-certificate="iot-certificate,endpoint=https://ctdaryo6b4e5l.credentials.iot.us-west-2.amazonaws.com,cert-path=/certificate.pem,key-path=/private.pem.key,ca-path=/cacert.pem,role-aliases=gatewise-camera-role-alias"
And the output:
log4cplus:ERROR could not open file ../kvs_log_configuration INFO - Logger config being used: ../kvs_log_configuration 2024-01-29 11:43:48 [4159011840] INFO - Setting session token from env for gatewise-camera-01 2024-01-29 11:43:48 [4159011840] INFO - Using iot credential provider within KVS sink for gatewise-camera-01 2024-01-29 11:43:48 [4159011840] INFO - User agent string: AWS-SDK-KVS-CPP-CLIENT/3.4.1 2024-01-29 11:43:48 [4159011840] DEBUG - Creating IoT auth callbacks. 2024-01-29 11:43:48 [4159011840] ERROR - Unable to create Iot Credential provider. Error status: 0x4000000e ERROR: from element /GstPipeline:pipeline0/GstKvsSink:kvssink0: Could not initialise supporting library. Additional debug info: /home/gatewise/Desktop/GateWiseCamera/amazon-kinesis-video-streams-producer-sdk-cpp/src/gstreamer/gstkvssink.cpp(1640): gst_kvs_sink_change_state (): /GstPipeline:pipeline0/GstKvsSink:kvssink0: Failed to init kvs producer. Error: Unable to create Iot Credential provider. Error status: 0x4000000e ERROR: pipeline doesn't want to preroll. Failed to set pipeline to PAUSED. 2024-01-29 11:43:48 [4159011840] Setting pipeline to NULL ... Freeing pipeline ...
The error code you're seeing is 0x4000000e
: STATUS_DIRECTORY_ENTRY_STAT_ERROR
. This could be something related to directory access probably. Can you double check all your paths and permissions?
Im using a Dahua rtsp camera to stream to kvssink but I do not succeed. If im using h264 on the camera settings than I get "Bus Error". I switched to x265 at 1920x1080 but then again my frames are getting dropped and data upload is very very slow.
Logging
Please help!