资源和元数据 Apple下主要的媒体类型: QuickTime (mov) MPEG 4 video (mp4和m4v) MPEG 4 audio (m4a) MPEG Layer Ⅲ audio (mp3) ...
                            
                            
                                分类:
其他好文   时间:
2017-11-29 22:04:48   
                                阅读次数:
149
                             
                    
                        
                            
                            
                                av_dump_format()此函数的作用:av_dump_format()是一个手工调试的函数,能使我们看到pFormatCtx->streams里面有什么内容。一般接下来我们使用av_find_stream_info()函数,它的作用是为pFormatCtx->streams填充上正确的信息。在避免调用av_find_stream_info()探测流的时..
                            
                            
                                分类:
其他好文   时间:
2017-11-18 17:33:58   
                                阅读次数:
240
                             
                    
                        
                            
                            
                                avcodec_version函数查询ffmpeg版本返回值:0x00396b64(转换成十六进制方便说明)版本的换算公式#define	AV_VERSION_INT(a,b,c)((a)<<16|(b)<<8|(c))393916*3+9=576b6*16+11=107646*16+4=100浏览最新官网FFmpeg3.4"Cantor"3.4wasreleasedon2017-10-15.Itisthelates..
                            
                            
                                分类:
其他好文   时间:
2017-11-18 15:23:01   
                                阅读次数:
240
                             
                    
                        
                            
                            
                                代码AVDictionary*pOptions=NULL;handle->pFormatContext->probesize=100*1024;handle->pFormatContext->max_analyze_duration=5*AV_TIME_BASE;if(avformat_find_stream_info(handle->pFormatContext,&pOptions)<0)说明这样设置probesize和max_analyze_d..
                            
                            
                                分类:
其他好文   时间:
2017-10-24 01:25:30   
                                阅读次数:
118
                             
                    
                        
                            
                            
                                1.设置rtsp超时 AVDictionary* opts = NULL; av_dict_set(&opts, "rtsp_transport", m_bTcp ? "tcp" : "udp", 0); //设置tcp or udp,默认一般优先tcp再尝试udp av_dict_set(&opt ...
                            
                            
                                分类:
其他好文   时间:
2017-10-19 11:06:39   
                                阅读次数:
814
                             
                    
                        
                            
                            
                                Centos7-PHP7.1-Nginx Installing PHP 7.1 on CentOS 7 with Nginx 1. Install Nginx yum install nginx 2. Repo's for PHP 7.1 Unfortionally PHP7.1 is not av ...
                            
                            
                                分类:
Web程序   时间:
2017-10-17 15:34:52   
                                阅读次数:
250
                             
                    
                        
                            
                            
                                    int yuv420_to_jpg(void *data,int w,int h,char *file) { av_register_all(); AVFormatContext *pFormatCtx = avformat_alloc_context(); AVOutputFormat *fmt ... ...
                            
                            
                                分类:
其他好文   时间:
2017-10-17 12:17:43   
                                阅读次数:
278
                             
                    
                        
                            
                            
                                AVPlayerLayer 最后一个图层类型是AVPlayerLayer。尽管它不是Core Animation框架的一部分(AV前缀看上去像),AVPlayerLayer是有别的框架(AVFoundation)提供的,它和Core Animation紧密地结合在一起,提供了一个CALayer子类来 ...
                            
                            
                                分类:
其他好文   时间:
2017-10-03 23:19:40   
                                阅读次数:
219
                             
                    
                        
                            
                            
                                    题目描述 Farmer John is herding his N cows (1 <= N <= 2,500) across the expanses of his farm when he finds himself blocked by a river. A single raft is av ...
                            
                            
                                分类:
其他好文   时间:
2017-09-28 10:05:32   
                                阅读次数:
208
                             
                    
                        
                            
                            
                                #ifndef MY_AVLTREE #define MY_AVLTREE #include<iostream> #include<cmath> #define PRINTS(x) std::cout<<x<<std::ends struct AvlNode; typedef AvlNode* Av ...
                            
                            
                                分类:
其他好文   时间:
2017-09-26 23:32:30   
                                阅读次数:
262