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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值