English 中文(简体)
How to encoding no sound recorded red5 video via ffmpeg
原标题:

HI

We recorded video via red5 server but no sound added ( because there was no sound environment ) . So there is no sound track in output flv file. and there is encoding error when we do encoding that flv ( no sound track ) into other video format via ffmpeg .

error message is Could not find codec parameters (Audio: 0x0000, 0 channels, s16)

Pls advice us how to solve the problem .

  1. is there any way ffmpeg can encoding no sound track video flv ?
  2. is there any way that red5 server can add sound track even there is actually no sound recorded ?

Thanks !

问题回答

We could better assist you if you had your FFmpeg command line in your question. Regardless, to answer your second question:

Is there any way ffmpeg can encoding no sound track video flv?

Yes, with the -an switch!

This can be found in the FFmpeg documentation. Your new command line will look something like this:

./ffmpeg -i myred5recording.flv -an myoutput.mp4

It is also possible to mux in audio with FFmpeg, but that is non-trivial relative to just using the -an switch. If you want to pursue this angle, the have a look at some other Stack Overflow questions, such as How can I add audio (mp3) to a flv (just video) with ffmpeg?





相关问题
Playing a Sound With Monotouch

No matter what I try (build -> content, NSUrl, filename) I get a null exception : file not found when I try to play a .caf sound file in monotouch. //var path = NSBundle.MainBundle.PathForResource("...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

Play sound in iPhone web app with Javascript?

I m currently creating an iPhone web application for piano chords, and I wanted to add an option that would let the user press a Play button and play the selected chord. However, I m not sure how to ...

热门标签