added keyboard bind to end recording
added video duration support