Code Monkey home page Code Monkey logo

Comments (4)

Mr-MeerMoazzam avatar Mr-MeerMoazzam commented on September 26, 2024 1

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.

niyatim23 avatar niyatim23 commented on September 26, 2024

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.

Mr-MeerMoazzam avatar Mr-MeerMoazzam commented on September 26, 2024

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.

niyatim23 avatar niyatim23 commented on September 26, 2024

Closing this issue as it has been resolved

from amazon-kinesis-video-streams-demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.