From patchwork Fri Sep 14 10:17:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jeyapal, Karthick" X-Patchwork-Id: 10324 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:12c4:0:0:0:0:0 with SMTP id 65-v6csp489317jap; Fri, 14 Sep 2018 03:17:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY7OhW+rZ2vNWJZpFYhk7LNp3eS6Y/T6IN4NigTPji2zhkAEvb2V3UHADsgBf2L9R9aC9yT X-Received: by 2002:adf:ee86:: with SMTP id b6-v6mr8816082wro.242.1536920268938; Fri, 14 Sep 2018 03:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536920268; cv=none; d=google.com; s=arc-20160816; b=yFVWB8UDotTShzsXPKfrcD7PpgzNR4Bo3+VGqeb+1NCwWzFps0yLytc2dWqARPde9J A2G5D2NO+aRXVhRd7cpop0ZONqNooJGY70VMyhU8pKgncxKcmOqGUidCovcnoreL/tz8 wAKOex1DtUj+0edhH9y96W83ddmo8b9m5ULSvDF5WAK69yyZyv2pYFQ8BAKlP7F8PGes Q8cQLFFrIBkIVF84N5gzpDnPQecKZWuXMJ12lfvbOW35zquMDVcNM2jKjhc83eSzyagu wsLxcGZn/eeHYrOcWUm0ppotIP9tNYD1ZBCW3jr+GrOvYeVKCNa+js2f0fdNsvX4yMwQ NBnQ== 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:feedback-id:message-id:date:to:from :dkim-signature:delivered-to; bh=hcD553zhpwcw4J9Lksu7+gfyQ6/2tAEQSl4YLVW/g8Y=; b=lZJIWqHdirG6rKGPgL/STcYnjTO9MLvdYW2SnYrwDWH9Yeevzbxr9/4OCg2EDbTcmO 3jLr7zLYm9y7UgHVO91KvEcT566ahdYOS6auQ+z+RhUMIaMBa85s6gGbMneGq/6YFE3E KET9+DY1G+rr23WbFrmVd9GbOWtcViQaDIBaxbdtfsfU4sOY6JomBPbWEpRP0WXlu9V6 sOXWgmjQ61vARASIABgv0zIH6QrWXizScTPs4n11vw9BfW/zYisKeL+VHWELEeiF6wsN q7ZregN+18Y4yhoIB5+zI1V4THeIBvea4A6+I+qK+pcWVx+fn//3liHQwNr+qbTCoGS/ foKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@smtpservice.net header.s=m78bu0.a1-4.dyn header.b=ZQRj0ZEJ; 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=QUARANTINE sp=NONE dis=NONE) header.from=akamai.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 204-v6si1246022wmd.16.2018.09.14.03.17.47; Fri, 14 Sep 2018 03:17:48 -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; dkim=neutral (body hash did not verify) header.i=@smtpservice.net header.s=m78bu0.a1-4.dyn header.b=ZQRj0ZEJ; 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=QUARANTINE sp=NONE dis=NONE) header.from=akamai.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8D14E68A604; Fri, 14 Sep 2018 13:17:34 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from a1i390.smtp2go.com (a1i390.smtp2go.com [43.228.185.134]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 410EA68A5EB for ; Fri, 14 Sep 2018 13:17:27 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=m78bu0.a1-4.dyn; x=1536921163; h=Feedback-ID: X-Smtpcorp-Track:Message-Id:Date:Subject:To:From:Reply-To:Sender: List-Unsubscribe; bh=MA79GbJ516kpELdI24qxcVCFnQgKXitpvAHViKy/nZo=; b=ZQRj0ZEJ 4oSlJSZp4RXcF7ZHR9Ey3ES/48Wf0aBg+rmBFgehrlKQfbDcpev+tS53qONsIKCWa86TfwKgOQIsB 0crKW+PLL3HE9Y4GEo/ZVftMLbQy2zHVWDVUBv8QmS25c5aVbb1OR7gZkWMdmf3/5dMV3jCwd53v4 BhXJcB5OH+GfneZY9on8RVD57V4KIAiYu8sIgLDsKj4GE5sIMQtL4VWxqdwPm9TmI0kqA9euAnlas /3iWGGjXkQwDbdwIiwCJ/et7kbA2MKsdfL79+c8fSs2C3CNujZje9/D3VrI2WhWL0hN4M1Kz9MaRe QPbfm0JSkvKaGiakfCFM04oPBg==; Received: from [10.139.162.6] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1g0lAN-ItkDIV-Cd; Fri, 14 Sep 2018 10:17:35 +0000 Received: from [10.125.17.166] (helo=gmail.com) by smtpcorp.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1g0lAK-NIFBTb-Sf; Fri, 14 Sep 2018 10:17:32 +0000 Received: from gmail.com (localhost [127.0.0.1]) by gmail.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id w8EAHS84018272; Fri, 14 Sep 2018 15:47:28 +0530 Received: (from akamai@localhost) by gmail.com (8.14.4/8.14.4/Submit) id w8EAHSQL018269; Fri, 14 Sep 2018 15:47:28 +0530 From: Karthick J To: ffmpeg-devel@ffmpeg.org Date: Fri, 14 Sep 2018 15:47:20 +0530 Message-Id: <1536920240-18203-1-git-send-email-kjeyapal@akamai.com> X-Mailer: git-send-email 1.9.1 X-Smtpcorp-Track: 1g0_jKNmFUTPSf.X8q9zMSvb Feedback-ID: 337386m:337386asVRLGB:337386sipOivAOPo X-Report-Abuse: Please forward a copy of this message, including all headers, to Subject: [FFmpeg-devel] [PATCH] avformat/dashenc: Reduce Muxing overhead for chunked CMAF format X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Karthick Jeyapal MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Karthick Jeyapal SIDX atom being inserted for every MOOF atom increases the muxing overhead. This behaviour can be disabled for chunked CMAF format by enabling Global SIDX option of mov muxer. --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 87e31e2..9a33321 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1065,7 +1065,7 @@ static int dash_init(AVFormatContext *s) if (c->segment_type == SEGMENT_TYPE_MP4) { if (c->streaming) - av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov", 0); + av_dict_set(&opts, "movflags", "frag_every_frame+dash+delay_moov+global_sidx", 0); else av_dict_set(&opts, "movflags", "frag_custom+dash+delay_moov", 0); } else {