如何将用Red5/FMS录制的FLV文件转换为MP3? [英] How to convert a FLV file recorded with Red5 / FMS to MP3?

查看:132
本文介绍了如何将用Red5/FMS录制的FLV文件转换为MP3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种提取FLV文件的音频部分的方法.

I'm looking for a way to extract the audio part of a FLV file.

我正在使用用户的麦克风进行录音,并且音频使用 Nellymoser Asao编解码器 Nellymoser Asao Codec .这是默认的编解码器,无法更改.

I'm recording from the user's microphone and the audio is encoded using the Nellymoser Asao Codec. This is the default codec and there's no way to change this.

推荐答案

ffMpeg 是必经之路! 它适用于SVN Rev 14277.

ffMpeg is the way to go ! It worked for me with SVN Rev 14277.

我使用的命令是:ffmpeg -i source.flv -nv -f mp3 destination.mp3

GOTCHA :

如果收到此错误消息:Unsupported audio codec (n), 检查 FLV规范 音频标签部分.

If you get this error message : Unsupported audio codec (n), check the FLV Spec in the Audio Tags section.

ffMpeg可以解码n = 6(Nellymoser).
但是,对于n = 4(Nellymoser 8-kHz单声道)和n = 5(Nellymoser 16-kHz单声道),它不起作用.

ffMpeg can decode n=6 (Nellymoser).
But for n=4 (Nellymoser 8-kHz mono) and n=5 (Nellymoser 16-kHz mono) it doesn't work.

要解决此问题,请在录制流时使用默认麦克风速率,否则ffMpeg无法对其进行解码.

To fix this use the default microphone rate when recording your streams, overwise ffMpeg is unable to decode them.

希望这会有所帮助!

这篇关于如何将用Red5/FMS录制的FLV文件转换为MP3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