Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Add tags in metaconvert
Browse files Browse the repository at this point in the history
  • Loading branch information
linxie47 committed Jan 10, 2020
1 parent f67896e commit 7490bb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion samples/shell/metapublish/face_metapublish_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ else
SOURCE="-i ${INPUT}"
fi

temp_file=/tmp/ffmpeg-custom-tag.json
echo "{\"segmentation\": 10000000}" > $temp_file
# optional
CUSTOM_TAG="file|$temp_file"

ffmpeg $SOURCE -vf \
"detect=model=$DETECT_MODEL_PATH:model_proc=$(PROC_PATH $MODEL1):device=$DEVICE, \
classify=model=$CLASS_MODEL_PATH:model_proc=$(PROC_PATH $MODEL2):device=$DEVICE, \
classify=model=$CLASS_MODEL_PATH1:model_proc=$(PROC_PATH $MODEL3):device=$DEVICE, \
metaconvert=converter=json:method=all:source=$INPUT" \
metaconvert=converter=json:method=all:source=$INPUT:tags=$CUSTOM_TAG" \
-vframes 100 \
-an -y -f metapublish -output_format batch $OUTFILE

0 comments on commit 7490bb0

Please sign in to comment.