嗨,我在 Redhat5 上构建了 ffmpeg 可执行文件。我想使用命令 multiple “ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT.mp3”混合两个音频。
我启用了 libflamemp3 库,没有任何错误。
[root@localhost ~]# ffmpeg -i /root/media/Katlalli.mp3 -i /root/media/Katlalli.mp3 -filter_complex amix=inputs=2:duration=first:dropout_transition=2 /root/media/OUTPutnew123.mp3
ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 14 2013 03:17:10 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-46)
configuration: --enable-libmp3lame
libavutil 52. 48.100 / 52. 48.100
libavcodec 55. 39.100 / 55. 39.100
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
[mp3 @ 0x193ef240] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from '/root/media/Katlalli.mp3':
Metadata:
artist : Yograj Bhat
title : Katlalli Karadige
track : 3
album : Paramathma
album_artist : Puneet Rajkumar
genre : Kannada
composer : V.Harikrishna
date : 2011
Duration: 00:04:41.46, start: 0.000000, bitrate: 191 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
Stream #0:1: Video: mjpeg, yuvj420p(pc), 200x200 [SAR 96:96 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
title : thumbnail
comment : Cover (front)
[mp3 @ 0x194090a0] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from '/root/media/Katlalli.mp3':
Metadata:
artist : Yograj Bhat
title : Katlalli Karadige
track : 3
album : Paramathma
album_artist : Puneet Rajkumar
genre : Kannada
composer : V.Harikrishna
date : 2011
Duration: 00:04:41.46, start: 0.000000, bitrate: 191 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
Stream #1:1: Video: mjpeg, yuvj420p(pc), 200x200 [SAR 96:96 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
title : thumbnail
comment : Cover (front)
File '/root/media/OUTPutnew123.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp3, to '/root/media/OUTPutnew123.mp3':
Metadata:
artist : Yograj Bhat
title : Katlalli Karadige
track : 3
album : Paramathma
album_artist : Puneet Rajkumar
genre : Kannada
composer : V.Harikrishna
date : 2011
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp (default)
Stream #0:1: Video: none, q=2-31, 128 kb/s, 90k tbn
Metadata:
title : thumbnail
comment : Cover (front)
Stream mapping:
Stream #0:0 (mp3) -> amix:input0
Stream #1:0 (mp3) -> amix:input1
amix -> Stream #0:0 (libmp3lame)
Stream #0:1 -> #0:1 (mjpeg -> ?)
Encoder (codec none) not found for output stream #0:1
但是当我尝试合并两个 mp3 音频时,“ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT.mp3”。
我收到类似的错误
“找不到输出流 #0:1 的编码器(无编解码器)”
所以请帮助我如何在 Redhat5 上链接或安装“libmp3flame”。