Failed installing FFMPEG on CentOS

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Failed installing FFMPEG on CentOS

Sook Sin
Hi experts! My workplace is currently adopting ffmpeg as a solution to
normalize audios files in bulk. My colleague is having problem with the
installation of ffmpeg on Linux. The server is using CentOS Linux release
7.3.1611 (Core). We have tried most of the solutions searchable from Google,
but they do not work. Could it be the issue is due to the wrong versions of
the dependencies and library files? If so, can someone please guide us in
resolving this problem?

 

The 'make' commands shows numerous warnings and an error:

 

libavcodec/libavcodec.a(bitstream.o): In function `bitswap_32':

/var/www/ffmpeg/libavcodec/mathops.h:245: undefined reference to
`ff_reverse'

/var/www/ffmpeg/libavcodec/mathops.h:248: undefined reference to
`ff_reverse'

/var/www/ffmpeg/libavcodec/mathops.h:246: undefined reference to
`ff_reverse'

/var/www/ffmpeg/libavcodec/mathops.h:247: undefined reference to
`ff_reverse'

/var/www/ffmpeg/libavcodec/mathops.h:245: undefined reference to
`ff_reverse'

libavcodec/libavcodec.a(bitstream.o):/var/www/ffmpeg/libavcodec/mathops.h:24
8: more undefined references to `ff_reverse' follow

collect2: error: ld returned 1 exit status

make: *** [ffmpeg_g] Error 1

 

Running the ffmpeg commands shows an error:

 

ffmpeg -i test1.mp3 -af "silenceremove=0:0:0:-1:1:-80dB,
dynaudnorm=p=1:m=3:r=1" -vn -acodec libmp3lame -b:a 12

8K -ar 44100 -y test2.mp3

ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers

  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)

  configuration:

  libavutil      55. 78.100 / 55. 78.100

  libavcodec     57.107.100 / 57.107.100

  libavformat    57. 83.100 / 57. 83.100

  libavdevice    57. 10.100 / 57. 10.100

  libavfilter     6.107.100 /  6.107.100

  libswscale      4.  8.100 /  4.  8.100

  libswresample   2.  9.100 /  2.  9.100

[mp3 @ 0x364d400] Estimating duration from bitrate, this may be inaccurate

Input #0, mp3, from 'test1.mp3':

  Metadata:

    title           : Partido De La Playa (Party Rhythm Mix)

    artist          : Jack Hallam

    comment         :

    track           : 1

    genre           : Other

  Duration: 00:03:25.88, start: 0.000000, bitrate: 128 kb/s

    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s

Unknown encoder 'libmp3lame'

 

Thank you!

 

Warmest Regards,

Sook Sin

Junior Music Content Executive

Express In Music

www.expressmelody.com <http://www.expressmelody.com>  |
www.expressinmusic.com <http://www.expressinmusic.com>

 

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Failed installing FFMPEG on CentOS

Carl Eugen Hoyos-2
2017-11-23 3:06 GMT+01:00 Sook Sin <[hidden email]>:

> Hi experts! My workplace is currently adopting ffmpeg as a solution to
> normalize audios files in bulk. My colleague is having problem with the
> installation of ffmpeg on Linux. The server is using CentOS Linux release
> 7.3.1611 (Core). We have tried most of the solutions searchable from Google,
> but they do not work. Could it be the issue is due to the wrong versions of
> the dependencies and library files? If so, can someone please guide us in
> resolving this problem?
>
> The 'make' commands shows numerous warnings and an error:
>
> libavcodec/libavcodec.a(bitstream.o): In function `bitswap_32':
>
> /var/www/ffmpeg/libavcodec/mathops.h:245: undefined reference to
> `ff_reverse'

Please confirm that you are trying to build current FFmpeg git head
(nothing else is supported here) and that you are using a sane configure
line like "./configure --enable-gpl --enable-libmp3lame".

> Running the ffmpeg commands shows an error:
>
> ffmpeg -i test1.mp3 -af "silenceremove=0:0:0:-1:1:-80dB,
> dynaudnorm=p=1:m=3:r=1" -vn -acodec libmp3lame -b:a 12
>
> 8K -ar 44100 -y test2.mp3
>
> ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
>
>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
>
>   configuration:

> Unknown encoder 'libmp3lame'

Missing configure option "--enable-libmp3lame"

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Failed installing FFMPEG on CentOS

Moritz Barsnick
In reply to this post by Sook Sin
On Thu, Nov 23, 2017 at 10:06:01 +0800, Sook Sin wrote:

Please solve this riddle for me:

> The 'make' commands shows numerous warnings and an error:
[...]
> collect2: error: ld returned 1 exit status
> make: *** [ffmpeg_g] Error 1
>
> Running the ffmpeg commands shows an error:
> ffmpeg -i test1.mp3 -af "silenceremove=0:0:0:-1:1:-80dB,
> dynaudnorm=p=1:m=3:r=1" -vn -acodec libmp3lame -b:a 12

If you didn't manage to compile ffmpeg (the output from make tells me
it cannot have created a binary), how did you manage to execute ffmpeg
afterwards? Are you actually running a pre-installed binary instead?

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Failed installing FFMPEG on CentOS

Sook Sin
In reply to this post by Sook Sin
Hi Carl and Moritz,

 

Thanks for your assist earlier on, but still the solution couldn't work out.

 

I'm not using a pre-installed binary.

The binary should have been created when I initially run ./configure without
any parameters.

 

Now I run the following commands:

./configure --enable-gpl --enable-libmp3lame

make install

 

Attached are the results of the command line execution.

I would like to highlight the ffmpeg folder does not contain the libmp3lame
subfolder; could this be the problem?

Here's my folder listing:

 

-rwxr--r--.  1 apache apache    57465 Nov  8 06:22 Changelog

drwxr--r--. 13 apache apache      278 Nov  8 06:23 compat

-rw-r--r--.  1 root   root      72752 Nov 28 16:19 config.asm

-rwxr--r--.  1 root   root      73370 Nov 28 16:19 config.h

-rw-r--r--.  1 root   root      14128 Nov 28 17:02 config.log

-rwxr--r--.  1 apache apache   236719 Nov  8 06:22 configure

-rwxr--r--.  1 apache apache      418 Nov  8 06:22 CONTRIBUTING.md

-rwxr--r--.  1 apache apache    18092 Nov  8 06:22 COPYING.GPLv2

-rwxr--r--.  1 apache apache    35147 Nov  8 06:22 COPYING.GPLv3

-rwxr--r--.  1 apache apache    26526 Nov  8 06:22 COPYING.LGPLv2.1

-rwxr--r--.  1 apache apache     7651 Nov  8 06:22 COPYING.LGPLv3

-rwxr--r--.  1 apache apache      274 Nov  8 06:22 CREDITS

drwxr--r--.  4 apache apache     8192 Nov 11 01:37 doc

drwxr--r--.  2 apache apache      214 Nov  8 06:32 ffbuild

-rwxr-xr-x.  1 root   root   17132592 Nov 11 01:37 ffmpeg

-rwxr-xr-x.  1 root   root   17046544 Nov 11 01:37 ffprobe

-rwxr-xr-x.  1 root   root   95058168 Nov 11 01:37 ffprobe_g

-rwxr-xr-x.  1 root   root   15150064 Nov 11 01:37 ffserver

-rwxr-xr-x.  1 root   root   86029728 Nov 11 01:37 ffserver_g

drwxr--r--.  2 apache apache     4096 Nov 28 16:33 fftools

-rwxr--r--.  1 apache apache      595 Nov  8 06:22 INSTALL.md

drwxrwxrwx.  4 root   root         68 Nov 11 02:37 lame

drwxr--r--. 14 apache apache    81920 Nov 28 16:32 libavcodec

drwxr--r--.  3 apache apache     4096 Nov 28 16:21 libavdevice

drwxr--r--.  4 apache apache    28672 Nov 28 16:22 libavfilter

drwxr--r--.  3 apache apache    40960 Nov 28 16:23 libavformat

drwxr--r--.  6 apache apache     4096 Nov  8 06:23 libavresample

drwxr--r--. 12 apache apache    12288 Nov 28 16:32 libavutil

drwxr--r--.  2 apache apache     4096 Nov 28 16:32 libpostproc

drwxr--r--.  6 apache apache     4096 Nov 28 16:32 libswresample

drwxr--r--.  7 apache apache     4096 Nov 28 16:32 libswscale

-rwxr--r--.  1 apache apache     4368 Nov  8 06:22 LICENSE.md

-rwxr--r--.  1 apache apache    28905 Nov  8 06:22 MAINTAINERS

-rwxr--r--.  1 apache apache     5250 Nov  8 06:22 Makefile

-rw-r--r--.  1 root   root       2066 Nov 28 16:40 make.log

drwxr-xr-x.  2 root   root          6 Nov 11 00:59 output1

drwxr-xr-x.  2 root   root          6 Nov 11 00:59 output2

drwxr--r--.  2 apache apache      158 Nov  8 06:23 presets

-rwxr--r--.  1 apache apache     1893 Nov  8 06:22 README.md

-rwxr--r--.  1 apache apache        4 Nov  8 06:22 RELEASE

-rwxr--r--.  1 apache apache      839 Nov  8 06:22 RELEASE_NOTES

-rw-r--r--.  1 apache apache  3294271 Nov 11 00:56 test1.mp3

drwxr--r--.  7 apache apache     4096 Nov  8 06:22 tests

drwxr--r--.  2 apache apache     4096 Nov  8 06:23 tools

-rwxr--r--.  1 apache apache        4 Nov  8 06:22 VERSION

 

The command line was last run on 28-Nov. The ffmpeg binary is 11-Nov, so it
should have been created earlier on.

 

Warmest Regards,

Sook Sin

Junior Music Content Executive

Express In Music

www.expressmelody.com <http://www.expressmelody.com>  |
www.expressinmusic.com <http://www.expressinmusic.com>

 

 

-----Original Message-----

On Thu, Nov 23, 2017 at 10:06:01 +0800, Sook Sin wrote:

 

Please solve this riddle for me:

 

> The 'make' commands shows numerous warnings and an error:

[...]

> collect2: error: ld returned 1 exit status

> make: *** [ffmpeg_g] Error 1

>

> Running the ffmpeg commands shows an error:

> ffmpeg -i test1.mp3 -af "silenceremove=0:0:0:-1:1:-80dB,

> dynaudnorm=p=1:m=3:r=1" -vn -acodec libmp3lame -b:a 12

 

If you didn't manage to compile ffmpeg (the output from make tells me it
cannot have created a binary), how did you manage to execute ffmpeg
afterwards? Are you actually running a pre-installed binary instead?

 

Moritz

 

 

From: ffmpeg-user [mailto:[hidden email]] On Behalf Of Carl
Eugen Hoyos

Sent: Thursday, November 23, 2017 10:25 AM

To: FFmpeg user questions

Subject: Re: [FFmpeg-user] Failed installing FFMPEG on CentOS

 

2017-11-23 3:06 GMT+01:00 Sook Sin <[hidden email]>:

> Hi experts! My workplace is currently adopting ffmpeg as a solution to

> normalize audios files in bulk. My colleague is having problem with the

> installation of ffmpeg on Linux. The server is using CentOS Linux release

> 7.3.1611 (Core). We have tried most of the solutions searchable from
Google,

> but they do not work. Could it be the issue is due to the wrong versions
of

> the dependencies and library files? If so, can someone please guide us in

> resolving this problem?

>

> The 'make' commands shows numerous warnings and an error:

>

> libavcodec/libavcodec.a(bitstream.o): In function `bitswap_32':

