bash 在 Mac OS X Mavericks 上安装 Gstreamer-1.0

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32807973/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 13:38:51  来源:igfitidea点击:

Installing Gstreamer-1.0 on Mac OS X Mavericks

macosbashosx-maverickshomebrewgstreamer

提问by don-prog

I want to install Gstreamer-1.0 on Mac OS X Mavericks. So I already install gstreamer-1.0-1.6.0-x86_64.pkg and gstreamer-1.0-devel-1.6.0-x86_64.pkg from here. After that I tried to run something like this:

我想在 Mac OS X Mavericks 上安装 Gstreamer-1.0。所以我已经从这里安装了 gstreamer-1.0-1.6.0-x86_64.pkg 和 gstreamer-1.0-devel-1.6.0-x86_64.pkg 。在那之后,我尝试运行这样的东西:

gst-launch-1.0 fakesrc ! fakesink

But got error:

但得到错误:

-bash: gst-launch-1.0: command not found

So how I can install and use Gstreamer-1.0 on Mac OS X Mavericks?

那么如何在 Mac OS X Mavericks 上安装和使用 Gstreamer-1.0?

回答by Som

From https://stackoverflow.com/a/30873313/1162305

来自https://stackoverflow.com/a/30873313/1162305

Try installing them with the following commands from your terminal:

尝试从终端使用以下命令安装它们:

brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-ffmpeg

回答by DavidB

The package you have downloaded from the gstreamer website install everything under the /Library/Frameworks/ directory. The following command should work on your system:

您从 gstreamer 网站下载的软件包将所有内容安装在 /Library/Frameworks/ 目录下。以下命令应该适用于您的系统:

/Library/Frameworks/GStreamer.framework/Commands/gst-launch-1.0 --version