From: Daniel Pocock <daniel@pocock.pro>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] fix build, avcodec: update OpenH264 header path
Date: Tue, 1 Mar 2022 16:13:34 +0100
Message-ID: <f8d44adb-50c9-8fa8-9bab-4248f8aa31ff@pocock.pro> (raw)
In-Reply-To: <a3165972-fd72-7cca-bd46-1da1bdbee2c@martin.st>
On 01/03/2022 14:27, Martin Storsjö wrote:
> On Tue, 1 Mar 2022, Daniel Pocock wrote:
>
>>
>>
>> On 01/03/2022 10:19, Hendrik Leppkes wrote:
>>> On Tue, Mar 1, 2022 at 9:16 AM Daniel Pocock <daniel@pocock.pro> wrote:
>>>>
>>>>
>>>> This updates the locations searched for the OpenH264 headers to be
>>>> consistent with upstream
>>>>
>>>> Discussed here:
>>>> https://github.com/cisco/openh264/pull/3415
>>>>
>>>> Due to the change in the pkgconfig file, it is possible to compile with
>>>> either:
>>>>
>>>> #include <openh264/codec_api.h>
>>>>
>>>> OR
>>>>
>>>> #include <codec_api.h>
>>>>
>>>> but in this patch, I used the former.
>>>>
>>>
>>> Which releases of the library have the updated location? Will older
>>> releases still work, if so, which?
>>
>> This patch is very trivial and doesn't attempt to support older releases
>> of OpenH264.
>
> So far, ffmpeg has supported a range of versions of OpenH264, from 1.3
> up to the latest version.
>
>> Please keep in mind the OpenH264 code is patented
>
> .. and how does that differ from the code in libavcodec?
The libavcodec/libopenh264*.c files do not implement the patented
algorithm, they simply wrap the library
>
>> and not widely installed in Linux distributions. Developers have to
>> download it directly each time they include it in a project.
>
>> So there doesn't appear to be a compelling case to support many
>> versions concurrently.
>
> First off, supporting one or more versions is kinda essential for being
> able to track down any regression in the combination of the two projects.
>
> Then secondly, OpenH264 does provide binaries for the existing releases,
> with the extra benefit that if you have the users download the binary
> from Cisco, Cisco covers the patent license fee for that individual copy
> of the library. To be able to benefit from this, you need to build
> ffmpeg against one of the existing releases out there.
>
> So TL;DR, just because _you_ don't see a reason for supporting older
> releases, please don't deprive others of the ability to do that.
>
> So to support latest git master of OpenH264, we'd instead have to add a
> configure check to see what include path the library happens to use.
If somebody wants to test some other permutation as part of a search for
a regression they could create a symlink manually before running configure.
Nothing changes in the API so no code changes are necessary
As an example:
mkdir /tmp/old-openh264
ln -s /usr/include/wels /tmp/old-openh264/openh264
./configure --extra-cflags=-I/tmp/old-openh264
Regards,
Daniel
--
https://danielpocock.com
_______________________________________________
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:[~2022-03-01 15:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-01 8:16 Daniel Pocock
2022-03-01 9:19 ` Hendrik Leppkes
2022-03-01 10:14 ` Daniel Pocock
2022-03-01 13:27 ` Martin Storsjö
2022-03-01 15:13 ` Daniel Pocock [this message]
2022-03-01 15:29 ` Martin Storsjö
2022-03-01 21:50 ` Michael Niedermayer
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=f8d44adb-50c9-8fa8-9bab-4248f8aa31ff@pocock.pro \
--to=daniel@pocock.pro \
--cc=ffmpeg-devel@ffmpeg.org \
/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