zoukankan      html  css  js  c++  java
  • ReplayKit2 采集音视频回调格式

    一、音频

      

    ReplayKit2 RPSampleBufferTypeAudioApp sampleBuffer = CMSampleBuffer 0x100500c50 retainCount: 1 allocator: 0x1b5f57538
    	invalid = NO
    	dataReady = YES
    	makeDataReadyCallback = 0x0
    	makeDataReadyRefcon = 0x0
    	formatDescription = <CMAudioFormatDescription 0x1c4113a70 [0x1b5f57538]> {
    	mediaType:'soun' 
    	mediaSubType:'lpcm' 
    	mediaSpecific: {
    		ASBD: {
    			mSampleRate: 44100.000000 
    			mFormatID: 'lpcm' 
    			mFormatFlags: 0xe 
    			mBytesPerPacket: 2 
    			mFramesPerPacket: 1 
    			mBytesPerFrame: 2 
    			mChannelsPerFrame: 1 
    			mBitsPerChannel: 16 	} 
    		cookie: {(null)} 
    		ACL: {(null)}
    		FormatList Array: {(null)} 
    	} 
    	extensions: {(null)}
    }
    	sbufToTrackReadiness = 0x0
    	numSamples = 22062
    	sampleTimingArray[1] = {
    		{PTS = {2803233600791/1000000000 = 2803.234}, DTS = {INVALID}, duration = {1/44100 = 0.000}},
    	}
    	dataBuffer = 0x1c41139e0
    

      

    二、视频:

    ReplayKit2 RPSampleBufferTypeVideo sampleBuffer = CMSampleBuffer 0x104b049a0 retainCount: 1 allocator: 0x1b5f57538
    	invalid = NO
    	dataReady = YES
    	makeDataReadyCallback = 0x0
    	makeDataReadyRefcon = 0x0
    	buffer-level attachments:
    		RPSampleBufferVideoOrientation    = 1
    	formatDescription = <CMVideoFormatDescription 0x1c0042eb0 [0x1b5f57538]> {
    	mediaType:'vide' 
    	mediaSubType:'420f' 
    	mediaSpecific: {
    		codecType: '420f'		dimensions: 886 x 1918 
    	} 
    	extensions: {<CFBasicHash 0x1c006db00 [0x1b5f57538]>{type = immutable dict, count = 2,
    entries =>
    	0 : <CFString 0x1ae9fbbe8 [0x1b5f57538]>{contents = "Version"} = <CFNumber 0xb000000000000022 [0x1b5f57538]>{value = +2, type = kCFNumberSInt32Type}
    	2 : <CFString 0x1ae9fbb68 [0x1b5f57538]>{contents = "CVBytesPerRow"} = <CFNumber 0xb000000000005442 [0x1b5f57538]>{value = +1348, type = kCFNumberSInt32Type}
    }
    }
    }
    	sbufToTrackReadiness = 0x0
    	numSamples = 1
    	sampleTimingArray[1] = {
    		{PTS = {2967140404416/1000000000 = 2967.140}, DTS = {INVALID}, duration = {INVALID}},
    	}
    	imageB
    

    三、测试设备

      iPhoneX + 11.x系统

  • 相关阅读:
    使用Application Insights 做分析
    UWP中GridView右击选中的实现
    Bing Map
    UWP深入学习六:Build better apps: Windows 10 by 10 development series
    从上往下打印二叉树
    二叉树中和为某一值的路径
    二叉树的镜像
    树的子结构
    由前序遍历和中序遍历构建二叉树
    二叉树常见题目
  • 原文地址:https://www.cnblogs.com/doudouyoutang/p/9662618.html
Copyright © 2011-2022 走看看