04 2012 档案

摘要:原创,转载请注明出处:http://www.cnblogs.com/xuanyuanchen/archive/2012/04/17/2454285.html编译ffmepg模拟器版本:1、下载ffmpeg-iphone-build下载地址:https://github.com/gabriel/ffmpeg-iphone-build2、将gas-preprocessor.pl拷贝到/usr/sbin方法:$sudo cp gas-preprocessor.pl /usr/sbin/3、到ffmpeg官网上下载ffmpeg源码(项目中用的是ffmpeg-0.8.6版本,主要是考虑当时已经有在做的项 阅读全文
posted @ 2012-04-17 21:04 xiulug 阅读(2235) 评论(0) 推荐(1) 编辑
摘要:续上一篇iphone利用AudioQueue播放音频文件(mp3,aac,caf,wav等)绝对原创,转载请注明出处:http://www.cnblogs.com/xuanyuanchen/admin/EditPosts.aspx?postid=24501691、ffmpeg解码音频流并且保存成wav文件。 这一步比较简单,只要熟悉ffmpeg解码音频的流程,将解码出的pcm码,保存到本地文件中,并实时统计解码的pcm的字节长度,最后解码完成之后再添加44字节的wav文件头。save_audio.cView Code 1 #include <stdio.h> 2 #include 阅读全文
posted @ 2012-04-17 12:58 xiulug 阅读(7388) 评论(7) 推荐(3) 编辑
摘要:1 AVPacketView Code typedef struct AVPacket { /** * Presentation timestamp in AVStream->time_base units; the time at which * the decompressed packet will be presented to the user. * Can be AV_NOPTS_VALUE if it is not stored in the file. * pts MUST be larger or equal to dts as pres... 阅读全文
posted @ 2012-04-13 00:11 xiulug 阅读(1640) 评论(0) 推荐(1) 编辑
摘要:1 avcodec_find_decoder()/** * Find a registered decoder with a matching codec ID. * * @param id CodecID of the requested decoder * @return A decoder if one was found, NULL otherwise. */AVCodec *avcodec_find_decoder(enum CodecID id);// 通过code ID查找一个已经注册的音视频解码器// 引入 #include "libavcodec/avcodec.h 阅读全文
posted @ 2012-04-13 00:05 xiulug 阅读(6289) 评论(1) 推荐(0) 编辑
摘要:sudo add-apt-repository ppa:tualatrix/ppasudo apt-get updatesudo apt-get install ubuntu-tweak用这种方法默认安装的是Ubuntu Tweak 0.5.10。以前用的时候都没做过记录,现在记录下来方便下次进行查询。 阅读全文
posted @ 2012-04-11 11:19 xiulug 阅读(800) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示