Skip to content

Commit f1a572c

Browse files
author
prathamsss
committed
Bash seetup
1 parent 118d38f commit f1a572c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ RUN make
3939
ENV LD_LIBRARY_PATH=/opt/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/lib
4040
ENV GST_PLUGIN_PATH=/opt/amazon-kinesis-video-streams-producer-sdk-cpp/build/:$GST_PLUGIN_PATH
4141

42+
43+
RUN export GST_PLUGIN_PATH=/opt/amazon-kinesis-video-streams-producer-sdk-cpp/build
44+
RUN export LD_LIBRARY_PATH=/opt/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/lib
45+
4246
# main program
4347
COPY requirements.txt /app/requirements.txt
4448

@@ -48,4 +52,7 @@ WORKDIR /app
4852
RUN pip3 install -r requirements.txt
4953

5054
COPY . /app
51-
ENTRYPOINT ["python3", "main.py"]
55+
56+
RUN gst-launch-1.0 v4l2src do-timestamp=TRUE device=/dev/video0 ! videoconvert ! video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! x264enc bframes=0 key-int-max=45 bitrate=500 ! video/x-h264,stream-format=avc,alignment=au,profile=baseline ! kvssink stream-name="testapp" storage-size=512 access-key="AKIAU7NAZHMYB6H2VJ7S" secret-key="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" aws-region="us-west-2"
57+
58+
# ENTRYPOINT ["python3", "main.py"]

0 commit comments

Comments
 (0)