From 0556f1b17d72d3048d3c81f98b4cfba916e2ac85 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Sat, 16 May 2020 09:37:35 +0300
Subject: [PATCH] Default 2D video output to H264

---
 applications/gui/src/camera.cpp       | 1 +
 components/operators/src/clipping.cpp | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/gui/src/camera.cpp b/applications/gui/src/camera.cpp
index b735a5ea3..f7e5e2cc2 100644
--- a/applications/gui/src/camera.cpp
+++ b/applications/gui/src/camera.cpp
@@ -806,6 +806,7 @@ void ftl::gui::Camera::startVideoRecording(const std::string &filename) {
 		record_stream_->setMode(ftl::stream::File::Mode::Write);
 		record_sender_ = ftl::create<ftl::stream::Sender>(screen_->root(), "videoEncode");
 		record_sender_->setStream(record_stream_);
+		record_sender_->value("codec", 2);  // Default H264
 	}
 
 	if (record_stream_->active()) return;
diff --git a/components/operators/src/clipping.cpp b/components/operators/src/clipping.cpp
index 26bc920b8..7772fad3d 100644
--- a/components/operators/src/clipping.cpp
+++ b/components/operators/src/clipping.cpp
@@ -62,7 +62,6 @@ bool ClipScene::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cudaStr
 	std::vector<ftl::codecs::Shape3D> shapes;
 	if (in.hasChannel(Channel::Shapes3D)) {
 		in.get(Channel::Shapes3D, shapes);
-		LOG(INFO) << "Already has shapes: " << shapes.size();
 	}
 	shapes.push_back(shape);
 	in.create(Channel::Shapes3D, shapes);
-- 
GitLab