java ffmpeg swf_flash – ffmpeg:将仅音频flv转换为swf

我的Flex应用程序使用red5记录纯音频FLV文件 – 我想将这些文件转换为SWF文件,以便将其嵌入其他SWF文件中. (我也可以转换为MP3然后自己将它们嵌入到SWF中,但我更喜欢一步到位的解决方案.)

有人有这方面的经验吗?

我尝试过的:

以下naive ffmpeg命令失败:

> ffmpeg -i 3139747641.flv -vn movie.swf

FFmpeg version SVN-r21751-snapshot, Copyright (c) 2000-2010 Fabrice Bellard, et al.

built on Feb 11 2010 09:15:42 with gcc 4.2.1 (SUSE Linux)

configuration: --enable-gpl --enable-nonfree

libavutil 50. 9. 0 / 50. 9. 0

libavcodec 52.53. 0 / 52.53. 0

libavformat 52.52. 0 / 52.52. 0

libavdevice 52. 2. 0 / 52. 2. 0

libswscale 0.10. 0 / 0.10. 0

[flv @ 0x8a5e3a0]Could not find codec parameters (Video: 0x0000)

[flv @ 0x8a5e3a0]Estimating duration from bitrate, this may be inaccurate

Input #0, flv, from '3139747641.flv':

Metadata:

audiocodecid : -1

duration : 0

videocodecid : -1

canSeekToEnd : true

Duration: 00:00:14.88, 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, swf, to 'movie.swf':

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

我尝试添加虚拟视频,但这也失败了:

> ffmpeg -i dummy.mov -i 3139747641.flv movie.swf

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dummy.mov':

Metadata:

major_brand : qt

minor_version : 512

compatible_brands: qt

encoder : Lavf52.52.0

encoder-eng : Lavf52.52.0

Duration: 00:00:00.10, start: 0.000000, bitrate: 62 kb/s

Stream #0.0(eng): Video: mpeg4, yuv420p, 10x10 [PAR 1:1 DAR 1:1], 1 kb/s, 10 fps, 10 tbr, 10 tbn, 10 tbc

[flv @ 0x8a67fa0]Could not find codec parameters (Video: 0x0000)

[flv @ 0x8a67fa0]Estimating duration from bitrate, this may be inaccurate

Input #1, flv, from '3139747641.flv':

Metadata:

audiocodecid : -1

duration : 0

videocodecid : -1

canSeekToEnd : true

Duration: 00:00:14.88, start: 0.000000, bitrate: N/A

Stream #1.0: Video: 0x0000, 1k tbr, 1k tbn, 1k tbc

Stream #1.1: Audio: nellymoser, 8000 Hz, mono, s16

picture size invalid (0x0)

Cannot allocate temp picture, check pix fmt

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值