From 135861e9d7d7aa0a3edfe5daaf342a58e1f6ff7a Mon Sep 17 00:00:00 2001 From: j Date: Fri, 17 Feb 2017 23:27:12 +0100 Subject: [PATCH] font --- encode.py | 7 ++++--- text.html | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/encode.py b/encode.py index dbc9b30..72e5c9d 100755 --- a/encode.py +++ b/encode.py @@ -19,16 +19,17 @@ for xml in glob('output/*/*.xml'): subprocess.call([ 'qmelt', audio_xml, '-consumer', 'avformat:' + audio, ]) - subprocess.call([ + cmd = [ 'ffmpeg', '-y', '-i', video, '-i', audio, - '-c:v', 'copy', '-map', '0:v', '-map', '1:a', + '-c:v', 'copy', '-strict', '-2', pre - ]) + ] + subprocess.call(cmd) os.unlink(video) os.unlink(audio) shutil.move(pre, mp4) diff --git a/text.html b/text.html index e7e9cd5..a7b0931 100644 --- a/text.html +++ b/text.html @@ -15,7 +15,7 @@ body { } @font-face { font-family: 'Roboto Medium'; - src: url(../ttf/Roboto-Medium.ttf); + src: url(../../ttf/Roboto-Medium.ttf); } #text { color: #fff;