Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass parameters to gst-launch via kinesis_video_gstreamer_sample_app #222

Closed
claw68 opened this issue Jun 24, 2019 · 3 comments
Closed

Pass parameters to gst-launch via kinesis_video_gstreamer_sample_app #222

claw68 opened this issue Jun 24, 2019 · 3 comments

Comments

@claw68
Copy link

claw68 commented Jun 24, 2019

Hi,

Is there a way to pass gst-launch-1.0 parameters via the sample app?

I run gst-launch with these parameters

gst-launch-1.0 rtspsrc location="rtsp://sample_url" ! rtph264depay ! h264parse ! kvssink stream-name="sample_stream_name" storage-size=512 access-key="SAMPLEKEY" secret-key="SAMPLESECRET" aws-region="sample_region"

But i want to do something like:

kinesis_video_gstreamer_sample_app ! rtph264depay ! h264parse ! kvssink stream-name rtsp://url

I want to pass the parameters "rtph264depay ! h264parse ! kvssink" via kinesis_video_gstreamer_sample_app. Is there a way to do this?

@chehefen
Copy link
Contributor

Sorry there is no way to do this, this is not how gstreamer works. Can you explain why you want to do this? If you want to use the kvssink plugin in a gstreamer application you can refer to this sample: https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/kinesis-video-gstreamer-plugin/demo-src/kvs_producer_plugin_rtsp_demo.cpp

@claw68
Copy link
Author

claw68 commented Jul 1, 2019

Hi @chehefen thank you for the reply.

I encountered this issue:

#193 (comment)

I have to add h264parse to the pipeline for it to work. Is there a way append/modify the pipeline of kinesis_video_gstreamer_sample_app? Or is kvs_producer_plugin_rtsp_demo.cpp is the file i have to tinker to build a custom sample app?

@unicornss
Copy link
Contributor

unicornss commented Jul 3, 2019

kvs_producer_plugin_rtsp_demo.cpp uses the kvssink element. You may find references on how to use h264parse kinesis_video_gstreamer_sample_app which uses the appsink element to send frames to kvs using putFrame API.

Ref: How to send RTSP video to KVS using demo application

@claw68 claw68 closed this as completed Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants