awslabs / aws-streamer

Video Processing for AWS
Apache License 2.0
44 stars 9 forks source link

Exception: Failed to make element sink of type kvssink #10

Open leagerl1 opened 2 years ago

leagerl1 commented 2 years ago

Hello,

Installing and attempting to use aws-streamer we encounter the error Exception: Failed to make element sink of type kvssink. I think this has to do with the fact that either kvssink or the bindings aren't installed due leaving off the cmake arguments to enable it but i noticed when installing with

RUN pip3 install -v git+https://github.com/awslabs/aws-streamer.git --install-option "build_ext" --install-option "--cmake-args=-DBUILD_KVS=ON"

as per the instructions we get the error

 error: option --cmake-args not recognized

Any suggestions as to what might be wrong here?

bpawlik commented 2 years ago

Hi,

I see that some of the behaviour of pip has changed (become obsolete). I've checked the following combination works well:

git clone https://github.com/awslabs/aws-streamer.git
cd aws-streamer
python3 setup.py install
python3 setup.py build_ext --cmake-args=-DBUILD_KVS=ON

Bartek

gyansai82 commented 1 year ago

hi , i am also facing same issue . i have built the lib using above steps LOG -

INFO:awstreamer.gst_pipeline.stream_client:GST_PLUGIN_PATH: examples/opencv/awstreamer/gst_pipeline/../gst_plugins:/usr/lib/gstreamer-1.0/
INFO:awstreamer.gst_pipeline.stream_client:Gstreamer version: 1.16.3.0
INFO:awstreamer.gst_pipeline.stream_client:LIB_GSTREAMER_PATH: /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
INFO:awstreamer.gst_pipeline.stream_client:{'callback': None,
 'debug': True,
 'enabled': True,
 'env': None,
 'id': 'test_display',
 'info': None,
 'pipeline': 'cv',
 'process': <function process at 0x7f3871f621f0>,
 'sink': {'display': True,
          'pipeline': {'pipeline': 'appsrc',
                       'sink': {'name': 'kvssink',
                                'stream-name': 'awslabsStream'},
                       'source': {'fps': 30,
                                  'height': 320,
                                  'img_format': 'GRAY8',
                                  'width': 320}}},
 'source': {'display': False, 'name': 0},
 'timeout': None}
INFO:awstreamer.gst_pipeline.pipeline_factory:PipelineFactory: creating a pipeline from path: .cv_pipeline.OpenCvPipeline
INFO:awstreamer.gst_pipeline.pipeline_factory:python_version: 3.8.10
INFO:awstreamer.gst_pipeline.cv_pipeline:Initializing OpenCvPipeline...
INFO:awstreamer.gst_pipeline.stream_pipeline:Initializing OpenCvPipeline for test_display..
INFO:awstreamer.gst_pipeline.stream_graph:Initializing StreamGraph...
INFO:awstreamer.gst_pipeline.cv_pipeline:Building OpenCvPipeline...
INFO:awstreamer.gst_pipeline.cv_pipeline:Configuring OpenCvPipeline...
INFO:awstreamer.gst_pipeline.stream_pipeline:Auto-configuring OpenCvPipeline...
INFO:awstreamer.gst_pipeline.stream_pipeline:Compiling OpenCvPipeline...
INFO:awstreamer.gst_pipeline.stream_graph:
INFO:awstreamer.gst_pipeline.stream_pipeline:gst-launch-1.0 
INFO:awstreamer.gst_pipeline.stream_client:GST_PLUGIN_PATH: examples/opencv/awstreamer/gst_pipeline/../gst_plugins:/usr/lib/gstreamer-1.0/
INFO:awstreamer.gst_pipeline.stream_client:{'callback': None,
 'debug': True,
 'enabled': True,
 'env': None,
 'id': 'default_0',
 'info': None,
 'pipeline': 'appsrc',
 'sink': {'name': 'kvssink', 'stream-name': 'awslabsStream'},
 'source': {'fps': 30, 'height': 320, 'img_format': 'GRAY8', 'width': 320},
 'timeout': None}
INFO:awstreamer.gst_pipeline.pipeline_factory:PipelineFactory: creating a pipeline from path: .appsrc_pipeline.AppSrcPipeline
INFO:awstreamer.gst_pipeline.pipeline_factory:python_version: 3.8.10
INFO:awstreamer.gst_pipeline.appsrc_pipeline:Initializing AppSrcPipeline...
INFO:awstreamer.gst_pipeline.stream_pipeline:Initializing AppSrcPipeline for default_0..
INFO:awstreamer.gst_pipeline.stream_graph:Initializing StreamGraph...
INFO:awstreamer.gst_pipeline.appsrc_pipeline:Building AppSrcPipeline...
ERROR:awstreamer.gst_pipeline.stream_graph:Failed to make element sink of type kvssink
ERROR:awstreamer.gst_pipeline.stream_client:Failed to run StreamPipeline: Exception('Failed to make element sink of type kvssink')
ERROR:awstreamer.gst_pipeline.stream_client:Failed to start pipeline(s): Exception('Failed to make element sink of type kvssink')
All done.
bpawlik commented 1 year ago

It's the build issue, not run-time. kvssink failed to compile on your system. Please look for error messages in the build log and make sure you have all the prerequisites installed.

You can also attempt to build the kvssink plug-in manually following these steps: https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp