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

  • 相关阅读:
    Windows API—CreateEvent—创建事件
    C++的注册和回调
    Python内置模块-logging
    使用 C++ 处理 JSON 数据交换格式
    Python生成器
    5.Spring-Boot缓存数据之Redis
    6.Spring-Boot项目发布到独立的tomcat中
    7.Spring-Boot自定义Banner
    8.Spring-Boot之SpringJdbcTemplate整合Freemarker
    9.Spring-Boot之Mybatis-LogBack-Freemarker
  • 原文地址:https://www.cnblogs.com/doudouyoutang/p/9662618.html
Copyright © 2020-2023  润新知