Comments (4)
Hi @niyatim23 @mariobaldini @hyandell @yuma-m
I updated the dockerfile little bit and now it's working fine
RUN apt install -y \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-tools \ # Add this line to install GStreamer tools
openjdk-8-jre && \
rm -rf /var/lib/apt/lists/*
But now when I am running this command
AWS_ACCESS_KEY_ID=$1 AWS_SECRET_ACCESS_KEY=$2 AWS_DEFAULT_REGION="us-east-1" gst-launch-1.0 rtspsrc location=$3 short-header=TRUE ! rtph264depay ! h264parse ! kvssink stream-name=camera_148 storage-size=512
getting
Additional debug info:
gstrtspsrc.c(5427): gst_rtspsrc_reconnect (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection.
and this is stuck here.
I also tried the command:
AWS_ACCESS_KEY_ID=$1 AWS_SECRET_ACCESS_KEY=$2 AWS_DEFAULT_REGION="us-east-1" ./kvs_gstreamer_sample camera_148 rtsp://admin:password@url
but getting
New pad found: recv_rtp_src_0_321070664_96
[INFO ] [30-08-2023 05:38:12:185.572 GMT] Pad link failed
Error received from element source: Internal data stream error.
Debugging information: gstrtspsrc.c(5653): gst_rtspsrc_loop (): /GstPipeline:rtsp-kinesis-pipeline/GstRTSPSrc:source:
streaming stopped, reason not-linked (-1)
from amazon-kinesis-video-streams-demos.
Hi @Mr-MeerMoazzam, can you please check if your container has gstreamer installed with gst-launch-1.0 --gst-version
. If not, please install gstreamer before you try again
from amazon-kinesis-video-streams-demos.
Hi @niyatim23
This is the docker file:
FROM ubuntu:18.04 AS builder
RUN apt-get upgrade && \
apt-get update && \
apt-get install -y \
byacc \
cmake \
curl \
g++ \
git \
gstreamer1.0-plugins-base-apps \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
m4 \
maven \
openjdk-8-jdk \
pkg-config \
xz-utils && \
rm -rf /var/lib/apt/lists/* && \
cd /opt/
# ===== Setup Kinesis Video Streams Producer SDK (CPP) =======================================
WORKDIR /opt/
RUN git clone https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git
WORKDIR /opt/amazon-kinesis-video-streams-producer-sdk-cpp/build/
RUN cmake .. -DBUILD_GSTREAMER_PLUGIN=ON && \
make
FROM ubuntu:18.04
RUN apt update && \
apt install -y \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
openjdk-8-jre && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /opt/amazon-kinesis-video-streams-producer-sdk-cpp /opt/amazon-kinesis-video-streams-producer-sdk-cpp
WORKDIR /opt/amazon-kinesis-video-streams-producer-sdk-cpp/build/
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/
ENV LD_LIBRARY_PATH=/opt/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/lib:$LD_LIBRARY_PATH
ENV GST_PLUGIN_PATH=/opt/amazon-kinesis-video-streams-producer-sdk-cpp/build
I build the container using this
from amazon-kinesis-video-streams-demos.
Closing this issue as it has been resolved
from amazon-kinesis-video-streams-demos.
Related Issues (20)
- [GST Plugin] Audio is garbled with WebRTC HOT 14
- [GST Plugin] AAC Invalid Codec Private Data HOT 10
- Use cmake3 from yum
- Pass AWS and stream link arguments in docker run HOT 3
- error in aws kinesis stream setup in raspberry pi with docker file HOT 1
- Does Kinesis Video Stream Support UDP HOT 1
- Unable to load kvsplugin HOT 2
- Encountering exception when sending data HOT 1
- ERROR running producer C canary HOT 4
- RTSP demo application disconnecting after some time HOT 4
- Unable to load kvsplugin HOT 1
- Add gstreamer plugin usage demo for kinesis webrtc (gst-launch pipeline) HOT 4
- npm run build throws: Module not found: Error: Can't resolve 'crypto'
- NetworkingError: Network Failure HOT 1
- Can't see stream in Media Stream Viewer HOT 1
- ReferenceError: SharedArrayBuffer is not defined HOT 2
- Help requested to run the KVS Browser-based Ingestion nodejs application
- Support H265
- Subject: Using gst/gst-kvs-plugin on EC2 Linux to extract frames from server HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-kinesis-video-streams-demos.