如何从 FLV 中提取音频?

发布于 2024-09-26 02:02:17 字数 800 浏览 12 评论 0原文

我需要从使用 FMS 录制的 FLV 文件中提取音频。我在 Flash 应用程序中使用了 SPEEX 编码,将音频和视频传输到 FMS。

我尝试过使用 FFMPEG,但没有成功。这是我的 FLV 的 -i 输出:

FFmpeg 版本 SVN-rUNKNOWN,版权所有 (c) 2000-2007 Fabrice Bellard 等人。 配置: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable -debug --enable-shared --prefix=/usr libavutil 版本:1d.49.3.0 libavcodec版本:1d.51.38.0 libavformat 版本:1d.51.10.0 建于 2010 年 4 月 23 日 15:11:13,gcc:4.2.4(Ubuntu 4.2.4-1ubuntu3) [flv @ 0xb7ed7110]不支持的音频编解码器 (b) [flv @ 0xb7ed7110]不支持的音频编解码器 (b) 输入#0,flv,来自“m.flv”: 持续时间:00:00:05.0,开始:0.000000,比特率:N/A 流 #0.0:视频:flv、yuv420p、288x203、1000.00 fps(r) Stream #0.1:音频:0x000b,11025 Hz,单声道

我需要一个命令行实用程序,因为这将从服务器执行。

提前致谢。

I need to extract the audio from a FLV file recorded using FMS. I used the SPEEX coded in my flash application that streams the audio and video to FMS.

I have tried using FFMPEG, with no luck. This is the -i outputs of my FLV:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on Apr 23 2010 15:11:13, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
[flv @ 0xb7ed7110]Unsupported audio codec (b)
[flv @ 0xb7ed7110]Unsupported audio codec (b)
Input #0, flv, from 'm.flv':
Duration: 00:00:05.0, start: 0.000000, bitrate: N/A
Stream #0.0: Video: flv, yuv420p, 288x203, 1000.00 fps(r)
Stream #0.1: Audio: 0x000b, 11025 Hz, mono

I need a command line utility, since this will be executed from a server.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

动次打次papapa 2024-10-03 02:02:17

典型的flv:

flv @ 0x152ba80]估计持续时间
从比特率来看,这可能不准确
[lavf] 流 0:视频 (flv),-vid 0
[lavf] 流 1:音频 (mp3),-aid 0
视频:[FLV1] 320x240 0bpp 25.000
帧速率 250.3 kbps(30.6 KB/秒)

要读取此内容,必须使用其他选项编译 ffmpeg:

  --enable-gpl --enable-nonfree --enable-libmp3lame 

然后,

ffmpeg -i flvfile 1.mp3

Typical flv:

flv @ 0x152ba80]Estimating duration
from bitrate, this may be inaccurate
[lavf] stream 0: video (flv), -vid 0
[lavf] stream 1: audio (mp3), -aid 0
VIDEO: [FLV1] 320x240 0bpp 25.000
fps 250.3 kbps (30.6 kbyte/s)

To read this, ffmpeg must be compiled with additional options:

  --enable-gpl --enable-nonfree --enable-libmp3lame 

Then,

ffmpeg -i flvfile 1.mp3
倚栏听风 2024-10-03 02:02:17

试试这个网站: flv2mp3.com

更新:抱歉,我没有阅读您问题的命令行部分。

Try this site: flv2mp3.com

Update: Sorry, I didn't read the command line part of your question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文