开发者

How to decompress a compressed type audio file using ffmpeg?

开发者 https://www.devze.com 2023-02-27 10:24 出处:网络
I need to decom开发者_StackOverflow中文版press an audio file through code using ffmpeg. I have compiled FFMPEG for iOS with the link: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-October/0766

I need to decom开发者_StackOverflow中文版press an audio file through code using ffmpeg. I have compiled FFMPEG for iOS with the link: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-October/076618.html

Now I am not getting how to include ffmpeg in my xcode project? Which ffmpeg libraries to use? Which methods to use for decompresson?

Please answer.


This should help:

http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html


More ffmpeg tutorials:

http://dranger.com/ffmpeg/ffmpegtutorial_all.html
https://github.com/mpenkov/ffmpeg-tutorial

Now I am not getting how to include ffmpeg in my xcode project? Which ffmpeg libraries to use?

You need to add next libs to your project: libavcodec.a, libavformat.a. If you plan use resampling audio add: libswresample.a. And add ffmpeg folder to 'User header search paths' in build settings.

Which methods to use for decompresson?

for decoding: avcodec_decode_audio4
for resampling: swr_convert

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号