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 E9A9A437A4 for ; Sat, 27 Aug 2022 22:34:09 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 539E268B9E6; Sun, 28 Aug 2022 01:34:06 +0300 (EEST) Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id ADC3568B77F for ; Sun, 28 Aug 2022 01:33:58 +0300 (EEST) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 1A164240003 for ; Sat, 27 Aug 2022 22:33:57 +0000 (UTC) Date: Sun, 28 Aug 2022 00:33:56 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20220827223356.GX2088045@pb2> References: <20220815231442.1976-1-jamrial@gmail.com> <20220816192218.GZ2088045@pb2> MIME-Version: 1.0 In-Reply-To: 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-Type: multipart/mixed; boundary="===============6739496286612744728==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============6739496286612744728== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YYdWNcbn0Z2BHBmW" Content-Disposition: inline --YYdWNcbn0Z2BHBmW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 27, 2022 at 04:41:39PM -0300, James Almer wrote: > 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 at= oms, which > > > may be comprised of the sum of all edit lists in each track. Empty ed= it lists > > > in tracks represent start_time, and the actual media duration is stor= ed in the > > > mdhd atom. > > > This change lets the generic demux code derive the longest track dura= tion taken > > > from mdhd atoms, so the correct duration and start_time combination w= ill be > > > reported. > > >=20 > > > Should fix ticket #9775. > > >=20 > > > 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(-) > >=20 > > 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 -bitexa= ct /tmp/3108.avi > >=20 > > thx >=20 > 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. the avi is generated in that command from the concatfile.txt from the ticke= ts zip thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I do not agree with what you have to say, but I'll defend to the death your right to say it. -- Voltaire --YYdWNcbn0Z2BHBmW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCYwqb0QAKCRBhHseHBAsP q9cZAJ9Qdiezg2dbvsA0439ZZFOmMbk+PQCePUAIpaaeb+83LIBLLxc8IELoSAM= =jvIT -----END PGP SIGNATURE----- --YYdWNcbn0Z2BHBmW-- --===============6739496286612744728== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============6739496286612744728==--