将纯音频 flv 转换为 aac:ffmpeg
我无法将简单的纯音频 .flv 转换为 AAC 格式。音频流显然在那里,我可以在手动播放时听到它。我需要不同的参数来完成此任务吗?
ffmpeg -i test.flv test.aac
[flv @ 0x23b3260]Could not find codec parameters (Video: 0x0000)
Input #0, flv, from 'test.flv':
Duration: 00:00:12.95, 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, adts, to 'test.aac':
Stream #0.0: Audio: 0x0000, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Unsupported codec for output stream #0.0
I can't convert a simple audio-only .flv to AAC format. The audio stream is obviously there, and I can hear it on manual playback. Are there different parameters I need to accomplish this?
ffmpeg -i test.flv test.aac
[flv @ 0x23b3260]Could not find codec parameters (Video: 0x0000)
Input #0, flv, from 'test.flv':
Duration: 00:00:12.95, 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, adts, to 'test.aac':
Stream #0.0: Audio: 0x0000, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Unsupported codec for output stream #0.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
您可以使用以下内容分别设置比特率、采样率和通道:
另外,您可能必须告诉 ffmpeg 您想要编码什么流,方法是:
Which corespondes to
Try
You can use the following to set bitrate, sample rate, and channels, respectively:
Also, you may have to tell ffmpeg what steam you want to encode, by doing:
Which corespondes to