From patchwork Tue Feb 18 16:13:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 17835 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id DC16744B522 for ; Tue, 18 Feb 2020 18:41:12 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B38EB680987; Tue, 18 Feb 2020 18:41:12 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DA126680987 for ; Tue, 18 Feb 2020 18:41:05 +0200 (EET) Received: by mail-io1-f67.google.com with SMTP id z16so22967665iod.11 for ; Tue, 18 Feb 2020 08:41:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=od0fgp4cX2+0ox3soQ4xg66m2nSWvOMgiuL+/Rua4d0=; b=Nf4WQ+vJRkFiZSKRc19voxfdSuV55LjQrQJxOQedXK7hclGMQWhT4hXy3z70/sEESb i7KRlBk1W5eaj4kWBjP8EL/Qgya7UKn3PywcrLrPWSrHmA1Ra9D4GC832fA1oVm77She vZTp502e+55xrmPn1PdsGVX5Ku9DEllf6ri5GVQNMqxjaVi5ArEtsD6pxvRTjYpRuyZv 0RpwgZdQqlAcA94HHAV8UMbpT0kYwvZcXfvbTO+HRUyfZCm64id4C/98Pk+g6IJ6Jscl wiYwN0xDEOU2vBfkgAE/fVNLc2SbXz7Q+FJsJlpmocOUKhZiX64HLA0H1OQC/nH5y6bX K/rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=od0fgp4cX2+0ox3soQ4xg66m2nSWvOMgiuL+/Rua4d0=; b=DtjXzNfazV2lUgtqqszHP0qSmujiGzEFAghct/zuqQ34y/yMbMaHwPAdOeDqsi+Bor ks560ddENNjtvAG1uU5jwPPZuBs6I9D6UBFW0iMgitvOqzsFjSnATbxyUfvHsAQ34JgI +HvW9AHBMB15tpawObbFdlAntIhTKdV3B9fWC1Ct2rdn/+6vTMEww7lh/mPCL4uAJIdo 6LgaoJqcle28RaSkcHqn6QAWDmIO+judiF3eWEbI2B+SF/11F7tP3n2fezvFRRJLiN5v fzwu89SUJOEfhFkBalJiUTukpgrDET9xVXo3ZdJwb6jFEOkFXRbAuqAOIhN/Up2HRmuZ j86Q== X-Gm-Message-State: APjAAAVuz82fB+c1jr/pduFJA4SgNrAmGiB5tgXWQmr64FJCSF0A9E0O 93LMlkafnvVYTq0TxilbG+gTFbY4 X-Google-Smtp-Source: APXvYqwGmBmkh4I3Nf9iof0ID+ydJerOs+CQwhNHr0MBsyxh6yc8LS/6dbpYUo0/RUG9yITNBDYiYw== X-Received: by 2002:a05:620a:39a:: with SMTP id q26mr4128652qkm.188.1582042488734; Tue, 18 Feb 2020 08:14:48 -0800 (PST) Received: from localhost.localdomain ([191.83.214.166]) by smtp.gmail.com with ESMTPSA id 123sm745040qkj.113.2020.02.18.08.14.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 08:14:48 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Tue, 18 Feb 2020 13:13:36 -0300 Message-Id: <20200218161336.1804-3-jamrial@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200218161336.1804-1-jamrial@gmail.com> References: <20200218161336.1804-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] avformat/dashenc: always attempt to enable prft on ldash mode 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: James Almer --- libavformat/dashenc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index b910cc22d0..045d2f4df6 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1395,6 +1395,11 @@ static int dash_init(AVFormatContext *s) c->frag_type = FRAG_TYPE_EVERY_FRAME; } + if (c->ldash && !c->write_prft) { + av_log(s, AV_LOG_INFO, "Enabling Producer Reference Time element for Low Latency mode\n"); + c->write_prft = 1; + } + if (c->write_prft && !c->utc_timing_url) { av_log(s, AV_LOG_WARNING, "Producer Reference Time element option will be ignored as utc_timing_url is not set\n"); c->write_prft = 0;