How to add aac and libx264 to FFmpeg installation?
Clash Royale CLAN TAG#URR8PPP
I've already installed FFmpeg according to the ffmpeg Ubuntu compile guide.
I can't use aac audio encoding and libx264, which I need.
How do I install FFmpeg so that all the option below are enabled in the installation? Do I need to uninstall FFmpeg and start over again, or can I just add to what has already been installed?
software-installation ffmpeg
add a comment |
I've already installed FFmpeg according to the ffmpeg Ubuntu compile guide.
I can't use aac audio encoding and libx264, which I need.
How do I install FFmpeg so that all the option below are enabled in the installation? Do I need to uninstall FFmpeg and start over again, or can I just add to what has already been installed?
software-installation ffmpeg
add a comment |
I've already installed FFmpeg according to the ffmpeg Ubuntu compile guide.
I can't use aac audio encoding and libx264, which I need.
How do I install FFmpeg so that all the option below are enabled in the installation? Do I need to uninstall FFmpeg and start over again, or can I just add to what has already been installed?
software-installation ffmpeg
I've already installed FFmpeg according to the ffmpeg Ubuntu compile guide.
I can't use aac audio encoding and libx264, which I need.
How do I install FFmpeg so that all the option below are enabled in the installation? Do I need to uninstall FFmpeg and start over again, or can I just add to what has already been installed?
software-installation ffmpeg
software-installation ffmpeg
edited Aug 7 '14 at 21:49
Pro Backup
2,10863258
2,10863258
asked Aug 7 '14 at 20:36
user8547user8547
61551635
61551635
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I do this on a regular basis since I like to use ffmpeg's bleeding edge features now and then.
For libfdk-aac
and libx264
, you want to install the respective development packages:
sudo apt install libfdk-aac-dev libx264-dev
Then I configure ffmpeg like this:
./configure --prefix=/opt/ffmpeg-$(cat RELEASE) --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libfdk-aac --enable-pthreads --enable-postproc --enable-gnutls --disable-librtmp --disable-libopencv --disable-libopenjpeg --enable-libpulse --arch=amd64 --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl" --disable-outdev=alsa --disable-outdev=oss --disable-outdev=v4l2 --disable-outdev=sndio --disable-indev=alsa --disable-indev=oss --disable-indev=sndio --disable-indev=jack
As you see, I explicitly enable libx264 and fdk-aac and I disable a lot of features I don't need. Your mileage may vary, of course. The fancy part is --prefix=/opt/ffmpeg-$(cat RELEASE) --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl"
, which gives you a static compile. make install
will put it into opt
, so it does not conflict with the ffmpeg version provided by the package manager.
I do not actually execute make install
, though. Instead I use
sudo checkinstall --pkgname="ffmpeg-$(cat RELEASE)" --pkgversion="$(cat RELEASE)~git$(git rev-parse --short HEAD)" --backup=no --deldoc=yes --fstrans=no --default
to produce a Debian package I can uninstall without hassle.
In case this information becomes obsolete, I probably update the corresponding post in my personal blog.
add a comment |
This is a reliable guide to installing libx264. I just used it and it worked.
https://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20FFmpeg%20with%20libx264%20%28x264,%20H.264%29
This is a questions and answers site. Please do not post an answer which is just a link to another site. At least summarize the content in your post. See How to Answer for more tips on writing answers.
– Gilles
Aug 8 '14 at 0:25
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f149091%2fhow-to-add-aac-and-libx264-to-ffmpeg-installation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I do this on a regular basis since I like to use ffmpeg's bleeding edge features now and then.
For libfdk-aac
and libx264
, you want to install the respective development packages:
sudo apt install libfdk-aac-dev libx264-dev
Then I configure ffmpeg like this:
./configure --prefix=/opt/ffmpeg-$(cat RELEASE) --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libfdk-aac --enable-pthreads --enable-postproc --enable-gnutls --disable-librtmp --disable-libopencv --disable-libopenjpeg --enable-libpulse --arch=amd64 --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl" --disable-outdev=alsa --disable-outdev=oss --disable-outdev=v4l2 --disable-outdev=sndio --disable-indev=alsa --disable-indev=oss --disable-indev=sndio --disable-indev=jack
As you see, I explicitly enable libx264 and fdk-aac and I disable a lot of features I don't need. Your mileage may vary, of course. The fancy part is --prefix=/opt/ffmpeg-$(cat RELEASE) --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl"
, which gives you a static compile. make install
will put it into opt
, so it does not conflict with the ffmpeg version provided by the package manager.
I do not actually execute make install
, though. Instead I use
sudo checkinstall --pkgname="ffmpeg-$(cat RELEASE)" --pkgversion="$(cat RELEASE)~git$(git rev-parse --short HEAD)" --backup=no --deldoc=yes --fstrans=no --default
to produce a Debian package I can uninstall without hassle.
In case this information becomes obsolete, I probably update the corresponding post in my personal blog.
add a comment |
I do this on a regular basis since I like to use ffmpeg's bleeding edge features now and then.
For libfdk-aac
and libx264
, you want to install the respective development packages:
sudo apt install libfdk-aac-dev libx264-dev
Then I configure ffmpeg like this:
./configure --prefix=/opt/ffmpeg-$(cat RELEASE) --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libfdk-aac --enable-pthreads --enable-postproc --enable-gnutls --disable-librtmp --disable-libopencv --disable-libopenjpeg --enable-libpulse --arch=amd64 --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl" --disable-outdev=alsa --disable-outdev=oss --disable-outdev=v4l2 --disable-outdev=sndio --disable-indev=alsa --disable-indev=oss --disable-indev=sndio --disable-indev=jack
As you see, I explicitly enable libx264 and fdk-aac and I disable a lot of features I don't need. Your mileage may vary, of course. The fancy part is --prefix=/opt/ffmpeg-$(cat RELEASE) --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl"
, which gives you a static compile. make install
will put it into opt
, so it does not conflict with the ffmpeg version provided by the package manager.
I do not actually execute make install
, though. Instead I use
sudo checkinstall --pkgname="ffmpeg-$(cat RELEASE)" --pkgversion="$(cat RELEASE)~git$(git rev-parse --short HEAD)" --backup=no --deldoc=yes --fstrans=no --default
to produce a Debian package I can uninstall without hassle.
In case this information becomes obsolete, I probably update the corresponding post in my personal blog.
add a comment |
I do this on a regular basis since I like to use ffmpeg's bleeding edge features now and then.
For libfdk-aac
and libx264
, you want to install the respective development packages:
sudo apt install libfdk-aac-dev libx264-dev
Then I configure ffmpeg like this:
./configure --prefix=/opt/ffmpeg-$(cat RELEASE) --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libfdk-aac --enable-pthreads --enable-postproc --enable-gnutls --disable-librtmp --disable-libopencv --disable-libopenjpeg --enable-libpulse --arch=amd64 --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl" --disable-outdev=alsa --disable-outdev=oss --disable-outdev=v4l2 --disable-outdev=sndio --disable-indev=alsa --disable-indev=oss --disable-indev=sndio --disable-indev=jack
As you see, I explicitly enable libx264 and fdk-aac and I disable a lot of features I don't need. Your mileage may vary, of course. The fancy part is --prefix=/opt/ffmpeg-$(cat RELEASE) --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl"
, which gives you a static compile. make install
will put it into opt
, so it does not conflict with the ffmpeg version provided by the package manager.
I do not actually execute make install
, though. Instead I use
sudo checkinstall --pkgname="ffmpeg-$(cat RELEASE)" --pkgversion="$(cat RELEASE)~git$(git rev-parse --short HEAD)" --backup=no --deldoc=yes --fstrans=no --default
to produce a Debian package I can uninstall without hassle.
In case this information becomes obsolete, I probably update the corresponding post in my personal blog.
I do this on a regular basis since I like to use ffmpeg's bleeding edge features now and then.
For libfdk-aac
and libx264
, you want to install the respective development packages:
sudo apt install libfdk-aac-dev libx264-dev
Then I configure ffmpeg like this:
./configure --prefix=/opt/ffmpeg-$(cat RELEASE) --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libfdk-aac --enable-pthreads --enable-postproc --enable-gnutls --disable-librtmp --disable-libopencv --disable-libopenjpeg --enable-libpulse --arch=amd64 --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl" --disable-outdev=alsa --disable-outdev=oss --disable-outdev=v4l2 --disable-outdev=sndio --disable-indev=alsa --disable-indev=oss --disable-indev=sndio --disable-indev=jack
As you see, I explicitly enable libx264 and fdk-aac and I disable a lot of features I don't need. Your mileage may vary, of course. The fancy part is --prefix=/opt/ffmpeg-$(cat RELEASE) --disable-shared --enable-static --disable-doc --extra-cflags=--static --extra-libs="-ldl"
, which gives you a static compile. make install
will put it into opt
, so it does not conflict with the ffmpeg version provided by the package manager.
I do not actually execute make install
, though. Instead I use
sudo checkinstall --pkgname="ffmpeg-$(cat RELEASE)" --pkgversion="$(cat RELEASE)~git$(git rev-parse --short HEAD)" --backup=no --deldoc=yes --fstrans=no --default
to produce a Debian package I can uninstall without hassle.
In case this information becomes obsolete, I probably update the corresponding post in my personal blog.
edited Feb 11 at 19:32
answered Feb 11 at 19:16
HermannHermann
854514
854514
add a comment |
add a comment |
This is a reliable guide to installing libx264. I just used it and it worked.
https://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20FFmpeg%20with%20libx264%20%28x264,%20H.264%29
This is a questions and answers site. Please do not post an answer which is just a link to another site. At least summarize the content in your post. See How to Answer for more tips on writing answers.
– Gilles
Aug 8 '14 at 0:25
add a comment |
This is a reliable guide to installing libx264. I just used it and it worked.
https://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20FFmpeg%20with%20libx264%20%28x264,%20H.264%29
This is a questions and answers site. Please do not post an answer which is just a link to another site. At least summarize the content in your post. See How to Answer for more tips on writing answers.
– Gilles
Aug 8 '14 at 0:25
add a comment |
This is a reliable guide to installing libx264. I just used it and it worked.
https://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20FFmpeg%20with%20libx264%20%28x264,%20H.264%29
This is a reliable guide to installing libx264. I just used it and it worked.
https://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20FFmpeg%20with%20libx264%20%28x264,%20H.264%29
answered Aug 7 '14 at 21:45
user8547user8547
61551635
61551635
This is a questions and answers site. Please do not post an answer which is just a link to another site. At least summarize the content in your post. See How to Answer for more tips on writing answers.
– Gilles
Aug 8 '14 at 0:25
add a comment |
This is a questions and answers site. Please do not post an answer which is just a link to another site. At least summarize the content in your post. See How to Answer for more tips on writing answers.
– Gilles
Aug 8 '14 at 0:25
This is a questions and answers site. Please do not post an answer which is just a link to another site. At least summarize the content in your post. See How to Answer for more tips on writing answers.
– Gilles
Aug 8 '14 at 0:25
This is a questions and answers site. Please do not post an answer which is just a link to another site. At least summarize the content in your post. See How to Answer for more tips on writing answers.
– Gilles
Aug 8 '14 at 0:25
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f149091%2fhow-to-add-aac-and-libx264-to-ffmpeg-installation%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