Installing ffmpeg + dependencies on AWS Linux AMI (repo issues)

2

1

I'm installing ffmpeg to run on an Amazon linux AMI, and have added the rpmforge repo and the dag repo. Here are some guidelines I'm using for reference: TWoZaO and Razuna

The rpmforge repo has ffmpeg, but if you try to install it then it will complain that is missing dependencies (for me libSDL-1.2.so.0()(64bit)). Regardless I will install ffmpeg from svn so I can be sure to enable the options I want (namelylibx264). It seems strange to me though that SDL is not inrpmforgeordag`, and in according to both of my references above, it should be there. I tried to grab it manually from here, but it needs these dependencies, so no-go:

> error: Failed dependencies:   SDL =
> 1.2.10-8.el5 is needed by SDL-devel-1.2.10-8.el5.x86_64
>   alsa-lib-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
>   libGL-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
>   libGLU-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
>   libSDL-1.2.so.0()(64bit) is needed by
> SDL-devel-1.2.10-8.el5.x86_64
>   libX11-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
>   libXext-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
>   libXrandr-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
>   libXrender-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
>   libXt-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64

HdN8

Posted 2011-03-11T16:09:10.230

Reputation: 121

Answers

3

I found that the missing dependency is in the centOS repository, which in amazon ec2 is not included. I added the repository and was able to configure and install ffmpeg. For anyone doing the same I recommend the Razuna guide I mentioned in the question : http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat

( Thanks to rubberman on linux forums for the solution )

hdn8

Posted 2011-03-11T16:09:10.230

Reputation: 31

1

Indeed, the Razuna wiki page has very good information. Based on it, I created the following script to compile ffmpeg on Amazon Linux: https://gist.github.com/gboudreau/f24aed76b4cc91bfb2c1

– Guillaume Boudreau – 2014-09-06T12:08:12.237

Thanks for the pointers, this one did it for me (replacing i686 with x86_64): https://forums.aws.amazon.com/message.jspa?messageID=196807

– andreas – 2012-01-09T21:28:55.713