Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //starting from main.cpp line 238
- std::string encoder_cmd = "nohup ffmpeg -y -vn -f s16le -ac 2 -ar 48000 -acodec pcm_s16le -i ";
- std::string eout_params = " -acodec libopus -b:a 64000 -vbr off -compression_level 0 -frame_duration 60 -ac 1 -ar 48000 -vn -af \"silenceremove=start_periods=1:start_duration=1:start_threshold=-100dB:detection=peak,aformat=dblp,areverse,silenceremove=start_periods=1:start_duration=1:start_threshold=-100dB:detection=peak,aformat=dblp,areverse\" ";
- if(role == 0)
- {
- encoder_cmd = encoder_cmd + "temp_in_caller.raw" + eout_params + aout_path;
- }
- else
- {
- encoder_cmd = encoder_cmd + "temp_in_callee.raw" + eout_params + aout_path;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement