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 E21E14379B for ; Sat, 27 Aug 2022 19:41:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F3A7168BA5A; Sat, 27 Aug 2022 22:41:47 +0300 (EEST) Received: from mail-oa1-f52.google.com (mail-oa1-f52.google.com [209.85.160.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 39B4668B964 for ; Sat, 27 Aug 2022 22:41:42 +0300 (EEST) Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-11ba6e79dd1so6139887fac.12 for ; Sat, 27 Aug 2022 12:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=W/FP1Jy0dMG0BJ+Xp7kNhYBiZIE+OuIqbCCrppdtrHw=; b=OG0Z2taHCTQylEqNBSe1dGUkCSqnxLQWb3uhue0YeByFO0N/dRV+bGdiahXkHyjPnq 1t1cSIoHYMoJcMP8ajkFhiRSCTQqeklwrh72gnMEvZNDypMe0NpAAFdPljdk+5wT812Z KgPrBWvFX6ptz5jTELI84ebGrRK5FTyIMMJ2Lc3eW2eNBhLEnA8rwuT0SwbHvDl8ehx/ M1rVx6ANd44jWOKGz+NPHRLEsarQ67tJisDOmDxNYJkJpFBf+4+UI0K6UeVxipbfun+Y sVXivN8KtoZI9r6t63/Z4avrGqaXcvahm9frOM95hwtnRrc59281Vcj9uP4CbRljVkmT D83g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=W/FP1Jy0dMG0BJ+Xp7kNhYBiZIE+OuIqbCCrppdtrHw=; b=U3rQOuid/Vd4TCtHUfJfNcsm1GPPIzmiXmMwUNre7DLJPK940RCEZqjWz7gPpDWPIM q1HfEd/zmitVpzGadFFELVpZW138uAIgfQhbd+ublczVDSmcjr1xMwlqBNAqX+gnmN28 A6/eZ1EubkPIeSU1vMLrauLNeGmCd13tiSKjIHAZjiYsHeCFstCwFv7aox7wX86qz3Yu P1GQGeVbpVN0StYAvyIm7slpE7gCyMxP+N8Cs+wS7Aq1tEpYYpWN/gi8hHTipvavR0DW YmDkNnQEvlqyIScoCayh2zKda8d7oIOX74e8qXgQYT86Y6ZWkyYjo6uiZkrON31CvsBR 9oOg== X-Gm-Message-State: ACgBeo18Mm1Wd4rCPZ+6+p13I0OHv7ZP6ULNQpaubTW2gmm8biiNL3J3 Vxp8t92nIJxi7ea5nQ7/n4wiT30OHzQ= X-Google-Smtp-Source: AA6agR5etQmbBgAkByP3Gdmak+Bv0uYbZ4jg/FbkJu4CdvWeg1VmM8gEVQlspQa8zKtElwYENyfqPQ== X-Received: by 2002:a05:6870:f608:b0:11c:26a8:467f with SMTP id ek8-20020a056870f60800b0011c26a8467fmr4528064oab.258.1661629300203; Sat, 27 Aug 2022 12:41:40 -0700 (PDT) Received: from [192.168.0.13] ([191.97.187.183]) by smtp.gmail.com with ESMTPSA id y5-20020a056830208500b00636fd78dd57sm2994337otq.41.2022.08.27.12.41.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Aug 2022 12:41:39 -0700 (PDT) Message-ID: Date: Sat, 27 Aug 2022 16:41:39 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20220815231442.1976-1-jamrial@gmail.com> <20220816192218.GZ2088045@pb2> From: James Almer In-Reply-To: <20220816192218.GZ2088045@pb2> Subject: Re: [FFmpeg-devel] [PATCH] avformat/mov: don't read duration from mvhd atom 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 8/16/2022 4:22 PM, Michael Niedermayer wrote: > On Mon, Aug 15, 2022 at 08:14:42PM -0300, James Almer wrote: >> This duration is equal to the longest duration in all track's tkhd atoms, which >> may be comprised of the sum of all edit lists in each track. Empty edit lists >> in tracks represent start_time, and the actual media duration is stored in the >> mdhd atom. >> This change lets the generic demux code derive the longest track duration taken >> from mdhd atoms, so the correct duration and start_time combination will be >> reported. >> >> Should fix ticket #9775. >> >> Signed-off-by: James Almer >> --- >> libavformat/mov.c | 4 ---- >> tests/ref/fate/gaplessenc-itunes-to-ipod-aac | 2 +- >> 2 files changed, 1 insertion(+), 5 deletions(-) > > No idea if its a bad or good change but this changes the output for: > ./ffmpeg -f concat -i ~/tickets/3108/concatfile.txt -codec copy -bitexact /tmp/3108.avi > > thx I don't see an avi file in that ticket, but for the mov in the zip file, the video track duration is used after this patch. _______________________________________________ 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".