Skip to content

Commit

Permalink
Merge branch 'ffmpeg_griffin' into 'master'
Browse files Browse the repository at this point in the history
FFMPEG griffin

See merge request vitam/vitam-griffins!60
  • Loading branch information
croftophile committed Oct 3, 2019
2 parents e746652 + 290b865 commit dca8030
Show file tree
Hide file tree
Showing 57 changed files with 2,382 additions and 390 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ obj/
**/.classpath
**/.project
**/.vscode

**/.encoding
23 changes: 0 additions & 23 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,10 @@
<artifactId>common</artifactId>
<name>Vitam griffins common</name>

<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
11 changes: 11 additions & 0 deletions cookbook/griffin_referential/griffin-ffmpeg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"Identifier": "GRI-000007",
"Name": "Griffon FFMPEG",
"Description": "A ffmpeg griffin",
"CreationDate": "2019-07-30T15:55:30.721",
"LastUpdate": "2019-07-30T16:34:21.542",
"ExecutableName": "ffmpeg-griffin",
"ExecutableVersion": "V1.0.0"
}
]
11 changes: 11 additions & 0 deletions cookbook/griffin_referential/griffin-verapdf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"Identifier": "GRI-000008",
"Name": "Griffon veraPDF",
"Description": "A verapdf griffin",
"CreationDate": "2019-07-30T15:55:30.721",
"LastUpdate": "2019-07-30T16:34:21.542",
"ExecutableName": "verapdf-griffin",
"ExecutableVersion": "V1.0.0"
}
]
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"Identifier": "GRI-000001",
"Identifier": "GRI-000002",
"Name": "Griffon Libreoffice",
"Description": "A libreoffice griffin",
"CreationDate": "2018-11-16T15:55:30.721",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"Identifier": "GRI-000005",
"Identifier": "GRI-000006",
"Name": "Griffon Odfvalidator",
"Description": "A jhove griffin",
"CreationDate": "2018-11-16T15:55:30.721",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"Identifier": "GRI-000001",
"Identifier": "GRI-000003",
"Name": "Griffon siegfried",
"Description": "A siegfried griffin",
"CreationDate": "2018-11-16T15:55:30.721",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"fmt/291",
"fmt/567"
],
"GriffinIdentifier": "GRI-000005",
"GriffinIdentifier": "GRI-000006",
"Timeout": 20,
"MaxSize": 10000000,
"Debug": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"DefaultGriffin": {
"GriffinIdentifier": "GRI-000002",
"GriffinIdentifier": "GRI-000008",
"Timeout": 10,
"MaxSize": 10000000,
"Debug":true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"GriffinByFormat": [
{
"FormatList": ["fmt/45", "fmt/291"],
"GriffinIdentifier": "GRI-000001",
"GriffinIdentifier": "GRI-000002",
"Timeout": 20,
"MaxSize": 10000000,
"Debug":true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"GriffinByFormat": [
{
"FormatList": ["x-fmt/3"],
"GriffinIdentifier": "GRI-000001",
"GriffinIdentifier": "GRI-000003",
"Timeout": 20,
"MaxSize": 10000000,
"Debug":true,
Expand All @@ -25,7 +25,7 @@
}
],
"DefaultGriffin": {
"GriffinIdentifier": "GRI-000001",
"GriffinIdentifier": "GRI-000003",
"Timeout": 20,
"MaxSize": 10000000,
"Debug": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[
{
"Identifier": "PSC-000013",
"Name": "Tranformation en MP3",
"Description": "Ce scenario transforme un fichier audio WMA en MP3",
"CreationDate": "2018-11-16T15:55:30.721",
"LastUpdate": "2018-11-20T15:34:21.542",
"ActionList": [
"GENERATE"
],
"MetadataFilter": null,
"GriffinByFormat": [
{
"FormatList": ["fmt/132"],
"GriffinIdentifier": "GRI-000007",
"Timeout": 200,
"MaxSize": 10000000,
"Debug":true,
"ActionDetail": [
{
"Type": "GENERATE",
"Values": {
"Extension": "MP3",
"Args": ["-codec:a", "libmp3lame"]
}
}
]
}
],
"DefaultGriffin": null
}
]

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[
{
"Identifier": "PSC-000014",
"Name": "Tranformation en MP4",
"Description": "Ce scenario transforme un fichier vidéo MP4",
"CreationDate": "2018-11-16T15:55:30.721",
"LastUpdate": "2018-11-20T15:34:21.542",
"ActionList": [
"GENERATE"
],
"MetadataFilter": null,
"GriffinByFormat": [
{
"FormatList": ["fmt/199"],
"GriffinIdentifier": "GRI-000007",
"Timeout": 20,
"MaxSize": 100000000,
"Debug":true,
"ActionDetail": [
{
"Type": "GENERATE",
"Values": {
"Extension": "MP4",
"Args": ["-codec:v", "libx264", "-preset", "superfast", "-crf", "99", "-profile:v", "baseline", "-level", "3.0", "-acodec", "libfdk_aac"]
}
}
]
}
],
"DefaultGriffin": null
}
]

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[
{
"Identifier": "PSC-000014",
"Name": "Tranformation en MP4",
"Description": "Ce scenario transforme un fichier vidéo MP4",
"CreationDate": "2018-11-16T15:55:30.721",
"LastUpdate": "2018-11-20T15:34:21.542",
"ActionList": [
"GENERATE"
],
"MetadataFilter": null,
"GriffinByFormat": [
{
"FormatList": ["fmt/199"],
"GriffinIdentifier": "GRI-000007",
"Timeout": 20,
"MaxSize": 100000000,
"Debug":true,
"ActionDetail": [
{
"Type": "GENERATE",
"Values": {
"Extension": "MP4",
"Args": ["-codec:v", "libx264", "-preset", "superfast", "-crf", "99", "-profile:v", "baseline", "-level", "3.0", "-acodec", "aac"]
}
}
]
}
],
"DefaultGriffin": null
}
]

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[
{
"Identifier": "PSC-000015",
"Name": "Tranformation vidéo en vignette",
"Description": "Ce scenario transforme un fichier vidéo en vignette PNG",
"CreationDate": "2018-11-16T15:55:30.721",
"LastUpdate": "2018-11-20T15:34:21.542",
"ActionList": [
"GENERATE"
],
"MetadataFilter": null,
"GriffinByFormat": [
{
"FormatList": ["fmt/199"],
"GriffinIdentifier": "GRI-000007",
"Timeout": 20,
"MaxSize": 100000000,
"Debug":true,
"ActionDetail": [
{
"Type": "GENERATE",
"Values": {
"Extension": "PNG",
"Args": ["-vf", "thumbnail,scale=640:480", "-frames:v", "1"]
}
}
]
}
],
"DefaultGriffin": null
}
]

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions ffmpeg/griffin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

java -Dfile.encoding=UTF-8 -jar /vitam/bin/worker/griffins/ffmpeg-griffin/ffmpeg-jar-with-dependencies.jar $1
Loading

0 comments on commit dca8030

Please sign in to comment.