forked from pravega/gstreamer-pravega
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpravega-to-fakesink.sh
executable file
·36 lines (33 loc) · 1.05 KB
/
pravega-to-fakesink.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
#
# Copyright (c) Dell Inc., or its subsidiaries. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
set -ex
ROOT_DIR=$(readlink -f $(dirname $0)/..)
LOG_FILE="/tmp/$(basename "${0}" .sh).log"
pushd ${ROOT_DIR}/gst-plugin-pravega
cargo build
ls -lh ${ROOT_DIR}/target/debug/*.so
export GST_PLUGIN_PATH=${ROOT_DIR}/target/debug:${GST_PLUGIN_PATH}
export GST_DEBUG="pravegasrc:TRACE"
export PRAVEGA_VIDEO_LOG=debug
export RUST_BACKTRACE=1
export pravega_client_tls_cert_path=/etc/ssl/certs/ca-certificates.crt
PRAVEGA_SCOPE=${PRAVEGA_SCOPE:-examples}
PRAVEGA_STREAM=${PRAVEGA_STREAM:-test1}
export GST_DEBUG_DUMP_DOT_DIR="/tmp/gst-dot/$(basename "${0}" .sh)"
mkdir -p ${GST_DEBUG_DUMP_DOT_DIR}
gst-launch-1.0 \
-v \
pravegasrc \
stream=${PRAVEGA_SCOPE}/${PRAVEGA_STREAM} \
$* \
! identity silent=false \
! fakesink sync=false \
|& tee ${LOG_FILE}