English 中文(简体)
ffmpeg mp3转换失败[关闭]
原标题:ffmpeg mp3 conversion failed [closed]
Closed. This question is off-topic. It is not currently accepting answers.

想改进这个问题吗 更新问题,使其成为堆栈溢出的主题。

Closed 11 years ago.

使用ffmpeg将flv转换为mp3会得到以下结果


] ffmpeg-0.6.1 >> ffmpeg -i name.flv name.mp3 FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Feb 14 2011 12:33:38 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configuration: libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.11. 0 / 0.11. 0 [flv @ 0x10869420]Could not find codec parameters (Video: 0x0000) [flv @ 0x10869420]Estimating duration from bitrate, this may be inaccurate Input #0, flv, from name.flv : Metadata: audiocodecid : 5 duration : 10 videocodecid : -1 canSeekToEnd : true Duration: 00:00:10.17, start: 0.000000, bitrate: N/A Stream #0.0: Video: 0x0000, 1k tbr, 1k tbn, 1k tbc Stream #0.1: Audio: nellymoser, 8000 Hz, mono, s16 Output #0, mp3, to name.mp3 : Stream #0.0: Audio: 0x0000, 8000 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0.1 -> #0.0 Encoder (codec id 86017) not found for output stream #0.0

you can see in last line it says codec id 86017 not found. when i run following command:

ffmpeg -formats > ffmpeg-format.txt

mp3 is listed in available formats as
DE mp3 MPEG audio layer 3
.What can be the error.is it that mp3 codec is not properly installed?Help will be appreciated
最佳回答

看起来你的FFMPEG不是用libmp3lame编译的。请参阅此帖子:

https://superuser.com/questions/196857/how-to-install-libmp3lame-for-ffmpeg

如果你不能自己编译它,你将不得不搜索一个支持它的二进制文件。

问题回答

试试这个,它对我有用。

sudo apt-get安装ffmpeg libavcodec-extra-52

感谢ffmpeg:将纯音频flv转换为swf

对于ubuntu 11.10:

sudo apt-get install ffmpeg libavcodec-extra-53

对于ubuntu 11.04、10.10、10.04:

sudo apt-get install ffmpeg libavcodec-extra-52




相关问题
FLV s not being served by web server (302 response)

I have a web app. IIS 6. .NET 3.5. I have 2 websites on the web server. One of which is already correctly serving FLVs. The newer one is not. I have added the MIME type information to the HTTP ...

How to compress an FLV movie in java?

How can we compress the flv movie? Is there any free library which i can use? for compressing the video i can go for reducing the resoultion as well, even framerate reducing is acceptable to me.

Multi-bitrate/dynamic rate for progressive FLV playback

Is there a way to get multi-bitrate playback working with progessive playback without having to download all versions of the file? People all coming up with all kinds of cool ways to make progressive ...

flv file loses quality when uploaded to server

When i view an flv file inside a swf file it looks fine locally, but when its uploaded text loses it shape. The bitrate for the flv is 1,500+ kbps. Ive attached a picture. The one on the left is local,...

Javascript & Ajax video player not working in PHP file

PHP + javascript code + flv player: I am trying to play a .flv video on a web page and I have the file name to play from mysql database so i need to use PHP. In the code below there is a script that ...

FLVs on timeline are glitching out

I have a Movieclip with about five FLV movies embedded on its timeline, one after another. I am loading multiple instances (about 5-10) of this movieclip onto the stage. Once added to the stage, they ...

store wget link into a database (php)

I m trying to find a solution to download automatically .flv link everyday from a website using wget and to store all the links into a database to stream them in my website. (all in php) How to do ...

热门标签