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系统

posted @ 2018-09-17 15:55  兜兜有糖的博客  阅读(1124)  评论(0编辑  收藏  举报