使用代码获取 iOS Framework 版本号

Add these lines in your Framework header file.

eg. PrefixFramework.h

//! Project version number for LocalSearch.
FOUNDATION_EXPORT double PrefixFrameworkVersionNumber;

//! Project version string for LocalSearch.
FOUNDATION_EXPORT const unsigned char PrefixFrameworkVersionString[];

There arguments will be filled by iOS framework logic.And you can get the version like this:

+(NSString*) playerVersion {
    NSRange range_, rangeslash;
    NSString *version = [[NSString alloc]initWithUTF8String:(const char*)PrefixFrameworkVersionString];
    range_ = [version rangeOfString:@"-"];
    rangeslash = [version rangeOfString:@"\n"];
    if (range_.location != NSNotFound) {
        NSRange rangleVersion;
        rangleVersion.location = range_.location + 1;
        rangleVersion.length = rangeslash.location - range_.location - 1;
        return [version substringWithRange:rangleVersion];
    }else{
        return @"Unknown";
    }
}

Read H264 NALU

ffmpeg  -i  inputfile -vcodec copy -vbsf h264_mp4toannexb -an output.h264

h264_analyze  output.h264

Download h264bitstream

Open Android syste-wide trace file

  1. open chrome browser and go to “chrome://tracing”
  2. in the tracing page, click load and select the systrace generated html file

Podfile 新格式

老的Podfile格式install时提示如下错误:

The dependency AFNetworking (~> 2.6)  is not used in any concrete target

官方推荐新格式:

platform :ios, '8.0'
target 'MyApp' do
  pod 'AFNetworking', '~> 2.6'
end

ffprobe 查看媒体信息

ffprobe -v quiet -print_format json -show_format -show_streams #source

ref:http://blog.creke.net/803.html