Install FFmpeg on OS X
Is there a good place or bash script I can use (or at least a version I can build myself) for FFmpeg on OS X?
I have Xcode installed as well as the CLI for Xcode (gcc
etc).
I have a version of FFmpeg currently installed, but somehow I get a segmentation error on libx264 as well as the libvpx (I can't convert to MP4 and WebM).
All I want to do is batch convert video files to HTML5 compatible videos. All my source videos consist of .mov .mp4 and .wmv files. .ogv works fine by the way.
So the real question:
- How to uninstall everything of FFmpeg on my Mac now
- Reinstall a FFmpeg version that can convert to .mp4, .webm, and .ogv
I also tried the precompiled version of Miro video converter but somehow that doesn't work either.
macos installation ffmpeg
migrated from stackoverflow.com Jul 26 '13 at 13:48
This question came from our site for professional and enthusiast programmers.
add a comment |
Is there a good place or bash script I can use (or at least a version I can build myself) for FFmpeg on OS X?
I have Xcode installed as well as the CLI for Xcode (gcc
etc).
I have a version of FFmpeg currently installed, but somehow I get a segmentation error on libx264 as well as the libvpx (I can't convert to MP4 and WebM).
All I want to do is batch convert video files to HTML5 compatible videos. All my source videos consist of .mov .mp4 and .wmv files. .ogv works fine by the way.
So the real question:
- How to uninstall everything of FFmpeg on my Mac now
- Reinstall a FFmpeg version that can convert to .mp4, .webm, and .ogv
I also tried the precompiled version of Miro video converter but somehow that doesn't work either.
macos installation ffmpeg
migrated from stackoverflow.com Jul 26 '13 at 13:48
This question came from our site for professional and enthusiast programmers.
add a comment |
Is there a good place or bash script I can use (or at least a version I can build myself) for FFmpeg on OS X?
I have Xcode installed as well as the CLI for Xcode (gcc
etc).
I have a version of FFmpeg currently installed, but somehow I get a segmentation error on libx264 as well as the libvpx (I can't convert to MP4 and WebM).
All I want to do is batch convert video files to HTML5 compatible videos. All my source videos consist of .mov .mp4 and .wmv files. .ogv works fine by the way.
So the real question:
- How to uninstall everything of FFmpeg on my Mac now
- Reinstall a FFmpeg version that can convert to .mp4, .webm, and .ogv
I also tried the precompiled version of Miro video converter but somehow that doesn't work either.
macos installation ffmpeg
Is there a good place or bash script I can use (or at least a version I can build myself) for FFmpeg on OS X?
I have Xcode installed as well as the CLI for Xcode (gcc
etc).
I have a version of FFmpeg currently installed, but somehow I get a segmentation error on libx264 as well as the libvpx (I can't convert to MP4 and WebM).
All I want to do is batch convert video files to HTML5 compatible videos. All my source videos consist of .mov .mp4 and .wmv files. .ogv works fine by the way.
So the real question:
- How to uninstall everything of FFmpeg on my Mac now
- Reinstall a FFmpeg version that can convert to .mp4, .webm, and .ogv
I also tried the precompiled version of Miro video converter but somehow that doesn't work either.
macos installation ffmpeg
macos installation ffmpeg
edited Dec 22 '14 at 17:39
slhck
163k47450474
163k47450474
asked Oct 22 '12 at 10:05
ShuyinsamaShuyinsama
96116
96116
migrated from stackoverflow.com Jul 26 '13 at 13:48
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Jul 26 '13 at 13:48
This question came from our site for professional and enthusiast programmers.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
There are three options, sorted by complexity:
- Homebrew (or other package managers)
- Static builds
- Compile yourself
To follow this you need to have a bit of knowledge using a terminal/shell under macOS.
1. Homebrew
Homebrew has a formula for stable FFmpeg releases. This will get you running pretty fast. First, install Homebrew.
Then install FFmpeg through the ffmpeg
formula:
brew install ffmpeg
This will download a lot of dependencies such as x264, but after that you should be good to go.
To update ffmpeg later on, run:
brew update && brew upgrade ffmpeg
2. Static Builds
The FFmpeg project, on the download page, offers links to static builds for ffmpeg
, which you can just download, extract, and use in a terminal.
Static builds cannot contain every possible encoder, mostly due to licensing issues. This is why I don't recommend using them unless you don't really care about which specific features you need.
Once downloaded, extract the file, open up Terminal.app, and navigate to the directory where you unzipped the files, i.e. where you find a file called ffmpeg
. Copy this file to /usr/local/bin
:
cd ~/Downloads/
sudo mkdir -p /usr/local/bin/
sudo cp ./ffmpeg /usr/local/bin
sudo chmod 644 /usr/local/bin/ffmpeg
Now, if you use Bash (which is the default shell), add it to your $PATH:
open -e ~/.bash_profile
Add this to the file at the end:
export PATH="/usr/local/bin:$PATH"
Save it, and close the editor. Now restart your Terminal and which ffmpeg
should return /usr/local/bin/ffmpeg
.
3. Compiling yourself
You can of course build FFmpeg tools yourself, following the OS X compilation guide. This guide will always be up to date, and by manually compiling you may be able to tweak a few parameters.
To uninstall whatever version of FFmpeg you installed we'd need to know how you've installed it in the first place. Since Homebrew will install to /usr/local/Cellar
, and symlink to /usr/local/bin/ffmpeg
, it probably won't cause any problems with other libraries. However, check the make install
scripts of the versions you (supposedly) built yourself and see where they placed FFmpeg. Then just delete them from there — it won't interfere with Homebrew.
The segmentation fault could be due to improper linking between the x264 or libvpx libraries. Since Homebrew will take care of this, you shouldn't run into any issues.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f624561%2finstall-ffmpeg-on-os-x%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are three options, sorted by complexity:
- Homebrew (or other package managers)
- Static builds
- Compile yourself
To follow this you need to have a bit of knowledge using a terminal/shell under macOS.
1. Homebrew
Homebrew has a formula for stable FFmpeg releases. This will get you running pretty fast. First, install Homebrew.
Then install FFmpeg through the ffmpeg
formula:
brew install ffmpeg
This will download a lot of dependencies such as x264, but after that you should be good to go.
To update ffmpeg later on, run:
brew update && brew upgrade ffmpeg
2. Static Builds
The FFmpeg project, on the download page, offers links to static builds for ffmpeg
, which you can just download, extract, and use in a terminal.
Static builds cannot contain every possible encoder, mostly due to licensing issues. This is why I don't recommend using them unless you don't really care about which specific features you need.
Once downloaded, extract the file, open up Terminal.app, and navigate to the directory where you unzipped the files, i.e. where you find a file called ffmpeg
. Copy this file to /usr/local/bin
:
cd ~/Downloads/
sudo mkdir -p /usr/local/bin/
sudo cp ./ffmpeg /usr/local/bin
sudo chmod 644 /usr/local/bin/ffmpeg
Now, if you use Bash (which is the default shell), add it to your $PATH:
open -e ~/.bash_profile
Add this to the file at the end:
export PATH="/usr/local/bin:$PATH"
Save it, and close the editor. Now restart your Terminal and which ffmpeg
should return /usr/local/bin/ffmpeg
.
3. Compiling yourself
You can of course build FFmpeg tools yourself, following the OS X compilation guide. This guide will always be up to date, and by manually compiling you may be able to tweak a few parameters.
To uninstall whatever version of FFmpeg you installed we'd need to know how you've installed it in the first place. Since Homebrew will install to /usr/local/Cellar
, and symlink to /usr/local/bin/ffmpeg
, it probably won't cause any problems with other libraries. However, check the make install
scripts of the versions you (supposedly) built yourself and see where they placed FFmpeg. Then just delete them from there — it won't interfere with Homebrew.
The segmentation fault could be due to improper linking between the x264 or libvpx libraries. Since Homebrew will take care of this, you shouldn't run into any issues.
add a comment |
There are three options, sorted by complexity:
- Homebrew (or other package managers)
- Static builds
- Compile yourself
To follow this you need to have a bit of knowledge using a terminal/shell under macOS.
1. Homebrew
Homebrew has a formula for stable FFmpeg releases. This will get you running pretty fast. First, install Homebrew.
Then install FFmpeg through the ffmpeg
formula:
brew install ffmpeg
This will download a lot of dependencies such as x264, but after that you should be good to go.
To update ffmpeg later on, run:
brew update && brew upgrade ffmpeg
2. Static Builds
The FFmpeg project, on the download page, offers links to static builds for ffmpeg
, which you can just download, extract, and use in a terminal.
Static builds cannot contain every possible encoder, mostly due to licensing issues. This is why I don't recommend using them unless you don't really care about which specific features you need.
Once downloaded, extract the file, open up Terminal.app, and navigate to the directory where you unzipped the files, i.e. where you find a file called ffmpeg
. Copy this file to /usr/local/bin
:
cd ~/Downloads/
sudo mkdir -p /usr/local/bin/
sudo cp ./ffmpeg /usr/local/bin
sudo chmod 644 /usr/local/bin/ffmpeg
Now, if you use Bash (which is the default shell), add it to your $PATH:
open -e ~/.bash_profile
Add this to the file at the end:
export PATH="/usr/local/bin:$PATH"
Save it, and close the editor. Now restart your Terminal and which ffmpeg
should return /usr/local/bin/ffmpeg
.
3. Compiling yourself
You can of course build FFmpeg tools yourself, following the OS X compilation guide. This guide will always be up to date, and by manually compiling you may be able to tweak a few parameters.
To uninstall whatever version of FFmpeg you installed we'd need to know how you've installed it in the first place. Since Homebrew will install to /usr/local/Cellar
, and symlink to /usr/local/bin/ffmpeg
, it probably won't cause any problems with other libraries. However, check the make install
scripts of the versions you (supposedly) built yourself and see where they placed FFmpeg. Then just delete them from there — it won't interfere with Homebrew.
The segmentation fault could be due to improper linking between the x264 or libvpx libraries. Since Homebrew will take care of this, you shouldn't run into any issues.
add a comment |
There are three options, sorted by complexity:
- Homebrew (or other package managers)
- Static builds
- Compile yourself
To follow this you need to have a bit of knowledge using a terminal/shell under macOS.
1. Homebrew
Homebrew has a formula for stable FFmpeg releases. This will get you running pretty fast. First, install Homebrew.
Then install FFmpeg through the ffmpeg
formula:
brew install ffmpeg
This will download a lot of dependencies such as x264, but after that you should be good to go.
To update ffmpeg later on, run:
brew update && brew upgrade ffmpeg
2. Static Builds
The FFmpeg project, on the download page, offers links to static builds for ffmpeg
, which you can just download, extract, and use in a terminal.
Static builds cannot contain every possible encoder, mostly due to licensing issues. This is why I don't recommend using them unless you don't really care about which specific features you need.
Once downloaded, extract the file, open up Terminal.app, and navigate to the directory where you unzipped the files, i.e. where you find a file called ffmpeg
. Copy this file to /usr/local/bin
:
cd ~/Downloads/
sudo mkdir -p /usr/local/bin/
sudo cp ./ffmpeg /usr/local/bin
sudo chmod 644 /usr/local/bin/ffmpeg
Now, if you use Bash (which is the default shell), add it to your $PATH:
open -e ~/.bash_profile
Add this to the file at the end:
export PATH="/usr/local/bin:$PATH"
Save it, and close the editor. Now restart your Terminal and which ffmpeg
should return /usr/local/bin/ffmpeg
.
3. Compiling yourself
You can of course build FFmpeg tools yourself, following the OS X compilation guide. This guide will always be up to date, and by manually compiling you may be able to tweak a few parameters.
To uninstall whatever version of FFmpeg you installed we'd need to know how you've installed it in the first place. Since Homebrew will install to /usr/local/Cellar
, and symlink to /usr/local/bin/ffmpeg
, it probably won't cause any problems with other libraries. However, check the make install
scripts of the versions you (supposedly) built yourself and see where they placed FFmpeg. Then just delete them from there — it won't interfere with Homebrew.
The segmentation fault could be due to improper linking between the x264 or libvpx libraries. Since Homebrew will take care of this, you shouldn't run into any issues.
There are three options, sorted by complexity:
- Homebrew (or other package managers)
- Static builds
- Compile yourself
To follow this you need to have a bit of knowledge using a terminal/shell under macOS.
1. Homebrew
Homebrew has a formula for stable FFmpeg releases. This will get you running pretty fast. First, install Homebrew.
Then install FFmpeg through the ffmpeg
formula:
brew install ffmpeg
This will download a lot of dependencies such as x264, but after that you should be good to go.
To update ffmpeg later on, run:
brew update && brew upgrade ffmpeg
2. Static Builds
The FFmpeg project, on the download page, offers links to static builds for ffmpeg
, which you can just download, extract, and use in a terminal.
Static builds cannot contain every possible encoder, mostly due to licensing issues. This is why I don't recommend using them unless you don't really care about which specific features you need.
Once downloaded, extract the file, open up Terminal.app, and navigate to the directory where you unzipped the files, i.e. where you find a file called ffmpeg
. Copy this file to /usr/local/bin
:
cd ~/Downloads/
sudo mkdir -p /usr/local/bin/
sudo cp ./ffmpeg /usr/local/bin
sudo chmod 644 /usr/local/bin/ffmpeg
Now, if you use Bash (which is the default shell), add it to your $PATH:
open -e ~/.bash_profile
Add this to the file at the end:
export PATH="/usr/local/bin:$PATH"
Save it, and close the editor. Now restart your Terminal and which ffmpeg
should return /usr/local/bin/ffmpeg
.
3. Compiling yourself
You can of course build FFmpeg tools yourself, following the OS X compilation guide. This guide will always be up to date, and by manually compiling you may be able to tweak a few parameters.
To uninstall whatever version of FFmpeg you installed we'd need to know how you've installed it in the first place. Since Homebrew will install to /usr/local/Cellar
, and symlink to /usr/local/bin/ffmpeg
, it probably won't cause any problems with other libraries. However, check the make install
scripts of the versions you (supposedly) built yourself and see where they placed FFmpeg. Then just delete them from there — it won't interfere with Homebrew.
The segmentation fault could be due to improper linking between the x264 or libvpx libraries. Since Homebrew will take care of this, you shouldn't run into any issues.
edited Feb 3 at 21:23
answered Oct 22 '12 at 11:52
slhckslhck
163k47450474
163k47450474
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f624561%2finstall-ffmpeg-on-os-x%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown