From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id E6CCC4B6FC for ; Mon, 21 Jul 2025 18:39:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 7676168C739; Mon, 21 Jul 2025 21:39:48 +0300 (EEST) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 8E5A168C30D for ; Mon, 21 Jul 2025 21:39:41 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 48CBF44502 for ; Mon, 21 Jul 2025 18:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1753123180; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1ID//qS73Uuha0w8KPf7VJ95Q1xUtz1srAMNYw0Wc90=; b=BFzXIu76v+qOiRCd6U2gOgJemzZABN+fIgcbyOBrepAWEU3svO8ipot2ZHspcGdMEj8smM XNWm56E/BaQSazzpsln2VVi85PgkIH+ucJRZzMOlyA6jhujGNQdMIW8Z18YXOBW0bk5H23 ZLT+r27LXHkstGB89B1y2OurPgAz8DHzZ0dEDinmDV+PhTnyHIVn6FEHxCXDRlo/cf+/Ub KX+nBiiwIF2BWWZwzkRQxQUnKNoJb/xhze5lfhKUHCOlba/jrcYmAntOtiHTpju1bYehHL SjguQNmdhAU2VJgvNp5RXkoUV/AsbCmmhuGMmcnjSW5utIWE1dpGAoT3NXFSJg== Date: Mon, 21 Jul 2025 20:39:38 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250721183938.GA29660@pb2> References: <15da76f4-4209-4996-9db1-bc3f96a55a0e@mtasv.net> MIME-Version: 1.0 In-Reply-To: <15da76f4-4209-4996-9db1-bc3f96a55a0e@mtasv.net> X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdejvdekvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfevnecukfhppeeguddrieeirdeihedrudejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeihedrudejiedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [FEATURE] Cut a video (-ss) with timings non-aligned on keyframes, with minimal re-encoding 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="===============3817702121578560393==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3817702121578560393== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8l+pyhnIhg5slas7" Content-Disposition: inline --8l+pyhnIhg5slas7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi On Sun, Jul 20, 2025 at 09:54:09PM +0000, basj@gget.it wrote: > Hi, >=20 > Out of curiosity, has there been any progress since 1 year about this top= ic? >=20 > Really, millions of CPU-hours are probably wasted to reencode already-per= fectly-encoded content, just for cutting purposes. For example, is there a = way to cut a AVI or MKV H264 video with a specific starting point and speci= fic length, with minimal re-encoding? >=20 > When using: "ffmpeg -ss 120 -t 60 -i input.mp4 -c copy output.mp4", > the result is often choppy or non-smooth in the first seconds, clean patch welcome > because the cut point doesn't necessarily coincide with a keyframe, at le= ast on some players. >=20 > We could reencode just the beginning until the next keyframe, and then us= e copy codec for the rest of the video, and then concatenate, but nobody do= es this, it's unnecessarily complex (and I'm not even sure it works). theres some recent talk about edit lists, maybe what you describe is another use case of proper edit list rendering >=20 > 20 Aug 2024, 22:34, michael@niedermayer.cc wrote: >=20 > > Such signalling can be added to existing containers with little effort. > > Iam also happy to help to add it to nut >=20 > Can you explain with a little bit more details how it would work? Thanks = in advance! Its a year since that mail you reply to, but IIRC that just refered to that any data you want to attach you can attach in nut. To frames, to streams, to any timespans and so on. thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Breaking DRM is a little like attempting to break through a door even though the window is wide open and the only thing in the house is a bunch of things you dont want and which you would get tomorrow for free anyway --8l+pyhnIhg5slas7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaH6JZwAKCRBhHseHBAsP qwcJAKCKxLoJ6mNutGZrf/Y2asp24U7JhACgiw5MO8SGi7wukZe42i/TcwdBCY0= =A+On -----END PGP SIGNATURE----- --8l+pyhnIhg5slas7-- --===============3817702121578560393== 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". --===============3817702121578560393==--