Lines Matching defs:recorder
17 #include "recorder.h"
48 cout << "Open recorder file failed. strerr=" << strerror(errno) << endl;
89 Recorder *recorder = new Recorder();
90 if ((ret = recorder->SetVideoSource(source, sourceId)) != SUCCESS) {
94 if ((ret = recorder->SetVideoEncoder(sourceId, encoder)) != SUCCESS) {
98 if ((ret = recorder->SetVideoSize(sourceId, width, height)) != SUCCESS) {
102 if ((ret = recorder->SetVideoFrameRate(sourceId, frameRate)) != SUCCESS) {
106 if ((ret = recorder->SetVideoEncodingBitRate(sourceId, rate)) != SUCCESS) {
110 if ((ret = recorder->SetCaptureRate(sourceId, fps)) != SUCCESS) {
114 if ((ret = recorder->SetAudioSource(inputSource, audioSourceId)) != SUCCESS) {
118 if ((ret = recorder->SetAudioEncoder(audioSourceId, audioFormat)) != SUCCESS) {
122 if ((ret = recorder->SetAudioSampleRate(audioSourceId, sampleRate)) != SUCCESS) {
126 if ((ret = recorder->SetAudioChannels(audioSourceId, channelCount)) != SUCCESS) {
130 if ((ret = recorder->SetAudioEncodingBitRate(audioSourceId, audioEncodingBitRate)) != SUCCESS) {
134 if ((ret = recorder->SetMaxDuration(36000)) != SUCCESS) { // 36000s=10h
138 return recorder;
141 delete recorder;
256 cout << "recorder start failed. ret=" << ret << endl;