>

> /var/www/ffmpeg/libavcodec/mathops.h:245: undefined reference to

> `ff_reverse'

 

Please confirm that you are trying to build current FFmpeg git head

(nothing else is supported here) and that you are using a sane configure

line like "./configure --enable-gpl --enable-libmp3lame".

 

> Running the ffmpeg commands shows an error:

>

> ffmpeg -i test1.mp3 -af "silenceremove=0:0:0:-1:1:-80dB,

> dynaudnorm=p=1:m=3:r=1" -vn -acodec libmp3lame -b:a 12

>

> 8K -ar 44100 -y test2.mp3

>

> ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers

>

>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)

>

>   configuration:

 

> Unknown encoder 'libmp3lame'

 

Missing configure option "--enable-libmp3lame"

 

Carl Eugen

_______________________________________________

ffmpeg-user mailing list

[hidden email]

http://ffmpeg.org/mailman/listinfo/ffmpeg-user

 

To unsubscribe, visit link above, or email

[hidden email] with subject "unsubscribe".

 

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Failed installing FFMPEG on CentOS

Sook Sin
In reply to this post by Moritz Barsnick
Hi Carl and Moritz,

Thanks for your assist earlier on, but still the solution couldn't work out.

I'm not using a pre-installed binary.
The binary should have been created when I initially run ./configure without any parameters.

Now I run the following commands:
./configure --enable-gpl --enable-libmp3lame
make install

Attached are the results of the command line execution.
I would like to highlight the ffmpeg folder does not contain the libmp3lame subfolder; could this be the problem?
Here's my folder listing:

-rwxr--r--.  1 apache apache    57465 Nov  8 06:22 Changelog
drwxr--r--. 13 apache apache      278 Nov  8 06:23 compat
-rw-r--r--.  1 root   root      72752 Nov 28 16:19 config.asm
-rwxr--r--.  1 root   root      73370 Nov 28 16:19 config.h
-rw-r--r--.  1 root   root      14128 Nov 28 17:02 config.log
-rwxr--r--.  1 apache apache   236719 Nov  8 06:22 configure
-rwxr--r--.  1 apache apache      418 Nov  8 06:22 CONTRIBUTING.md
-rwxr--r--.  1 apache apache    18092 Nov  8 06:22 COPYING.GPLv2
-rwxr--r--.  1 apache apache    35147 Nov  8 06:22 COPYING.GPLv3
-rwxr--r--.  1 apache apache    26526 Nov  8 06:22 COPYING.LGPLv2.1
-rwxr--r--.  1 apache apache     7651 Nov  8 06:22 COPYING.LGPLv3
-rwxr--r--.  1 apache apache      274 Nov  8 06:22 CREDITS
drwxr--r--.  4 apache apache     8192 Nov 11 01:37 doc
drwxr--r--.  2 apache apache      214 Nov  8 06:32 ffbuild
-rwxr-xr-x.  1 root   root   17132592 Nov 11 01:37 ffmpeg
-rwxr-xr-x.  1 root   root   17046544 Nov 11 01:37 ffprobe
-rwxr-xr-x.  1 root   root   95058168 Nov 11 01:37 ffprobe_g
-rwxr-xr-x.  1 root   root   15150064 Nov 11 01:37 ffserver
-rwxr-xr-x.  1 root   root   86029728 Nov 11 01:37 ffserver_g
drwxr--r--.  2 apache apache     4096 Nov 28 16:33 fftools
-rwxr--r--.  1 apache apache      595 Nov  8 06:22 INSTALL.md
drwxrwxrwx.  4 root   root         68 Nov 11 02:37 lame
drwxr--r--. 14 apache apache    81920 Nov 28 16:32 libavcodec
drwxr--r--.  3 apache apache     4096 Nov 28 16:21 libavdevice
drwxr--r--.  4 apache apache    28672 Nov 28 16:22 libavfilter
drwxr--r--.  3 apache apache    40960 Nov 28 16:23 libavformat
drwxr--r--.  6 apache apache     4096 Nov  8 06:23 libavresample
drwxr--r--. 12 apache apache    12288 Nov 28 16:32 libavutil
drwxr--r--.  2 apache apache     4096 Nov 28 16:32 libpostproc
drwxr--r--.  6 apache apache     4096 Nov 28 16:32 libswresample
drwxr--r--.  7 apache apache     4096 Nov 28 16:32 libswscale
-rwxr--r--.  1 apache apache     4368 Nov  8 06:22 LICENSE.md
-rwxr--r--.  1 apache apache    28905 Nov  8 06:22 MAINTAINERS
-rwxr--r--.  1 apache apache     5250 Nov  8 06:22 Makefile
-rw-r--r--.  1 root   root       2066 Nov 28 16:40 make.log
drwxr-xr-x.  2 root   root          6 Nov 11 00:59 output1
drwxr-xr-x.  2 root   root          6 Nov 11 00:59 output2
drwxr--r--.  2 apache apache      158 Nov  8 06:23 presets
-rwxr--r--.  1 apache apache     1893 Nov  8 06:22 README.md
-rwxr--r--.  1 apache apache        4 Nov  8 06:22 RELEASE
-rwxr--r--.  1 apache apache      839 Nov  8 06:22 RELEASE_NOTES
-rw-r--r--.  1 apache apache  3294271 Nov 11 00:56 test1.mp3
drwxr--r--.  7 apache apache     4096 Nov  8 06:22 tests
drwxr--r--.  2 apache apache     4096 Nov  8 06:23 tools
-rwxr--r--.  1 apache apache        4 Nov  8 06:22 VERSION

The command line was last run on 28-Nov. The ffmpeg binary is 11-Nov, so it should have been created earlier on.

Warmest Regards,
Sook Sin
Junior Music Content Executive
Express In Music
www.expressmelody.com| www.expressinmusic.com


-----Original Message-----
From: ffmpeg-user [mailto:[hidden email]] On Behalf Of Moritz Barsnick
Sent: Friday, November 24, 2017 12:34 AM
To: FFmpeg user discussions
Subject: Re: [FFmpeg-user] Failed installing FFMPEG on CentOS

On Thu, Nov 23, 2017 at 10:06:01 +0800, Sook Sin wrote:

Please solve this riddle for me:

> The 'make' commands shows numerous warnings and an error:
[...]
> collect2: error: ld returned 1 exit status
> make: *** [ffmpeg_g] Error 1
>
> Running the ffmpeg commands shows an error:
> ffmpeg -i test1.mp3 -af "silenceremove=0:0:0:-1:1:-80dB,
> dynaudnorm=p=1:m=3:r=1" -vn -acodec libmp3lame -b:a 12

If you didn't manage to compile ffmpeg (the output from make tells me it cannot have created a binary), how did you manage to execute ffmpeg afterwards? Are you actually running a pre-installed binary instead?

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

config.log (14K) Download Attachment
make.log (2K) Download Attachment