Encoding SWF files using audio codec CODEC_ID_ADPCM_SWF
Hello newsgroup! I want to create SWF files, therefore I am using output format "swf". I also want to add a audio stream so I am using CODEC_ID_ADPCM_SWF. But this codec cannot be opened, because of wrong codec parameters (bit rate, sample rate or something like that). No my question is: Does anyone know which codec parameters can be used for CODEC_ID_ADPCM_SWF? Or is it better to use MP3 as audio stream for SWF files? Are there any problems when using MP3 with SWF output format? Thank you lot for your suggestions! Sincerly Lars
Lars Blumberg wrote:
Hello newsgroup!
I want to create SWF files, therefore I am using output format "swf". I also want to add a audio stream so I am using CODEC_ID_ADPCM_SWF. But this codec cannot be opened, because of wrong codec parameters (bit rate, sample rate or something like that).
No my question is: Does anyone know which codec parameters can be used for CODEC_ID_ADPCM_SWF? Or is it better to use MP3 as audio stream for SWF files? Are there any problems when using MP3 with SWF output format?
Actually this adpcm format isn't supported for encoding, but that isn't clear from the message you get. I submitted a patch awhile ago to try to make it more clear which formats are supported and which aren't, but it looks like it never made it in. http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2006-March/008449.html It probably wouldn't be too hard to write encoders for some of the more obscure ADPCM formats if anyone was interested in doing that, but it didn't seem worthwhile to me. Anyway, there is no problem with using MP3, as long as you make sure you compile ffmpeg with MP3 support.
Hello! Thank for your answer. I am now using MP3 as audio stream format. This works well. With best regards Lars <mkhodor6 at yahoo.com> schrieb im Newsbeitrag news:200609231408.k4JEm9g8003890 at yahoo.com...
Lars Blumberg wrote:
Hello newsgroup!
I want to create SWF files, therefore I am using output format "swf". I also want to add a audio stream so I am using CODEC_ID_ADPCM_SWF. But this codec cannot be opened, because of wrong codec parameters (bit rate, sample rate or something like that).
No my question is: Does anyone know which codec parameters can be used for CODEC_ID_ADPCM_SWF? Or is it better to use MP3 as audio stream for SWF files? Are there any problems when using MP3 with SWF output format?
Actually this adpcm format isn't supported for encoding, but that isn't clear from the message you get. I submitted a patch awhile ago to try to make it more clear which formats are supported and which aren't, but it looks like it never made it in. http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2006-March/008449.html
It probably wouldn't be too hard to write encoders for some of the more obscure ADPCM formats if anyone was interested in doing that, but it didn't seem worthwhile to me.
Anyway, there is no problem with using MP3, as long as you make sure you compile ffmpeg with MP3 support.
participants (2)
-
Lars.Blumberg@aquasoft.de -
mkhodor6@yahoo.com