Skip to content

Commit 86c2b74

Browse files
author
Yoichi Kawasaki
committed
Version up 0.1.4
1 parent acc0e1e commit 86c2b74

File tree

9 files changed

+45
-2
lines changed

9 files changed

+45
-2
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Release 0.1.4 - 2017/01/10
2+
3+
* Added processor: Azure Media Redactor
4+
* Added processor configuration sample: Redaction, Indexer2 (Japanese & English)
5+
16
Release 0.1.3 - 2016/10/10
27

38
* Added a functionality to create an output asset infomation file named ASSETINFO.txt

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ azure-media-processor-java currently supports only Media analytics type of proce
1313
* Azure Media Motion Detector
1414
* Azure Media Face Detector
1515
* Azure Media Hyperlapse
16+
* Azure Media Redactor
1617

1718
But it has plan to support the following processors as well in near future:
1819

@@ -51,4 +52,5 @@ Here are args for the application that you specify in running the app:
5152
15 -> Azure Media Stabilizer
5253
16 -> Azure Media Video Thumbnails
5354
17 -> Azure Media OCR
55+
18 -> Azure Media Redactor
5456

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.3
1+
0.1.4

bin/run-redactor.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
cwd=`dirname "$0"`
4+
expr "$0" : "/.*" > /dev/null || cwd=`(cd "$cwd" && pwd)`
5+
6+
BASE_DIR="${cwd}/.."
7+
ASSET_NAME="<ASSET NAME>"
8+
VIDEO_FILE="<SAMPLE VIDEO FILE PATH(ex. /path/sample.mp4)>"
9+
AMS_CONF_FILE="${BASE_DIR}/app.config"
10+
AMSMP_THUMB_PARAM_FILE="${BASE_DIR}/conf/default-redactor.json"
11+
BATCH_OUTPUT_DIR="<OUTPUT DIRECTORY>"
12+
13+
cd ${BASE_DIR}
14+
mvn exec:java -Dexec.args="-t 18 -a ${ASSET_NAME} -f ${VIDEO_FILE} -c ${AMS_CONF_FILE} -p ${AMSMP_THUMB_PARAM_FILE} -o ${BATCH_OUTPUT_DIR} -d true"
15+
16+

bin/run-videothumbnails.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
cwd=`dirname "$0"`
4+
expr "$0" : "/.*" > /dev/null || cwd=`(cd "$cwd" && pwd)`
5+
6+
BASE_DIR="${cwd}/.."
7+
ASSET_NAME="<ASSET NAME>"
8+
VIDEO_FILE="<SAMPLE VIDEO FILE PATH(ex. /path/sample.mp4)>"
9+
AMS_CONF_FILE="${BASE_DIR}/app.config"
10+
AMSMP_THUMB_PARAM_FILE="${BASE_DIR}/conf/default-videothumbnails.json"
11+
BATCH_OUTPUT_DIR="<OUTPUT DIRECTORY>"
12+
13+
cd ${BASE_DIR}
14+
mvn exec:java -Dexec.args="-t 16 -a ${ASSET_NAME} -f ${VIDEO_FILE} -c ${AMS_CONF_FILE} -p ${AMSMP_THUMB_PARAM_FILE} -o ${BATCH_OUTPUT_DIR} -d true"

conf/default-redactor.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
'version':'1.0',
3+
'options': {'mode':'combined'}
4+
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>azuremediaprocessor</groupId>
55
<artifactId>azure-media-processor-java</artifactId>
66
<packaging>jar</packaging>
7-
<version>0.1.3</version>
7+
<version>0.1.4</version>
88
<name>azure-media-processor-java</name>
99
<url>http://maven.apache.org</url>
1010

src/main/java/azuremediaprocessor/App.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public void start( String[] args )
4343
+ "15 -> Azure Media Stabilizer\n"
4444
+ "16 -> Azure Media Video Thumbnails\n"
4545
+ "17 -> Azure Media OCR\n"
46+
+ "18 -> Azure Media Redactor\n"
4647
);
4748
opts.addOption("f", "file", true, "(Optional) Uploading file. By specifing this, you start from uploading file");
4849
opts.addOption("a", "assetname", true, "(Required) Asset Name to process media indexing");

src/main/java/azuremediaprocessor/Constants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class Constants {
2121
m.put("15", "Azure Media Stabilizer");
2222
m.put("16", "Azure Media Video Thumbnails");
2323
m.put("17", "Azure Media OCR");
24+
m.put("18", "Azure Media Redactor");
2425
MediaProcessorType_MAP = Collections.unmodifiableMap(m);
2526
}
2627
public Constants() { }

0 commit comments

Comments
 (0)