<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Am Samstag, 2. April 2022, 21:54:03 CEST schrieben Sie:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> X-Debbugs-CC: Rainer Dorsch <ml@bokomoko.de></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> On Sat, Apr 02, 2022 at 08:27:19PM +0200, Rainer Dorsch wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > Hmm....I just configured the path for in Settings->User Interface. Can you</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > tell where I can configure the file name?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I just looked at the code and the ".mkv" suffix is hard-coded in the</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Qt version, so currently there is no way to record in WAV despite</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Mediastreamer2 supporting it.  The command line version ("linphonec")</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> still supports it with the "record" command.  I'll add this to the</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> list of things to bring up once I get around to discussing bugs with</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> the upstream developers.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> A work-around can be to record straight from the Pulseaudio monitor of</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> an on-going call (oggenc is part of vorbis-tools):</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>   pacmd list-sink-inputs # the index for Linphone was 58</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>   parec --monitor-stream=58 | oggenc -o /tmp/linphone.ogg --raw -</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> The volume may need to be cranked up quite high.  Working with</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Pulseaudio like this can also get somewhat finicky.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Thanks for the analysis. Do you think it would be sufficient to replace the .mkv with .wav in <span style="background-color:#ffffff;"><span style="font-family:monospace;"><span style="color:#000000;">./linphone-app/src/components/call/CallModel.cpp</span></span></span><br /></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">void CallModel::setRecordFile (const shared_ptr<linphone::CallParams> &callParams) {</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  callParams->setRecordFile(Utils::appStringToCoreString(</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">    CoreManager::getInstance()->getSettingsModel()->getSavedCallsFolder()</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">      .append(generateSavedFilename())</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">      .append(".mkv")     // <=== replace by .wav????</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  ));</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">}</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">void CallModel::setRecordFile (const shared_ptr<linphone::CallParams> &callParams, const QString &to) {</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  const QString from(</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">    QString::fromStdString(</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">      CoreManager::getInstance()->getAccountSettingsModel()->getUsedSipAddress()->getUsername()</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">    )</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  );</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  callParams->setRecordFile(Utils::appStringToCoreString(</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">    CoreManager::getInstance()->getSettingsModel()->getSavedCallsFolder()</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">      .append(generateSavedFilename(from, to))</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">      .append(".mkv")     // <=== replace by .wav????</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  ));</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">}</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">and rebuild the Debian package?</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Thanks</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Rainer</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Rainer Dorsch</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Beatus-Widmann-Str. 5</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">72138 Kirchentellinsfurt</p>
</body>
</html>