From: Stefan Oltmanns via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> To: ffmpeg-devel@ffmpeg.org Cc: Stefan Oltmanns <stefan-oltmanns@gmx.net> Subject: [FFmpeg-devel] libavformat / vapoursynth update Date: Sun, 16 Jun 2024 00:19:29 +0200 Message-ID: <f3e8d731-283e-4201-a154-5508da77f49b@gmx.net> (raw) Hello, I updated the VapourSynth input module from the old API to the "new" API (the "new" API was introduced 4 years ago). The greatest advantage of the new API is, that it requires only a single import from the VapourSynth library, optimizing it for runtime loading instead of linking to the library during the build process. Currently almost no one builds ffmpeg with VapourSynth enabled: Understandable, because VapourSynth is not just an external library, but an entire application with its own dependencies. Making ffmpeg load the VapourSynth library at runtime only when a VapourSynth script is opened would allow building ffmpeg binaries with VapourSynth enabled, that do not require VapourSynth to be installed on the user system (unless the user would want to open a VapourSynth script). I have already successfully tested this approach on different platforms (Linux, macOS and partly Windows). There are a few options on how to do it exactly: -Remove linking at build time all together and disable VapourSynth on platforms that do not support LoadLibrary or dlopen (as VapourSynth is based on plug-ins, on platforms that do not have these function it won't work at all) or make it selectable at build time. -Include the header files directly in ffmpeg (VapourSynth is LPGL 2.1 or later just like ffmpeg, so no license issue), this would allow for building ffmpeg with VapourSynth support without the need to have VapourSynth installed on the build machine. The alternative would be to use the header files installed on the system if available. (In case additional files should be avoided, the header files could of course be copied into the vapoursynth.c, or at least merged into a single header file). What do you think about this? Should I prepare a patch for this? What option should I choose? Best regards, Stefan _______________________________________________ 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".
reply other threads:[~2024-06-15 22:19 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=f3e8d731-283e-4201-a154-5508da77f49b@gmx.net \ --to=ffmpeg-devel@ffmpeg.org \ --cc=stefan-oltmanns@gmx.net \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git