Page MenuHomePhabricator

Replace QmitkFFmpegWriter with mitk::VideoRecorder
Closed, ResolvedPublic

Description

Recently the Movie Maker View was repaired to be able to produce videos again. In this process, QmitkFFmpegWriter was removed in favor of a slower yet more stable approach to generate video files: Instead of communicating with the FFmpeg process directly via pipes, all frames are now written into a temporary directory and afterwards FFmpeg is called with all these images as input.

In this task the new approach is encapsulated into a new class mitk::VideoRecorder.

Advantages compared to QmitkFFmpegWriter are that the video recorder is not dependent on Qt anymore and can be placed in the Core.

I will also add options to decide between VP9/WebM and H.264/MP4 video codecs to have both options, a royality-free, open format, and a more compatible format for increased compatibility with applications like MS PowerPoint.

Event Timeline

kislinsk triaged this task as Normal priority.May 2 2023, 9:04 AM
kislinsk created this task.

Tested successfully on Windows 10, Ubuntu 22.04, and the latest macOS. In addition, QuickTime is able to play the generated MP4 files since we output in YUV 4:2:0 again.

Deleted branch from rMITK MITK: bugfix/T29552-VideoRecorder.