Skip to content

Commit

Permalink
Added Handbrake
Browse files Browse the repository at this point in the history
  • Loading branch information
di5cord20 committed Aug 20, 2023
1 parent decd001 commit 50b6ac0
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 0 deletions.
108 changes: 108 additions & 0 deletions servapps/Handbrake/cosmos-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"cosmos-installer": {
"form": [
{
"name": "storagePath",
"label": "This location contains files from your host that need to be accessible to the application. (leave empty to not mount anything)",
"initialValue": "{DefaultDataPath}",
"type": "text"
},
{
"name": "watchPath",
"label": "This is where videos to be automatically converted are located (leave empty to not mount anything)",
"initialValue": "{DefaultDataPath}/{ServiceName}/watch",
"type": "text"
},
{
"name": "outputPath",
"label": "This is where automatically converted video files are written (leave empty to not mount anything)",
"initialValue": "{DefaultDataPath}/{ServiceName}/output",
"type": "text"
},
{
"name": "enableDevices",
"label": "Do you want to enable hardware acceleration? (only enable for Intel cpu)",
"initialValue": false,
"type": "checkbox"
},
{
"name": "adminOnly",
"label": "Do you want to make this service admin only?",
"initialValue": false,
"type": "checkbox"
}
]
},
"minVersion": "0.9.19",
"services": {
"{ServiceName}": {
"image": "jlesage/handbrake:latest",
"container_name": "{ServiceName}",
"restart": "unless-stopped",
"UID": 1000,
"GID": 1000,
"environment": [
"USER_ID=1000",
"GROUP_ID=1000",
"TZ=auto"
],
"labels": {
"cosmos-force-network-secured": "true",
"cosmos-auto-update": "true",
"cosmos-icon": "https://azukaar.github.io/cosmos-servapps-official/servapps/Handbrake/icon.png"
},
{if Context.enableDevices}
"devices": [
"/dev/dri:/dev/dri"
],
{/if}
"volumes": [
{
"source": "{ServiceName}-config",
"target": "/config",
"type": "volume"
}
{if Context.storagePath}
, {
"source": "{Context.storagePath}",
"target": "/storage",
"type": "bind"
}
{/if}
{if Context.outputPath}
, {
"source": "{Context.outputPath}",
"target": "/output",
"type": "bind"
}
{/if}
{if Context.watchPath}
, {
"source": "{Context.watchPath}",
"target": "/watch",
"type": "bind"
}
{/if}
],
"routes": [
{
"name": "{ServiceName}",
"description": "Expose {ServiceName} to the web",
"useHost": true,
"target": "http://{ServiceName}:5800",
"mode": "SERVAPP",
"Timeout": 14400000,
"ThrottlePerMinute": 12000,
"BlockCommonBots": true,
"SmartShield": {
"Enabled": true
},
"AuthEnabled": true
{if Context.adminOnly}
, "AuthAdmin": true
{/if}
}
]
}
}
}
9 changes: 9 additions & 0 deletions servapps/Handbrake/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Handbrake",
"longDescription": "<p>This project implements a Docker container for <a href=https://handbrake.fr/ target=_blank>HandBrake</a>.</p><p>The GUI of the application is accessed through a modern web browser (no installation or configuration needed on the client side) or via any VNC client.</p><p>A fully automated mode is also available: drop files into a watch folder and let HandBrake process them without any user interaction.</p><p>Full documentation is available at <a href=https://github.com/jlesage/docker-handbrake target=_blank>https://github.com/jlesage/docker-handbrake</a>.</p>",
"description": "HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs.",
"tags": ["media", "video", "conversion"],
"repository": "https://github.com/jlesage/docker-handbrake",
"image": "https://hub.docker.com/r/jlesage/handbrake",
"supported_architectures": ["amd64"]
}
Binary file added servapps/Handbrake/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added servapps/Handbrake/screenshots/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added servapps/Handbrake/screenshots/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 50b6ac0

Please sign in to comment.