问题标签 [autogen]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
6458 浏览

linux - aclocal: 错误: 'configure.ac' 是必需的

我尝试使用 .autogen.sh 从这个存储库构建文件: https ://github.com/cnangel/pidgin-libqq

当我从解压缩所有内容的目录(/​​project)输入命令(.autogen.sh)时,它可以工作。

但是当我想从不同的目录(/​​test)构建它们时,它会显示错误:aclocal: error: 'configure.ac' is required。我相信这是因为当从 /test 目录运行 /project 中的 autogen.sh 时,autogen.sh 仍然会在 /test 目录中查找 configure.ac。

我应该如何重写autogen.sh文件以识别/扫描它们都位于的目录(/​​project )中的configure.ac文件?

感谢任何关于这个问题的建议!

0 投票
2 回答
975 浏览

cmake - ExternalProject_Add autogen 项目防止在重建时配置

我在 linux 上有一个 CMake 项目,我正在使用ExternalProject它来构建 Google Protobuf。它工作得很好,但是任何后续构建仍然调用外部项目中的配置步骤(这很烦人,因为 protobuf 是一个具有相当长步骤的自动生成项目)。我使用了这个UPDATE_DISCONNECTED参数,所以它不会重新克隆这对某些人有帮助,但你会认为如果它没有重新克隆,它就不需要重新配置或重新构建/安装。如何让 CMake 只构建一次并跳过后续构建(即make构建目录中的下一个构建)?

这是我的CMakeLists.txt

完整的示例项目在这里

0 投票
1 回答
1465 浏览

c# - 在 Unity 中使用 autogen ffmpeg C# 从视频中提取音频

嗨,我正在使用 ffmpeg autogen 从 Unity 中的视频中提取音频,但是当我遵循此代码时,文件写入无法写入,它是 0Kb,所以这是什么问题,或者有人有任何使用此库提取音频的示例,抱歉我的英文。这是库的 github: https ://github.com/Ruslan-B/FFmpeg.AutoGen

值 returnCode 返回小于 0,所以有人可以解决这个问题,非常感谢

0 投票
1 回答
2396 浏览

c# - FFmpeg.AutoGen example of how to split audio file

I want to use the FFmpeg.AutoGen project from here: https://github.com/Ruslan-B/FFmpeg.AutoGen

I'm not familiar with the ffmpeg API, so I wanted to get an example of how to split an audio file into little files, for example the audio file is about 2 hours long (can be mp3,ogg,wav,etc.) and I want to split it into several little files of x minutes. The splitting should be done on the main audio file with timestamps from and to, for example from = 00:25:00 (meaning 25 minutes), to = 00:31:12 (meaning 31 minutes, 12 seconds) and the output should be the section from the main audio file, the result is 00:06:12 (meaning 6 minutes, 12 seconds) long.

How can this task be achieved with the project? Also a C example can help me, I would try to convert it into the framework.

Thanks for your responses.

0 投票
1 回答
1335 浏览

build - Autoconf 找不到 config.status

当我./autogen.shhttps://github.com/EricssonResearch/openwebrtc上运行时,我得到了这个:

我应该手动创建config.status还是这个文件丢失的事实在它出错之前表明了什么?或者我应该添加一些命令参数?我没有找到很多关于它的额外信息。

0 投票
1 回答
546 浏览

c# - 在 Mono/Linux 中使用 FFmpeg.Autogen 4.1.0.2 时未找到 Kernel32

我在发布此内容时正在提交错误报告,但我不知道我可以从堆栈跟踪中看到 FFmpeg.Autogen。不管怎样,我在 Github 上发布了一个错误报告

https://github.com/Ruslan-B/FFmpeg.AutoGen/issues/109

我正在尝试在使用 FFmpeg.Autogen 与 ffmpeg 库交互的 Linux 中运行我的代码。我得到 kernel32 dll not found 不知道为什么。他说不要将问题发布到 github 以进行故障排除。可能的相关问题:https ://github.com/Ruslan-B/FFmpeg.AutoGen/issues/89

我尝试的第一件事是从示例代码中包含二进制帮助器类,我对其进行了一些调整。添加了 linux 文件的确切路径。我做的第二件事是添加 FFmpeg.AutoGen.dll.config 如果配置正确,它会尝试引用一个 Windows DLL,它应该指向 linux 的。堆栈跟踪:

我的代码触发了这个:

Binaryhelper 应该为文件正确设置路径

FFmpeg.Autogen.dll.config

0 投票
1 回答
531 浏览

c# - 还有另一种方法可以将 ffmpeg 中的帧导出到 texture2d 吗?我的代码在 Windows 上工作,但在 Linux 上不工作

声音在 Linux 中的工作方式与在 Windows 中的工作方式相同。但是视频只是一个黑屏,当我尝试将帧保存为 BMP 文件时,所有这些都是损坏/空文件。我正在使用 Ffmpeg.Autogen 与库交互。https://github.com/Ruslan-B/FFmpeg.AutoGen。该文件是 MKV 容器中的 VP8 和 OGG。尽管出于某种原因扩展名是 AVI。

我试着弄乱代码的顺序。我检查以确保在 Linux 上构建的 Ffmpeg 具有 VP8。我在网上搜索,但找不到另一种方法来做我正在做的事情。这是为了对 OpenVIII 项目做出贡献。我的叉子-> https://github.com/Sebanisu/OpenVIII

这只是让缩放器准备好更改像素格式,否则人们会有蓝色的脸。

将 Frame 转换为 BMP 我认为这就是问题所在。因为我在其中添加了 bitmap.save 并得到了空的 BMP。

在我得到一个位图后,我们把它变成一个 Texture2D 以便我们可以绘制它。

如果你想要的话,我可以发布更多内容几乎都在我的叉子上

视频将像在 Windows 中一样播放。像 15 fps 一样流畅。:)

0 投票
1 回答
60 浏览

c# - How should mulitiple query string parameters be presented in swaggers?

I want the api to be able to accept multiple query strings, for example:

I have the api defined as:

And Flag Enum Epandable defined as:

And the swagger for parameter "expand" generated as

But with this swagger, the auto-gen client takes in a string, I am not sure how the swagger should be presented so the auto-generated client would also take in a Flag Enum?

0 投票
1 回答
957 浏览

ffmpeg - 如何使用 GPU 使用 ffmpeg.autogen 解码 MP4 文件?

如何使用 GPU 解码 MP4 文件?

我使用 FFmpeg.AutoGen 的演示。对代码有好处: private static unsafe void DecodeAllFramesToImages() 但这是使用 CPU 解码。我想要一个使用 GPU 解码的演示。我怎样才能做到这一点 ?

这是 FFmpeg.AutoGen 演示:

0 投票
1 回答
625 浏览

c# - 为什么我在将 av_hwframe_transfer_data () 作为 Windows 服务运行时会捕获“AccessViolationException”异常?

我从摄像头编写 Windows 服务女巫解码视频流。我用 FFMPEG.Autogen 包装器将它写在 c# 上。

当我将它作为服务运行时,我的问题是“AccessViolationException”。如果我将应用程序作为控制台应用程序运行,我没有例外。

在 Stacktrace 我看到这个:

TryDecodeNextFrame 方法的代码:

我试图做的事情:

  1. 我检查了av_hwframe_transfer_data.
  2. 我更改了服务的用户。
  3. 我尝试编译为 x86 或 x64 配置。

我不知道如何解决这个问题。有人有想法吗?