ffmpeg -i video.mkv -vf "drawtext=text='%pts\:hms':x=10:y=10" -f null -
ffmpeg -i input.mkv -map 0:s:0 subs.ass