From e9440c23265fb16a8b08d30153e21418794a485d Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Sun, 2 Aug 2020 13:20:25 +0200 Subject: [PATCH] Avoid unsupported x264 image format (4:4:4 is not standard) --- Recorder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Recorder.cpp b/Recorder.cpp index 50be371..2e8e02c 100644 --- a/Recorder.cpp +++ b/Recorder.cpp @@ -124,7 +124,7 @@ void PNGRecorder::addFrame(FrameBuffer *frame_buffer, float) const char* VideoRecorder::profile_name[VideoRecorder::DEFAULT] = { "H264 (Baseline)", - "H264 (High 4:4:4)", + "H264 (High)", "H265 (Realtime)", "H265 (HQ Animation)", "ProRes (Standard)", @@ -144,8 +144,8 @@ const std::vector VideoRecorder::profile_description { // veryfast (3) // faster (4) // fast (5) - "x264enc pass=4 quantizer=23 speed-preset=3 threads=4 ! video/x-h264, profile=baseline ! h264parse ! ", - "x264enc pass=4 quantizer=16 speed-preset=4 ! video/x-h264, profile=(string)high-4:4:4 ! h264parse ! ", + "x264enc pass=4 quantizer=26 speed-preset=3 threads=4 ! video/x-h264, profile=baseline ! h264parse ! ", + "x264enc pass=4 quantizer=16 speed-preset=4 threads=4 ! video/x-h264, profile=high ! h264parse ! ", // Control x265 encoder quality : // NB: apparently x265 only accepts I420 format :( // speed-preset