If You don't want create Your solution, use the ready one, i.e.:
lib: vlc, ffmpeg
another prog.: ffmpeg
For lib go into vlc/ffmpeg page and dll src. But You will face some library licensing restriction.
For ffmpeg use QProcess, send time infromation and output file path.