【问题标题】:FFMPEG Compile CustomFFMPEG 编译自定义
【发布时间】:2017-04-28 13:01:52
【问题描述】:

我需要使用 2.1.8 版本的源代码和以下选项来编译 FFMPEG -

./configure --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --cc=i686-w64-mingw32-gcc --disable-postproc --enable-shared --disable-static --disable-decoder=libvpx --disable-encoder=aac --enable-avisynth --enable-gpl --enable-version3 --enable-pthreads --enable-avfilter --enable-runtime-cpudetect --enable-nonfree --pkg-config=pkg-config --enable-libquvi --enable-libfaac --enable-libnut --enable-libgsm --enable-libfreetype --enable-libvorbis --enable-libspeex --enable-libmp3lame --enable-zlib --enable-libtheora --enable-bzlib --enable-libvpx --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libschroedinger --enable-librtmp --enable-libass --enable-libx264 --enable-libbluray --enable-openssl --enable-libflite --enable-libsox --disable-ffplay --enable-libcdio --enable-libcelt --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libxavs --disable-outdev=sdl --disable-muxers --enable-muxer=encx --extra-cflags=-I/usr/i686-mingw32/include --extra-ldflags=-L/usr/i686-mingw32/lib --extra-libs='-lx264 -lpthread -lwinmm -llua -liconv -lcurl -lws2_32 -lssl -lcrypto -lwldap32 -lgdi32 -lwsock32' 

我需要知道在哪个系统上编译它比较好?

还有一些库可能已经过时了,我在哪里可以找到它们?

请提供您的输入,您将如何编译它?

配置是从自定义版本的 avcodec-55.dll 中提取的,需要使用新编译的 ffmpeg 对视频进行解复用。

问候

【问题讨论】:

  • 您好,我如何放置在配置选项中?我是否必须编辑脚本。看来你是脚本作者。

标签: c++ ffmpeg compilation cross-compiling libavcodec


【解决方案1】:

推荐 http://github.com/rdp/ffmpeg-windows-build-helpers 为您构建依赖项

似乎是--build-ffmpeg-shared=y --build-ffmpeg-static=n --ffmpeg-git-checkout-version=n2.1.8,它会抱怨一些它不理解的新依赖项(比如 --enable-decklink),所以只需从脚本中删除这些标志并再次运行,gl!

【讨论】:

  • 嗨,我在哪里添加“--enable-muxer=encx”?如果可以,您可以编辑脚本并在此处显示。
  • 在更改 config_options="$ 时出现以下错误 - ./cross_compile_ffmpeg.sh: line 1694: syntax error near unexpected token (' ./cross_compile_ffmpeg.sh: line 1694: echo "your box 只有 $box_memory_size_bytes, 512MB (only)构建交叉编译器 gcc 时框崩溃,请添加一些交换"# 1G 工作正常但是...'
  • @MadskillzRCE 如果启用了该复用器,通常它已经启用。如果脚本在您更改之前运行良好,那么我会从一个新副本开始,然后再试一次,GL!
  • 我第一次运行时遇到了你所说的 --enable-decklink 错误,然后我更改了配置并得到了上述错误。所以我创建了一个新目录并重新开始,但我可以在执行脚本之前更改配置吗?
  • 顺便说一句,这是我使用的配置 - pastebin.com/J6XzNnqp 和现在这样执行的脚本 - ./cross_compile_ffmpeg.sh --build-ffmpeg-shared=y --build-ffmpeg-static=n --ffmpeg-git-checkout-version=n2.1.8,我需要构建任何其他依赖项的任何源吗?
猜你喜欢
  • 2020-03-20
  • 1970-01-01
  • 1970-01-01
  • 2017-07-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-03-30
相关资源
最近更新 更多