02 2013 档案

摘要:av_register_all();//初始化ffmpeg库,如果系统里面的ffmpeg没配置好这里会出错 if (isNetwork) { //需要播放网络视频 avformat_network_init(); } avformat_open_input();//打开视频文件 avformat_find_stream_info();//查找文件的流信息 av_dump_format();//dump只是个调试函数,输出文件的音、视频流的基本信息了,帧率、分辨率、音频... 阅读全文
posted @ 2013-02-19 10:24 Ethan_村长 阅读(8314) 评论(0) 推荐(2) 编辑
摘要:UITextView *text=[[UITextView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; [self.view addSubview:text]; __block int count=0; //异步并行处理 dispatch_async(dispatch_get_global_queue(0, 0), ^(){ for (int i=0; i<100; i++) { usleep(10000); count=count+i; } ... 阅读全文
posted @ 2013-02-18 10:44 Ethan_村长 阅读(253) 评论(0) 推荐(0) 编辑
摘要:我使用的配置:xcode4.5,IOS6.0,ipad 1(4.3)一、准备资源1. 到https://github.com/gabriel/ffmpeg-iphone-build下载ffmpeg-iphone-build2.先将gas-preprocessor.pl拷贝到/usr/sbin/目录中。3.到这里下载最新的ffmpeg:http://ffmpeg.org/download.html或者命令行安装:git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg二、编译4.然后到命令行下到ffmpeg的目录下,执行:下面的命令中,在mac10. 阅读全文
posted @ 2013-02-17 18:25 Ethan_村长 阅读(4914) 评论(0) 推荐(0) 编辑

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