awslabs / amazon-kinesis-video-streams-producer-sdk-cpp

Amazon Kinesis Video Streams Producer SDK for C++ is for developers to install and customize for their connected camera and other devices to securely stream video, audio, and time-encoded data to Kinesis Video Streams.
Apache License 2.0
373 stars 334 forks source link

Streaming Grayscale Video (Thermal Camera Data) #343

Closed istranic closed 4 years ago

istranic commented 4 years ago

I'm trying to stream thermal camera temperature data from a Rasperry Pi + USB camera (FLIR Lepton3.5 + PureThermal2) to Kinesis Video in GRAY8 or GRAY16_LE format. Could you please help me figure out how to structure the gstreamer command to make this work?

FYI, when I use the normal Raspberry pi camera, I am able to create a stream using either of the commands below. gst-launch-1.0 -v v4l2src do-timestamp=TRUE device=/dev/video0 ! videoconvert ! video/x-raw,format=I420,width=640,height=480,framerate=5/1 ! omxh264enc periodicty-idr=5 inline-header=FALSE ! h264parse ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName access-key="YourAccessKey" secret-key="YourSecretKey"

gst-launch-1.0 -v v4l2src device=/dev/video0 ! videoconvert ! video/x-raw,format=I420,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName storage-size=128 access-key="YourAccessKey" secret-key="YourSecretKey"

However, when I try to change the format (GRAY8 vs I420) and source (video1 vs video0), I can't get it to work. I suspect my command is no longer compatible with the encoder. In addition, I can successfully display the thermal camera feed when I run the command below, so I know my thermal camera is working.

gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! ximagesink

chehefen commented 4 years ago

did you try running your second pipeline with the thermal camera? videoconvert should handle the conversion from GRAY8 to I420

MushMal commented 4 years ago

@istranic looks like a cool usage case. Could you share a little more about your use case? Are you prototyping or you are building an app using GStreamer KVS plugin?

istranic commented 4 years ago

@chehefen is this what you're referring to?

gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! video/x-raw,format=I420,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName storage-size=128 access-key="YourAccessKey" secret-key="YourSecretKey"

I get an error related to the internal data stream. I can post a full log if that helps?

If I run the command above with video0(non thermal) instead of video1, it works fine.

Can you pls help me understand the command above. Is I420 the format of the input video, or that is format at the output of the encoder?

istranic commented 4 years ago

@MushMal I'm prototyping right now, but my goal is to build a piece of hardware that will take a visible and IR video and stream it to the cloud. I'd really appreciate any advice on how to do this. My approach was to use Kinesis Video and somehow figure out how to stream from multiple cameras. First, I'm figuring out how to stream from the visible and IR cameras separately, and then I'll have to figure out how to do it together.

chehefen commented 4 years ago

can you do export GST_DEBUG=4 and then try this?

gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! video/x-raw,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName storage-size=128 access-key="YourAccessKey" secret-key="YourSecretKey"

If it didn't work, you can send us the log to kinesis-video-support@amazon.com

In your second pipeline, I420 is the format of input video to the encoder. however, your source video can be other format and videoconvert will handle the conversion to I420.

MushMal commented 4 years ago

@istranic very cool scenario. There are two parts to your producer side. 1) How to extract and encode the frames and 2) How to stream to KVS.

1 you could indeed use GStreamer to work with the source and the encoders, unless you have a hardware encoder or custom pipeline that can give you already encoded frames that you could then submit to KVS SDK directly, circumventing GStreamer all together. The color-space converter or encoder is something that can be resolved by looking at the documentation or dumping out the errors gstreamer produces.

2 would be based on the choices on #1. If it's GStreamer then the recommended approach would be to use GStreamer based application and put frames directly into KVS SDK or use the the KVS GStreamer plugin either in a GStreamer application or have a daemon with gst-launch-1.0 tool and command line that integrates with kvs plugin. As higher you go up the tool chain you go the easier is the integration but less flexible in terms of configurability or edge case handling like buffer pressures.

You can certainly prototype using kvs plugin with gst-lunch-1.0 but I would recommend putting together an application that would construct the pipeline either with kvs plugin or without - in which case you would have some sort of an app sink that will feed the frames into kvs producer SDK (similar to KVS plugin or gstreamer sample application).

istranic commented 4 years ago

@chehefen It didn't work and I send you the log via email

@MushMal Your comment make sense, though the implementation is a bit outside of my area of expertise. Would you be interested in helping with this. If so, we can connect via email.

MushMal commented 4 years ago

@istranic we received your log and will look through it to see what could cause GStreamer error - most likely an issue with the unexpected format in the encoder.

Regarding the help. We would gladly help you by answering questions related to issues with KVS or the KVS SDK in general. It will be hard for us to help with your application though.

Recommend taking a look at the samples and see if you can replicate. If, however, you are not an expert in native code development then perhaps the GStreamer KVS plugin with gst-launch-1.0 tool might fit the bill.

chehefen commented 4 years ago

in the log there was this line: 0:00:01.251925453 4123 0x812d80 INFO v4l2 gstv4l2object.c:3927:gst_v4l2_object_get_caps:<v4l2src0> probed caps: video/x-raw, format=(string)UYVY, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)BGR, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)BGR, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB16, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ sRGB }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY8, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)I420, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)I420, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)YV12, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)YV12, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)RGB, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1

It stated the supported format of your camera. As you can see, the camera don't support resolution 640x480, you can either drop the resolution or you can add videoscale in the pipeline like such:

gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName storage-size=128 access-key="YourAccessKey" secret-key="YourSecretKey"

istranic commented 4 years ago

Hi chehefen,

I forgot to mention previously that I tried 160x120, which is the resolution of the thermal camera. Attached are the logs for the lower resolution method or the scaling method.

On Thu, Feb 13, 2020 at 4:23 PM chehefen notifications@github.com wrote:

in the log there was this line: 0:00:01.251925453 4123 0x812d80 INFO v4l2 gstv4l2object.c:3927:gst_v4l2_object_get_caps: probed caps: video/x-raw, format=(string)UYVY, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)BGR, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)BGR, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB16, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ sRGB }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY8, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)I420, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)I420, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)YV12, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)YV12, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)RGB, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1

It stated the supported format of your camera. As you can see, the camera don't support resolution 640x480, you can either drop the resolution or you can add videoscale in the pipeline like such:

gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName storage-size=128 access-key="YourAccessKey" secret-key="YourSecretKey"

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/343?email_source=notifications&email_token=AFOQTV2NROVBST6LSDUXYZTRCW26RA5CNFSM4KUVMWC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELWVFCA#issuecomment-585978504, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOQTVZNIGZE45B33M3UV6LRCW26RANCNFSM4KUVMWCQ .

-- Ivo Stranic Stanford University

COMMAND gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! video/x-raw,width=160,height=120,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName3 storage-size=128 access-key=llllllll secret-key=llllllllllllllllll aws-region="us-east-1"

