Thursday, 15 December 2016

sourcetree - linking local repo to remote repo

sourcetree ftw

the scenario
i have an non-empty github repo on my local machine. i want to "sync" this towards, using sourcetree. os being win 10.

the solution
the solution is to add a working copy, not to clone a repository. if you clone you should clone to an empty folder. however, if you already have a local repo just add a working folder to sourcetree, and you are good to go.

adding working copy in sourcetree.

the locally stored git repo to be synced with's remote repo.

the same repo as located at

burning subtitles

recently i did a little film project where i had to burn specially formatted subtitles onto the movie. i spent some time finding a good solution for this. here are the findings.

creating the subtitles
after having tried out several tools for creating subtitles i ended up with Aegisub. a nice free open-source subtitle tool, with all the features i needed. i created my own template, which defined the font and style to use. hence it was easy to create subtitles for several films, with the same layout. to preserve the format i exported using the .ass file format.

burning the subtitles
to burn the subtitles onto the movie i used ffmpeg. a nice howto is found here. worth noticing that i had a couple of issues though. first off an issue related the "fontconfig_file" (one fix here). second some issue accessing subtitle files when they were located in a different directory than the movie file. i solved this copying over the subtitle file.

here is the bat file i ended up using for burning subtitles (original files can be found on

:: - - - - - - - - - - - - - - - - - - - - - - - - - - -
:: burn subtitles
:: author: frode klevstul (frode at klevstul dot com)
:: started: november 2016
:: fix font config:
:: -
:: -
:: -
:: note - i only needed to add the env variable FONTCONFIG_FILE:
:: set FONTCONFIG_FILE=R:\googleDrive\_portableApps\ffmpeg\fonts\fonts.conf
:: - - - - - - - - - - - - - - - - - - - - - - - - - - -

SET SOURCE_DIR=R:\videoEditing\1610_forbrukerraadet\renders\lowRes\
SET TARGET_DIR=R:\_desktop\
SET SOURCE_FILNAME=1610_fr_mov7_v05.mp4
SET TARGET_FILENAME=1610_fr_mov7_v05_burnedSubs.mp4
SET SUBTITLES=R:\videoEditing\1610_forbrukerraadet\assets\subtitles\film7.ass

SET FFMPEG=R:\googleDrive\_portableApps\ffmpeg\bin\ffmpeg.exe

:: problems accessing subtitles files in another directory, so copying it over to current script dir, and deleting it again, after we are done using it

:: command for .ass type subtitles

:: delete temporary subtitles file