Skip to content

Commit c9057a6

Browse files
committed
Merge pull request #23 from kieranjol/kieranjol-windows_fix
Kieranjol windows fix
2 parents 27603f2 + e0e4f75 commit c9057a6

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

bitc.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,20 @@ def getffprobe(variable, streamvalue, which_file):
114114
fixed_framerate = get_framerate.rstrip()
115115

116116
#all these prints are just for testing. Will be removed later.
117-
print fixed_framerate
118-
drawtext_options = ("drawtext=%s:fontcolor=white:fontsize=%s:timecode=%s:\
119-
rate=%s:boxcolor=0x000000AA:box=1:x=(w-text_w)/2:y=h/1.2,\
120-
drawtext=%s:fontcolor=white:text='INSERT WATERMARK TEXT HERE':\
121-
x=(w-text_w)/2:y=(h-text_h)/2:fontsize=%s:alpha=0.4" %
122-
(font_path,font_size, timecode_test, fixed_framerate, font_path,watermark_size))
117+
print fixed_framerate
118+
if _platform == "darwin" or _platform == "linux2":
119+
drawtext_options = ("drawtext=%s:fontcolor=white:fontsize=%s:timecode=%s:\
120+
rate=%s:boxcolor=0x000000AA:box=1:x=(w-text_w)/2:y=h/1.2,\
121+
drawtext=%s:fontcolor=white:text='IFI IRISH FILM ARCHIVE':\
122+
x=(w-text_w)/2:y=(h-text_h)/2:fontsize=%s:alpha=0.4" %
123+
(font_path,font_size, timecode_test, fixed_framerate, font_path,watermark_size))
124+
125+
elif _platform == "win32":
126+
drawtext_options = ("drawtext=%s:fontcolor=white:fontsize=%s:timecode=%s:\
127+
rate=%s:boxcolor=0x000000AA:box=1:x=(w-text_w)/2:y=h/1.2',\
128+
drawtext=%s:fontcolor=white:text='IFI IRISH FILM ARCHIVE':\
129+
x=(w-text_w)/2:y=(h-text_h)/2:fontsize=%s:alpha=0.4" %
130+
(font_path,font_size, timecode_test, fixed_framerate, font_path,watermark_size))
123131
print drawtext_options
124132
print timecode_test
125133
print get_framerate

0 commit comments

Comments
 (0)