Skip to content

Commit

Permalink
Handle SIGSEGV by restarting streaming process (#33)
Browse files Browse the repository at this point in the history
* Disable gstreamer fault handler and let streaming process to die
* Restart streaming process on failure
  • Loading branch information
david-molnar-oculai authored Dec 11, 2024
1 parent f012c10 commit 3c73440
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ services:
GST_PLUGIN_PATH: /opt/app/amazon-kinesis-video-streams-producer-sdk-cpp/build
no_proxy: $DEVICE_IP
command: /bin/sh "start_stream.sh"
restart: 'unless-stopped'

2 changes: 1 addition & 1 deletion start_stream.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
gst-launch-1.0 rtspsrc \
gst-launch-1.0 --no-fault rtspsrc \
location="rtsp://$DEVICE_USERNAME:$DEVICE_PASSWORD@$DEVICE_IP/axis-media/media.amp" short-header=TRUE ! rtph264depay ! h264parse ! video/x-h264 !kvssink stream-name="$AWS_KINESIS_STREAM_NAME" storage-size=512 \
aws-region="$AWS_REGION"

0 comments on commit 3c73440

Please sign in to comment.