-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
need local logging for dev , adding basic config logic
- Loading branch information
Showing
6 changed files
with
99 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
--- | ||
|
||
interval: 60 | ||
enabled: false | ||
|
||
commands: | ||
- name: "test1" | ||
extension: ".mkv" | ||
delete: false | ||
command: | | ||
ffmpeg -i "${INPUTFILE}" \ | ||
ffmpeg -i "INPUTFILE" \ | ||
-vf scale=-1:720 \ | ||
-c:v h264 \ | ||
-c:a copy \ | ||
-b:v 4000k \ | ||
"${OUTPUTFILE}" | ||
"OUTPUTFILE" | ||
- name: "test2" | ||
extension: ".mkv" | ||
delete: true | ||
command: | | ||
ffmpeg -i "${INPUTFILE}" \ | ||
ffmpeg -i "INPUTFILE" \ | ||
-vf scale=-1:720 \ | ||
-c:v h264 \ | ||
-c:a copy \ | ||
-b:v 4000k \ | ||
"${OUTPUTFILE}" | ||
"OUTPUTFILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
flask | ||
flask_socketio | ||
pyyaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
# check if config file exists in /config | ||
[[ ! -f /config/config.yml ]] && \ | ||
cp /app/ffmpeg-web/config.yml /config/config.yml | ||
|
||
# permissions | ||
chown -R abc:abc \ | ||
/config | ||
mkdir -p \ | ||
/in \ | ||
/out | ||
chown abc:abc \ | ||
/in \ | ||
/out | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
# Make log output for dev | ||
mkdir -p /applogs | ||
chown -R abc:abc /applogs | ||
|
||
# Run App in development mode | ||
cd /app/ffmpeg-web | ||
exec \ | ||
s6-setuidgid abc \ | ||
watchmedo auto-restart \ | ||
-d . \ | ||
-p './server.py' \ | ||
-- python3 server.py | ||
-- python3 server.py \ | ||
>> /applogs/applog.txt 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters