5

Install latest ffmpeg on ubuntu 12.04 or 14.04

 1 year ago
source link: https://gist.github.com/xdamman/e4f713c8cd1a389a5917
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Install latest ffmpeg on ubuntu 12.04 or 14.04

Thank you! +1

Thank you so much @xdamman. Just a minor improvement to run this faster (parallelize tasks on all available cores) every make, could be replaced with
make -j $(nproc) or at the top of the script alias make="make -j $(nproc)" could be added.

Thanks a lot for life saving...

Thank You so much :) .

I love you.

wklm commented May 22, 2016

thank's a lot!

flexmax commented Jun 6, 2016

Hello,

I want to transcode on my Dell T20 (Xeon) a stream with h264_qsv. It runs on an Ubuntu 14.04 Server with Media Server Studio Essentials 2016th

I am following command input ...
ffmpeg -i URL_Input -vcodec h264_qsv -b 2700k -maxrate 2700k -preset:v slow -s 1280x720 -acodec aac -ar 44100 -ac 2 -strict -2 -f mpegts udp://127.0.0.1:10000

... I get the following error message:

[h264_qsv @ 0x3ff5d60] mfx init: /dev/drirenderD128 fd open failed
[h264_qsv @ 0x3ff5d60] mfx init: /dev/drirenderD129 fd open failed
[h264_qsv @ 0x3ff5d60] mfx init: /dev/drirenderD123 fd open failed

...
[h264_qsv @ 0x3ff5d60] Error initializing the encoder

I'm from the "Windows World" and am still relatively new to the "Linux World" Please therefore noob-friendly answer :)

Thank you very much

ghost commented Jun 22, 2016

This is basically an outdated copy of a copy of FFmpeg Wiki: Compile FFmpeg on Ubuntu/Debian.

Thank you, before line 20 you need to mention to install "yasm" (Assembler stuff):
sudo apt-get install yasm

line 18, should change to:
git clone --depth 1 http://git.videolan.org/git/x264.git

ty!!! :D

Thanks for this! Awesome time saver.

Thanks a lot!

When using the ffmpeg command from terminal I get
"/bin/sh: 1: ffmpeg: not found"

I followed the whole process and everything went well, just I am not able to use the ffmpeg command.

Any help with this?

This helped me solve a problem I was having with ffmpeg. I was ripping my face off! Thanks a lot man!

Thanks Bro :)

Another Thank you.

arifje commented Nov 24, 2016

on my 14.04 installation it breaks because of "--enable-libfaac"

after removing it, it ran ok.

azri445 commented Dec 10, 2016

edited

ok.... its been nearly a year... im trying to install ffmpeg on my dedicated server from dreamhost. as they told me that i need to install ffmpeg by myself. while i got no knowledge on installing it.

my dedicated server ubunut 12.04 code name precise.... and my ffmpeg version 0.8

how to achieve a successful ffmpeg installation... been looking long time already.. didnt find the solution. try solution given here... but none is working.

Hope i can get answer from you all.... thanks in advanced

hohaidang commented Mar 17, 2017

edited

It's really really good. Thanks a lot :D I spent 3 days try to install this package to my development board. It helped me a lot

Maybe I'm missing something here, but I install ffmpeg with just this:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg

@crclayton this script seems to build from source, the repo u point out is an unofficial one as far as I'm aware.

Outstanding!

command: sudo add-apt-repository ppa:mc3man/trusty-media

"And confirm the following message by pressing :"

"Also note that with apt-get a sudo apt-get dist-upgrade is needed for initial setup & with some package upgrades
More info: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media
Press [ENTER] to continue or ctrl-c to cancel adding it"

Update the package list.

command: sudo apt-get update
command: sudo apt-get dist-upgrade

"Now FFmpeg is available to be installed with apt:"

command: sudo apt-get install ffmpeg

That's it. Enjoy +1 :)

lispc commented May 24, 2017

edited

nasm should be installed before running the script. And nasm cannot be installed by 'apt-get' because a new version is required while nasm in apt-get is too old. I compiled nasm from source.

slhck commented Jun 19, 2017

Please find an always up-to-date guide here:

http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

This one also has proper instructions for nasm.

Thanks! You are my HERO.

Thanks!

lhrotk commented Feb 7, 2019

Thanks bro. I think it will be even more awesome if you add "libsdl2-dev" to the dependencies, since 'ffplay' will not be compiled without it. I am using 16.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK