I am supporting a C++/Qt application that uses libvlc to playback audio/video streams. My task is to enhance the application to allow the users to extract video clips by setting start / end times and capturing the video in between to a file.
I've implemented the start/end markers, and can seek the audio/video to the correct times for playback. My problem now is to somehow capture this stream to a file in a variety of formats / compressions.
I've been searching through the Doxygen links in libvlc, and the documentation for FFmpeg, but I don't see any API functions to extract audio/video clips to a file. I've also studied this example, but it doesn't do capture. Is there another example out there for doing capture?
Can someone point me to the API, or to an example of how to achieve this?
EDIT: I see the answer to this question but the sample project is a dead link.