13 #ifndef mitkVideoRecorder_h
14 #define mitkVideoRecorder_h
163 std::unique_ptr<Impl> m_Impl;
Record the contents of a render window as video using FFmpeg as external command-line application.
int StopRecording()
Stop the recording session and encode the video.
void SetFFmpegPath(const fs::path &path)
Set the path to the FFmpeg executable.
void SetFrameRate(unsigned int fps)
Set the recording frame rate.
int GetFrameRate() const
Get the recording frame rate.
static std::string GetFileExtension(OutputFormat format)
Get the file extension corresponding to the specified video output format.
VideoRecorder & operator=(const VideoRecorder &)=delete
void RecordFrame() const
Record the current frame of the render window.
std::string GetRenderWindowName() const
Get the name of the render window being recorded.
VideoRecorder(const VideoRecorder &)=delete
void StartRecording()
Begin a recording session.
fs::path GetOutputPath() const
Get the path to the output video file.
OutputFormat GetOutputFormat() const
Get the output format (codec/container).
void SetRenderWindowName(const std::string &renderWindowName)
Set the name of the render window to record.
void SetOutputFormat(OutputFormat format)
Set the output format (codec/container).
fs::path GetFFmpegPath() const
Get the path to the FFmpeg executable.
void SetOutputPath(const fs::path &path)
Set the path for the output video file.
Portability header that provides a unified namespace alias for the C++ filesystem library.
Find image slices visible on a given plane.