LOG 0:00:00.000492393 4430 0x33ee00 INFO GST_INIT gst.c:510:init_pre: Initializing GStreamer Core Library version 1.10.4 0:00:00.000770621 4430 0x33ee00 INFO GST_INIT gst.c:511:init_pre: Using library installed in /usr/lib/arm-linux-gnueabihf 0:00:00.000848381 4430 0x33ee00 INFO GST_INIT gst.c:522:init_pre: Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l 0:00:00.002404935 4430 0x33ee00 INFO GST_INIT gstmessage.c:126:_priv_gst_message_initialize: init messages 0:00:00.005490542 4430 0x33ee00 INFO GST_INIT gstcontext.c:83:_priv_gst_context_initialize: init contexts 0:00:00.007645426 4430 0x33ee00 INFO GST_PLUGIN_LOADING gstplugin.c:316:_priv_gst_plugin_initialize: registering 0 static plugins 0:00:00.008263235 4430 0x33ee00 INFO GST_PLUGIN_LOADING gstplugin.c:224:gst_plugin_register_static: registered static plugin "staticelements" 0:00:00.008341464 4430 0x33ee00 INFO GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: added static plugin "staticelements", result: 1 0:00:00.008516567 4430 0x33ee00 INFO GST_REGISTRY gstregistry.c:1738:ensure_current_registry: reading registry cache: /home/pi/.cache/gstreamer-1.0/registry.arm.bin 0:00:00.120280368 4430 0x33ee00 INFO GST_REGISTRY gstregistrybinary.c:619:priv_gst_registry_binary_read_cache: loaded /home/pi/.cache/gstreamer-1.0/registry.arm.bin in 0.111650 seconds 0:00:00.120565367 4430 0x33ee00 INFO GST_REGISTRY gstregistry.c:1594:scan_and_update_registry: Validating plugins from registry cache: /home/pi/.cache/gstreamer-1.0/registry.arm.bin 0:00:00.133202379 4430 0x33ee00 INFO GST_REGISTRY gstregistry.c:1696:scan_and_update_registry: Registry cache has not changed 0:00:00.133266025 4430 0x33ee00 INFO GST_REGISTRY gstregistry.c:1773:ensure_current_registry: registry reading and updating done, result = 1 0:00:00.133299150 4430 0x33ee00 INFO GST_INIT gst.c:720:init_post: GLib runtime version: 2.50.3 0:00:00.133332274 4430 0x33ee00 INFO GST_INIT gst.c:722:init_post: GLib headers version: 2.50.3 0:00:00.133360347 4430 0x33ee00 INFO GST_INIT gst.c:723:init_post: initialized GStreamer successfully 0:00:00.133490503 4430 0x33ee00 INFO GST_PIPELINE gstparse.c:325:gst_parse_launch_full: parsing pipeline description 'v4l2src device=/dev/video1 ! videoconvert ! video/x-raw,width=160,height=120,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName3 storage-size=128 access-key=lllllllllllllllll secret-key=llllllllllllllllllllllll aws-region=us-east-1 ' 0:00:00.144581274 4430 0x33ee00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideo4linux2.so" loaded 0:00:00.144665701 4430 0x33ee00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "v4l2src" 0:00:00.147910422 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseSrc@0x4a60a0 adding pad 'src' 0:00:00.148898906 4430 0x33ee00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideoconvert.so" loaded 0:00:00.148988801 4430 0x33ee00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "videoconvert" 0:00:00.149765516 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x4ae260 adding pad 'sink' 0:00:00.149834838 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x4ae260 adding pad 'src' 0:00:00.154648509 4430 0x33ee00 INFO x264enc gstx264enc.c:2741:plugin_init: x264 build: 148 0:00:00.155046840 4430 0x33ee00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstx264.so" loaded 0:00:00.155113715 4430 0x33ee00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "x264enc" 0:00:00.155978398 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x4b4200 adding pad 'sink' 0:00:00.156108970 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x4b4200 adding pad 'src' 0:00:00.232034065 4430 0x33ee00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/home/pi/Kinesis/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/libgstkvssink.so" loaded 0:00:00.232126513 4430 0x33ee00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "kvssink" 0:00:00.232919789 4430 0x33ee00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "pipeline" 0:00:00.233226350 4430 0x33ee00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstV4l2Src named v4l2src0 to some pad of GstVideoConvert named videoconvert0 (0/0) with caps "(NULL)" 0:00:00.233285412 4430 0x33ee00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element videoconvert0:(any) 0:00:00.233326402 4430 0x33ee00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.233398797 4430 0x33ee00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.236269771 4430 0x33ee00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: v4l2src0 and videoconvert0 in same bin, no need for ghost pads 0:00:00.236340812 4430 0x33ee00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.236400343 4430 0x33ee00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.239104234 4430 0x33ee00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked v4l2src0:src and videoconvert0:sink, successful 0:00:00.239147098 4430 0x33ee00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.239176525 4430 0x33ee00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.239226265 4430 0x33ee00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstVideoConvert named videoconvert0 to some pad of GstX264Enc named x264enc0 (0/0) with caps "video/x-raw, width=(int)160, height=(int)120, framerate=(fraction)5/1" 0:00:00.241110733 4430 0x33ee00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstcoreelements.so" loaded 0:00:00.241181827 4430 0x33ee00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.241473856 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x4e4148 adding pad 'sink' 0:00:00.241540158 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x4e4148 adding pad 'src' 0:00:00.241598439 4430 0x33ee00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.241694219 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.241743594 4430 0x33ee00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.241781406 4430 0x33ee00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element videoconvert0:(any) to element capsfilter0:sink 0:00:00.241818125 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:sink 0:00:00.241851042 4430 0x33ee00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: videoconvert0 and capsfilter0 in same bin, no need for ghost pads 0:00:00.241906718 4430 0x33ee00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link videoconvert0:src and capsfilter0:sink 0:00:00.243814312 4430 0x33ee00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.243906499 4430 0x33ee00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked videoconvert0:src and capsfilter0:sink, successful 0:00:00.243945665 4430 0x33ee00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.243974675 4430 0x33ee00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.244026706 4430 0x33ee00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter0:src to element x264enc0:(any) 0:00:00.244066602 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:src 0:00:00.244104883 4430 0x33ee00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link capsfilter0:src and x264enc0:sink 0:00:00.246380079 4430 0x33ee00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.246468307 4430 0x33ee00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter0 and x264enc0 in same bin, no need for ghost pads 0:00:00.246518828 4430 0x33ee00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter0:src and x264enc0:sink 0:00:00.248505015 4430 0x33ee00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.248585639 4430 0x33ee00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter0:src and x264enc0:sink, successful 0:00:00.248620795 4430 0x33ee00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.248649076 4430 0x33ee00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.248695326 4430 0x33ee00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstX264Enc named x264enc0 to some pad of GstKvsSink named kvssink0 (0/0) with caps "video/x-h264, stream-format=(string)avc, alignment=(string)au" 0:00:00.248786680 4430 0x33ee00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.248888450 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x4e4378 adding pad 'sink' 0:00:00.248950741 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x4e4378 adding pad 'src' 0:00:00.249005585 4430 0x33ee00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.249081834 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.249120220 4430 0x33ee00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.249153032 4430 0x33ee00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element x264enc0:(any) to element capsfilter1:sink 0:00:00.249188500 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:sink 0:00:00.249219125 4430 0x33ee00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: x264enc0 and capsfilter1 in same bin, no need for ghost pads 0:00:00.249259750 4430 0x33ee00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link x264enc0:src and capsfilter1:sink 0:00:00.249312614 4430 0x33ee00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.249353031 4430 0x33ee00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked x264enc0:src and capsfilter1:sink, successful 0:00:00.249386937 4430 0x33ee00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.249412874 4430 0x33ee00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.249450322 4430 0x33ee00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter1:src to element kvssink0:(any) 0:00:00.249484853 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:src 0:00:00.249643862 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad: adding pad 'video_0' 0:00:00.249679487 4430 0x33ee00 INFO kvssink gstkvssink.cpp:1236:gst_kvs_sink_request_new_pad: Added new request pad 0:00:00.249732247 4430 0x33ee00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter1 and kvssink0 in same bin, no need for ghost pads 0:00:00.249775685 4430 0x33ee00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter1:src and kvssink0:video_0 0:00:00.249870788 4430 0x33ee00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter1:src and kvssink0:video_0, successful 0:00:00.249906413 4430 0x33ee00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.249934277 4430 0x33ee00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding Setting pipeline to PAUSED ... 0:00:00.250133756 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY log4cplus:ERROR could not open file ./kvs_log_configuration INFO - createKinesisVideoClient(): Creating Kinesis Video Client 2020-02-13 13:37:16 [1995792384] INFO - heapInitialize(): Initializing native heap with limit size 134217728, spill ratio 0% and flags 0x00000001 2020-02-13 13:37:16 [1995792384] INFO - heapInitialize(): Creating AIV heap. 2020-02-13 13:37:16 [1995792384] INFO - heapInitialize(): Heap is initialized OK 2020-02-13 13:37:16 [1995792384] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-13 13:37:16 [1995792384] DEBUG - getSecurityTokenHandler invoked 2020-02-13 13:37:16 [1995792384] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is: 1581629836204522268 Expiration: 0 2020-02-13 13:37:16 [1995792384] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000010 2020-02-13 13:37:16 [1995792384] INFO - createDeviceResultEvent(): Create device result event. 2020-02-13 13:37:16 [1995792384] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-13 13:37:16 [1995792384] DEBUG - clientReadyHandler invoked 2020-02-13 13:37:16 [1995792384] INFO - try creating stream 2020-02-13 13:37:16 [1995792384] INFO - Creating Kinesis Video Stream YourStreamName3 2020-02-13 13:37:16 [1995792384] INFO - createKinesisVideoStream(): Creating Kinesis Video Stream. 2020-02-13 13:37:16 [1995792384] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-13 13:37:16 [1995792384] INFO - writeHeaderCallback(): RequestId: 0e8bde30-cfbe-4768-875f-90088ae1e7e9 2020-02-13 13:37:16 [1828639856] DEBUG - describeStreamCurlHandler(): DescribeStream API response: {"StreamInfo":{"CreationTime":1.581605902608E9,"DataRetentionInHours":2,"DeviceName":"Kinesis_Video_Device","KmsKeyId":"arn:aws:kms:us-east-1:132756671989:alias/aws/kinesisvideo","MediaType":"video/h264","Status":"ACTIVE","StreamARN":"arn:aws:kinesisvideo:us-east-1:132756671989:stream/YourStreamName3/1581605902608","StreamName":"YourStreamName3","Version":"GODOQ7ZFH1sm2KkoDivr"}} 2020-02-13 13:37:16 [1828639856] INFO - describeStreamResultEvent(): Describe stream result event. 2020-02-13 13:37:16 [1828639856] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000020 2020-02-13 13:37:16 [1828639856] INFO - writeHeaderCallback(): RequestId: 83f4b3ee-a742-440a-88bb-17421471a355 2020-02-13 13:37:16 [1818223728] DEBUG - getStreamingEndpointCurlHandler(): GetStreamingEndpoint API response: {"DataEndpoint":"https://s-1e415f8b.kinesisvideo.us-east-1.amazonaws.com"} 2020-02-13 13:37:16 [1818223728] INFO - getStreamingEndpointResultEvent(): Get streaming endpoint result event. 2020-02-13 13:37:16 [1818223728] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000020, Next state: 0x0000000000000010 2020-02-13 13:37:16 [1818223728] DEBUG - getStreamingTokenHandler invoked 2020-02-13 13:37:16 [1818223728] DEBUG - Refreshing credentials. Force refreshing: 1 Now time is: 1581629836504472931 Expiration: 18446744073709551615 2020-02-13 13:37:16 [1818223728] INFO - getStreamingTokenResultEvent(): Get streaming token result event. 2020-02-13 13:37:16 [1818223728] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-13 13:37:16 [1818223728] DEBUG - defaultStreamReadyCallback(): Reported streamReady callback for stream handle 5253989 2020-02-13 13:37:16 [1818223728] DEBUG - streamReadyHandler invoked 2020-02-13 13:37:16 [1818223728] Stream is ready 0:00:00.559336346 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.559415408 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.559547751 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 2(READY) successfully 0:00:00.559617334 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.559658428 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.559686396 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.559732750 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 2(READY) successfully 0:00:00.559775511 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.559811917 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.559839521 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.559881864 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 2(READY) successfully 0:00:00.559923635 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.559958582 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.559986082 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.560027072 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 2(READY) successfully 0:00:00.560070353 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.560105873 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.560133634 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.560174883 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 2(READY) successfully 0:00:00.560213477 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.560424778 4430 0x33ee00 WARN v4l2 v4l2_calls.c:611:gst_v4l2_open: error: Cannot identify device '/dev/video1'. 0:00:00.560454673 4430 0x33ee00 WARN v4l2 v4l2_calls.c:611:gst_v4l2_open: error: system error: No such file or directory 0:00:00.560516079 4430 0x33ee00 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details: posting message: Cannot identify device '/dev/video1'. 0:00:00.560594360 4430 0x33ee00 INFO GST_ERROR_SYSTEM gstelement.c:1917:gst_element_message_full_with_details: posted error message: Cannot identify device '/dev/video1'. 0:00:00.560634881 4430 0x33ee00 INFO GST_STATES gstelement.c:2704:gst_element_change_state: have FAILURE change_state return 0:00:00.560662381 4430 0x33ee00 INFO GST_STATES gstelement.c:2294:gst_element_abort_state: aborting state from NULL to READY 0:00:00.560692953 4430 0x33ee00 INFO GST_STATES gstbin.c:2985:gst_bin_change_state_func: child 'v4l2src0' failed to go to state 2(READY) 0:00:00.560785349 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.560815192 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:00.560871442 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.560900713 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:00.560956910 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.560986077 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:00.561040243 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.561069410 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:00.561125190 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.561155034 4430 0x33ee00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:00.561202950 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.561247429 4430 0x33ee00 INFO GST_STATES gstelement.c:2704:gst_element_change_state: have FAILURE change_state return ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Cannot identify device '/dev/video1'. Additional debug info: v4l2_calls.c(611): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: system error: No such file or directory Setting pipeline to NULL ... 0:00:00.562041227 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL 0:00:00.562089195 4430 0x33ee00 INFO GST_STATES gstbin.c:2638:gst_bin_element_set_state: skipping transition from NULL to NULL 0:00:00.562120133 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 1(NULL) successfully 0:00:00.562159872 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL 0:00:00.562190601 4430 0x33ee00 INFO GST_STATES gstbin.c:2638:gst_bin_element_set_state: skipping transition from NULL to NULL 0:00:00.562218622 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 1(NULL) successfully 0:00:00.562258934 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL 0:00:00.562291069 4430 0x33ee00 INFO GST_STATES gstbin.c:2638:gst_bin_element_set_state: skipping transition from NULL to NULL 0:00:00.562320288 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 1(NULL) successfully 0:00:00.562358309 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL 0:00:00.562392058 4430 0x33ee00 INFO GST_STATES gstbin.c:2638:gst_bin_element_set_state: skipping transition from NULL to NULL 0:00:00.562421173 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 1(NULL) successfully 0:00:00.562459818 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL 0:00:00.562492422 4430 0x33ee00 INFO GST_STATES gstbin.c:2638:gst_bin_element_set_state: skipping transition from NULL to NULL 0:00:00.562521381 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 1(NULL) successfully 0:00:00.562557474 4430 0x33ee00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL 0:00:00.562589297 4430 0x33ee00 INFO GST_STATES gstbin.c:2638:gst_bin_element_set_state: skipping transition from NULL to NULL 0:00:00.562618463 4430 0x33ee00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 1(NULL) successfully 0:00:00.562661849 4430 0x33ee00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL Freeing pipeline ... 0:00:00.562732056 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking x264enc0:src(0x4aa578) and capsfilter1:sink(0x4aa968) 0:00:00.562795806 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked x264enc0:src and capsfilter1:sink 0:00:00.562845910 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter1:src(0x4aaab8) and kvssink0:video_0(0x4aac08) 0:00:00.562896014 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter1:src and kvssink0:video_0 0:00:00.562941639 4430 0x33ee00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "capsfilter1" 0:00:00.562999190 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking videoconvert0:src(0x4aa2d8) and capsfilter0:sink(0x4aa6c8) 0:00:00.563046846 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked videoconvert0:src and capsfilter0:sink 0:00:00.563093617 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter0:src(0x4aa818) and x264enc0:sink(0x4aa428) 0:00:00.563140231 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter0:src and x264enc0:sink 0:00:00.563183929 4430 0x33ee00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "capsfilter0" 0:00:00.563232314 4430 0x33ee00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "kvssink0" 0:00:00.563279658 4430 0x33ee00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "x264enc0" 0:00:00.563324553 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking v4l2src0:src(0x4aa038) and videoconvert0:sink(0x4aa188) 0:00:00.563371532 4430 0x33ee00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked v4l2src0:src and videoconvert0:sink 0:00:00.563420490 4430 0x33ee00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "videoconvert0" 0:00:00.563478979 4430 0x33ee00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "v4l2src0" 0:00:00.563520906 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x4a60a0 dispose 0:00:00.563553198 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:00.563618510 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x4a60a0 parent class dispose 0:00:00.563657312 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x4a60a0 finalize 0:00:00.563687155 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x4a60a0 finalize parent 0:00:00.563718249 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x4df078 dispose 0:00:00.563748405 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x4dc078 dispose 0:00:00.563793300 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'video_0' 0:00:00.563830748 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x4dc078 parent class dispose INFO - Freeing Kinesis Video Stream YourStreamName3 2020-02-13 13:37:16 [1995792384] INFO - freeKinesisVideoStream(): Freeing Kinesis Video stream. 2020-02-13 13:37:16 [1995792384] WARN - curlApiCallbacksShutdownActiveRequests(): pActiveRequests hashtable is empty 2020-02-13 13:37:16 [1995792384] DEBUG - defaultStreamShutdownCallback(): Reported streamShutdown callback for stream handle 5253989 0:00:00.964544962 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x4dc078 finalize 0:00:00.964668659 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x4dc078 finalize parent 0:00:00.964787096 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x4e4378 dispose 0:00:00.964936418 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:00.965037667 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:00.965123188 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x4e4378 parent class dispose 0:00:00.965196729 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x4e4378 finalize 0:00:00.965263604 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x4e4378 finalize parent 0:00:00.965342509 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x4b4200 dispose 0:00:00.965409957 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:00.965493654 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:00.965575425 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x4b4200 parent class dispose 0:00:00.965657247 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x4b4200 finalize 0:00:00.965724278 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x4b4200 finalize parent 0:00:00.965808653 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x4e4148 dispose 0:00:00.965876881 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:00.965960943 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:00.966042766 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x4e4148 parent class dispose 0:00:00.966114693 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x4e4148 finalize 0:00:00.966181255 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x4e4148 finalize parent 0:00:00.966257140 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x4ae260 dispose 0:00:00.966324379 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:00.966405733 4430 0x33ee00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:00.966487815 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x4ae260 parent class dispose 0:00:00.966560888 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x4ae260 finalize 0:00:00.966627658 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x4ae260 finalize parent 0:00:00.966811147 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x4df078 parent class dispose 0:00:00.966895990 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x4df078 finalize 0:00:00.966963386 4430 0x33ee00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x4df078 finalize parent 0:00:00.967038021 4430 0x33ee00 INFO GST_INIT gst.c:989:gst_deinit: deinitializing GStreamer 0:00:00.987673999 4430 0x33ee00 INFO GST_INIT gst.c:1130:gst_deinit: deinitialized GStreamer

COMMAND gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=llllllllllllll storage-size=128 access-key=llllllllllll secret-key=llllllllllllllllllllllllllllll aws-region="us-east-1"

