run-time video dump option

WIVRN_DUMP_VIDEO=/path/to/file will dump the raw video stream in
/path/to/file-{idx}.{codec} where idx is the stream index (one stream
per encoder) and codec is h264 or h265.
This commit is contained in:
Patrick Nicolas
2024-02-12 21:12:02 +01:00
parent 998cb917ef
commit 72e8a5d84d
2 changed files with 23 additions and 11 deletions
+3
View File
@@ -23,6 +23,7 @@
#include "vk/vk_helpers.h"
#include <atomic>
#include <chrono>
#include <fstream>
#include <memory>
#include <mutex>
#include <vulkan/vulkan.h>
@@ -55,6 +56,8 @@ private:
std::atomic_bool sync_needed = true;
std::ofstream video_dump;
public:
static std::unique_ptr<VideoEncoder> Create(vk_bundle * vk,
vk_cmd_pool & pool,