Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ else
echo "MODELS_PATH: $MODELS_PATH"
fi

# List help message
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Usage: $0 [INPUT] [DEVICE] [OUTPUT]"
echo ""
echo "Arguments:"
echo " INPUT - Input source (default: Pexels video URL)"
echo " DEVICE - Device (default: CPU). Supported: CPU, GPU, NPU"
echo " OUTPUT - Output type (default: file). Supported: file, display, fps, json, display-and-json"
echo ""
exit 0
fi

INPUT=${1:-https://videos.pexels.com/video-files/5144823/5144823-uhd_3840_2160_25fps.mp4}
DEVICE=${2:-CPU}
OUTPUT=${3:-file} # Supported values: display, fps, json, display-and-json, file
Expand All @@ -27,15 +39,15 @@ if [[ -z $INPUT ]]; then
fi

if [[ $OUTPUT == "display" ]]; then
SINK_ELEMENT="gvawatermark ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! videoconvert ! gvafpscounter ! autovideosink sync=false"
elif [[ $OUTPUT == "fps" ]]; then
SINK_ELEMENT=" gvafpscounter ! fakesink async=false"
elif [[ $OUTPUT == "json" ]]; then
rm -f output.json
SINK_ELEMENT=" gvametaconvert ! gvametapublish file-format=json-lines file-path=output.json ! fakesink async=false"
elif [[ $OUTPUT == "display-and-json" ]]; then
rm -f output.json
SINK_ELEMENT="gvawatermark ! gvametaconvert ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvametaconvert ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
elif [[ $OUTPUT == "file" ]]; then
FILE="$(basename ${INPUT%.*})"
rm -f "action_recognition_${FILE}_${DEVICE}.mp4"
Expand All @@ -47,7 +59,7 @@ elif [[ $OUTPUT == "file" ]]; then
echo "Error - VA-API H.264 encoder not found."
exit
fi
SINK_ELEMENT="gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=action_recognition_${FILE}_${DEVICE}.mp4"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=action_recognition_${FILE}_${DEVICE}.mp4"
else
echo Error wrong value for OUTPUT parameter
echo Valid values: "display" - render to screen, "file" - render to file, "fps" - print FPS, "json" - write to output.json, "display-and-json" - render to screen and write to output.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ else
echo "MODELS_PATH: $MODELS_PATH"
fi

# Check help message
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Usage: $0 [DEVICE] [OUTPUT] [INPUT]"
echo ""
echo "Arguments:"
echo " DEVICE - Device (default: GPU). Supported: CPU, GPU, NPU"
echo " OUTPUT - Output type (default: file). Supported: file, display, fps, json, display-and-json"
echo " INPUT - Input source (default: Pexels video URL)"
echo ""
exit 0
fi

DETECT_MODEL="centerface"
DETECT_MODEL_PATH="$MODELS_PATH/public/$DETECT_MODEL/FP32/$DETECT_MODEL.xml"

Expand Down Expand Up @@ -89,9 +101,9 @@ if [[ "$OUTPUT" == "file" ]]; then
echo "Error - VA-API H.264 encoder not found."
exit 1
fi
SINK_ELEMENT="gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=$OUTPUT_FILE"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=$OUTPUT_FILE"
elif [[ "$OUTPUT" == "display" ]] || [[ -z $OUTPUT ]]; then
SINK_ELEMENT="gvawatermark ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
elif [[ "$OUTPUT" == "fps" ]]; then
SINK_ELEMENT="gvafpscounter ! fakesink async=false"
elif [[ "$OUTPUT" == "json" ]]; then
Expand All @@ -105,7 +117,7 @@ elif [[ "$OUTPUT" == "display-and-json" ]]; then
if [ -f "$OUTPUT_FILE" ]; then
rm "$OUTPUT_FILE"
fi
SINK_ELEMENT="gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=$OUTPUT_FILE ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=$OUTPUT_FILE ! videoconvert ! gvafpscounter ! autovideosink sync=false"
else
echo Error wrong value for SINK_ELEMENT parameter
echo Valid values: "file" - render to file, "display" - render to screen, "fps" - print FPS, "json" - write to json file, "display-and-json" - render to screen and write to json file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ else
echo "MODELS_PATH: $MODELS_PATH"
fi

# Print help message
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Usage: $0 [DEVICE] [OUTPUT] [INPUT]"
echo ""
echo "Arguments:"
echo " DEVICE - Device (default: GPU). Supported: CPU, GPU, NPU"
echo " OUTPUT - Output type (default: file). Supported: file, display, fps, json, display-and-json"
echo " INPUT - Input source (default: Pexels video URL)"
echo ""
exit 0
fi

MODEL="yolo11s"
MODEL_PATH="$MODELS_PATH/public/$MODEL/FP32/$MODEL.xml"

Expand Down Expand Up @@ -81,9 +93,9 @@ if [[ "$OUTPUT" == "file" ]]; then
echo "Error - VA-API H.264 encoder not found."
exit 1
fi
SINK_ELEMENT="gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=$OUTPUT_FILE"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=$OUTPUT_FILE"
elif [[ "$OUTPUT" == "display" ]] || [[ -z $OUTPUT ]]; then
SINK_ELEMENT="gvawatermark ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
elif [[ "$OUTPUT" == "fps" ]]; then
SINK_ELEMENT="gvafpscounter ! fakesink async=false"
elif [[ "$OUTPUT" == "json" ]]; then
Expand All @@ -97,7 +109,7 @@ elif [[ "$OUTPUT" == "display-and-json" ]]; then
if [ -f "$OUTPUT_FILE" ]; then
rm "$OUTPUT_FILE"
fi
SINK_ELEMENT="gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=$OUTPUT_FILE ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=$OUTPUT_FILE ! videoconvert ! gvafpscounter ! autovideosink sync=false"
else
echo Error wrong value for SINK_ELEMENT parameter
echo Valid values: "file" - render to file, "display" - render to screen, "fps" - print FPS, "json" - write to json file, "display-and-json" - render to screen and write to json file
Expand Down
22 changes: 19 additions & 3 deletions samples/gstreamer/gst_launch/detection_with_yolo/yolo_detect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ else
echo "MODELS_PATH: $MODELS_PATH"
fi

# List help message
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Usage: $0 [MODEL] [DEVICE] [INPUT] [OUTPUT] [PPBKEND] [PRECISION]"
echo ""
echo "Arguments:"
echo " MODEL - Model name (default: yolox_s)"
echo " Supported: yolo_all, yolox-tiny, yolox_s, yolov7, yolov8s, yolov8n-obb, yolov8n-seg, yolov9c, yolov10s, yolo11s, yolo11s-obb, yolo11s-seg, yolo11s-pose"
echo " DEVICE - Device (default: GPU). Supported: CPU, GPU, NPU"
echo " INPUT - Input source (default: Pexels video URL)"
echo " OUTPUT - Output type (default: file). Supported: file, display, fps, json, display-and-json"
echo " PPBKEND - Preprocessing backend (default: auto). Supported: ie, opencv, va, va-surface-sharing"
echo " PRECISION - Model precision (default: INT8). Supported: INT8, FP32, FP16"
echo ""
exit 0
fi

MODEL=${1:-"yolox_s"} # Supported values: yolo_all, yolox-tiny, yolox_s, yolov7, yolov8s, yolov8n-obb, yolov8n-seg, yolov9c, yolov10s, yolo11s, yolo11s-obb, yolo11s-seg, yolo11s-pose
DEVICE=${2:-"GPU"} # Supported values: CPU, GPU, NPU
INPUT=${3:-"https://videos.pexels.com/video-files/1192116/1192116-sd_640_360_30fps.mp4"}
Expand Down Expand Up @@ -121,17 +137,17 @@ if [[ "$OUTPUT" == "file" ]]; then
echo "Error - VA-API H.264 encoder not found."
exit 1
fi
SINK_ELEMENT="gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=yolo_${FILE}_${MODEL}_${PRECISION}_${DEVICE}.mp4"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=yolo_${FILE}_${MODEL}_${PRECISION}_${DEVICE}.mp4"
elif [[ "$OUTPUT" == "display" ]] || [[ -z $OUTPUT ]]; then
SINK_ELEMENT="gvawatermark ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
elif [[ "$OUTPUT" == "fps" ]]; then
SINK_ELEMENT="gvafpscounter ! fakesink async=false"
elif [[ "$OUTPUT" == "json" ]]; then
rm -f output.json
SINK_ELEMENT="gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! fakesink async=false"
elif [[ "$OUTPUT" == "display-and-json" ]]; then
rm -f output.json
SINK_ELEMENT="gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
else
echo Error wrong value for SINK_ELEMENT parameter
echo Valid values: "file" - render to file, "display" - render to screen, "fps" - print FPS, "json" - write to output.json, "display-and-json" - render to screen and write to output.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ else
echo "MODELS_PATH: $MODELS_PATH"
fi

# List help message
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Usage: $0 [INPUT] [DEVICE] [OUTPUT]"
echo ""
echo "Arguments:"
echo " INPUT - Input source (default: Pexels video URL)"
echo " DEVICE - Device (default: CPU). Supported: CPU, GPU"
echo " OUTPUT - Output type (default: display). Supported: file, display, fps, json, display-and-json"
echo ""
exit 0
fi

INPUT=${1:-https://github.com/intel-iot-devkit/sample-videos/raw/master/head-pose-face-detection-female-and-male.mp4}
DEVICE=${2:-CPU}
OUTPUT=${3:-display} # Supported values: display, fps, json, display-and-json
Expand All @@ -30,15 +42,15 @@ else
fi

if [[ $OUTPUT == "display" ]] || [[ -z $OUTPUT ]]; then
SINK_ELEMENT="gvawatermark ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! videoconvert ! gvafpscounter ! autovideosink sync=false"
elif [[ $OUTPUT == "fps" ]]; then
SINK_ELEMENT="gvafpscounter ! fakesink async=false "
elif [[ $OUTPUT == "json" ]]; then
rm -f output.json
SINK_ELEMENT="gvametaconvert ! gvametapublish file-format=json-lines file-path=output.json ! fakesink async=false "
elif [[ $OUTPUT == "display-and-json" ]]; then
rm -f output.json
SINK_ELEMENT="gvawatermark ! gvametaconvert ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvametaconvert ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
elif [[ $OUTPUT == "file" ]]; then
FILE="$(basename ${INPUT%.*})"
rm -f "face_detection_and_classification_${FILE}_${DEVICE}.mp4"
Expand All @@ -50,7 +62,7 @@ elif [[ $OUTPUT == "file" ]]; then
echo "Error - VA-API H.264 encoder not found."
exit
fi
SINK_ELEMENT="gvawatermark ! gvafpscounter ! ${ENCODER} ! avimux name=mux ! filesink location=face_detection_and_classification_${FILE}_${DEVICE}.mp4"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvafpscounter ! ${ENCODER} ! avimux name=mux ! filesink location=face_detection_and_classification_${FILE}_${DEVICE}.mp4"
else
echo Error wrong value for OUTPUT parameter
echo Valid values: "display" - render to screen, "fps" - print FPS, "json" - write to output.json, "display-and-json" - render to screen and write to output.json
Expand Down
21 changes: 18 additions & 3 deletions samples/gstreamer/gst_launch/geti_deployment/geti_sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ else
echo "MODELS_PATH: $MODELS_PATH"
fi

# List help message
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Usage: $0 [MODEL_TYPE] [MODEL_PATH] [DEVICE] [PREPROC_BACKEND] [INPUT] [OUTPUT]"
echo ""
echo "Arguments:"
echo " MODEL_TYPE - Model type (default: detection). Supported: rotated-detection, instance-segmentation, detection, geti-detection, classification, geti-classification-single, geti-classification-multi, geti-obb, geti-segmentation, anomaly-detection"
echo " MODEL_PATH - Path to the model XML file relative to MODELS_PATH (default: /home/path/to/your/model.xml)"
echo " DEVICE - Device (default: CPU). Supported: CPU, GPU, NPU"
echo " PREPROC_BACKEND - Preprocessing backend (default: ie for CPU, va-surface-sharing for GPU, va for NPU). Supported: ie, opencv, va, va-surface-sharing"
echo " INPUT - Input source (default: Pexels video URL)"
echo " OUTPUT - Output type (default: file). Supported: file, display, fps, json, display-and-json"
echo ""
exit 0
fi

# Default values for parameters
# MODEL_TYPE can be rotated-detection, instance-segmentation, detection, geti-detection, classification, geti-obb, geti-segmentation, geti-classification-single, geti-classification-multi,anomaly-detection
MODEL_TYPE=${1:-detection}
Expand Down Expand Up @@ -106,17 +121,17 @@ if [[ $OUTPUT == "file" ]]; then
echo "Error - VA-API H.264 encoder not found."
exit
fi
SINK_ELEMENT="gvawatermark${WT_OBB_ELEMENT} ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=geti_${FILE}_${MODEL_TYPE}_${DEVICE}.mp4"
SINK_ELEMENT="vapostproc ! gvawatermark${WT_OBB_ELEMENT} ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=geti_${FILE}_${MODEL_TYPE}_${DEVICE}.mp4"
elif [[ $OUTPUT == "display" ]] || [[ -z $OUTPUT ]]; then
SINK_ELEMENT="gvawatermark${WT_OBB_ELEMENT} ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark${WT_OBB_ELEMENT} ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
elif [[ $OUTPUT == "fps" ]]; then
SINK_ELEMENT="gvafpscounter ! fakesink async=false"
elif [[ $OUTPUT == "json" ]]; then
rm -f output.json
SINK_ELEMENT="gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! fakesink async=false"
elif [[ $OUTPUT == "display-and-json" ]]; then
rm -f output.json
SINK_ELEMENT="gvawatermark${WT_OBB_ELEMENT}! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark${WT_OBB_ELEMENT}! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
else
echo Error wrong value for SINK_ELEMENT parameter
echo Valid values: "file" - render to file, "display" - render to screen, "fps" - print FPS, "json" - write to output.json, "display-and-json" - render to screen and write to output.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ else
echo "MODELS_PATH: $MODELS_PATH"
fi

# List help message
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Usage: $0 [INPUT] [DEVICE] [OUTPUT] [ROI_COORDS]"
echo ""
echo "Arguments:"
echo " INPUT - Input source (default: Pexels video URL)"
echo " DEVICE - Device (default: CPU). Supported: CPU, GPU, NPU"
echo " OUTPUT - Output type (default: file). Supported: file, display, fps, json, display-and-json"
echo " ROI_COORDS - Specifies pixel absolute coordinates of ROI in form: x_top_left,y_top_left,x_bottom_right,y_bottom_right"
echo " If not defined, the roi list file ./roi_list.json will be used"
echo ""
exit 0
fi

INPUT=${1:-"https://videos.pexels.com/video-files/1192116/1192116-sd_640_360_30fps.mp4"}
DEVICE=${2:-"CPU"} # Supported values: CPU, GPU, NPU
OUTPUT=${3:-"file"} # Supported values: file, display, fps, json, display-and-json
Expand Down Expand Up @@ -49,17 +63,17 @@ if [[ "$OUTPUT" == "file" ]]; then
echo "Error - VA-API H.264 encoder not found."
exit
fi
SINK_ELEMENT="gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=gvaattachroi_${FILE}_${DEVICE}.mp4"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvafpscounter ! ${ENCODER} ! h264parse ! mp4mux ! filesink location=gvaattachroi_${FILE}_${DEVICE}.mp4"
elif [[ "$OUTPUT" == "display" ]] || [[ -z $OUTPUT ]]; then
SINK_ELEMENT="gvawatermark ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! videoconvertscale ! gvafpscounter ! autovideosink sync=false"
elif [[ "$OUTPUT" == "fps" ]]; then
SINK_ELEMENT="gvafpscounter ! fakesink async=false"
elif [[ "$OUTPUT" == "json" ]]; then
rm -f output.json
SINK_ELEMENT="gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! fakesink async=false"
elif [[ "$OUTPUT" == "display-and-json" ]]; then
rm -f output.json
SINK_ELEMENT="gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
else
echo Error wrong value for SINK_ELEMENT parameter
echo Valid values: "file" - render to file, "display" - render to screen, "fps" - print FPS, "json" - write to output.json, "display-and-json" - render to screen and write to output.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ else
echo "MODELS_PATH: $MODELS_PATH"
fi

# List help message
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Usage: $0 [INPUT] [DEVICE] [OUTPUT]"
echo ""
echo "Arguments:"
echo " INPUT - Input source (default: Pexels video URL)"
echo " DEVICE - Device (default: CPU). Supported: CPU, GPU"
echo " OUTPUT - Output type (default: display). Supported: file, display, fps, json, display-and-json"
echo ""
exit 0
fi

INPUT=${1:-https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4}
DEVICE=${2:-CPU}
OUTPUT=${3:-display} # Supported values: display, fps, json, display-and-json
Expand All @@ -28,15 +40,15 @@ else
fi

if [[ $OUTPUT == "display" ]] || [[ -z $OUTPUT ]]; then
SINK_ELEMENT="gvawatermark ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! videoconvert ! gvafpscounter ! autovideosink sync=false"
elif [[ $OUTPUT == "fps" ]]; then
SINK_ELEMENT="gvafpscounter ! fakesink async=false "
elif [[ $OUTPUT == "json" ]]; then
rm -f output.json
SINK_ELEMENT="gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! fakesink async=false "
elif [[ $OUTPUT == "display-and-json" ]]; then
rm -f output.json
SINK_ELEMENT="gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvametaconvert add-tensor-data=true ! gvametapublish file-format=json-lines file-path=output.json ! videoconvert ! gvafpscounter ! autovideosink sync=false"
elif [[ $OUTPUT == "file" ]]; then
FILE="$(basename ${INPUT%.*})"
rm -f "human_pose_estimation_${FILE}_${DEVICE}.mp4"
Expand All @@ -48,7 +60,7 @@ elif [[ $OUTPUT == "file" ]]; then
echo "Error - VA-API H.264 encoder not found."
exit
fi
SINK_ELEMENT="gvawatermark ! gvafpscounter ! ${ENCODER} ! avimux name=mux ! filesink location=human_pose_estimation_${FILE}_${DEVICE}.mp4"
SINK_ELEMENT="vapostproc ! gvawatermark ! gvafpscounter ! ${ENCODER} ! avimux name=mux ! filesink location=human_pose_estimation_${FILE}_${DEVICE}.mp4"
else
echo Error wrong value for OUTPUT parameter
echo Valid values: "display" - render to screen, "file" - render to file, "fps" - print FPS, "json" - write to output.json, "display-and-json" - render to screen and write to output.json
Expand Down
Loading
Loading