LOG 0:00:00.000492236 4477 0xba4e00 INFO GST_INIT gst.c:510:init_pre: Initializing GStreamer Core Library version 1.10.4 0:00:00.000867026 4477 0xba4e00 INFO GST_INIT gst.c:511:init_pre: Using library installed in /usr/lib/arm-linux-gnueabihf 0:00:00.001059525 4477 0xba4e00 INFO GST_INIT gst.c:522:init_pre: Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l 0:00:00.002689307 4477 0xba4e00 INFO GST_INIT gstmessage.c:126:_priv_gst_message_initialize: init messages 0:00:00.005833923 4477 0xba4e00 INFO GST_INIT gstcontext.c:83:_priv_gst_context_initialize: init contexts 0:00:00.008015108 4477 0xba4e00 INFO GST_PLUGIN_LOADING gstplugin.c:316:_priv_gst_plugin_initialize: registering 0 static plugins 0:00:00.008714219 4477 0xba4e00 INFO GST_PLUGIN_LOADING gstplugin.c:224:gst_plugin_register_static: registered static plugin "staticelements" 0:00:00.008840520 4477 0xba4e00 INFO GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: added static plugin "staticelements", result: 1 0:00:00.009063383 4477 0xba4e00 INFO GST_REGISTRY gstregistry.c:1738:ensure_current_registry: reading registry cache: /home/pi/.cache/gstreamer-1.0/registry.arm.bin 0:00:00.134726751 4477 0xba4e00 INFO GST_REGISTRY gstregistrybinary.c:619:priv_gst_registry_binary_read_cache: loaded /home/pi/.cache/gstreamer-1.0/registry.arm.bin in 0.125502 seconds 0:00:00.135002010 4477 0xba4e00 INFO GST_REGISTRY gstregistry.c:1594:scan_and_update_registry: Validating plugins from registry cache: /home/pi/.cache/gstreamer-1.0/registry.arm.bin 0:00:00.147756153 4477 0xba4e00 INFO GST_REGISTRY gstregistry.c:1696:scan_and_update_registry: Registry cache has not changed 0:00:00.147826986 4477 0xba4e00 INFO GST_REGISTRY gstregistry.c:1773:ensure_current_registry: registry reading and updating done, result = 1 0:00:00.147862663 4477 0xba4e00 INFO GST_INIT gst.c:720:init_post: GLib runtime version: 2.50.3 0:00:00.147898652 4477 0xba4e00 INFO GST_INIT gst.c:722:init_post: GLib headers version: 2.50.3 0:00:00.147926777 4477 0xba4e00 INFO GST_INIT gst.c:723:init_post: initialized GStreamer successfully 0:00:00.148071151 4477 0xba4e00 INFO GST_PIPELINE gstparse.c:325:gst_parse_launch_full: parsing pipeline description 'v4l2src device=/dev/video1 ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName3 storage-size=128 access-key=llllllllllllllll secret-key=llllllllllllllllllllllllllllll aws-region=us-east-1 ' 0:00:00.159030305 4477 0xba4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideo4linux2.so" loaded 0:00:00.159113742 4477 0xba4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "v4l2src" 0:00:00.162282421 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseSrc@0xd0c0a0 adding pad 'src' 0:00:00.163242988 4477 0xba4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideoconvert.so" loaded 0:00:00.163321321 4477 0xba4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "videoconvert" 0:00:00.164161160 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0xd14260 adding pad 'sink' 0:00:00.164236212 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0xd14260 adding pad 'src' 0:00:00.165258289 4477 0xba4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideoscale.so" loaded 0:00:00.165352455 4477 0xba4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "videoscale" 0:00:00.166028857 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0xd1c2d8 adding pad 'sink' 0:00:00.166279741 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0xd1c2d8 adding pad 'src' 0:00:00.171527210 4477 0xba4e00 INFO x264enc gstx264enc.c:2741:plugin_init: x264 build: 148 0:00:00.171857729 4477 0xba4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstx264.so" loaded 0:00:00.171934603 4477 0xba4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "x264enc" 0:00:00.172824650 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0xd1e8f8 adding pad 'sink' 0:00:00.172964181 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0xd1e8f8 adding pad 'src' 0:00:00.246810877 4477 0xba4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/home/pi/Kinesis/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/libgstkvssink.so" loaded 0:00:00.246903064 4477 0xba4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "kvssink" 0:00:00.247749882 4477 0xba4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "pipeline" 0:00:00.248112120 4477 0xba4e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstV4l2Src named v4l2src0 to some pad of GstVideoConvert named videoconvert0 (0/0) with caps "(NULL)" 0:00:00.248175557 4477 0xba4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element videoconvert0:(any) 0:00:00.248221390 4477 0xba4e00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.248300660 4477 0xba4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.251241997 4477 0xba4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: v4l2src0 and videoconvert0 in same bin, no need for ghost pads 0:00:00.251328350 4477 0xba4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.251393402 4477 0xba4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.254105574 4477 0xba4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked v4l2src0:src and videoconvert0:sink, successful 0:00:00.254147917 4477 0xba4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.254178438 4477 0xba4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.254236771 4477 0xba4e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstVideoConvert named videoconvert0 to some pad of GstVideoScale named videoscale0 (0/0) with caps "(NULL)" 0:00:00.254290572 4477 0xba4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element videoconvert0:(any) to element videoscale0:(any) 0:00:00.254334843 4477 0xba4e00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link videoconvert0:src and videoscale0:sink 0:00:00.256122593 4477 0xba4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.261053918 4477 0xba4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: videoconvert0 and videoscale0 in same bin, no need for ghost pads 0:00:00.261194334 4477 0xba4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link videoconvert0:src and videoscale0:sink 0:00:00.263121405 4477 0xba4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.267974293 4477 0xba4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked videoconvert0:src and videoscale0:sink, successful 0:00:00.268032105 4477 0xba4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.268062157 4477 0xba4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.268122053 4477 0xba4e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstVideoScale named videoscale0 to some pad of GstX264Enc named x264enc0 (0/0) with caps "video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)5/1" 0:00:00.270097041 4477 0xba4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstcoreelements.so" loaded 0:00:00.270168134 4477 0xba4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.270451831 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0xd4e168 adding pad 'sink' 0:00:00.270518861 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0xd4e168 adding pad 'src' 0:00:00.270576622 4477 0xba4e00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.270673027 4477 0xba4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.270722402 4477 0xba4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.270760058 4477 0xba4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element videoscale0:(any) to element capsfilter0:sink 0:00:00.270798495 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:sink 0:00:00.270831308 4477 0xba4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: videoscale0 and capsfilter0 in same bin, no need for ghost pads 0:00:00.270887609 4477 0xba4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link videoscale0:src and capsfilter0:sink 0:00:00.283000610 4477 0xba4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.283178161 4477 0xba4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked videoscale0:src and capsfilter0:sink, successful 0:00:00.283248213 4477 0xba4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.283286442 4477 0xba4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.283357379 4477 0xba4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter0:src to element x264enc0:(any) 0:00:00.283403056 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:src 0:00:00.283446493 4477 0xba4e00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link capsfilter0:src and x264enc0:sink 0:00:00.296261313 4477 0xba4e00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.296416468 4477 0xba4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter0 and x264enc0 in same bin, no need for ghost pads 0:00:00.296493499 4477 0xba4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter0:src and x264enc0:sink 0:00:00.308409313 4477 0xba4e00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.308512542 4477 0xba4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter0:src and x264enc0:sink, successful 0:00:00.308556500 4477 0xba4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.308590510 4477 0xba4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.308651083 4477 0xba4e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstX264Enc named x264enc0 to some pad of GstKvsSink named kvssink0 (0/0) with caps "video/x-h264, stream-format=(string)avc, alignment=(string)au" 0:00:00.308733530 4477 0xba4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.308845405 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0xd4e398 adding pad 'sink' 0:00:00.308907383 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0xd4e398 adding pad 'src' 0:00:00.308964362 4477 0xba4e00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.309052383 4477 0xba4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.309094570 4477 0xba4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.309129257 4477 0xba4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element x264enc0:(any) to element capsfilter1:sink 0:00:00.309165246 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:sink 0:00:00.309197538 4477 0xba4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: x264enc0 and capsfilter1 in same bin, no need for ghost pads 0:00:00.309281183 4477 0xba4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link x264enc0:src and capsfilter1:sink 0:00:00.309346391 4477 0xba4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.309396391 4477 0xba4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked x264enc0:src and capsfilter1:sink, successful 0:00:00.309432537 4477 0xba4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.309462068 4477 0xba4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.309504828 4477 0xba4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter1:src to element kvssink0:(any) 0:00:00.309540036 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:src 0:00:00.309709827 4477 0xba4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad: adding pad 'video_0' 0:00:00.309744670 4477 0xba4e00 INFO kvssink gstkvssink.cpp:1236:gst_kvs_sink_request_new_pad: Added new request pad 0:00:00.309794826 4477 0xba4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter1 and kvssink0 in same bin, no need for ghost pads 0:00:00.309838055 4477 0xba4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter1:src and kvssink0:video_0 0:00:00.309927429 4477 0xba4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter1:src and kvssink0:video_0, successful 0:00:00.309962065 4477 0xba4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.309988992 4477 0xba4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding Setting pipeline to PAUSED ... 0:00:00.310204667 4477 0xba4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY log4cplus:ERROR could not open file ./kvs_log_configuration INFO - createKinesisVideoClient(): Creating Kinesis Video Client 2020-02-13 13:39:01 [1996115968] INFO - heapInitialize(): Initializing native heap with limit size 134217728, spill ratio 0% and flags 0x00000001 2020-02-13 13:39:01 [1996115968] INFO - heapInitialize(): Creating AIV heap. 2020-02-13 13:39:01 [1996115968] INFO - heapInitialize(): Heap is initialized OK 2020-02-13 13:39:01 [1996115968] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-13 13:39:01 [1996115968] DEBUG - getSecurityTokenHandler invoked 2020-02-13 13:39:01 [1996115968] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is: 1581629941041236815 Expiration: 0 2020-02-13 13:39:01 [1996115968] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000010 2020-02-13 13:39:01 [1996115968] INFO - createDeviceResultEvent(): Create device result event. 2020-02-13 13:39:01 [1996115968] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-13 13:39:01 [1996115968] DEBUG - clientReadyHandler invoked 2020-02-13 13:39:01 [1996115968] INFO - try creating stream 2020-02-13 13:39:01 [1996115968] INFO - Creating Kinesis Video Stream YourStreamName3 2020-02-13 13:39:01 [1996115968] INFO - createKinesisVideoStream(): Creating Kinesis Video Stream. 2020-02-13 13:39:01 [1996115968] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-13 13:39:01 [1996115968] INFO - writeHeaderCallback(): RequestId: 73fe4f8e-2dd9-4fab-81f1-864286cce789 2020-02-13 13:39:01 [1828865136] DEBUG - describeStreamCurlHandler(): DescribeStream API response: {"StreamInfo":{"CreationTime":1.581605902608E9,"DataRetentionInHours":2,"DeviceName":"Kinesis_Video_Device","KmsKeyId":"arn:aws:kms:us-east-1:132756671989:alias/aws/kinesisvideo","MediaType":"video/h264","Status":"ACTIVE","StreamARN":"arn:aws:kinesisvideo:us-east-1:132756671989:stream/YourStreamName3/1581605902608","StreamName":"YourStreamName3","Version":"GODOQ7ZFH1sm2KkoDivr"}} 2020-02-13 13:39:01 [1828865136] INFO - describeStreamResultEvent(): Describe stream result event. 2020-02-13 13:39:01 [1828865136] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000020 2020-02-13 13:39:01 [1828865136] INFO - writeHeaderCallback(): RequestId: 459ff482-7ab3-4ae1-b040-70c3a5624864 2020-02-13 13:39:01 [1818223728] DEBUG - getStreamingEndpointCurlHandler(): GetStreamingEndpoint API response: {"DataEndpoint":"https://s-1e415f8b.kinesisvideo.us-east-1.amazonaws.com"} 2020-02-13 13:39:01 [1818223728] INFO - getStreamingEndpointResultEvent(): Get streaming endpoint result event. 2020-02-13 13:39:01 [1818223728] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000020, Next state: 0x0000000000000010 2020-02-13 13:39:01 [1818223728] DEBUG - getStreamingTokenHandler invoked 2020-02-13 13:39:01 [1818223728] DEBUG - Refreshing credentials. Force refreshing: 1 Now time is: 1581629941378444394 Expiration: 18446744073709551615 2020-02-13 13:39:01 [1818223728] INFO - getStreamingTokenResultEvent(): Get streaming token result event. 2020-02-13 13:39:01 [1818223728] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-13 13:39:01 [1818223728] DEBUG - defaultStreamReadyCallback(): Reported streamReady callback for stream handle 14080973 2020-02-13 13:39:01 [1818223728] DEBUG - streamReadyHandler invoked 2020-02-13 13:39:01 [1818223728] Stream is ready 0:00:00.657676925 4477 0xba4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.657742029 4477 0xba4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.657855101 4477 0xba4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 2(READY) successfully 0:00:00.657919059 4477 0xba4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.657958330 4477 0xba4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.657985830 4477 0xba4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.658028694 4477 0xba4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 2(READY) successfully 0:00:00.658069527 4477 0xba4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.658105829 4477 0xba4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.658132964 4477 0xba4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.658173068 4477 0xba4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 2(READY) successfully 0:00:00.658213068 4477 0xba4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.658247547 4477 0xba4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.658274630 4477 0xba4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.658315776 4477 0xba4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 2(READY) successfully 0:00:00.658355567 4477 0xba4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.658389994 4477 0xba4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.658417494 4477 0xba4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.658457025 4477 0xba4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videosca

chehefen commented 4 years ago

log says it couldn't identify /dev/video1 0:00:00.560516079 4430 0x33ee00 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details:<v4l2src0> posting message: Cannot identify device '/dev/video1'. can you try run gst-device-monitor-1.0 and see what it prints?

istranic commented 4 years ago

Hi,

I'm so sorry for the mistake. I accidentally unplugged the camera. This time it's plugged in, and i verified that the came works works by displaying a feed on my screen using gstreamer.

Attached are the error logs for when I try to stream to KVS using the commands discussed previously.

On Thu, Feb 13, 2020 at 4:54 PM chehefen notifications@github.com wrote:

log says it couldn't identify /dev/video1 0:00:00.560516079 4430 0x33ee00 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details: posting message: Cannot identify device '/dev/video1'. can you try run gst-device-monitor-1.0 and see what it prints?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/343?email_source=notifications&email_token=AFOQTV25IWF3PMAFGHTQAATRCW6QRA5CNFSM4KUVMWC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELWYCEQ#issuecomment-585990418, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOQTV7RRCYHEGXC75PVMQDRCW6QRANCNFSM4KUVMWCQ .

-- Ivo Stranic Stanford University

COMMAND gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! video/x-raw,width=160,height=120,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName3 storage-size=128 access-key=lllllllllllllllll secret-key=lllllllllllllllllll aws-region="us-east-1"

