sox-devel@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* SoX with FFMPEG
@ 2014-01-17 13:45 Alberto Megia
  2014-01-17 16:09 ` Jan Stary
  0 siblings, 1 reply; 6+ messages in thread
From: Alberto Megia @ 2014-01-17 13:45 UTC (permalink / raw
  To: sox-devel


[-- 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SoX with FFMPEG
  2014-01-17 13:45 SoX with FFMPEG Alberto Megia
@ 2014-01-17 16:09 ` Jan Stary
  2014-01-17 21:39   ` Alberto Megia
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Stary @ 2014-01-17 16:09 UTC (permalink / raw
  To: sox-devel

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

You are better off using ffmpeg directly.
The "support" for ffmepg in SoX is broken.

What exactly do you need to do with those m4a files?

> Then, I wget SoX 14.4.1 version and try to
> configure with FFMPEG support like this:
> ./configure --with-ffmpeg

I am surprised that it is still there in 14.4.1
and would like to take the opportunity to ask
the SoX developers to tear ffmpeg out completely.

	Jan


------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SoX with FFMPEG
  2014-01-17 16:09 ` Jan Stary
@ 2014-01-17 21:39   ` Alberto Megia
  2014-01-18  7:28     ` Jan Stary
  0 siblings, 1 reply; 6+ messages in thread
From: Alberto Megia @ 2014-01-17 21:39 UTC (permalink / raw
  To: sox-devel


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

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

>You are better off using ffmpeg directly.
>The "support" for ffmepg in SoX is broken.

>What exactly do you need to do with those m4a files?

I need to merge m4a files. I was trying to use FFMPEG as a library with SoX
trying not to break LGNU license.
Is there a way I could do that with SoX?

> Then, I wget SoX 14.4.1 version and try to
> configure with FFMPEG support like this:
> ./configure --with-ffmpeg

I am surprised that it is still there in 14.4.1
and would like to take the opportunity to ask
the SoX developers to tear ffmpeg out completely.




2014/1/17 Jan Stary <hans@stare.cz>

> > So I am trying to install in my Ubuntu Desktop 12.04 SoX
> > with FFMPEG support for m4a files.
>
> You are better off using ffmpeg directly.
> The "support" for ffmepg in SoX is broken.
>
> What exactly do you need to do with those m4a files?
>
> > Then, I wget SoX 14.4.1 version and try to
> > configure with FFMPEG support like this:
> > ./configure --with-ffmpeg
>
> I am surprised that it is still there in 14.4.1
> and would like to take the opportunity to ask
> the SoX developers to tear ffmpeg out completely.
>
>         Jan
>
>
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> SoX-devel mailing list
> SoX-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-devel
>

[-- Attachment #1.2: Type: text/html, Size: 2848 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SoX with FFMPEG
  2014-01-17 21:39   ` Alberto Megia
@ 2014-01-18  7:28     ` Jan Stary
  2014-01-20 16:01       ` Alberto Megia
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Stary @ 2014-01-18  7:28 UTC (permalink / raw
  To: sox-devel

On Jan 17 22:39:37, amegia@savemeeting.com wrote:
> >> So I am trying to install in my Ubuntu Desktop 12.04 SoX
> >> with FFMPEG support for m4a files.
> 
> >You are better off using ffmpeg directly.
> >The "support" for ffmepg in SoX is broken.
> 
> >What exactly do you need to do with those m4a files?
> 
> I need to merge m4a files.

Do you need the result to be  an m4a file as well?

> I was trying to use FFMPEG as a library with SoX
> trying not to break LGNU license.
> Is there a way I could do that with SoX?

Convert your input files from m4a to wav using ffmpeg.
Process them in SoX (merge, whatever).
Convert the ouput to the format you need,
using either SoX or ffmpeg.

> > You are better off using ffmpeg directly.
> > The "support" for ffmepg in SoX is broken.

Jan


------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SoX with FFMPEG
  2014-01-18  7:28     ` Jan Stary
@ 2014-01-20 16:01       ` Alberto Megia
  2014-01-20 16:20         ` Alberto Megia
  0 siblings, 1 reply; 6+ messages in thread
From: Alberto Megia @ 2014-01-20 16:01 UTC (permalink / raw
  To: sox-devel


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

What I want is something like:

cat file1.m4a file2.m4a ... fileN.m4a > file.m4a

But that does not work for m4a format.

[-- Attachment #1.2: Type: text/html, Size: 183 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SoX with FFMPEG
  2014-01-20 16:01       ` Alberto Megia
@ 2014-01-20 16:20         ` Alberto Megia
  0 siblings, 0 replies; 6+ messages in thread
From: Alberto Megia @ 2014-01-20 16:20 UTC (permalink / raw
  To: sox-devel


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

I think I have found the solution

http://trac.ffmpeg.org/wiki/How%20to%20concatenate%20%28join,%20merge%29%20media%20files




2014/1/20 Alberto Megia <amegia@savemeeting.com>

> What I want is something like:
>
> cat file1.m4a file2.m4a ... fileN.m4a > file.m4a
>
> But that does not work for m4a format.
>

[-- Attachment #1.2: Type: text/html, Size: 877 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-20 16:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-17 13:45 SoX with FFMPEG Alberto Megia
2014-01-17 16:09 ` 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

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).