I'm trying to read a RTMP video stream (followed this) and send it to Kinesis Video Stream with the GStreamer plugin dockerized with this command:
gst-launch-1.0 rtmpsrc location=rtmp://172.17.0.2/live/test \
! decodebin ! videoconvert \
! video/x-raw,format=I420,width=640,height=480,framerate=30/1 \
! x264enc bframes=0 key-int-max=45 bitrate=500 \
! video/x-h264,stream-format=avc,alignment=au,profile=baseline \
! kvssink stream-name="STREAM_NAME" storage-size=512 \
access-key="ACCESS_KEY" \
secret-key="SECRET_KEY" \
aws-region="REGION"
but I can't and the log says:
...
2023-01-05 20:08:41 [139732104787520] INFO - getStreamingTokenResultEvent(): Get streaming token result event.
2023-01-05 20:08:41 [139732104787520] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040
2023-01-05 20:08:41 [139732104787520] DEBUG - streamReadyHandler invoked
2023-01-05 20:08:41 [139732104787520] Stream is ready
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstRTMPSrc:rtmpsrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstRTMPSrc:rtmpsrc0:
streaming stopped, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
INFO - Freeing Kinesis Video Stream test
2023-01-05 20:08:43 [139732691388224] INFO - freeKinesisVideoStream(): Freeing Kinesis Video stream.
2023-01-05 20:08:43 [139732691388224] DEBUG - curlApiCallbacksShutdownActiveRequests(): pActiveRequests hashtable is empty
what I missing out?
How can I solve?
EDIT:
with this gstreamer
command:
gst-launch-1.0 rtmp2src location="rtmp://172.17.0.2/live/test live=1" \
! decodebin3 ! videoconvert \
! video/x-raw,format=I420,width=640,height=480,framerate=30/1 \
! x264enc bframes=0 key-int-max=45 bitrate=500 \
! video/x-h264,stream-format=avc,alignment=au \
! kvssink stream-name="STREAM_NAME" storage-size=512 \
access-key="ACCESS_KEY" \
secret-key="SECRET_KEY" \
aws-region="REGION"
I have no errors and the log says:
...
2023-01-06 05:59:47 [139898318763584] Stream is ready
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
But on Kinesis I can't see the stream.
Why?