From patchwork Thu Jun 24 12:58:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin LaFlamme X-Patchwork-Id: 28609 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2042:0:0:0:0 with SMTP id z2csp438334iod; Thu, 24 Jun 2021 05:58:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqS5wxaWD35HFNAmjJZYQy2tnOVztWTVt5hvT/axuM6P6omdlukGwa+FQLL9jU5D0Tmoxf X-Received: by 2002:aa7:d851:: with SMTP id f17mr7024914eds.270.1624539530674; Thu, 24 Jun 2021 05:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624539530; cv=none; d=google.com; s=arc-20160816; b=UTXkgWDYM46PkM489YqL8RocOmXFtGCBkYA4r3wHWtf36hA/PUTCRdGod7aALol6Sa xMPKK+HaRvXpjhk2bMxqUHGTSkUZeBAAP1+342o0c/M8yqQMbNpgYDeAsbPeNM00x45L laSz/o9JO/ckDm8CirTTITP+A1ZJH8cgrSWTUxpMyxgaTC8BQjF7vZv3xZ/oZgynJSpw +nyZOg4gmDbhFcytTLEecop2tt8ypLVC6eDozu+hhcZ3H7Bu36nAFjn5LC9GQ0t6OAQE /8YdyNanxH2mF2Nyh/q6lwgOZQzn89k5DSKbnqe77Sqn4t+wBwePZorJs1/vFgHD+kWK b9+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=FqUd0RuZdBjcDSqLhv8pg41ayRhvr3e8+zHQ3T7kB5U=; b=snOfHxuNCpJySz4eVsxbpmC1FoUQXqhSP7re+Ab+48slfnM++w/+Oh5XN29exYfcTo XGB1Az5HisJAzIS0rE7WGVP+kKJktSWMCUjNMSMihS6XrUyCaMbKdfVqCJfo75eRl/Eu h37BDCxuzFFuhOWYCWG7bkJ3QmdHNK1c445O1dEHxr3xZILDHsE2AGNIN1PaexCPuUQF VSujQwQPonNLVxnEFDRPh9nse5uHwZIC32vL2xIBHDosLMn7uB5S/jAjxTZauQ8F5G+E Fp7heEnmEnOEkbQ+i0YopxN9fQg019fIZf+ZIzEZL7RoOwq3C2zvdiqoypCrOysXIG4t UyDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@aiera.com header.s=google header.b=DWp9ERZL; 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=aiera.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w5si2829589edr.23.2021.06.24.05.58.50; Thu, 24 Jun 2021 05:58:50 -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=@aiera.com header.s=google header.b=DWp9ERZL; 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=aiera.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5DEED68A13C; Thu, 24 Jun 2021 15:58:45 +0300 (EEST) X-Original-To: FFmpeg-devel@ffmpeg.org Delivered-To: FFmpeg-devel@ffmpeg.org Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E5F6168A107 for ; Thu, 24 Jun 2021 15:58:38 +0300 (EEST) Received: by mail-qt1-f173.google.com with SMTP id e3so4724148qte.0 for ; Thu, 24 Jun 2021 05:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aiera.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uvc7aBfrKV+uaGrcn18G5CmguyAkFikHblk2oLEfZkU=; b=DWp9ERZLUS9qtjNQkJJtq5T84IcTvRGWcz739Z0+PSBpogHHUL0+wtsICpOonwjGPp QgAQVf0TDo8xo9miaBtOQ9vnzrZ9kgmlLfDU9Hw8yVPNg/mQAqnfi88PYLJbTFPOAWUs SEth4RUi4yDnEcsFxexFGD54URKfec/gzr4bQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uvc7aBfrKV+uaGrcn18G5CmguyAkFikHblk2oLEfZkU=; b=um+u18LQnQjBELgpglB71C03K19SGzwVAbdxEO5nuBvET0DAjGbMEOo9d8w64Rjgic u6lZN+S2lRabrUVUAq1GP2H7Vt2QR6mTDWySTli+laIy2oGhAC5Mryrl0iFGuoz58KUG StiY6kAObZvJbjWCHhsicIEd6bESfVTQKjGKMdiIksmpOX+j0J53lUlgT0vhbL+fu3AS 0W6H2TEhgSx43WYTqNF+2oYpNFRtYmtz0I9D4bttJZ4bPhLg/X0pkMCUvMI4DC/jsVOq FNE2WGqMumfEF4p6IT580sapVtfQxpI50c235FvyXXCUvISz7+6XzOFmvD0DMw3LUjxr Zgig== X-Gm-Message-State: AOAM5317wHkftu3WP9JVvhXc7zc9g/woF3uRtJP0NuRAbnT38ZzAk+yo THW4oNzrz1iVGA3BFdwCWaDkauG+mGxLNw== X-Received: by 2002:ac8:5ed5:: with SMTP id s21mr4685774qtx.87.1624539517530; Thu, 24 Jun 2021 05:58:37 -0700 (PDT) Received: from localhost.localdomain (pool-173-48-224-94.bstnma.fios.verizon.net. [173.48.224.94]) by smtp.gmail.com with ESMTPSA id d124sm2374067qkf.54.2021.06.24.05.58.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jun 2021 05:58:37 -0700 (PDT) From: Kevin LaFlamme To: FFmpeg-devel@ffmpeg.org Date: Thu, 24 Jun 2021 08:58:08 -0400 Message-Id: <20210624125808.45663-2-kevin@aiera.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210624125808.45663-1-kevin@aiera.com> References: <20210624125808.45663-1-kevin@aiera.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] Advertise current segment in streaming mode 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: Kevin LaFlamme Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 3TC7Cssfbfqe In streaming mode when using a segment list, the current segment should be listed so that clients can immediately request it even before complete. Without this, even though the segment is being written in a way that it can be requested while still writing, clients won't know it's available. --- libavformat/dashenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 2b8fbcbe6e..901999324f 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -706,6 +706,8 @@ static void output_segment_list(OutputStream *os, AVIOContext *out, AVFormatCont Segment *seg = os->segments[i]; avio_printf(out, "\t\t\t\t\t\n", seg->file); } + if (c->streaming) + avio_printf(out, "\t\t\t\t\t\n", os->filename); avio_printf(out, "\t\t\t\t\n"); } if (!c->lhls || final) {