LOG 0:00:00.000404267 4813 0xed4e00 INFO GST_INIT gst.c:510:init_pre: Initializing GStreamer Core Library version 1.10.4 0:00:00.000725202 4813 0xed4e00 INFO GST_INIT gst.c:511:init_pre: Using library installed in /usr/lib/arm-linux-gnueabihf 0:00:00.000810879 4813 0xed4e00 INFO GST_INIT gst.c:522:init_pre: Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l 0:00:00.002469044 4813 0xed4e00 INFO GST_INIT gstmessage.c:126:_priv_gst_message_initialize: init messages 0:00:00.005530844 4813 0xed4e00 INFO GST_INIT gstcontext.c:83:_priv_gst_context_initialize: init contexts 0:00:00.007714109 4813 0xed4e00 INFO GST_PLUGIN_LOADING gstplugin.c:316:_priv_gst_plugin_initialize: registering 0 static plugins 0:00:00.008426656 4813 0xed4e00 INFO GST_PLUGIN_LOADING gstplugin.c:224:gst_plugin_register_static: registered static plugin "staticelements" 0:00:00.008507906 4813 0xed4e00 INFO GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: added static plugin "staticelements", result: 1 0:00:00.008668321 4813 0xed4e00 INFO GST_REGISTRY gstregistry.c:1738:ensure_current_registry: reading registry cache: /home/pi/.cache/gstreamer-1.0/registry.arm.bin 0:00:00.150725087 4813 0xed4e00 INFO GST_REGISTRY gstregistrybinary.c:619:priv_gst_registry_binary_read_cache: loaded /home/pi/.cache/gstreamer-1.0/registry.arm.bin in 0.141943 seconds 0:00:00.150988783 4813 0xed4e00 INFO GST_REGISTRY gstregistry.c:1594:scan_and_update_registry: Validating plugins from registry cache: /home/pi/.cache/gstreamer-1.0/registry.arm.bin 0:00:00.163471347 4813 0xed4e00 INFO GST_REGISTRY gstregistry.c:1696:scan_and_update_registry: Registry cache has not changed 0:00:00.163543222 4813 0xed4e00 INFO GST_REGISTRY gstregistry.c:1773:ensure_current_registry: registry reading and updating done, result = 1 0:00:00.163578742 4813 0xed4e00 INFO GST_INIT gst.c:720:init_post: GLib runtime version: 2.50.3 0:00:00.163612701 4813 0xed4e00 INFO GST_INIT gst.c:722:init_post: GLib headers version: 2.50.3 0:00:00.163641971 4813 0xed4e00 INFO GST_INIT gst.c:723:init_post: initialized GStreamer successfully 0:00:00.163787908 4813 0xed4e00 INFO GST_PIPELINE gstparse.c:325:gst_parse_launch_full: parsing pipeline description 'v4l2src device=/dev/video1 ! videoconvert ! video/x-raw,width=160,height=120,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName3 storage-size=128 access-key=lllllllllll secret-key=lllllllllllllllllllll aws-region=us-east-1 ' 0:00:00.350634917 4813 0xed4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideo4linux2.so" loaded 0:00:00.350721062 4813 0xed4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "v4l2src" 0:00:00.353788331 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseSrc@0x10400a0 adding pad 'src' 0:00:00.354688689 4813 0xed4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideoconvert.so" loaded 0:00:00.354744418 4813 0xed4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "videoconvert" 0:00:00.355524776 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x1046260 adding pad 'sink' 0:00:00.355591026 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x1046260 adding pad 'src' 0:00:00.358998605 4813 0xed4e00 INFO x264enc gstx264enc.c:2741:plugin_init: x264 build: 148 0:00:00.359191364 4813 0xed4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstx264.so" loaded 0:00:00.359236832 4813 0xed4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "x264enc" 0:00:00.359966515 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x104b008 adding pad 'sink' 0:00:00.360033493 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x104b008 adding pad 'src' 0:00:00.431759111 4813 0xed4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/home/pi/Kinesis/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/libgstkvssink.so" loaded 0:00:00.431851402 4813 0xed4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "kvssink" 0:00:00.432661396 4813 0xed4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "pipeline" 0:00:00.433003945 4813 0xed4e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstV4l2Src named v4l2src0 to some pad of GstVideoConvert named videoconvert0 (0/0) with caps "(NULL)" 0:00:00.433066966 4813 0xed4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element videoconvert0:(any) 0:00:00.433108580 4813 0xed4e00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.433186756 4813 0xed4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.436032985 4813 0xed4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: v4l2src0 and videoconvert0 in same bin, no need for ghost pads 0:00:00.436097881 4813 0xed4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.436154287 4813 0xed4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.438899162 4813 0xed4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked v4l2src0:src and videoconvert0:sink, successful 0:00:00.438943954 4813 0xed4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.438974630 4813 0xed4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.439029630 4813 0xed4e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstVideoConvert named videoconvert0 to some pad of GstX264Enc named x264enc0 (0/0) with caps "video/x-raw, width=(int)160, height=(int)120, framerate=(fraction)5/1" 0:00:00.440941231 4813 0xed4e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstcoreelements.so" loaded 0:00:00.441016438 4813 0xed4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.441303884 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x107a148 adding pad 'sink' 0:00:00.441375238 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x107a148 adding pad 'src' 0:00:00.441434456 4813 0xed4e00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.441534976 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.441583778 4813 0xed4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.441622684 4813 0xed4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element videoconvert0:(any) to element capsfilter0:sink 0:00:00.441660131 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:sink 0:00:00.441695027 4813 0xed4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: videoconvert0 and capsfilter0 in same bin, no need for ghost pads 0:00:00.441747006 4813 0xed4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link videoconvert0:src and capsfilter0:sink 0:00:00.443667408 4813 0xed4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.443746783 4813 0xed4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked videoconvert0:src and capsfilter0:sink, successful 0:00:00.443783605 4813 0xed4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.443812459 4813 0xed4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.443859594 4813 0xed4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter0:src to element x264enc0:(any) 0:00:00.443894490 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:src 0:00:00.443931886 4813 0xed4e00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link capsfilter0:src and x264enc0:sink 0:00:00.445995985 4813 0xed4e00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.446087495 4813 0xed4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter0 and x264enc0 in same bin, no need for ghost pads 0:00:00.446137598 4813 0xed4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter0:src and x264enc0:sink 0:00:00.448250135 4813 0xed4e00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.448411748 4813 0xed4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter0:src and x264enc0:sink, successful 0:00:00.448467008 4813 0xed4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.448501331 4813 0xed4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.448564924 4813 0xed4e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstX264Enc named x264enc0 to some pad of GstKvsSink named kvssink0 (0/0) with caps "video/x-h264, stream-format=(string)avc, alignment=(string)au" 0:00:00.448648986 4813 0xed4e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.448762319 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x107a378 adding pad 'sink' 0:00:00.448831172 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x107a378 adding pad 'src' 0:00:00.448892266 4813 0xed4e00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.448981432 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.449028254 4813 0xed4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.449066119 4813 0xed4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element x264enc0:(any) to element capsfilter1:sink 0:00:00.449103410 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:sink 0:00:00.449136274 4813 0xed4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: x264enc0 and capsfilter1 in same bin, no need for ghost pads 0:00:00.449184868 4813 0xed4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link x264enc0:src and capsfilter1:sink 0:00:00.449256846 4813 0xed4e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.449307419 4813 0xed4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked x264enc0:src and capsfilter1:sink, successful 0:00:00.449342002 4813 0xed4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.449370960 4813 0xed4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.449413199 4813 0xed4e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter1:src to element kvssink0:(any) 0:00:00.449448824 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:src 0:00:00.449621687 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad: adding pad 'video_0' 0:00:00.449658770 4813 0xed4e00 INFO kvssink gstkvssink.cpp:1236:gst_kvs_sink_request_new_pad: Added new request pad 0:00:00.449710333 4813 0xed4e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter1 and kvssink0 in same bin, no need for ghost pads 0:00:00.449754916 4813 0xed4e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter1:src and kvssink0:video_0 0:00:00.449843977 4813 0xed4e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter1:src and kvssink0:video_0, successful 0:00:00.449878717 4813 0xed4e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.449904967 4813 0xed4e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding Setting pipeline to PAUSED ... 0:00:00.450118350 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY log4cplus:ERROR could not open file ./kvs_log_configuration INFO - createKinesisVideoClient(): Creating Kinesis Video Client 2020-02-13 14:04:37 [1995546624] INFO - heapInitialize(): Initializing native heap with limit size 134217728, spill ratio 0% and flags 0x00000001 2020-02-13 14:04:37 [1995546624] INFO - heapInitialize(): Creating AIV heap. 2020-02-13 14:04:37 [1995546624] INFO - heapInitialize(): Heap is initialized OK 2020-02-13 14:04:37 [1995546624] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-13 14:04:37 [1995546624] DEBUG - getSecurityTokenHandler invoked 2020-02-13 14:04:37 [1995546624] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is: 1581631477840940978 Expiration: 0 2020-02-13 14:04:37 [1995546624] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000010 2020-02-13 14:04:37 [1995546624] INFO - createDeviceResultEvent(): Create device result event. 2020-02-13 14:04:37 [1995546624] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-13 14:04:37 [1995546624] DEBUG - clientReadyHandler invoked 2020-02-13 14:04:37 [1995546624] INFO - try creating stream 2020-02-13 14:04:37 [1995546624] INFO - Creating Kinesis Video Stream YourStreamName3 2020-02-13 14:04:37 [1995546624] INFO - createKinesisVideoStream(): Creating Kinesis Video Stream. 2020-02-13 14:04:37 [1995546624] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-13 14:04:37 [1995546624] INFO - writeHeaderCallback(): RequestId: d9433e00-5cc7-4ed3-8c70-abac7ab36af1 2020-02-13 14:04:38 [1828394096] DEBUG - describeStreamCurlHandler(): DescribeStream API response: {"StreamInfo":{"CreationTime":1.581605902608E9,"DataRetentionInHours":2,"DeviceName":"Kinesis_Video_Device","KmsKeyId":"arn:aws:kms:us-east-1:132756671989:alias/aws/kinesisvideo","MediaType":"video/h264","Status":"ACTIVE","StreamARN":"arn:aws:kinesisvideo:us-east-1:132756671989:stream/YourStreamName3/1581605902608","StreamName":"YourStreamName3","Version":"GODOQ7ZFH1sm2KkoDivr"}} 2020-02-13 14:04:38 [1828394096] INFO - describeStreamResultEvent(): Describe stream result event. 2020-02-13 14:04:38 [1828394096] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000020 2020-02-13 14:04:38 [1828394096] INFO - writeHeaderCallback(): RequestId: f8a2bbcc-a099-4223-8d3b-59098b19ddca 2020-02-13 14:04:38 [1818059888] DEBUG - getStreamingEndpointCurlHandler(): GetStreamingEndpoint API response: {"DataEndpoint":"https://s-1e415f8b.kinesisvideo.us-east-1.amazonaws.com"} 2020-02-13 14:04:38 [1818059888] INFO - getStreamingEndpointResultEvent(): Get streaming endpoint result event. 2020-02-13 14:04:38 [1818059888] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000020, Next state: 0x0000000000000010 2020-02-13 14:04:38 [1818059888] DEBUG - getStreamingTokenHandler invoked 2020-02-13 14:04:38 [1818059888] DEBUG - Refreshing credentials. Force refreshing: 1 Now time is: 1581631478189163465 Expiration: 18446744073709551615 2020-02-13 14:04:38 [1818059888] INFO - getStreamingTokenResultEvent(): Get streaming token result event. 2020-02-13 14:04:38 [1818059888] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-13 14:04:38 [1818059888] DEBUG - defaultStreamReadyCallback(): Reported streamReady callback for stream handle 17406557 2020-02-13 14:04:38 [1818059888] DEBUG - streamReadyHandler invoked 2020-02-13 14:04:38 [1818059888] Stream is ready 0:00:00.807189887 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.807269261 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.807386969 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 2(READY) successfully 0:00:00.807455301 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.807493791 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.807521968 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.807565874 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 2(READY) successfully 0:00:00.807607384 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.807643790 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.807671706 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.807712904 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 2(READY) successfully 0:00:00.807757539 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.807792799 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.807820767 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.807860819 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 2(READY) successfully 0:00:00.807904725 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.807939412 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.807966808 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.808008318 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 2(READY) successfully 0:00:00.808047224 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.809570130 4813 0xed4e00 INFO v4l2 v4l2_calls.c:592:gst_v4l2_open: Opened device 'PureThermal 1: PureThermal 1' (/dev/video1) successfully 0:00:00.809676379 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.809709556 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.809774868 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 2(READY) successfully 0:00:00.809833669 4813 0xed4e00 INFO GST_STATES gstelement.c:2394:gst_element_continue_state: committing state from NULL to READY, pending PAUSED, next PAUSED 0:00:00.809868513 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (PAUSED pending) 0:00:00.809968929 4813 0xed4e00 INFO GST_STATES gstelement.c:2401:gst_element_continue_state: continue state change READY to PAUSED, final PAUSED 0:00:00.810054449 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.810140907 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.810171323 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.810216323 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 3(PAUSED) successfully 0:00:00.810258302 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.810306739 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.810334499 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.810375436 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 3(PAUSED) successfully 0:00:00.810415123 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.810466008 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.810493925 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.810535070 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 3(PAUSED) successfully 0:00:00.810574810 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.810618664 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.810646528 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.810687621 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 3(PAUSED) successfully 0:00:00.810728350 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.810772881 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.810800641 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.810842412 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 3(PAUSED) successfully 0:00:00.810880068 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.810932932 4813 0xed4e00 INFO basesrc gstbasesrc.c:1343:gst_base_src_do_seek: seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999 0:00:00.811052046 4813 0xed4e00 INFO task gsttask.c:456:gst_task_set_lock: setting stream lock 0x103d084 on task 0x10a4828 0:00:00.811084546 4813 0xed4e00 INFO GST_PADS gstpad.c:5998:gst_pad_start_task: created task 0x10a4828 0:00:00.811241263 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.811309283 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.811353137 4813 0xed4e00 INFO GST_STATES gstbin.c:3012:gst_bin_change_state_func: child 'v4l2src0' changed state to 3(PAUSED) successfully without preroll 0:00:00.811378398 4813 0x1035b80 INFO GST_ELEMENT_PADS gstelement.c:913:gst_element_get_static_pad: no such pad 'sink' in element "v4l2src0" 0:00:00.811400949 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.811485949 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) Pipeline is live and does not need PREROLL ... 0:00:00.811666520 4813 0x1035b80 INFO v4l2 gstv4l2object.c:1150:gst_v4l2_object_fill_format_list: got 8 format(s): 0:00:00.811699749 4813 0x1035b80 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: UYVY 0:00:00.811738187 4813 0x1035b80 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: BGR3 0:00:00.811772405 4813 0x1035b80 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: RGBP 0:00:00.811802196 4813 0x1035b80 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: GREY 0:00:00.811832040 4813 0x1035b80 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: YU12 (emulated) 0:00:00.811861988 4813 0x1035b80 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: YV12 (emulated) 0:00:00.811893081 4813 0x1035b80 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: RGB3 (emulated) 0:00:00.811922716 4813 0x1035b80 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: Y16 Setting pipeline to PLAYING ... 0:00:00.812901876 4813 0xed4e00 WARN v4l2src gstv4l2src.c:565:gst_v4l2src_query: Can't give latency since framerate isn't fixated ! 0:00:00.812970677 4813 0xed4e00 INFO GST_EVENT gstevent.c:1382:gst_event_new_latency: creating latency event 0:00:00.000000000 0:00:00.813035052 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:1564:gst_element_default_send_event: can't send latency event on element kvssink0 0:00:00.813088125 4813 0xed4e00 WARN bin gstbin.c:2802:gst_bin_do_latency_func: did not really configure latency of 0:00:00.000000000 0:00:00.813166405 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.813236769 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.813267029 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.813316248 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 4(PLAYING) successfully 0:00:00.813357602 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.813393383 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.813422132 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.813463799 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 4(PLAYING) successfully 0:00:00.813504007 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.813540100 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.813568381 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.813608798 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 4(PLAYING) successfully 0:00:00.813651662 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.813687131 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.813715516 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.813757078 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 4(PLAYING) successfully 0:00:00.813798901 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.813834629 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.813862806 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.813903535 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 4(PLAYING) successfully 0:00:00.813953847 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.813982233 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.814023534 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 4(PLAYING) successfully 0:00:00.814065357 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.814093378 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) New clock: GstSystemClock 0:00:01.345777273 4813 0x1035b80 INFO v4l2 gstv4l2object.c:3927:gst_v4l2_object_get_caps: probed caps: video/x-raw, format=(string)UYVY, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)BGR, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)BGR, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB16, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ sRGB }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY8, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)I420, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)I420, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)YV12, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)YV12, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)RGB, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1 0:00:01.346780599 4813 0x1035b80 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:01.347333512 4813 0x1035b80 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:01.349155426 4813 0x1035b80 WARN basesrc gstbasesrc.c:2950:gst_base_src_loop: error: Internal data stream error. 0:00:01.349221675 4813 0x1035b80 WARN basesrc gstbasesrc.c:2950:gst_base_src_loop: error: streaming stopped, reason not-negotiated (-4) 0:00:01.349375632 4813 0x1035b80 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details: posting message: Internal data stream error. 0:00:01.349595110 4813 0x1035b80 INFO GST_ERROR_SYSTEM gstelement.c:1917:gst_element_message_full_with_details: posted error message: Internal data stream error. ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Additional debug info: gstbasesrc.c(2950): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason not-negotiated (-4) INFO - stopKinesisVideoStreamSync(): Synchronously stopping Kinesis Video Stream 0000000001099a5d. Execution ended after 0:00:00.535790845 2020-02-13 14:04:38Setting pipeline to PAUSED ... [1826616432] DEBUG - defaultStreamClosedCallback(): Reported streamClosed callback for stream handle 17406557. Upload handle 18446744073709551615 0:00:01.350205470 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 2020-02-13 14:04:38 [1826616432] DEBUG - streamClosedHandler invoked for upload handle: 18446744073709551615 0:00:01.350322969 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 2020-02-13 14:04:38 [1826616432] DEBUG - Reported streamClosed callback for stream handle 17406557. Upload handle 18446744073709551615 0:00:01.350394583 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 2020-02-13 14:04:38 [1826616432] INFO - Sending eos 0:00:01.350542915 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 3(PAUSED) successfully 0:00:01.350634217 4813 0x1035b80 INFO task gsttask.c:318:gst_task_func: Task going to paused 0:00:01.350647602 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.350769841 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.350838590 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.350936454 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 3(PAUSED) successfully 0:00:01.351029318 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.351114734 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.351179525 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.351272441 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 3(PAUSED) successfully 0:00:01.351364524 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.351447700 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.351511867 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.351606293 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 3(PAUSED) successfully 0:00:01.351699157 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.351781083 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.351845718 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.351940353 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 3(PAUSED) successfully 0:00:01.352027071 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.352115872 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.352183112 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.352279465 4813 0xed4e00 INFO GST_STATES gstbin.c:3012:gst_bin_change_state_func: child 'v4l2src0' changed state to 3(PAUSED) successfully without preroll 0:00:01.352387016 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.352453318 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 2020-02-13 14:04:38 [1826616432] Setting pipeline to READY ... 0:00:01.352822221 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.352976283 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.353044876 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.353146907 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 2(READY) successfully 0:00:01.353241125 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.353359301 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.353426175 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.353522685 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 2(READY) successfully 0:00:01.353616278 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.353733673 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.353808100 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.353903047 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 2(READY) successfully 0:00:01.353994973 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.354103722 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.354169972 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.354265284 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 2(READY) successfully 0:00:01.354358825 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.354472261 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.354538511 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.354635489 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 2(READY) successfully 0:00:01.354801061 4813 0x1035b80 INFO task gsttask.c:320:gst_task_func: Task resume from paused 0:00:01.354977778 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.355051580 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.355154548 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 2(READY) successfully 0:00:01.355258245 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.355324286 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.355497046 4813 0xed4e00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state Setting pipeline to NULL ... 0:00:01.355681836 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.355815949 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.355883553 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.355978969 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 1(NULL) successfully 0:00:01.356070479 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.356170374 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.356236467 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.356331154 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 1(NULL) successfully 0:00:01.356422612 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.356520684 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.356586308 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.356682506 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 1(NULL) successfully 0:00:01.356773547 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.356870525 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.356936827 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.357031305 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 1(NULL) successfully 0:00:01.357123804 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.357220054 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.357287501 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.357385261 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 1(NULL) successfully 0:00:01.357471041 4813 0xed4e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.357802497 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.357875570 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.358030412 4813 0xed4e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 1(NULL) successfully 0:00:01.358426972 4813 0xed4e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.358497753 4813 0xed4e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) Freeing pipeline ... 0:00:01.358676710 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking x264enc0:src(0x103d578) and capsfilter1:sink(0x103d968) 0:00:01.358802854 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked x264enc0:src and capsfilter1:sink 0:00:01.358913947 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter1:src(0x103dab8) and kvssink0:video_0(0x103dc08) 0:00:01.359024884 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter1:src and kvssink0:video_0 0:00:01.359128790 4813 0xed4e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "capsfilter1" 0:00:01.359267486 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x107a378 dispose 0:00:01.359340819 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.359467016 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.359554047 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x107a378 parent class dispose 0:00:01.359627953 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x107a378 finalize 0:00:01.359695608 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x107a378 finalize parent 0:00:01.359780868 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking videoconvert0:src(0x103d2d8) and capsfilter0:sink(0x103d6c8) 0:00:01.359891024 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked videoconvert0:src and capsfilter0:sink 0:00:01.360001283 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter0:src(0x103d818) and x264enc0:sink(0x103d428) 0:00:01.360109147 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter0:src and x264enc0:sink 0:00:01.360211073 4813 0xed4e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "capsfilter0" 0:00:01.360322114 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x107a148 dispose 0:00:01.360392062 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.374755081 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.374897111 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x107a148 parent class dispose 0:00:01.374976225 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x107a148 finalize 0:00:01.375044766 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x107a148 finalize parent 0:00:01.375157786 4813 0xed4e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "kvssink0" 0:00:01.375282056 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x1073078 dispose 0:00:01.375386378 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'video_0' 0:00:01.375474294 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x1073078 parent class dispose INFO - Freeing Kinesis Video Stream YourStreamName3 2020-02-13 14:04:38 [1995546624] INFO - freeKinesisVideoStream(): Freeing Kinesis Video stream. 2020-02-13 14:04:38 [1995546624] WARN - curlApiCallbacksShutdownActiveRequests(): pActiveRequests hashtable is empty 2020-02-13 14:04:38 [1995546624] DEBUG - defaultStreamShutdownCallback(): Reported streamShutdown callback for stream handle 17406557 0:00:01.776285821 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x1073078 finalize 0:00:01.776360768 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x1073078 finalize parent 0:00:01.776440715 4813 0xed4e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "x264enc0" 0:00:01.776516236 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x104b008 dispose 0:00:01.776549048 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.776595298 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.776636599 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x104b008 parent class dispose 0:00:01.776674516 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x104b008 finalize 0:00:01.776704255 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x104b008 finalize parent 0:00:01.776747328 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking v4l2src0:src(0x103d038) and videoconvert0:sink(0x103d188) 0:00:01.776821286 4813 0xed4e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked v4l2src0:src and videoconvert0:sink 0:00:01.776876025 4813 0xed4e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "videoconvert0" 0:00:01.776922014 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x1046260 dispose 0:00:01.776953524 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.776991180 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.777027534 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x1046260 parent class dispose 0:00:01.777060242 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x1046260 finalize 0:00:01.777090242 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x1046260 finalize parent 0:00:01.777135242 4813 0xed4e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "v4l2src0" 0:00:01.777178262 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x10400a0 dispose 0:00:01.777209199 4813 0xed4e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.777247376 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x10400a0 parent class dispose 0:00:01.777283678 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x10400a0 finalize 0:00:01.777313105 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x10400a0 finalize parent 0:00:01.777344250 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x1076078 dispose 0:00:01.777444562 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x1076078 parent class dispose 0:00:01.777477947 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x1076078 finalize 0:00:01.777506905 4813 0xed4e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x1076078 finalize parent 0:00:01.777542582 4813 0xed4e00 INFO GST_INIT gst.c:989:gst_deinit: deinitializing GStreamer 0:00:01.787719955 4813 0xed4e00 INFO GST_INIT gst.c:1130:gst_deinit: deinitialized GStreamer

