Advertisement
Guest User

tgvoipcall_fix

a guest
Oct 28th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1.     //starting from main.cpp line 238
  2.     std::string encoder_cmd = "nohup ffmpeg -y -vn -f s16le -ac 2 -ar 48000 -acodec pcm_s16le -i ";
  3.     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\" ";
  4.    
  5.     if(role == 0)
  6.     {
  7.         encoder_cmd = encoder_cmd + "temp_in_caller.raw" + eout_params + aout_path;
  8.     }
  9.     else
  10.     {
  11.         encoder_cmd = encoder_cmd + "temp_in_callee.raw" + eout_params + aout_path;
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement