@@ -114,12 +114,20 @@ def getffprobe(variable, streamvalue, which_file):
114
114
fixed_framerate = get_framerate .rstrip ()
115
115
116
116
#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 ))
123
131
print drawtext_options
124
132
print timecode_test
125
133
print get_framerate
0 commit comments