FFmpeg subtitles - 1st try plus fixed database error

I send it for the testing. Internal subtitles and time seeking doesn't work yet. 
To make it working the FFmpeg must be compiled with --enable-libass parameter.
Has anybody any idea how to continue?