[FFmpeg-user] FFmpeg fails to install with opus enabled in Ubuntu 12.04

Yahoo! mail Stephen_Hamer_UK at yahoo.co.uk
Sun Jul 7 00:22:39 CEST 2013


Hi,

A noob running Ubuntu 12.04 on a samsung N110 netbook. Tried to install 
ffmeg using the instructions here:

http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide

Although I actually began with:

|sudo apt-get remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
|

as suggested here:

http://askubuntu.com/questions/265371/please-give-me-an-ffmpeg-tutorial-that-works-on-ubuntu-12-04

Query: should I have removed my existing ffmpeg?

I then moved on to the instructions in the ffmpeg wiki, above,. The 
installs of Yasm, x264, fdk-aac, libmp3lame, libopus and libvpx all 
completed without a hitch [actually that's not quite correct: the final 
command in each command-block tended not to run; it was left dangling in 
the terminal, and I had to execute it with "Enter". The opus-install was 
left with ". ~/.profile" dangling, which I also treated as a command]

But the final install of ffmpeg broke down. Here is the terminal o/p:

|azed at azed-N110:~/ffmpeg_sources$ cd ffmpeg |

|azed at azed-N110:~/ffmpeg_sources/ffmpeg$ 
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" |

|azed at azed-N110:~/ffmpeg_sources/ffmpeg$ ./configure 
--prefix="$HOME/ffmpeg_build" \ |

|> --extra-cflags="-I$HOME/ffmpeg_build/include" 
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \ |

|> --bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-libass 
--enable-libfdk-aac \ |

|> --enable-libmp3lame --enable-libopus --enable-libtheora 
--enable-libvorbis --enable-libvpx \ |

|> --enable-libx264 --enable-nonfree --enable-x11grab |

|ERROR: opus not found |

||

|If you think configure made a mistake, make sure you are using the latest |

|version from Git. If the latest version fails, report the problem to the |

|ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. |

|Include the log file "config.log" produced by configure as this will help |

|solving the problem. |

|azed at azed-N110:~/ffmpeg_sources/ffmpeg$ make |

|Makefile:2: config.mak: No such file or directory |

|Makefile:48: /common.mak: No such file or directory |

|Makefile:91: /libavutil/Makefile: No such file or directory |

|Makefile:91: /library.mak: No such file or directory |

|Makefile:168: /doc/Makefile: No such file or directory |

|Makefile:169: /tests/Makefile: No such file or directory |

|make: *** No rule to make target `/tests/Makefile'. Stop. |

|azed at azed-N110:~/ffmpeg_sources/ffmpeg$ make install |

|Makefile:2: config.mak: No such file or directory |

|Makefile:48: /common.mak: No such file or directory |

|Makefile:91: /libavutil/Makefile: No such file or directory |

|Makefile:91: /library.mak: No such file or directory |

|Makefile:168: /doc/Makefile: No such file or directory |

|Makefile:169: /tests/Makefile: No such file or directory |

|make: *** No rule to make target `/tests/Makefile'. Stop. |

|azed at azed-N110:~/ffmpeg_sources/ffmpeg$ make distclean |

|Makefile:2: config.mak: No such file or directory |

|Makefile:48: /common.mak: No such file or directory |

|Makefile:91: /libavutil/Makefile: No such file or directory |

|Makefile:91: /library.mak: No such file or directory |

|Makefile:168: /doc/Makefile: No such file or directory |

|Makefile:169: /tests/Makefile: No such file or directory |

|make: *** No rule to make target `/tests/Makefile'. Stop. |

|azed at azed-N110:~/ffmpeg_sources/ffmpeg$ hash -r |


Back to me. I noticed that the first 3 commands in the install-ffmpeg 
command-block had run ok, and that I was still in the ~/ffmpeg folder, 
so I ran the fourth command, removing "|--enable-libopus|". This ran ok; 
so I then ran the remaining commands as a block, and these also ran ok. 
So I did, finally, get my ffmpeg install, albeit without opus.

azed at azed-N110:~$ ffmpeg 2>&1 | head -n1
ffmpeg version git-2013-07-06-7f25050 Copyright (c) 2000-2013 the FFmpeg 
developers

Or did I? This is what I really want to know. Have I simply installed 
ffmpeg without opus?

And, if so, how do I get rid of the opus software I have installed (I 
wasn't planning to use opus, and don't know why I tried to install it).

There seems to be a problem compiling (is that the word?) ffmpeg with 
opus in Ubuntu 12.04. I am really writing this e-mail to bring this to 
the attention of the ffmpeg developers - hope it doesn't sound like carping

Regards

Stephen Hamer

PS: sorry, I forgot to make a copy of the config.log of the failed 
ffmpeg install, and it got overwritten (I think) in the course of the 
successful install.


More information about the ffmpeg-user mailing list