This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] DRA821U:如何在 ffmpeg 中启用 x264

Guru**** 2487425 points
Other Parts Discussed in Thread: J7200XSOMXEVM

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1443315/dra821u-how-to-enable-x264-in-ffmpeg

器件型号:DRA821U
Thread 中讨论的其他器件:J7200XSOMXEVM

工具与软件:

大家好、团队成员:

我正在以下环境中进行测试。

EVM:J7200XSOMXEVM + J721EXCP01EVM
PROCESSOR-SDK-LINUX-RT:SDK-J7200
Ver:10.00.07.03

我想使用带有 ffmpeg 的 libx264从静止图像创建视频。

因此、我使用下面的 URL 构建了 Yocto 环境。
https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-rt-j7200/10_00_07_03/exports/docs/linux/Overview_Building_ SDK_4.html#overview-building-the-sdk

此外、要在 ffmpeg 中启用 x264、我在 local.conf 文件中添加了"PACKAGECONFIG:append:pn-ffmpeg =" x264 "、并运行"bitbake ffmpeg"。
然而,当我检查 ffmpeg 内部版本信息时,它说"- disable-libx264",所以我无法启用 x264。

我认为该问题是由中的语句"PACKAGECONFIG:REMOVE ="x264"引起的 /yocto-build/sources/meta-arago/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%. bbappend ,所以我把它注释掉了,但发生了以下错误。

ERROR: Nothing PROVIDES 'x264' (but sdk/yocto-build/sources/oe-core/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb DEPENDS on or otherwise requires it)
x264 was skipped: Has a restricted license 'commercial' which is not listed in your LICENSE_FLAGS_ACCEPTED.
ERROR: Required build target 'ffmpeg' has no buildable providers.
Missing or unbuildable dependency chain was: ['ffmpeg', 'x264']


我还尝试在 local.conf 中添加"license_flags_accepted ="commercial_ffmpeg commercial"、但出现了相同的错误。

如何在 ffmpeg 中启用 x264?

此致

Mizutani

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Mizutani:

    现在、您是否可以尝试将 local.conf 中的行更改为:

    LICENSE_FLAGS_ACCEPTED:append = " commercial_ffmpeg commercial"

    我还将尝试在我自己的机器上构建 Yocto 映像进行测试。

    此致!
    Jared

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢您的答复。

    我能够通过在 local.conf 中添加以下内容来构建它。

    PACKAGECONFIG:append:pn-ffmpeg = " gpl x264 "
    LICENSE_FLAGS_ACCEPTED:append = "commercial_ffmpeg commercial"

    您能告诉我为什么"PACKAGECONFIG:REMOVE ="x264""是用" /yocto-build/sources/meta-arago/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend"?
    另外、可以评论一下吗?

    此致

    Mizutani

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Mizutani:

    您能告诉我为什么"PACKAGECONFIG:REMOVE ="x264""是用" /yocto-build/sources/meta-arago/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend"?[/QUOT]

    商业许可证不是开源的;您需要支付版税才能使用它。

    [报价用户 id="298257" url="~/support/processors-group/processors/f/processors-forum/1443315/dra821u-how-to-enable-x264-in-ffmpeg/5536762 #5536762"]

    另外、可以评论一下吗?

    [报价]

    根据您的产品、这是一个有许可证经验的人要回答的问题。

    如果您的所有问题都已解决、请将您的答案标记为解决该主题。

    此致!
    Jared