From: Stefan Oltmanns via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: Stefan Oltmanns <stefan-oltmanns@gmx.net>
Subject: Re: [FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime
Date: Thu, 18 Jul 2024 11:37:56 +0200
Message-ID: <593d1c9b-a040-40e9-93f9-d6966eeb080b@gmx.net> (raw)
In-Reply-To: <8c6c11a6-bc55-41a0-9f98-262c60f63ec8@gmx.net>
Hello,
I adressed the issues/concerns that were raised with the first revision
of the patch.
Any feedback? Did I do something wrong?
Best regards
Stefan
Am 06.07.24 um 23:08 schrieb Stefan Oltmanns via ffmpeg-devel:
> Hello,
>
> this is revised patch, to sum up the changes:
>
> The current VapourSynth implementation is rarely used, as it links the
> VapourSynth library at build time, making the resulting build unable to
> run when VapourSynth is not installed. Therefore barely anyone compiles
> with VapourSynth activated.
>
> I changed it, so that it loads the library at runtime when a VapourSynth
> script should be opened, just like AviSynth does.
> On Windows the DLL from VapourSynth is not installed in the system
> directory, but the location is stored in the Registry. Therefore I added
> some code to read that information from the registry.
>
> As the V4 API is designed with dynamic loading in mind (only a single
> import), I updated the implementation to V4 (changes are mostly
> superficial, no structural changes). The V4 API is already several years
> old, fully supported since R55 released in 2021.
>
>
> Changes from first patch:
> -Separated the Windows-specific function for getting the DLL location
> from the platform-specific includes
> -It is not enabled by default in configure
> -The header files are not included anymore
>
>
> I would like to include the header files for this reason:
> While most Linux distributions ship ffmpeg, only very few contain
> VapourSynth. Therefore ffmpeg won't be compiled with VapourSynth support
> by these distributions, because no VapourSynth headers. Including the
> headers in ffmpeg would mean they can compile with VapourSynth support
> and if a user decided to install VapourSynth from somewhere else or
> compile it by himself, ffmpeg support would be ready and no need for the
> user to install another ffmpeg or compile one.
> I'm not sure what the rules for shipping include files are, as there are
> a few 3rd-party include files in ffmpeg. License is not an issue
> (Vapourynth is LGPL v2.1 or later like ffmpeg).
>
>
>
> make fate runs without any issue. I tested VapourSynth input scripts
> with various color formats on different platforms:
>
> Ubuntu 22.04
> macOS 13 (x86_64)
> macOS 13 (arm64)
> Windows 10 (msys2/gcc)
>
> It compiles on these platforms without any warning and runs without any
> issues.
>
> 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".
_______________________________________________
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".
next prev parent reply other threads:[~2024-07-18 9:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-06 21:08 Stefan Oltmanns via ffmpeg-devel
2024-07-18 9:37 ` Stefan Oltmanns via ffmpeg-devel [this message]
2024-07-18 11:25 ` Anton Khirnov
2024-07-18 15:38 ` Stefan Oltmanns via ffmpeg-devel
2024-07-22 6:57 ` Anton Khirnov
2024-07-23 0:24 ` Stefan Oltmanns via ffmpeg-devel
2024-07-18 11:08 ` Ramiro Polla
2024-07-18 12:48 ` Stefan Oltmanns via ffmpeg-devel
2024-07-18 13:04 ` Ramiro Polla
2024-07-18 13:41 ` Stefan Oltmanns via ffmpeg-devel
2024-07-18 14:21 ` Ramiro Polla
2024-07-18 14:53 ` Stefan Oltmanns via ffmpeg-devel
2024-07-19 17:05 ` Stephen Hutchinson
2024-07-18 15:23 ` epirat07
2024-07-21 22:08 ` Stefan Oltmanns via ffmpeg-devel
2024-07-21 22:15 ` Hendrik Leppkes
2024-07-22 0:42 ` Stefan Oltmanns via ffmpeg-devel
2024-07-22 6:36 ` Hendrik Leppkes
2024-07-22 12:13 ` Ramiro Polla
2024-07-22 13:41 ` Hendrik Leppkes
2024-07-22 18:28 ` Ramiro Polla
2024-07-22 13:52 ` Stefan Oltmanns via ffmpeg-devel
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=593d1c9b-a040-40e9-93f9-d6966eeb080b@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