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 845564A19A for ; Mon, 22 Jul 2024 06:57:55 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9F58368D679; Mon, 22 Jul 2024 09:57:52 +0300 (EEST) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7BFF768D51F for ; Mon, 22 Jul 2024 09:57:45 +0300 (EEST) Authentication-Results: mail0.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=WWQ/lpJv; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id C420E240DB7 for ; Mon, 22 Jul 2024 08:57:43 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id 1kaZQEAQKBnX for ; Mon, 22 Jul 2024 08:57:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1721631463; bh=cbkmu1ODOb/75GGkpyKSi8JB/BUUMMmczhQ5z07zKgw=; h=Subject:From:To:In-Reply-To:References:Date:From; b=WWQ/lpJvg1m6snvMPdV/HivNV2EmU68uNxK/Bmx1xY4u4BKqYGhq894uj+H0HvGPp 657gZ1NHX1+J5BCk58MJfvTV0Rd34eS56la4AXFgi0KubYdNUOYbtSdhXH+FnuOdeU G96JM0Pqt/umdUa4mpkB1mqxs5iRcY85X9euMmohQ0FWiAQ6M6DUngFHUr3zXB85yz Fu3AZefcVu5VXwbKlI5DLx+MWULJul4BUlDT9FBqcGcKcHiWkqoWBQLooI0czzNtAU d5jPPHWizUI3ybbEWA0I8ZRl/UZDUymR1/+Hfei7/O6FF3QXz5co0zNEnOUT8n0O5V oHEvGCvatWdpA== Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 12347240695 for ; Mon, 22 Jul 2024 08:57:43 +0200 (CEST) Received: by lain.khirnov.net (Postfix, from userid 1000) id 5F5E91601B9; Mon, 22 Jul 2024 08:57:42 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org In-Reply-To: References: <8c6c11a6-bc55-41a0-9f98-262c60f63ec8@gmx.net> <593d1c9b-a040-40e9-93f9-d6966eeb080b@gmx.net> <172130193771.21847.12496308464135252572@lain.khirnov.net> Date: Mon, 22 Jul 2024 08:57:42 +0200 Message-ID: <172163146231.21847.3900874929001201865@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Quoting Stefan Oltmanns (2024-07-18 14:12:42) > Hello Anton, > > can you eloborate on that? What is unacceptable with my patch that is > perfectly fine in the AviSynth input module? It's the very same concept. It's not perfectly fine in avisynth, I dislike it there as well. There are also recent patches that remove the atexit handler. > Loading the library at runtime makes it so much more useful, because you > can distribute ffmpeg binaries without forcing the user to install > VapourSynth (which requires the user to install Python). Runtime loading hides dependencies from standard tools and makes program behaviour harder to analyze. Not to mention you're adding a bunch of global state, which is evil. > VapourSynth is not just a library like x264 that you can link in > statically if you like, VapourSynth is a frame server (like AviSynth) > with it's own dependencies. > If you worry about platforms that do not support loading libraries at > runtime: VapourSynth is based on plugins that are loaded on runtime, so > it won't work on those platforms anyway. I am worried about special "demuxers" than are not really demuxers and don't work like other demuxers, hence massively increasing library maintenance load. -- Anton Khirnov _______________________________________________ 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".