From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 850DE40F17 for ; Sun, 13 Mar 2022 15:34:24 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 106E768B10B; Sun, 13 Mar 2022 17:34:22 +0200 (EET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 05216689B39 for ; Sun, 13 Mar 2022 17:34:15 +0200 (EET) Received: by mail-pl1-f174.google.com with SMTP id r12so11592051pla.1 for ; Sun, 13 Mar 2022 08:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language :disposition-notification-to; bh=glwmYeJ6amLlga4pEEQWDMSjFR/6wmnviApRd4Hy6Vo=; b=BMtpwLKWzScLRCjSGFqESadL4+TRej+/zokp2cQpBlXD8bnjfg174zhCQXgaKEhQvx ctsKrg2F0Y/r+lQftnxZbCrt3azWCnk745c93ShtikOv69EmS6Y67r1zDY6N8vsVXFcO 7KVpXgrE1aDRAwQYZ1EUpmavDlXQ5jYK4yc7HhR38Efax+GmCHBQIuWfMh+w2H/Nd8Yt djPq8dG9BlDm8LcKulAI2hBYvBx8MTx48wLq1SK/dX3PeX6hM5ebfSFVx5QYm5CD/yj3 wfrHL1R0I6VvtCyzBIKlqqM08tKkqmHUk582GciIy/eueT77Dup0FJLlpcjubxFhP+2t Xjlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language:disposition-notification-to; bh=glwmYeJ6amLlga4pEEQWDMSjFR/6wmnviApRd4Hy6Vo=; b=humd4X/7SgHS2UE3DhCKJCJp+LS69HZy9Qc9izsq7jfgLZpV4gRBJmQbtlZsXpAsB9 hvYw6fs2FeYHlX+lGEJSRsxlClizoaCbZl2+dPY3Vj2WPrrNtRQwHecC6M3OFzOxCL1a LHtZlSskghCWr8U3d2CSHi9iHiY5qdgMWdp8I8rmGTKSjh7dT+gIJTQg8/ZOb3Z5/J/C rCZXmHlMIDYsbkxaWZrdP47PrEexH/wFOPxMl7tX7pVDE/wWLHln1hPWtz6F3tl4Up9G Eqox8nGqjRHS1aD5LvlgKR4sFVtQU2OmDm9ccQrigLweR4pY8IXW2kDhS3DHfY0JwlG5 KFtQ== X-Gm-Message-State: AOAM533Sr6tid6XDpTUUue5A5lqweGzD59zYWQagYxOAkrU6PX85Tkf+ uP/Kovk4rBQ1dlQWZjWTO4vAsp8sTrM= X-Google-Smtp-Source: ABdhPJzTdPE7QUjjTtzs7xE3yU3m5MltdCx+eImYqNQl1KPllGOeIAydS5DdofXft6VozjCLc2h80Q== X-Received: by 2002:a17:90b:4a8d:b0:1bf:a1ab:7ffc with SMTP id lp13-20020a17090b4a8d00b001bfa1ab7ffcmr20680535pjb.75.1647185651168; Sun, 13 Mar 2022 08:34:11 -0700 (PDT) Received: from 3900X ([58.174.84.57]) by smtp.gmail.com with ESMTPSA id s1-20020a056a00178100b004f731a1a952sm18002996pfg.168.2022.03.13.08.34.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Mar 2022 08:34:10 -0700 (PDT) From: To: References: <20220313153133.47041-1-hydra3333@gmail.com> In-Reply-To: <20220313153133.47041-1-hydra3333@gmail.com> Date: Mon, 14 Mar 2022 02:04:06 +1030 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQE1yqREGZvZ127uJpYLUWWzdAozQq4CSe3g Content-Language: en-au Subject: [FFmpeg-devel] [PATCH] Add and use cli options for v4l2 encoder=h264_v4l2m2m X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Well, let's try to submit a patch and see how it fares. Add commandline options to v4l2_m2m_enc (h264_v4l2m2m only) and use those to configure options for the h264_v4l2m2m encoder. Uses AVOption options to filter for valid options per v4l2 spec. For h264 it adds spec-compliant: -profile (high is max accepted by Raspberry Pi) -level (4.2 is max accepted by Raspberry Pi) -rc (Bitrate mode, VBR or CBR or CQ) -shm