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 6F93046DC5 for ; Fri, 11 Aug 2023 06:54:30 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2B55968C59E; Fri, 11 Aug 2023 09:54:27 +0300 (EEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F001568C230 for ; Fri, 11 Aug 2023 09:54:19 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691736865; x=1723272865; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ppjc1BZoF+jT/Xbm+ZY8LWsihknICQ0SMVG5M8sRWRU=; b=Xr/WNHkOOtp5bSu8ISdy9wwx9daJTDET1MC+qRbmQtcKefWwSBxZF/64 GyOh6mYS6LqB9CMSQzS9kpzVvab8mDKeHjCd6Horw/4aVTq6/SFLlRntT Msy+MTfqy8JT9RW1ITmib9/O++157bN31ugSH/gEFHAp0QwbBFh9E8OKC LcAIXkNnFeCbY/B1W6TqI59kSHmZ7KjMGHPr2dA0CcdOyfqjXuvadB6Wk Xe+yxOeKXDb2ai0746a7TrEocjrtyDfO8bJHYpPuMOCDbqzVBmjyd9UbV QifdLUML/5p+jSzt1OLj1uG5O2KU9Tw/dqsQMePKwV5UZ43xr6XMLLrvJ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="374378091" X-IronPort-AV: E=Sophos;i="6.01,164,1684825200"; d="scan'208";a="374378091" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 23:36:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="762089872" X-IronPort-AV: E=Sophos;i="6.01,164,1684825200"; d="scan'208";a="762089872" Received: from xhh-tgl64.sh.intel.com ([10.238.2.19]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 23:36:00 -0700 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Fri, 11 Aug 2023 14:35:41 +0800 Message-Id: <20230811063541.536421-1-haihao.xiang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: restore the default gop size 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 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: From: Haihao Xiang commit a3c0a3e changed the default settings and expected the runtime can choose a best value. However the runtime doesn't set a valid gop size for hevc encoder, hence the output steam is non-seekable, which is inconvenient to user [1][2] [1] https://github.com/intel/media-driver/issues/1576 [2] https://ffmpeg.org/pipermail/ffmpeg-user/2023-August/056716.html Signed-off-by: Haihao Xiang --- libavcodec/qsvenc_hevc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c index 5e23ca9647..c5b7ac7cc4 100644 --- a/libavcodec/qsvenc_hevc.c +++ b/libavcodec/qsvenc_hevc.c @@ -376,7 +376,7 @@ static const AVClass class = { static const FFCodecDefault qsv_enc_defaults[] = { { "b", "1M" }, { "refs", "0" }, - { "g", "-1" }, + { "g", "248" }, { "bf", "-1" }, { "qmin", "-1" }, { "qmax", "-1" }, -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".