COMMAND gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName3 storage-size=128 access-key=lllllllllllllll secret-key=llllllll aws-region="us-east-1"

PARTIAL LOG (I couldn't see the start of the log in the terminal) 0:00:00.329321681 4846 0x129de00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "x264enc" 0:00:00.330073552 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x1418798 adding pad 'sink' 0:00:00.330135843 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x1418798 adding pad 'src' 0:00:00.404396020 4846 0x129de00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/home/pi/Kinesis/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/libgstkvssink.so" loaded 0:00:00.404488102 4846 0x129de00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "kvssink" 0:00:00.405328306 4846 0x129de00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "pipeline" 0:00:00.405671898 4846 0x129de00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstV4l2Src named v4l2src0 to some pad of GstVideoConvert named videoconvert0 (0/0) with caps "(NULL)" 0:00:00.405728252 4846 0x129de00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element videoconvert0:(any) 0:00:00.405771116 4846 0x129de00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.405843981 4846 0x129de00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.408728288 4846 0x129de00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: v4l2src0 and videoconvert0 in same bin, no need for ghost pads 0:00:00.408803652 4846 0x129de00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.408864850 4846 0x129de00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query:<videoc

istranic commented 4 years ago

Hi chehefen,

Any chance you've had an opportunity to look at the logs from my previous note.

Thanks, Ivo

On Thu, Feb 13, 2020 at 5:14 PM Ivo Stranic istranic@gmail.com wrote:

Hi,

I'm so sorry for the mistake. I accidentally unplugged the camera. This time it's plugged in, and i verified that the came works works by displaying a feed on my screen using gstreamer.

Attached are the error logs for when I try to stream to KVS using the commands discussed previously.

On Thu, Feb 13, 2020 at 4:54 PM chehefen notifications@github.com wrote:

log says it couldn't identify /dev/video1 0:00:00.560516079 4430 0x33ee00 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details: posting message: Cannot identify device '/dev/video1'. can you try run gst-device-monitor-1.0 and see what it prints?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/343?email_source=notifications&email_token=AFOQTV25IWF3PMAFGHTQAATRCW6QRA5CNFSM4KUVMWC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELWYCEQ#issuecomment-585990418, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOQTV7RRCYHEGXC75PVMQDRCW6QRANCNFSM4KUVMWCQ .

-- Ivo Stranic Stanford University

-- Ivo Stranic Stanford University

COMMAND gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName3 storage-size=128 access-key=lllllllllllllll secret-key=llllllll aws-region="us-east-1"

PARTIAL LOG (I couldn't see the start of the log in the terminal) 0:00:00.329321681 4846 0x129de00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "x264enc" 0:00:00.330073552 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x1418798 adding pad 'sink' 0:00:00.330135843 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x1418798 adding pad 'src' 0:00:00.404396020 4846 0x129de00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/home/pi/Kinesis/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/libgstkvssink.so" loaded 0:00:00.404488102 4846 0x129de00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "kvssink" 0:00:00.405328306 4846 0x129de00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "pipeline" 0:00:00.405671898 4846 0x129de00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstV4l2Src named v4l2src0 to some pad of GstVideoConvert named videoconvert0 (0/0) with caps "(NULL)" 0:00:00.405728252 4846 0x129de00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element videoconvert0:(any) 0:00:00.405771116 4846 0x129de00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.405843981 4846 0x129de00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.408728288 4846 0x129de00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: v4l2src0 and videoconvert0 in same bin, no need for ghost pads 0:00:00.408803652 4846 0x129de00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link v4l2src0:src and videoconvert0:sink 0:00:00.408864850 4846 0x129de00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.411590148 4846 0x129de00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked v4l2src0:src and videoconvert0:sink, successful 0:00:00.411633221 4846 0x129de00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.411665200 4846 0x129de00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.411717335 4846 0x129de00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstVideoConvert named videoconvert0 to some pad of GstVideoScale named videoscale0 (0/0) with caps "(NULL)" 0:00:00.411769730 4846 0x129de00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element videoconvert0:(any) to element videoscale0:(any) 0:00:00.411813168 4846 0x129de00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link videoconvert0:src and videoscale0:sink 0:00:00.413587846 4846 0x129de00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.418515423 4846 0x129de00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: videoconvert0 and videoscale0 in same bin, no need for ghost pads 0:00:00.418658808 4846 0x129de00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link videoconvert0:src and videoscale0:sink 0:00:00.420594214 4846 0x129de00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.425453355 4846 0x129de00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked videoconvert0:src and videoscale0:sink, successful 0:00:00.425511844 4846 0x129de00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.425545334 4846 0x129de00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.425609865 4846 0x129de00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstVideoScale named videoscale0 to some pad of GstX264Enc named x264enc0 (0/0) with caps "video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)5/1" 0:00:00.427598031 4846 0x129de00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstcoreelements.so" loaded 0:00:00.427671000 4846 0x129de00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.427954852 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x1448168 adding pad 'sink' 0:00:00.428022873 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x1448168 adding pad 'src' 0:00:00.428080737 4846 0x129de00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.428177768 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.428226570 4846 0x129de00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.428264538 4846 0x129de00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element videoscale0:(any) to element capsfilter0:sink 0:00:00.428302871 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:sink 0:00:00.428335527 4846 0x129de00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: videoscale0 and capsfilter0 in same bin, no need for ghost pads 0:00:00.428392142 4846 0x129de00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link videoscale0:src and capsfilter0:sink 0:00:00.440814940 4846 0x129de00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.441076345 4846 0x129de00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked videoscale0:src and capsfilter0:sink, successful 0:00:00.441153115 4846 0x129de00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.441205302 4846 0x129de00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.441295250 4846 0x129de00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter0:src to element x264enc0:(any) 0:00:00.441339208 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:src 0:00:00.441385978 4846 0x129de00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link capsfilter0:src and x264enc0:sink 0:00:00.453737579 4846 0x129de00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.453878776 4846 0x129de00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter0 and x264enc0 in same bin, no need for ghost pads 0:00:00.453953776 4846 0x129de00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter0:src and x264enc0:sink 0:00:00.465746838 4846 0x129de00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.465839806 4846 0x129de00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter0:src and x264enc0:sink, successful 0:00:00.465883504 4846 0x129de00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.465917931 4846 0x129de00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.465968295 4846 0x129de00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstX264Enc named x264enc0 to some pad of GstKvsSink named kvssink0 (0/0) with caps "video/x-h264, stream-format=(string)avc, alignment=(string)au" 0:00:00.466048034 4846 0x129de00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.466157773 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x1448398 adding pad 'sink' 0:00:00.466220221 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x1448398 adding pad 'src' 0:00:00.466277356 4846 0x129de00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.466367824 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.466412407 4846 0x129de00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.466448657 4846 0x129de00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element x264enc0:(any) to element capsfilter1:sink 0:00:00.466485740 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:sink 0:00:00.466521574 4846 0x129de00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: x264enc0 and capsfilter1 in same bin, no need for ghost pads 0:00:00.466567875 4846 0x129de00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link x264enc0:src and capsfilter1:sink 0:00:00.466657198 4846 0x129de00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.466708343 4846 0x129de00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked x264enc0:src and capsfilter1:sink, successful 0:00:00.466742562 4846 0x129de00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.466770999 4846 0x129de00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.466812197 4846 0x129de00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter1:src to element kvssink0:(any) 0:00:00.466847509 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:src 0:00:00.467018810 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad: adding pad 'video_0' 0:00:00.467054123 4846 0x129de00 INFO kvssink gstkvssink.cpp:1236:gst_kvs_sink_request_new_pad: Added new request pad 0:00:00.467103498 4846 0x129de00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter1 and kvssink0 in same bin, no need for ghost pads 0:00:00.467145633 4846 0x129de00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter1:src and kvssink0:video_0 0:00:00.467235528 4846 0x129de00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter1:src and kvssink0:video_0, successful 0:00:00.467270632 4846 0x129de00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.467297819 4846 0x129de00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding Setting pipeline to PAUSED ... 0:00:00.467518964 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY log4cplus:ERROR could not open file ./kvs_log_configuration INFO - createKinesisVideoClient(): Creating Kinesis Video Client 2020-02-13 14:06:10 [1995808768] INFO - heapInitialize(): Initializing native heap with limit size 134217728, spill ratio 0% and flags 0x00000001 2020-02-13 14:06:10 [1995808768] INFO - heapInitialize(): Creating AIV heap. 2020-02-13 14:06:10 [1995808768] INFO - heapInitialize(): Heap is initialized OK 2020-02-13 14:06:10 [1995808768] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-13 14:06:10 [1995808768] DEBUG - getSecurityTokenHandler invoked 2020-02-13 14:06:10 [1995808768] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is: 1581631570371110248 Expiration: 0 2020-02-13 14:06:10 [1995808768] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000010 2020-02-13 14:06:10 [1995808768] INFO - createDeviceResultEvent(): Create device result event. 2020-02-13 14:06:10 [1995808768] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-13 14:06:10 [1995808768] DEBUG - clientReadyHandler invoked 2020-02-13 14:06:10 [1995808768] INFO - try creating stream 2020-02-13 14:06:10 [1995808768] INFO - Creating Kinesis Video Stream YourStreamName3 2020-02-13 14:06:10 [1995808768] INFO - createKinesisVideoStream(): Creating Kinesis Video Stream. 2020-02-13 14:06:10 [1995808768] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-13 14:06:10 [1995808768] INFO - writeHeaderCallback(): RequestId: d66a2cb0-80d9-4bfb-be59-8b64aecc5498 2020-02-13 14:06:10 [1828557936] DEBUG - describeStreamCurlHandler(): DescribeStream API response: {"StreamInfo":{"CreationTime":1.581605902608E9,"DataRetentionInHours":2,"DeviceName":"Kinesis_Video_Device","KmsKeyId":"arn:aws:kms:us-east-1:132756671989:alias/aws/kinesisvideo","MediaType":"video/h264","Status":"ACTIVE","StreamARN":"arn:aws:kinesisvideo:us-east-1:132756671989:stream/YourStreamName3/1581605902608","StreamName":"YourStreamName3","Version":"GODOQ7ZFH1sm2KkoDivr"}} 2020-02-13 14:06:10 [1828557936] INFO - describeStreamResultEvent(): Describe stream result event. 2020-02-13 14:06:10 [1828557936] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000020 2020-02-13 14:06:10 [1828557936] INFO - writeHeaderCallback(): RequestId: b698f136-6c03-4dde-8cad-46128d61ba7e 2020-02-13 14:06:10 [1818223728] DEBUG - getStreamingEndpointCurlHandler(): GetStreamingEndpoint API response: {"DataEndpoint":"https://s-1e415f8b.kinesisvideo.us-east-1.amazonaws.com"} 2020-02-13 14:06:10 [1818223728] INFO - getStreamingEndpointResultEvent(): Get streaming endpoint result event. 2020-02-13 14:06:10 [1818223728] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000020, Next state: 0x0000000000000010 2020-02-13 14:06:10 [1818223728] DEBUG - getStreamingTokenHandler invoked 2020-02-13 14:06:10 [1818223728] DEBUG - Refreshing credentials. Force refreshing: 1 Now time is: 1581631570636321281 Expiration: 18446744073709551615 2020-02-13 14:06:10 [1818223728] INFO - getStreamingTokenResultEvent(): Get streaming token result event. 2020-02-13 14:06:10 [1818223728] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-13 14:06:10 [1818223728] DEBUG - defaultStreamReadyCallback(): Reported streamReady callback for stream handle 21396133 2020-02-13 14:06:10 [1818223728] DEBUG - streamReadyHandler invoked 2020-02-13 14:06:10 [1818223728] Stream is ready 0:00:00.742854057 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.742939682 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.743063275 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 2(READY) successfully 0:00:00.743132962 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.743176712 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.743204681 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.743249003 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 2(READY) successfully 0:00:00.743292805 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.743329472 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.743358534 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.743400825 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 2(READY) successfully 0:00:00.743442700 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.743477127 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.743505304 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.743550356 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 2(READY) successfully 0:00:00.743591606 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.743630251 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.743658116 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.743699001 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoscale0' changed state to 2(READY) successfully 0:00:00.743739521 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.743775042 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.743802282 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.743842854 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 2(READY) successfully 0:00:00.743881031 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.745284565 4846 0x129de00 INFO v4l2 v4l2_calls.c:592:gst_v4l2_open: Opened device 'PureThermal 1: PureThermal 1' (/dev/video1) successfully 0:00:00.745403158 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.745439564 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.745507325 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 2(READY) successfully 0:00:00.745568262 4846 0x129de00 INFO GST_STATES gstelement.c:2394:gst_element_continue_state: committing state from NULL to READY, pending PAUSED, next PAUSED 0:00:00.745605709 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (PAUSED pending) 0:00:00.745720969 4846 0x129de00 INFO GST_STATES gstelement.c:2401:gst_element_continue_state: continue state change READY to PAUSED, final PAUSED 0:00:00.745812063 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.745898729 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.745928989 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.745972895 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 3(PAUSED) successfully 0:00:00.746015603 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.746064301 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.746092686 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.746134977 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 3(PAUSED) successfully 0:00:00.746175029 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.746226227 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.746256071 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.746297008 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 3(PAUSED) successfully 0:00:00.746338101 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.746384403 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.746412424 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.746453622 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 3(PAUSED) successfully 0:00:00.746495340 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.746540496 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.746568465 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.746698047 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoscale0' changed state to 3(PAUSED) successfully 0:00:00.746739818 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.746785755 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.746813932 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.746854349 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 3(PAUSED) successfully 0:00:00.746892786 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.746947213 4846 0x129de00 INFO basesrc gstbasesrc.c:1343:gst_base_src_do_seek: seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999 0:00:00.747068045 4846 0x129de00 INFO task gsttask.c:456:gst_task_set_lock: setting stream lock 0x1406084 on task 0x1473028 0:00:00.747100024 4846 0x129de00 INFO GST_PADS gstpad.c:5998:gst_pad_start_task: created task 0x1473028 0:00:00.747262888 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.747294555 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.747337159 4846 0x129de00 INFO GST_STATES gstbin.c:3012:gst_bin_change_state_func: child 'v4l2src0' changed state to 3(PAUSED) successfully without preroll 0:00:00.747356065 4846 0x13fe8f0 INFO GST_ELEMENT_PADS gstelement.c:913:gst_element_get_static_pad: no such pad 'sink' in element "v4l2src0" 0:00:00.747385752 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.747468095 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) Pipeline is live and does not need PREROLL ... 0:00:00.747656480 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:1150:gst_v4l2_object_fill_format_list: got 8 format(s): 0:00:00.747692469 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: UYVY 0:00:00.747727104 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: BGR3 0:00:00.747757208 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: RGBP 0:00:00.747786167 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: GREY 0:00:00.747815177 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: YU12 (emulated) 0:00:00.747844395 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: YV12 (emulated) 0:00:00.747874187 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: RGB3 (emulated) 0:00:00.747903718 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: Y16 Setting pipeline to PLAYING ... 0:00:00.748849286 4846 0x129de00 WARN v4l2src gstv4l2src.c:565:gst_v4l2src_query: Can't give latency since framerate isn't fixated ! 0:00:00.748913973 4846 0x129de00 INFO GST_EVENT gstevent.c:1382:gst_event_new_latency: creating latency event 0:00:00.000000000 0:00:00.748975431 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:1564:gst_element_default_send_event: can't send latency event on element kvssink0 0:00:00.749029806 4846 0x129de00 WARN bin gstbin.c:2802:gst_bin_do_latency_func: did not really configure latency of 0:00:00.000000000 0:00:00.749107201 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.749175170 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.749205638 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.749254752 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 4(PLAYING) successfully 0:00:00.749298033 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.749334179 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.749362148 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.749407252 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 4(PLAYING) successfully 0:00:00.749450897 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.749486678 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.749519178 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.749560376 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 4(PLAYING) successfully 0:00:00.749600324 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.749637719 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.749666157 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.749709802 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 4(PLAYING) successfully 0:00:00.749751937 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.749790218 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.749818447 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.749858447 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoscale0' changed state to 4(PLAYING) successfully 0:00:00.749901103 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.749935843 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.749963915 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.750004748 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 4(PLAYING) successfully 0:00:00.750055061 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.750083446 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.750125529 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 4(PLAYING) successfully 0:00:00.750168393 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.750196883 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) New clock: GstSystemClock 0:00:01.279925410 4846 0x13fe8f0 INFO v4l2 gstv4l2object.c:3927:gst_v4l2_object_get_caps: probed caps: video/x-raw, format=(string)UYVY, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)BGR, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)BGR, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB16, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ sRGB }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY8, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)I420, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)I420, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)YV12, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)YV12, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)RGB, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1 0:00:01.281141081 4846 0x13fe8f0 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:01.281791806 4846 0x13fe8f0 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth libv4l2: error set_fmt gave us a different result then try_fmt! 0:00:01.299837127 4846 0x13fe8f0 WARN default v4l2-utils.c:189:gst_v4l2_error: error: Device '/dev/video1' cannot capture in the specified format 0:00:01.299947595 4846 0x13fe8f0 WARN default v4l2-utils.c:192:gst_v4l2_error: error: Tried to capture in YU12, but device returned format UYVY 0:00:01.300093948 4846 0x13fe8f0 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details: posting message: Device '/dev/video1' cannot capture in the specified format 0:00:01.300347280 4846 0x13fe8f0 INFO GST_ERROR_SYSTEM gstelement.c:1917:gst_element_message_full_with_details: posted error message: Device '/dev/video1' cannot capture in the specified format 0:00:01.300498269 4846 0x13fe8f0 WARN basesrc gstbasesrc.c:2950:gst_base_src_loop: error: Internal data stream error. 0:00:01.300566758 4846 0x13fe8f0 WARN basesrc gstbasesrc.c:2950:gst_base_src_loop: error: streaming stopped, reason not-negotiated (-4) 0:00:01.300680039 4846 0x13fe8f0 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details: posting message: Internal data stream error. ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video1' cannot capture in the specified format Additional debug info: gstv4l2object.c(3583): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Tried to capture in YU12, but device returned format UYVY 0:00:01.300803371 4846 0x13fe8f0 INFO GST_ERROR_SYSTEM gstelement.c:1917:gst_element_message_full_with_details: posted error message: Internal data stream error. Execution ended after 0:00:00.550590291 Setting pipeline to PAUSED ... 0:00:01.301044412 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED INFO - stopKinesisVideoStreamSync(): Synchronously stopping Kinesis Video Stream 0000000001467aa5. 0:00:01.301162328 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.301227900 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 2020-02-13 14:06:11 [1826616432] DEBUG - defaultStreamClosedCallback(): Reported streamClosed callback for stream handle 21396133. Upload handle 18446744073709551615 0:00:01.301333317 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 3(PAUSED) successfully 2020-02-13 14:06:11 [1826616432] DEBUG - streamClosedHandler invoked for upload handle: 18446744073709551615 0:00:01.301431233 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 2020-02-13 14:06:11 [1826616432] DEBUG - Reported streamClosed callback for stream handle 21396133. Upload handle 18446744073709551615 0:00:01.301516128 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 2020-02-13 14:06:11 [1826616432] INFO - Sending eos 0:00:01.301580555 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.301669409 4846 0x13fe8f0 INFO task gsttask.c:318:gst_task_func: Task going to paused 0:00:01.301674721 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 3(PAUSED) successfully 0:00:01.301875970 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.301964459 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.302028834 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.302123937 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 3(PAUSED) successfully 0:00:01.302214249 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.302294249 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.302354197 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.302446956 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 3(PAUSED) successfully 0:00:01.302537789 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.302616226 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.302680028 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.302771590 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoscale0' changed state to 3(PAUSED) successfully 0:00:01.302859246 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.302940339 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.303001745 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.303091641 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 3(PAUSED) successfully 0:00:01.303176588 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.303264765 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.303326535 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.303421482 4846 0x129de00 INFO GST_STATES gstbin.c:3012:gst_bin_change_state_func: child 'v4l2src0' changed state to 3(PAUSED) successfully without preroll 0:00:01.303571690 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.303882001 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 2020-02-13 14:06:11 [1826616432] Setting pipeline to READY ... 0:00:01.304355280 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.304600487 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.304733611 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.304896579 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 2(READY) successfully 0:00:01.305038818 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.305209233 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.305315274 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.305465534 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 2(READY) successfully 0:00:01.305598502 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.305760220 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.305864647 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.306010375 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 2(READY) successfully 0:00:01.306146937 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.306297300 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.306400112 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.306544591 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 2(READY) successfully 0:00:01.306792714 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.306948495 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.307053911 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.307193858 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoscale0' changed state to 2(READY) successfully 0:00:01.307326149 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.307476253 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.307581669 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.307719272 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 2(READY) successfully 0:00:01.307925104 4846 0x13fe8f0 INFO task gsttask.c:320:gst_task_func: Task resume from paused 0:00:01.308164322 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.308274998 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.308419060 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 2(READY) successfully 0:00:01.308566872 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.308671038 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.308897130 4846 0x129de00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state Setting pipeline to NULL ... 0:00:01.309177962 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.309354263 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.309466398 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.309605043 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 1(NULL) successfully 0:00:01.309738949 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.309878427 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.309979885 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.310116447 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 1(NULL) successfully 0:00:01.310246394 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.310386133 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.310486341 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.310620767 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 1(NULL) successfully 0:00:01.310752068 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.310889255 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.310989880 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.311128785 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 1(NULL) successfully 0:00:01.311258680 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.311394773 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.311499825 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.311634980 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoscale0' changed state to 1(NULL) successfully 0:00:01.311764146 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.311898312 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.312001593 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.312135759 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 1(NULL) successfully 0:00:01.312259508 4846 0x129de00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.312713672 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.312823620 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.312962369 4846 0x129de00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 1(NULL) successfully 0:00:01.313307315 4846 0x129de00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.313414867 4846 0x129de00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) Freeing pipeline ... 0:00:01.313669449 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking x264enc0:src(0x1406818) and capsfilter1:sink(0x1406c08) 0:00:01.313828823 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked x264enc0:src and capsfilter1:sink 0:00:01.313978822 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter1:src(0x1406d58) and kvssink0:video_0(0x1406ea8) 0:00:01.314129082 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter1:src and kvssink0:video_0 0:00:01.314273872 4846 0x129de00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "capsfilter1" 0:00:01.314451632 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x1448398 dispose 0:00:01.314562986 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.314724130 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.314850067 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x1448398 parent class dispose 0:00:01.314964338 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x1448398 finalize 0:00:01.315071264 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x1448398 finalize parent 0:00:01.315193763 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking videoscale0:src(0x1406578) and capsfilter0:sink(0x1406968) 0:00:01.315343346 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked videoscale0:src and capsfilter0:sink 0:00:01.315492303 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter0:src(0x1406ab8) and x264enc0:sink(0x14066c8) 0:00:01.344505846 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter0:src and x264enc0:sink 0:00:01.344699231 4846 0x129de00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "capsfilter0" 0:00:01.344851522 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x1448168 dispose 0:00:01.344932042 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.345048239 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.345136208 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x1448168 parent class dispose 0:00:01.345212353 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x1448168 finalize 0:00:01.345281103 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x1448168 finalize parent 0:00:01.345389644 4846 0x129de00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "kvssink0" 0:00:01.345491570 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x1441080 dispose 0:00:01.345592507 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'video_0' 0:00:01.345680059 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x1441080 parent class dispose INFO - Freeing Kinesis Video Stream YourStreamName3 2020-02-13 14:06:11 [1995808768] INFO - freeKinesisVideoStream(): Freeing Kinesis Video stream. 2020-02-13 14:06:11 [1995808768] WARN - curlApiCallbacksShutdownActiveRequests(): pActiveRequests hashtable is empty 2020-02-13 14:06:11 [1995808768] DEBUG - defaultStreamShutdownCallback(): Reported streamShutdown callback for stream handle 21396133 0:00:01.746446982 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x1441080 finalize 0:00:01.746510992 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x1441080 finalize parent 0:00:01.746645158 4846 0x129de00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "x264enc0" 0:00:01.746715209 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x1418798 dispose 0:00:01.746747084 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.746794897 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.746833438 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x1418798 parent class dispose 0:00:01.746875313 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x1418798 finalize 0:00:01.746904115 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x1418798 finalize parent 0:00:01.746945729 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking videoconvert0:src(0x14062d8) and videoscale0:sink(0x1406428) 0:00:01.747014270 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked videoconvert0:src and videoscale0:sink 0:00:01.747069843 4846 0x129de00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "videoscale0" 0:00:01.747112759 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x14142d8 dispose 0:00:01.747143020 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.747179113 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.747217030 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x14142d8 parent class dispose 0:00:01.747249946 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x14142d8 finalize 0:00:01.747279113 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x14142d8 finalize parent 0:00:01.747315727 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking v4l2src0:src(0x1406038) and videoconvert0:sink(0x1406188) 0:00:01.747364685 4846 0x129de00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked v4l2src0:src and videoconvert0:sink 0:00:01.747416143 4846 0x129de00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "videoconvert0" 0:00:01.747459476 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x140e260 dispose 0:00:01.747490257 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.747527236 4846 0x129de00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.747564267 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x140e260 parent class dispose 0:00:01.747597288 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x140e260 finalize 0:00:01.747626403 4846 0x129de00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x140e260 finalize parent 0:00:01.747668590 4846 0x129de00 INFO

chehefen commented 4 years ago

libv4l2: error set_fmt gave us a different result then try_fmt! 0:00:01.299837127 4846 0x13fe8f0 WARN default v4l2-utils.c:189:gst_v4l2_error: error: Device '/dev/video1' cannot capture in the specified format 0:00:01.299947595 4846 0x13fe8f0 WARN default v4l2-utils.c:192:gst_v4l2_error: error: Tried to capture in YU12, but device returned format UYVY 0:00:01.300093948 4846 0x13fe8f0 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details: posting message: Device '/dev/video1' cannot capture in the specified format

Not sure what the error is about, you can try force UYVY from device

gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,format=UYVY ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName storage-size=128 access-key="YourAccessKey" secret-key="YourSecretKey"

istranic commented 4 years ago

Hi,

That didn't work either. It looks like I'll have to do a deep-dive to solve this issue.

I've attached the last log, but I don't think it tells us anything new. Thank you for your help and responsiveness!

Ivo

On Fri, Feb 14, 2020 at 10:39 AM chehefen notifications@github.com wrote:

libv4l2: error set_fmt gave us a different result then try_fmt! 0:00:01.299837127 4846 0x13fe8f0 WARN default v4l2-utils.c:189:gst_v4l2_error: error: Device '/dev/video1' cannot capture in the specified format 0:00:01.299947595 4846 0x13fe8f0 WARN default v4l2-utils.c:192:gst_v4l2_error: error: Tried to capture in YU12, but device returned format UYVY 0:00:01.300093948 4846 0x13fe8f0 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details: posting message: Device '/dev/video1' cannot capture in the specified format

Not sure what the error is about, you can try force UYVY from device

gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,format=UYVY ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName storage-size=128 access-key="YourAccessKey" secret-key="YourSecretKey"

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/343?email_source=notifications&email_token=AFOQTVZ3LJQQKCNE4VH7ZA3RC23LFA5CNFSM4KUVMWC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELZNWMY#issuecomment-586341171, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOQTVYKTOTLWDILWWDOYNTRC23LFANCNFSM4KUVMWCQ .

-- Ivo Stranic Stanford University

COMMAND: gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,format=UYVY ! videoconvert ! video/x-raw,width=160,height=120,framerate=5/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName3 storage-size=128 access-key=lll secret-key=lll aws-region="us-east-1"

LOG (PARTIAL)

1:plugin_init: x264 build: 148 0:00:00.302738283 8887 0x1144e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstx264.so" loaded 0:00:00.302781407 8887 0x1144e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "x264enc" 0:00:00.303539577 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x12ba5e0 adding pad 'sink' 0:00:00.303605827 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstVideoEncoder@0x12ba5e0 adding pad 'src' 0:00:00.374814136 8887 0x1144e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/home/pi/Kinesis/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/libgstkvssink.so" loaded 0:00:00.374908042 8887 0x1144e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "kvssink" 0:00:00.375767826 8887 0x1144e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "pipeline" 0:00:00.376122926 8887 0x1144e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstV4l2Src named v4l2src0 to some pad of GstVideoConvert named videoconvert0 (0/0) with caps "video/x-raw, format=(string)UYVY" 0:00:00.377906035 8887 0x1144e00 INFO GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstcoreelements.so" loaded 0:00:00.377968587 8887 0x1144e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.378210407 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x12ea148 adding pad 'sink' 0:00:00.378272438 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x12ea148 adding pad 'src' 0:00:00.378326448 8887 0x1144e00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.378408218 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.378456186 8887 0x1144e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.378492488 8887 0x1144e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element capsfilter0:sink 0:00:00.378531602 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:sink 0:00:00.378563581 8887 0x1144e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: v4l2src0 and capsfilter0 in same bin, no need for ghost pads 0:00:00.378615248 8887 0x1144e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link v4l2src0:src and capsfilter0:sink 0:00:00.378679934 8887 0x1144e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.378734517 8887 0x1144e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked v4l2src0:src and capsfilter0:sink, successful 0:00:00.378768475 8887 0x1144e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.378796027 8887 0x1144e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.378840402 8887 0x1144e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter0:src to element videoconvert0:(any) 0:00:00.378875401 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter0:src 0:00:00.378910141 8887 0x1144e00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link capsfilter0:src and videoconvert0:sink 0:00:00.378995817 8887 0x1144e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.381793760 8887 0x1144e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter0 and videoconvert0 in same bin, no need for ghost pads 0:00:00.381848551 8887 0x1144e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter0:src and videoconvert0:sink 0:00:00.381928186 8887 0x1144e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.384633578 8887 0x1144e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter0:src and videoconvert0:sink, successful 0:00:00.384673682 8887 0x1144e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.384702900 8887 0x1144e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.384747379 8887 0x1144e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstVideoConvert named videoconvert0 to some pad of GstX264Enc named x264enc0 (0/0) with caps "video/x-raw, width=(int)160, height=(int)120, framerate=(fraction)5/1" 0:00:00.384848784 8887 0x1144e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.384932430 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x12ea378 adding pad 'sink' 0:00:00.384996544 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x12ea378 adding pad 'src' 0:00:00.385051022 8887 0x1144e00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.385125865 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.385165084 8887 0x1144e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.385197427 8887 0x1144e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element videoconvert0:(any) to element capsfilter1:sink 0:00:00.385233937 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:sink 0:00:00.385264406 8887 0x1144e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: videoconvert0 and capsfilter1 in same bin, no need for ghost pads 0:00:00.385306905 8887 0x1144e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link videoconvert0:src and capsfilter1:sink 0:00:00.385634975 8887 0x1144e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.385691693 8887 0x1144e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked videoconvert0:src and capsfilter1:sink, successful 0:00:00.385727579 8887 0x1144e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.385754297 8887 0x1144e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.385791797 8887 0x1144e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter1:src to element x264enc0:(any) 0:00:00.385826640 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter1:src 0:00:00.385862161 8887 0x1144e00 INFO GST_PADS gstutils.c:933:gst_pad_check_link: trying to link capsfilter1:src and x264enc0:sink 0:00:00.386295594 8887 0x1144e00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.386372052 8887 0x1144e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter1 and x264enc0 in same bin, no need for ghost pads 0:00:00.386416479 8887 0x1144e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter1:src and x264enc0:sink 0:00:00.386839808 8887 0x1144e00 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:00.386915224 8887 0x1144e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter1:src and x264enc0:sink, successful 0:00:00.386952099 8887 0x1144e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.386979286 8887 0x1144e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.387023765 8887 0x1144e00 INFO GST_PIPELINE grammar.y:596:gst_parse_perform_link: linking some pad of GstX264Enc named x264enc0 to some pad of GstKvsSink named kvssink0 (0/0) with caps "video/x-h264, stream-format=(string)avc, alignment=(string)au" 0:00:00.387096993 8887 0x1144e00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "capsfilter" 0:00:00.387180742 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x12ea5a8 adding pad 'sink' 0:00:00.387238294 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:GstBaseTransform@0x12ea5a8 adding pad 'src' 0:00:00.387289439 8887 0x1144e00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state 0:00:00.387363709 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:00.387402563 8887 0x1144e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.387434073 8887 0x1144e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element x264enc0:(any) to element capsfilter2:sink 0:00:00.387469177 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter2:sink 0:00:00.387499906 8887 0x1144e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: x264enc0 and capsfilter2 in same bin, no need for ghost pads 0:00:00.387541677 8887 0x1144e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link x264enc0:src and capsfilter2:sink 0:00:00.387597093 8887 0x1144e00 INFO GST_PADS gstpad.c:4112:gst_pad_peer_query: pad has no peer 0:00:00.387636207 8887 0x1144e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked x264enc0:src and capsfilter2:sink, successful 0:00:00.387670165 8887 0x1144e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.387695894 8887 0x1144e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.387734019 8887 0x1144e00 INFO GST_ELEMENT_PADS gstutils.c:1633:gst_element_link_pads_full: trying to link element capsfilter2:src to element kvssink0:(any) 0:00:00.387768445 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:916:gst_element_get_static_pad: found pad capsfilter2:src 0:00:00.387924642 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad: adding pad 'video_0' 0:00:00.387959329 8887 0x1144e00 INFO kvssink gstkvssink.cpp:1236:gst_kvs_sink_request_new_pad: Added new request pad 0:00:00.388011829 8887 0x1144e00 INFO GST_PADS gstutils.c:1447:prepare_link_maybe_ghosting: capsfilter2 and kvssink0 in same bin, no need for ghost pads 0:00:00.388053651 8887 0x1144e00 INFO GST_PADS gstpad.c:2315:gst_pad_link_prepare: trying to link capsfilter2:src and kvssink0:video_0 0:00:00.388142296 8887 0x1144e00 INFO GST_PADS gstpad.c:2523:gst_pad_link_full: linked capsfilter2:src and kvssink0:video_0, successful 0:00:00.388176983 8887 0x1144e00 INFO GST_EVENT gstevent.c:1511:gst_event_new_reconfigure: creating reconfigure event 0:00:00.388204171 8887 0x1144e00 INFO GST_EVENT gstpad.c:5652:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding Setting pipeline to PAUSED ... 0:00:00.388428075 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY log4cplus:ERROR could not open file ./kvs_log_configuration INFO - createKinesisVideoClient(): Creating Kinesis Video Client 2020-02-14 08:45:13 [1996197888] INFO - heapInitialize(): Initializing native heap with limit size 134217728, spill ratio 0% and flags 0x00000001 2020-02-14 08:45:13 [1996197888] INFO - heapInitialize(): Creating AIV heap. 2020-02-14 08:45:13 [1996197888] INFO - heapInitialize(): Heap is initialized OK 2020-02-14 08:45:13 [1996197888] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-14 08:45:13 [1996197888] DEBUG - getSecurityTokenHandler invoked 2020-02-14 08:45:13 [1996197888] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is: 1581698713435969184 Expiration: 0 2020-02-14 08:45:13 [1996197888] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000010 2020-02-14 08:45:13 [1996197888] INFO - createDeviceResultEvent(): Create device result event. 2020-02-14 08:45:13 [1996197888] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-14 08:45:13 [1996197888] DEBUG - clientReadyHandler invoked 2020-02-14 08:45:13 [1996197888] INFO - try creating stream 2020-02-14 08:45:13 [1996197888] INFO - Creating Kinesis Video Stream YourStreamName3 2020-02-14 08:45:13 [1996197888] INFO - createKinesisVideoStream(): Creating Kinesis Video Stream. 2020-02-14 08:45:13 [1996197888] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002 2020-02-14 08:45:13 [1996197888] INFO - writeHeaderCallback(): RequestId: 7f1dcd4f-1c1f-4ea8-ac19-17a19bc2438a 2020-02-14 08:45:13 [1829045360] DEBUG - describeStreamCurlHandler(): DescribeStream API response: {"StreamInfo":{"CreationTime":1.581605902608E9,"DataRetentionInHours":2,"DeviceName":"Kinesis_Video_Device","KmsKeyId":"arn:aws:kms:us-east-1:132756671989:alias/aws/kinesisvideo","MediaType":"video/h264","Status":"ACTIVE","StreamARN":"arn:aws:kinesisvideo:us-east-1:132756671989:stream/YourStreamName3/1581605902608","StreamName":"YourStreamName3","Version":"GODOQ7ZFH1sm2KkoDivr"}} 2020-02-14 08:45:13 [1829045360] INFO - describeStreamResultEvent(): Describe stream result event. 2020-02-14 08:45:13 [1829045360] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000020 2020-02-14 08:45:13 [1829045360] INFO - writeHeaderCallback(): RequestId: 9c11e67b-4900-4959-89ff-34ed71cb75c5 2020-02-14 08:45:13 [1828222064] DEBUG - getStreamingEndpointCurlHandler(): GetStreamingEndpoint API response: {"DataEndpoint":"https://s-1e415f8b.kinesisvideo.us-east-1.amazonaws.com"} 2020-02-14 08:45:13 [1828222064] INFO - getStreamingEndpointResultEvent(): Get streaming endpoint result event. 2020-02-14 08:45:13 [1828222064] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000020, Next state: 0x0000000000000010 2020-02-14 08:45:13 [1828222064] DEBUG - getStreamingTokenHandler invoked 2020-02-14 08:45:13 [1828222064] DEBUG - Refreshing credentials. Force refreshing: 1 Now time is: 1581698713703883774 Expiration: 18446744073709551615 2020-02-14 08:45:13 [1828222064] INFO - getStreamingTokenResultEvent(): Get streaming token result event. 2020-02-14 08:45:13 [1828222064] DEBUG - stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040 2020-02-14 08:45:13 [1828222064] DEBUG - defaultStreamReadyCallback(): Reported streamReady callback for stream handle 19959149 2020-02-14 08:45:13 [1828222064] DEBUG - streamReadyHandler invoked 2020-02-14 08:45:13 [1828222064] Stream is ready 0:00:00.665840026 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.665918046 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.666039243 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 2(READY) successfully 0:00:00.666114763 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.666157784 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.666185856 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.666230752 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter2' changed state to 2(READY) successfully 0:00:00.666273303 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.666311220 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.666338667 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.666379917 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 2(READY) successfully 0:00:00.666420958 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.666455958 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.666484291 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.666524291 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 2(READY) successfully 0:00:00.666564551 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.666599134 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.666626634 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.666667206 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 2(READY) successfully 0:00:00.666709393 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.666744185 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.666771528 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.666811892 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 2(READY) successfully 0:00:00.666848194 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.668304847 8887 0x1144e00 INFO v4l2 v4l2_calls.c:592:gst_v4l2_open: Opened device 'PureThermal 1: PureThermal 1' (/dev/video1) successfully 0:00:00.668410576 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:00.668441825 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.668503075 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 2(READY) successfully 0:00:00.668564585 8887 0x1144e00 INFO GST_STATES gstelement.c:2394:gst_element_continue_state: committing state from NULL to READY, pending PAUSED, next PAUSED 0:00:00.668597397 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (PAUSED pending) 0:00:00.668696094 8887 0x1144e00 INFO GST_STATES gstelement.c:2401:gst_element_continue_state: continue state change READY to PAUSED, final PAUSED 0:00:00.668780104 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.668860259 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.668888853 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.668929321 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 3(PAUSED) successfully 0:00:00.668967498 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.669014789 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.669041039 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.669079476 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter2' changed state to 3(PAUSED) successfully 0:00:00.669118173 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.669166038 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.669192444 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.669230881 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 3(PAUSED) successfully 0:00:00.669268693 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.669311765 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.669337651 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.669375619 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 3(PAUSED) successfully 0:00:00.669426452 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.669469941 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.669496555 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.669534680 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 3(PAUSED) successfully 0:00:00.669573950 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.669616033 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.669642387 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.669680564 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 3(PAUSED) successfully 0:00:00.669715564 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.669766188 8887 0x1144e00 INFO basesrc gstbasesrc.c:1343:gst_base_src_do_seek: seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999 0:00:00.669873583 8887 0x1144e00 INFO task gsttask.c:456:gst_task_set_lock: setting stream lock 0x12b0084 on task 0x1314028 0:00:00.669903218 8887 0x1144e00 INFO GST_PADS gstpad.c:5998:gst_pad_start_task: created task 0x1314028 0:00:00.670069727 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.670099987 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.670142956 8887 0x1144e00 INFO GST_STATES gstbin.c:3012:gst_bin_change_state_func: child 'v4l2src0' changed state to 3(PAUSED) successfully without preroll 0:00:00.670187591 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:00.670266861 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) Pipeline is live and does not need PREROLL ... 0:00:00.670177487 8887 0x12a5c90 INFO GST_ELEMENT_PADS gstelement.c:913:gst_element_get_static_pad: no such pad 'sink' in element "v4l2src0" 0:00:00.670885813 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:1150:gst_v4l2_object_fill_format_list: got 8 format(s): 0:00:00.670953157 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: UYVY 0:00:00.671006437 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: BGR3 0:00:00.671053729 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: RGBP 0:00:00.671098364 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: GREY 0:00:00.671142061 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: YU12 (emulated) 0:00:00.671187061 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: YV12 (emulated) 0:00:00.671231487 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: RGB3 (emulated) 0:00:00.671275706 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:1156:gst_v4l2_object_fill_format_list: Y16 Setting pipeline to PLAYING ... 0:00:00.671816118 8887 0x1144e00 WARN v4l2src gstv4l2src.c:565:gst_v4l2src_query: Can't give latency since framerate isn't fixated ! 0:00:00.671889138 8887 0x1144e00 INFO GST_EVENT gstevent.c:1382:gst_event_new_latency: creating latency event 0:00:00.000000000 0:00:00.671954450 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:1564:gst_element_default_send_event: can't send latency event on element kvssink0 0:00:00.672007626 8887 0x1144e00 WARN bin gstbin.c:2802:gst_bin_do_latency_func: did not really configure latency of 0:00:00.000000000 0:00:00.672089032 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.672158771 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.672188406 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.672236530 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 4(PLAYING) successfully 0:00:00.672277936 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.672313457 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.672340748 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.672380592 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter2' changed state to 4(PLAYING) successfully 0:00:00.672422049 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.672458403 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.672487726 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.672528038 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 4(PLAYING) successfully 0:00:00.672569548 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.672606006 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.672635277 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.672676474 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 4(PLAYING) successfully 0:00:00.672720953 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.672757203 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.672785327 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.672826160 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 4(PLAYING) successfully 0:00:00.672867514 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.672902983 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.672932878 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.672975065 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 4(PLAYING) successfully 0:00:00.673026627 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.673055065 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.673098606 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 4(PLAYING) successfully 0:00:00.673142876 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PLAYING 0:00:00.673880265 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) New clock: GstSystemClock 0:00:01.203421482 8887 0x12a5c90 INFO v4l2 gstv4l2object.c:3927:gst_v4l2_object_get_caps: probed caps: video/x-raw, format=(string)UYVY, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)BGR, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)BGR, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB16, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ sRGB }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY8, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)I420, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)I420, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)YV12, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)YV12, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)RGB, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)RGB, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)122, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1; video/x-raw, format=(string)GRAY16_LE, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string){ 2:4:7:1 }, framerate=(fraction)9/1 0:00:01.204509337 8887 0x12a5c90 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:01.205116623 8887 0x12a5c90 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth 0:00:01.206767076 8887 0x12a5c90 WARN basesrc gstbasesrc.c:2950:gst_base_src_loop: error: Internal data stream error. 0:00:01.206882961 8887 0x12a5c90 WARN basesrc gstbasesrc.c:2950:gst_base_src_loop: error: streaming stopped, reason not-negotiated (-4) 0:00:01.207077386 8887 0x12a5c90 INFO GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details: posting message: Internal data stream error. 0:00:01.207340300 8887 0x12a5c90 INFO GST_ERROR_SYSTEM gstelement.c:1917:gst_element_message_full_with_details: posted error message: Internal data stream error. ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Additional debug info: gstbasesrc.c(2950): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason not-negotiated (-4) Execution ended after 0:00:00.533686022 Setting pipeline to PAUSED ... INFO - stopKinesisVideoStreamSync(): Synchronously stopping Kinesis Video Stream 0000000001308d6d. 0:00:01.207900451 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.208018732 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 2020-02-14 08:45:14 [1826616432] DEBUG - defaultStreamClosedCallback(): Reported streamClosed callback for stream handle 19959149. Upload handle 18446744073709551615 0:00:01.208091179 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 2020-02-14 08:45:14 [1826616432] DEBUG - streamClosedHandler invoked for upload handle: 18446744073709551615 0:00:01.208222219 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 3(PAUSED) successfully 0:00:01.208410968 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 2020-02-14 08:45:14 [1826616432] DEBUG - Reported streamClosed callback for stream handle 19959149. Upload handle 18446744073709551615 0:00:01.208500029 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.208566227 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 2020-02-14 08:45:14 [1826616432] INFO - Sending eos 0:00:01.208667267 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter2' changed state to 3(PAUSED) successfully 0:00:01.208760704 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.208844974 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.208854453 8887 0x12a5c90 INFO task gsttask.c:318:gst_task_func: Task going to paused 0:00:01.208949973 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.209139138 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 3(PAUSED) successfully 0:00:01.209236116 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.209319397 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.209383094 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.209477937 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 3(PAUSED) successfully 0:00:01.209570853 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.209653404 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.209716737 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.209809236 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 3(PAUSED) successfully 0:00:01.209902204 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.209984287 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.210050484 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.210144598 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 3(PAUSED) successfully 0:00:01.210231211 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PLAYING pending VOID_PENDING, desired next PAUSED 0:00:01.210319336 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.210382981 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 0:00:01.210475845 8887 0x1144e00 INFO GST_STATES gstbin.c:3012:gst_bin_change_state_func: child 'v4l2src0' changed state to 3(PAUSED) successfully without preroll 0:00:01.210577302 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to PAUSED 0:00:01.210641989 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending) 2020-02-14 08:45:14 [1826616432] Setting pipeline to READY ... 0:00:01.210947715 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.211083547 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.211151359 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.211247088 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 2(READY) successfully 0:00:01.211338962 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.211452138 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.211518700 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.211612397 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter2' changed state to 2(READY) successfully 0:00:01.211703958 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.211969164 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.212036508 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.212132236 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 2(READY) successfully 0:00:01.212224787 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.212333171 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.212398379 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.212493274 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 2(READY) successfully 0:00:01.212586242 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.212697074 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.212762595 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.212856240 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 2(READY) successfully 0:00:01.212948530 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next READY 0:00:01.213057748 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.213124779 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.213219778 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 2(READY) successfully 0:00:01.213351704 8887 0x12a5c90 INFO task gsttask.c:320:gst_task_func: Task resume from paused 0:00:01.213537275 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.213607327 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.213702065 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 2(READY) successfully 0:00:01.213804564 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to READY 0:00:01.213869564 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending) 0:00:01.214019667 8887 0x1144e00 INFO GST_STATES gstbin.c:2110:gst_bin_get_state_func: getting state Setting pipeline to NULL ... 0:00:01.214186957 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.214306487 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.214374247 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.214470808 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'kvssink0' changed state to 1(NULL) successfully 0:00:01.214562422 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.214660286 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.214725025 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.214818982 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter2' changed state to 1(NULL) successfully 0:00:01.214909971 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.215006741 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.215067834 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.215162469 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'x264enc0' changed state to 1(NULL) successfully 0:00:01.215253405 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.215349759 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.215415070 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.215507830 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter1' changed state to 1(NULL) successfully 0:00:01.215599340 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.215694495 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.215758765 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.215911472 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'videoconvert0' changed state to 1(NULL) successfully 0:00:01.216004596 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.216100741 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.216165741 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.216257667 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'capsfilter0' changed state to 1(NULL) successfully 0:00:01.216341989 8887 0x1144e00 INFO GST_STATES gstbin.c:2521:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:01.216674799 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.216747038 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:01.216845787 8887 0x1144e00 INFO GST_STATES gstbin.c:2969:gst_bin_change_state_func: child 'v4l2src0' changed state to 1(NULL) successfully 0:00:01.217124638 8887 0x1144e00 INFO GST_STATES gstelement.c:2419:gst_element_continue_state: completed state change to NULL 0:00:01.217194377 8887 0x1144e00 INFO GST_STATES gstelement.c:2324:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) Freeing pipeline ... 0:00:01.217367188 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking x264enc0:src(0x12b0578) and capsfilter2:sink(0x12b0c08) 0:00:01.217489583 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked x264enc0:src and capsfilter2:sink 0:00:01.217599686 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter2:src(0x12b0d58) and kvssink0:video_0(0x12b0ea8) 0:00:01.217707289 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter2:src and kvssink0:video_0 0:00:01.217809840 8887 0x1144e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "capsfilter2" 0:00:01.230745920 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x12ea5a8 dispose 0:00:01.230884982 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.231031126 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.231124250 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x12ea5a8 parent class dispose 0:00:01.231202791 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x12ea5a8 finalize 0:00:01.231270447 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x12ea5a8 finalize parent 0:00:01.231375185 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking videoconvert0:src(0x12b02d8) and capsfilter1:sink(0x12b0968) 0:00:01.231512320 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked videoconvert0:src and capsfilter1:sink 0:00:01.231628829 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter1:src(0x12b0ab8) and x264enc0:sink(0x12b0428) 0:00:01.231882785 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter1:src and x264enc0:sink 0:00:01.231997055 8887 0x1144e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "capsfilter1" 0:00:01.232123095 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x12ea378 dispose 0:00:01.232195230 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.232282625 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.232366947 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x12ea378 parent class dispose 0:00:01.232440436 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x12ea378 finalize 0:00:01.232507467 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x12ea378 finalize parent 0:00:01.232596372 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking v4l2src0:src(0x12b0038) and capsfilter0:sink(0x12b06c8) 0:00:01.232710173 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked v4l2src0:src and capsfilter0:sink 0:00:01.232821474 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter0:src(0x12b0818) and videoconvert0:sink(0x12b0188) 0:00:01.232930692 8887 0x1144e00 INFO GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter0:src and videoconvert0:sink 0:00:01.233034285 8887 0x1144e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "capsfilter0" 0:00:01.233141315 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x12ea148 dispose 0:00:01.233211627 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.233297095 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.233385480 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x12ea148 parent class dispose 0:00:01.233457979 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x12ea148 finalize 0:00:01.233524437 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x12ea148 finalize parent 0:00:01.233612926 8887 0x1144e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "kvssink0" 0:00:01.233708602 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x12e2078 dispose 0:00:01.233809434 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'video_0' 0:00:01.233894485 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x12e2078 parent class dispose INFO - Freeing Kinesis Video Stream YourStreamName3 2020-02-14 08:45:14 [1996197888] INFO - freeKinesisVideoStream(): Freeing Kinesis Video stream. 2020-02-14 08:45:14 [1996197888] WARN - curlApiCallbacksShutdownActiveRequests(): pActiveRequests hashtable is empty 2020-02-14 08:45:14 [1996197888] DEBUG - defaultStreamShutdownCallback(): Reported streamShutdown callback for stream handle 19959149 0:00:01.634857551 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x12e2078 finalize 0:00:01.634980310 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x12e2078 finalize parent 0:00:01.635121871 8887 0x1144e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "x264enc0" 0:00:01.635257078 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x12ba5e0 dispose 0:00:01.635329578 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.635424316 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.635512909 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x12ba5e0 parent class dispose 0:00:01.635597752 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3071:gst_element_finalize: 0x12ba5e0 finalize 0:00:01.635665095 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3077:gst_element_finalize: 0x12ba5e0 finalize parent 0:00:01.635759157 8887 0x1144e00 INFO GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func: removed child "videoconvert0" 0:00:01.635857385 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:2994:gst_element_dispose: 0x12b4260 dispose 0:00:01.635926447 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'sink' 0:00:01.636010144 8887 0x1144e00 INFO GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad: removing pad 'src' 0:00:01.636093269 8887 0x1144e00 INFO GST_REFCOUNTING gstelement.c:3040:gst_element_dispose: 0x12b4260 parent class dispose 0:00:01.636168945 88

MushMal commented 4 years ago

It might be something to do with the color format. From the gstreamer log I see 0:00:01.204509337 8887 0x12a5c90 INFO x264enc gstx264enc.c:561:gst_x264_enc_add_x264_chroma_format: This x264 build supports 8-bit depth

Perhaps GStreamer forums are a better choice to get help on encoder/media source/color format issues.

I am going to resolve this issue for now. Please open a separate issue if you have more questions regarding KVS.

istranic commented 4 years ago

@chehefen @MushMal

I am able to create the stream when I delete the "video/x-raw, format...,width...., framerate..." after "videoconvert !" :

gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,format=GRAY8 ! videoconvert ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName storage-size=128 access-key="YourAccessKey" secret-key="YourSecretKey"

The command above works with either GRAY8, GRAY16_LE, or UYVY as the output format from the device.

However, that means I'm not controlling the framerate or output format. Does this shed light on the issue. I'd like to be able to set the framerate.

istranic commented 4 years ago

Update,

I'm able to run gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,format=GRAY8 ! videoconvert ! video/x-raw, framerate=9/1 ! x264enc bframes=0 key-int-max=5 bitrate=500 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name=YourStreamName storage-size=128 access-key="YourAccessKey" secret-key="YourSecretKey"

I think the issue was that the camera output framerate is 9 FPS, so it must be set to that number. However, I thought that videoconvert would allow me to convert to a number that is lower.

istranic commented 4 years ago

Final update. Adding ! videorate ! enables me to change the framerate.

Aman-Haris commented 2 years ago

Hi @istranic, I came across this comment thread as I was researching for a way to combine RGB and IR camera feed into one single feed by converting them to a grayscale format. I am doing my bachelor's final year project where I'm using YOLOR object detection algorithm to detect vehicles during bad weather conditions. I'm interested to know whether you have completed your objective and if yes, I would be happy if you are ready to help me out.

istranic commented 2 years ago

Hey @Aman-Haris. I got this to work, so I'm happy to chat. Can you ping me on LinkedIn and we can go from there.