sox-devel@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Alberto Megia <amegia@savemeeting.com>
To: sox-devel@lists.sourceforge.net
Subject: SoX with FFMPEG
Date: Fri, 17 Jan 2014 14:45:57 +0100	[thread overview]
Message-ID: <CAM8GNVcNWTU9HkuGaReLZDawtw-cZeX5EPfUHGRORQm--MFfkg@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2845 bytes --]

How can I set up SoX to work with FFMPEG?
I have asked it here with details ->
http://stackoverflow.com/questions/21187420/ffmpeg-with-sox-configure-error-cannot-find-ffmpeg
But I will copy it here:

-------------------------

So I am trying to install in my Ubuntu Desktop 12.04 SoX with FFMPEG
support for m4a files.

I have followed this
<http://trac.ffmpeg.org/wiki/UbuntuCompilationGuide>instructions to
install FFMPEG, installing only certain encoders. Finally,
this is my set up:

ffmpeg version git-2014-01-17-3ca7085 Copyright (c) 2000-2014 the
FFmpeg developers
  built on Jan 17 2014 12:36:01 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=~/ffmpeg_build
--extra-cflags=-I~/ffmpeg_build/include
--extra-ldflags=-L~/ffmpeg_build/lib --bindir=~/bin --extra-libs=-ldl
--enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame
--enable-nonfree
  libavutil      52. 62.100 / 52. 62.100
  libavcodec     55. 48.101 / 55. 48.101
  libavformat    55. 23.103 / 55. 23.103
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  1.100 /  4.  1.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder

Then, I wget SoX 14.4.1 version and try to configure with FFMPEG support
like this:

./configure --with-ffmpeg

But I get this error:

checking for FFMPEG... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... no
checking for libavformat/avformat.h... no
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... no
checking for ffmpeg/avformat.h... no
configure: error: in `~/sox-14.4.1':
configure: error: cannot find ffmpeg
See `config.log' for more details

So I try to set PKG_CONFIG_PATH environment variable:

PKG_CONFIG_PATH=~/ffmpeg_build/lib/pkgconfig
./configure --with-ffmpeg

Getting:

checking for FFMPEG... yes
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking for av_open_input_file in -lavformat... no
configure: error: in `~/sox-14.4.1':
configure: error: cannot find ffmpeg
See `config.log' for more details

Checking 'config.log' I see the following error:

| #define HAVE_LIBAVFORMAT_AVFORMAT_H 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char av_open_input_file ();
| int
| main ()
| {
| return av_open_input_file ();
|   ;
|   return 0;
| }
configure:15862: result: no
configure:15935: error: in `~/sox-14.4.1':
configure:15937: error: cannot find ffmpeg

What am I missing here?

Thx!

[-- Attachment #1.2: Type: text/html, Size: 3433 bytes --]

[-- Attachment #2: Type: text/plain, Size: 388 bytes --]

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

             reply	other threads:[~2014-01-17 14:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-17 13:45 Alberto Megia [this message]
2014-01-17 16:09 ` SoX with FFMPEG Jan Stary
2014-01-17 21:39   ` Alberto Megia
2014-01-18  7:28     ` Jan Stary
2014-01-20 16:01       ` Alberto Megia
2014-01-20 16:20         ` Alberto Megia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM8GNVcNWTU9HkuGaReLZDawtw-cZeX5EPfUHGRORQm--MFfkg@mail.gmail.com \
    --to=sox-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).