From patchwork Fri Aug 6 02:10:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 29305 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6c0f:0:0:0:0:0 with SMTP id a15csp115569ioh; Thu, 5 Aug 2021 19:11:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpciJgqRgjf0AnopwZzKHwBWGoB5HVOrBpThCgwXOOX/mSbjlFrSgspf37ORHYdyqHSOYw X-Received: by 2002:a05:6402:100c:: with SMTP id c12mr10130348edu.326.1628215860629; Thu, 05 Aug 2021 19:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628215860; cv=none; d=google.com; s=arc-20160816; b=Qgb2AKmDJ0XHeUUMv3MI4RwAN/JqF5edbAJorTTJwRz0thW9rs9N+lcnMKgryOt6OF MOXOndDrQ2+DYMkbnwdBcRO2vsNyK1qWFk6ws3lbsoN3IfVAhig1jeG5cBckvXnbS+7k BXBrnJAHcRp0xVSc+CFbjjoyAjCj+r7NJ7jOP8ekaj+RzMAzBqlHskEjrHOg9yWs0aCR 00tBKunXcdUm8lkBzryP42FPkhYfAHsmEyjevu6ntFn4uLudQwdeoqfz22OJ29jTB62y TOfhCikq2nu+Dce3o8mtrmaBxkBGn5PdRX1ZgaWipF4jFWRGzeC+eHvMUOh6ph0R6jD6 NLaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to; bh=Q+EHbpE1LvQM0wyP3RHmepvMh6mrTJL6Q7JNwaRgglU=; b=wgs39XdtmGj2iJ8KqzC0Z/NO+2voz03p9cHFFjGIO/9ppcxEjluka1PSiQe5G/i1Ei Ny04fXwPjSVhRTXxwmd9/ntY0qENOGaLD3NeT89v0THTsalD9rBAxQ8jHsIDBR3YwMG8 jsQVbbx/Nt4MMMxKuUjdqkia8TNu5kaN1UAwblqryo21VtrNLRvbSGlGbjTJ7i05Hx9p PSAvp0VZNdL4GnE3FC/ZdWqb5uK9O7MPkbRJiRWKiwi7T9WLU0q2MflWl+WVOm2zDBFJ mn5lqoYurRxJBsUy4sjMyet9yeUDG7SYJl9d4Q5UzERx5rrC+Stl2H12avBVeD31MQId DjGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id bx1si7178017ejb.309.2021.08.05.19.10.59; Thu, 05 Aug 2021 19:11:00 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 37F5468A000; Fri, 6 Aug 2021 05:10:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9FAD568991B for ; Fri, 6 Aug 2021 05:10:48 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10067"; a="214320344" X-IronPort-AV: E=Sophos;i="5.84,299,1620716400"; d="scan'208";a="214320344" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2021 19:10:45 -0700 X-IronPort-AV: E=Sophos;i="5.84,299,1620716400"; d="scan'208";a="459224558" Received: from xhh-dg164.sh.intel.com ([10.239.159.167]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2021 19:10:44 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Fri, 6 Aug 2021 10:10:33 +0800 Message-Id: <20210806021033.31954-1-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add -pic_timing_sei option 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 Cc: Haihao Xiang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: MOJDwYns0SHu The SDK may insert picture timing SEI for hevc and the code to set mfx parameter has been added in qsvenc, however the corresponding option is missing in the hevc option array --- libavcodec/qsvenc_hevc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c index b7b2f5633e..1e31968673 100644 --- a/libavcodec/qsvenc_hevc.c +++ b/libavcodec/qsvenc_hevc.c @@ -248,6 +248,7 @@ static const AVOption options[] = { { "tile_rows", "Number of rows for tiled encoding", OFFSET(qsv.tile_rows), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, UINT16_MAX, VE }, { "recovery_point_sei", "Insert recovery point SEI messages", OFFSET(qsv.recovery_point_sei), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE }, { "aud", "Insert the Access Unit Delimiter NAL", OFFSET(qsv.aud), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, VE}, + { "pic_timing_sei", "Insert picture timing SEI with pic_struct_syntax element", OFFSET(qsv.pic_timing_sei), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1, VE }, { NULL }, };