[Freeswitch-users] Recording in flac format ?
julien terrasson
julien.terrasson at gmail.com
Tue Jul 1 14:40:00 MSD 2014
Hi Brian,
I'm still interested in recording in flac format but i'm not very familiar
with mod_sndfile.c (and not familiar with c programming either).
To get started, i tried to introduce the flac extension the same way oga
extension was introduced :
} else if (!strcmp(ext, "oga")) {
context->sfinfo.format = SF_FORMAT_OGG | SF_FORMAT_VORBIS;
context->sfinfo.samplerate = handle->samplerate;
} else if (!strcmp(ext, "flac")) {
context->sfinfo.format = SF_FORMAT_FLAC | SF_FORMAT_PCM_16;
context->sfinfo.samplerate = handle->samplerate;
}
And i also added the extension in the list :
char *extras[] = { "r8", "r16", "r24", "r32", "gsm", "ul", "ulaw", "al",
"alaw", "adpcm", "vox","flac", NULL };
then make & make install.
But my first attempt was not really successfull :
2014-07-01 11:47:36.670463 [ERR] mod_sndfile.c:205 Error Opening File
[/var/callid:84/record0.flac] [File contains data in an unimplemented
format.]
Does anybody have docs/guidelines on how to use libsndfile ?
Regards,
J.terrasson
..Adding formats would need you to modify mod_sndfile to enable them.
---
Brian West
From: julien terrasson <julien.terrasson at gmail.com>
To: freeswitch-users at lists.freeswitch.org
Cc:
Date: Wed, 18 Jun 2014 14:58:22 +0200
Subject: [Freeswitch-users] Fwd: Recording in flac format ?
Hi,
I'm using freeswitch version 1.4.5
I would like to record a session in .flac format.
I assume this could be somehow possible since FS rely on
libsndfile-1.0.26pre5 and libsndfile claims flac support since v1.0.18.
I tried to compiled FS with instruction from description of
https://jira.freeswitch.org/browse/FS-1197 :
Apt-get install libflac-dev and "./configure --enable-flac"..
However that didn't help, flac extension is still not usable on FS
recording app.
Does anyone have an idea how to have flac format enabled ?
Regards,
J.Terrasson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140701/1b71aa16/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list