From feb274c25a61d9dd64e9559d64f40f25bf5944f9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 11 Jan 2025 00:56:11 +0100 Subject: [PATCH] crf --- rtfd/public/ffmpeg/snippets.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rtfd/public/ffmpeg/snippets.rst b/rtfd/public/ffmpeg/snippets.rst index 13656c7..745e417 100644 --- a/rtfd/public/ffmpeg/snippets.rst +++ b/rtfd/public/ffmpeg/snippets.rst @@ -33,7 +33,7 @@ Acquire fastly -video_size 1920x1080 -framerate 60 \ -input_format yuyv422 \ -i /dev/video0 \ - -codec:v libx264 -preset ultrafast -qp 0 \ + -codec:v libx264 -preset ultrafast -crf 0 \ -y ultrafast.mkv .. code:: shell @@ -44,7 +44,7 @@ Acquire fastly -input_format bgr24 \ -i /dev/video0 \ -vf vflip \ - -codec:v libx264 -preset ultrafast -qp 0 \ + -codec:v libx264 -preset ultrafast -crf 0 \ -y ultrafast.mkv Windows desktop: @@ -60,7 +60,7 @@ Cut and shrink ffmpeg -i ultrafast.mkv \ -ss 00:00:01.000 -to 00:00:02.000 \ - -codec:v libx264 -preset veryslow -qp 0 \ + -codec:v libx264 -preset veryslow -crf 0 \ -y uf.mkv Compress for web @@ -69,14 +69,14 @@ Compress for web .. code:: shell ffmpeg -i uf.mkv \ - -codec:v libx264 -preset veryslow -qp 23 \ + -codec:v libx264 -preset veryslow -crf 23 \ -movflags +faststart -pix_fmt yuv420p \ -y uf.23.mp4 .. code:: shell ffmpeg -i uf.mkv \ - -codec:v libx265 -preset veryslow -qp 28 \ + -codec:v libx265 -preset veryslow -crf 28 \ -movflags +faststart -pix_fmt yuv420p \ -y uf.28.mp4