Skip to content

Commit

Permalink
Merge pull request #23 from kieranjol/kieranjol-windows_fix
Browse files Browse the repository at this point in the history
Kieranjol windows fix
  • Loading branch information
kieranjol committed Mar 26, 2016
2 parents 27603f2 + e0e4f75 commit c9057a6
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions bitc.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,20 @@ def getffprobe(variable, streamvalue, which_file):
fixed_framerate = get_framerate.rstrip()

#all these prints are just for testing. Will be removed later.
print fixed_framerate
drawtext_options = ("drawtext=%s:fontcolor=white:fontsize=%s:timecode=%s:\
rate=%s:boxcolor=0x000000AA:box=1:x=(w-text_w)/2:y=h/1.2,\
drawtext=%s:fontcolor=white:text='INSERT WATERMARK TEXT HERE':\
x=(w-text_w)/2:y=(h-text_h)/2:fontsize=%s:alpha=0.4" %
(font_path,font_size, timecode_test, fixed_framerate, font_path,watermark_size))
print fixed_framerate
if _platform == "darwin" or _platform == "linux2":
drawtext_options = ("drawtext=%s:fontcolor=white:fontsize=%s:timecode=%s:\
rate=%s:boxcolor=0x000000AA:box=1:x=(w-text_w)/2:y=h/1.2,\
drawtext=%s:fontcolor=white:text='IFI IRISH FILM ARCHIVE':\
x=(w-text_w)/2:y=(h-text_h)/2:fontsize=%s:alpha=0.4" %
(font_path,font_size, timecode_test, fixed_framerate, font_path,watermark_size))

elif _platform == "win32":
drawtext_options = ("drawtext=%s:fontcolor=white:fontsize=%s:timecode=%s:\
rate=%s:boxcolor=0x000000AA:box=1:x=(w-text_w)/2:y=h/1.2',\
drawtext=%s:fontcolor=white:text='IFI IRISH FILM ARCHIVE':\
x=(w-text_w)/2:y=(h-text_h)/2:fontsize=%s:alpha=0.4" %
(font_path,font_size, timecode_test, fixed_framerate, font_path,watermark_size))
print drawtext_options
print timecode_test
print get_framerate
Expand Down

0 comments on commit c9057a6

Please sign in to comment.