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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user