我在这里尝试了多个指南(搜索"构建libx265"),但这里没有成功.两次我都确定先卸载了ffmpeg,然后浏览了指南,然后跑了
brew install ffmpeg --with-fdk-aac --with-freetype --with-libass --with-libvpx --enable-libx265
无论我什么时候去运行像这样的命令
ffmpeg -i source.mkv -c:v libx265 test1.mkv
我收到错误:
Unknown encoder 'libx265'
有没有人成功构建libx265与OSX上的ffmpeg一起使用,你能分享一下你是怎么做到的吗?
PS我正在运行OSX 10.11.3
尝试通过Python使用ffmpeg将sub刻录成视频.在命令行中工作正常,但是从Python子进程调用时:
p = subprocess.Popen('cd ~/Downloads/yt/; ffmpeg -i ./{video} -vf subtitles=./{subtitles} {out}.mp4'.format(video=vid.replace(' ', '\ '), subtitles=subs, out='out.mp4'), shell=True)
Run Code Online (Sandbox Code Playgroud)
我明白了:
Unable to find a suitable output format for 'pipe:'
Run Code Online (Sandbox Code Playgroud)
完全追溯:
'ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.7.2_1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libvpx --enable-libass --enable-libfdk-aac --enable-nonfree --enable-vda
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / …Run Code Online (Sandbox Code Playgroud)