|
@@ -824,9 +824,9 @@ bool libvideorecord_impl::GetRecordVideoFrameSize()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (bRet) {
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "get video framesize is %d, and width is %d, height is %d.", m_iVideoFrameSize, m_iWidth, m_iHeight);
|
|
|
- }
|
|
|
+ //if (bRet) {
|
|
|
+ // m_pHostApi->Debug(RECORD_LOG_DEBUG, "get video framesize is %d, and width is %d, height is %d.", m_iVideoFrameSize, m_iWidth, m_iHeight);
|
|
|
+ //}
|
|
|
|
|
|
return bRet;
|
|
|
}
|
|
@@ -856,9 +856,9 @@ bool libvideorecord_impl::GetRecordAudioFrameSize()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (bRet) {
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "local audio frame size = %d.", m_iAudioFrameSize);
|
|
|
- }
|
|
|
+ //if (bRet) {
|
|
|
+ // m_pHostApi->Debug(RECORD_LOG_DEBUG, "local audio frame size = %d.", m_iAudioFrameSize);
|
|
|
+ //}
|
|
|
|
|
|
return bRet;
|
|
|
}
|
|
@@ -889,9 +889,9 @@ bool libvideorecord_impl::GetRecordAudioParams(audio_frame** paudio)
|
|
|
|
|
|
RECORD_SAFE_DELETE((*paudio)->data);
|
|
|
|
|
|
- if (bRet) {
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "audio samplespersec=%d,framesize=%d,channels=%d,format=%d,bitspersample=%d,series number=%d.", (*paudio)->samplespersec, (*paudio)->framesize, (*paudio)->nchannels, (*paudio)->format, (*paudio)->bitspersample, (*paudio)->iseriesnumber);
|
|
|
- }
|
|
|
+ //if (bRet) {
|
|
|
+ // m_pHostApi->Debug(RECORD_LOG_DEBUG, "audio samplespersec=%d,framesize=%d,channels=%d,format=%d,bitspersample=%d,series number=%d.", (*paudio)->samplespersec, (*paudio)->framesize, (*paudio)->nchannels, (*paudio)->format, (*paudio)->bitspersample, (*paudio)->iseriesnumber);
|
|
|
+ //}
|
|
|
|
|
|
return bRet;
|
|
|
}
|
|
@@ -919,13 +919,12 @@ bool libvideorecord_impl::CalcuRecordAudioParams(audio_frame* paudio)
|
|
|
//计算每秒音频的长度
|
|
|
m_iAudioPerSecBufLen = paudio->samplespersec * paudio->bitspersample / 8;
|
|
|
m_iRecordAudioBufSize = m_iAudioPerSecBufLen;
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "m_iAudioPerSecBufLen=%d", m_iAudioPerSecBufLen);
|
|
|
+ //m_pHostApi->Debug(RECORD_LOG_DEBUG, "m_iAudioPerSecBufLen=%d", m_iAudioPerSecBufLen);
|
|
|
//计算音频帧的帧频,
|
|
|
m_iLocalAudioFps = m_iAudioPerSecBufLen / paudio->framesize;
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "音频帧的帧频 m_iLocalAudioFps=%d", m_iLocalAudioFps);
|
|
|
+ //m_pHostApi->Debug(RECORD_LOG_DEBUG, "音频帧的帧频 m_iLocalAudioFps=%d", m_iLocalAudioFps);
|
|
|
if (eSingleSide != m_eRecordType) {
|
|
|
if (eStand2Agent == m_eRecordType) { //可视柜台渠道的双向录像,本地端和坐席端声音采用左右声道方式录制
|
|
|
-
|
|
|
m_iRemoteAudioFps = 50;
|
|
|
m_iRecordAudioBufSize = m_iAudioPerSecBufLen * 2;
|
|
|
}
|
|
@@ -940,7 +939,7 @@ bool libvideorecord_impl::CalcuRecordAudioParams(audio_frame* paudio)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "audio fps = %d, record audio buffer size = %d.", m_iLocalAudioFps, m_iRecordAudioBufSize);
|
|
|
+ //m_pHostApi->Debug(RECORD_LOG_DEBUG, "audio fps = %d, record audio buffer size = %d.", m_iLocalAudioFps, m_iRecordAudioBufSize);
|
|
|
|
|
|
bRet = true;
|
|
|
|
|
@@ -1365,7 +1364,6 @@ bool libvideorecord_impl::InitCvxText()
|
|
|
|
|
|
string fontfile = "";
|
|
|
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "FindMatchedFile");
|
|
|
#ifdef _WIN32
|
|
|
if (FindMatchedFile(TtcDir.c_str(), "msyh.", fontfile))
|
|
|
#else
|
|
@@ -2110,9 +2108,9 @@ bool libvideorecord_impl::GetLocalAudioFrame(int iAudioLens)
|
|
|
if (CAPTURE_CLOCK == m_audioframe->samplespersec) {
|
|
|
m_iAudioBufferLen += m_audioframe->framesize;
|
|
|
m_iAudioFromQueNum++;
|
|
|
- if ((0 == m_iAudioFromQueNum % 100) && 0 != m_audioframe->iseriesnumber) {
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "current audio queue len is %d and audio series number is: %d.", iAudioLens, m_audioframe->iseriesnumber);
|
|
|
- }
|
|
|
+ //if ((0 == m_iAudioFromQueNum % 100) && 0 != m_audioframe->iseriesnumber) {
|
|
|
+ // m_pHostApi->Debug(RECORD_LOG_DEBUG, "current audio queue len is %d and audio series number is: %d.", iAudioLens, m_audioframe->iseriesnumber);
|
|
|
+ //}
|
|
|
bRet = true;
|
|
|
}
|
|
|
else {
|
|
@@ -2244,7 +2242,6 @@ bool libvideorecord_impl::GetRecordAudioFrame()
|
|
|
m_iAudioBufferLen = uOutlen;
|
|
|
}
|
|
|
}
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "current m_iAudioBufferLen = %d, m_iAudioPerSecBufLen = %d.", m_iAudioBufferLen, m_iAudioPerSecBufLen);
|
|
|
|
|
|
return bRet;
|
|
|
}
|
|
@@ -2331,7 +2328,7 @@ bool libvideorecord_impl::InitVideoRecordParams()
|
|
|
m_pHostApi->Debug(RECORD_LOG_INFO, "Ns audio set params failed, set AudioNsOn false.");
|
|
|
}
|
|
|
}
|
|
|
- m_pHostApi->Debug(RECORD_LOG_DEBUG, "InitRecordWriter samplespersec=%d,audioOutChannels=%d,audioOutBitRate=%d bps.", audio->samplespersec, m_iAudioChannels, uOutPutBitRate);
|
|
|
+ //m_pHostApi->Debug(RECORD_LOG_DEBUG, "InitRecordWriter samplespersec=%d,audioOutChannels=%d,audioOutBitRate=%d bps.", audio->samplespersec, m_iAudioChannels, uOutPutBitRate);
|
|
|
|
|
|
if (!InitRecordWriter(m_VideoFileName, m_iWidth, m_iHeight, 24, m_nFps, audio->samplespersec,
|
|
|
m_iAudioChannels, audio->bitspersample, 6, m_videoquality, uOutPutBitRate, (int)m_eAudioType)) {
|