Commit 4b29b90b779c9d58fa9d8fd7023f9a4105cd7bf8
1 parent
67ec496c
Exists in
master
and in
4 other branches
Add text fonts
Showing
3 changed files
with
4 additions
and
1 deletions
Show diff stats
Dockerfile
... | ... | @@ -70,6 +70,8 @@ COPY ./core/PikaManager.py /root/PikaManager.py |
70 | 70 | COPY ./core/processManager.py /root/processManager.py |
71 | 71 | COPY ./core/logger.py /root/logger.py |
72 | 72 | |
73 | +COPY ./fonts/ /root/fonts/ | |
74 | + | |
73 | 75 | COPY ./translate-api/ /root/translate-api/ |
74 | 76 | |
75 | 77 | COPY ./vlibras-translate/ /root/vlibras-translate/ |
... | ... | @@ -81,6 +83,7 @@ COPY ./unityVideo/ /root/unityVideo/ |
81 | 83 | ENV VLIBRAS_VIDEO_CREATOR="/root/unityVideo/videoCreator.x86_64" |
82 | 84 | ENV VLIBRAS_VIDEO_LIBRAS="/root/storage/libras" |
83 | 85 | ENV VLIBRAS_VIDEO_SCREENS="/root/storage/frames" |
86 | +ENV TEXT_FONTS="/root/fonts/FreeSans.ttf" | |
84 | 87 | |
85 | 88 | #Translator environment variables |
86 | 89 | ENV HUNPOS_TAGGER="/root/vlibras-libs/aelius/bin/hunpos-tag" | ... | ... |
core/renderer.py
... | ... | @@ -189,7 +189,7 @@ def run(ch, method, properties, body): |
189 | 189 | |
190 | 190 | # Post processor functions |
191 | 191 | def watermark(input_video, output_video, text): |
192 | - fontfile = "/usr/share/fonts/truetype/freefont/FreeSans.ttf" | |
192 | + fontfile = os.getenv("TEXT_FONTS") | |
193 | 193 | |
194 | 194 | filter_graph = ','.join( |
195 | 195 | [ | ... | ... |
No preview for this file type