[Freeswitch-users] Record module for video calls
王聡
cong.wang.itsherpa at gmail.com
Fri Nov 10 01:44:58 UTC 2017
Hey all,
Thanks for your advice, I had checked the PRMs and installed libavcodec-extra, and new codecs had added into mod_av, but it still not works.
Now mod_av shows error during recordings:
2017-11-10 10:39:08.255864 [ERR] avformat.c:614 Could not open video codec: Operation not permitted
2017-11-10 10:39:08.255864 [ERR] avformat.c:2505 Error adding video stream
Codec lists:
type,name,ikey
codec,ADPCM (IMA),mod_spandsp
codec,AMR / Bandwidth Efficient,mod_amr
codec,AMR / Octet Aligned,mod_amr
codec,B64 (STANDARD),mod_b64
codec,G.711 alaw,CORE_PCM_MODULE
codec,G.711 ulaw,CORE_PCM_MODULE
codec,G.722,mod_spandsp
codec,G.726 16k,mod_spandsp
codec,G.726 16k (AAL2),mod_spandsp
codec,G.726 24k,mod_spandsp
codec,G.726 24k (AAL2),mod_spandsp
codec,G.726 32k,mod_spandsp
codec,G.726 32k (AAL2),mod_spandsp
codec,G.726 40k,mod_spandsp
codec,G.726 40k (AAL2),mod_spandsp
codec,GSM,mod_spandsp
codec,H.261 Video (passthru),mod_h26x
codec,H.263 Video (passthru),mod_h26x
codec,H.263+ Video (passthru),mod_h26x
codec,H.263++ Video (passthru),mod_h26x
codec,H.264 Video (passthru),mod_h26x
codec,H263 Video,mod_av
codec,H263+ Video,mod_av
codec,H264 Video,mod_av
codec,LPC-10,mod_spandsp
codec,OPUS (STANDARD),mod_opus
codec,PROXY PASS-THROUGH,CORE_PCM_MODULE
codec,PROXY VIDEO PASS-THROUGH,CORE_PCM_MODULE
codec,RAW Signed Linear (16 bit),CORE_PCM_MODULE
codec,Speex,CORE_SPEEX_MODULE
codec,VP8 Video,CORE_VPX_MODULE
codec,VP9 Video,CORE_VPX_MODULE
32 total.
I had tried to unload mod_h26x but nothing changed. Is there any advices?
Regards.
PS. I’ll be appreciate if anyone could send me the documentation about mod_av.
> 2017/11/10 2:45、Giovanni Maruzzelli <gmaruzz at gmail.com>のメール:
>
> libavcodec-extra (if you copy and paste)
>
>
>
> On 9 November 2017 at 16:34, Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>> wrote:
> as i said, don’t use mod_vlc, or mod_mp4v2, load mod_av only. If using debian, make sure you have non free debian repos and install the libavcodecs-extras package.
>
>> On Nov 9, 2017, at 7:30 AM, 王聡 <cong.wang.itsherpa at gmail.com <mailto:cong.wang.itsherpa at gmail.com>> wrote:
>>
>> Hey all,
>>
>> I had tried mod_vlc and mod_av for the recordings, however when I set the record on, no video showed on both caller and callee. Once I turned off the record, the video returns. Both fs_cli and client had no error appeared. Anyone had any idea?
>>
>> Server : Freeswitch 1.9.0 (master)
>> Client : Linphone Android
>>
>> EXECUTE sofia/external/1001 at 192.168.109.2 <mailto:sofia/external/1001 at 192.168.109.2> record_session(/tmp/test.mp4)
>> 2017-11-09 21:25:37.530640 [DEBUG] avformat.c:1602 sample rate: 48000, channels: 1
>> 2017-11-09 21:25:37.620755 [DEBUG] avformat.c:1745 use video codec: [28] h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
>> 2017-11-09 21:25:37.640746 [WARNING] avformat.c:641 Codec [aac] is experimental feature in libavcodec, never mind
>> 2017-11-09 21:25:37.640746 [NOTICE] avformat.c:670 sample_rate: 44100 nb_samples: 1024
>> 2017-11-09 21:25:37.640746 [NOTICE] avformat.c:673 sample_fmt 8 != AV_SAMPLE_FMT_S16, start resampler
>> Output #0, mp4, to '/tmp/test.mp4':
>> Stream #0.0
>> : Audio: aac, 44100 Hz, mono, fltp, 131 kb/s
>> 2017-11-09 21:25:37.640746 [INFO] avformat.c:1805 Opening File [/tmp/test.mp4] 44100hz
>> 2017-11-09 21:25:37.640746 [DEBUG] switch_core_file.c:358 File /tmp/test.mp4 sample rate 44100 doesn't match requested rate 48000
>>
>> Regards.
>>
>>> 2017/11/09 15:11、Freeswitch user <freeswitch940 at gmail.com <mailto:freeswitch940 at gmail.com>>のメール:
>>>
>>> First install the mp4v2-2.0.0 package then configure freeswitch again .
>>>
>>> On Thu, 9 Nov 2017 at 10:36 AM, 王聡 <cong.wang.itsherpa at gmail.com <mailto:cong.wang.itsherpa at gmail.com>> wrote:
>>> Thanks for your advices.
>>>
>>> I had not found the instructions for mod_av, so I tried mp4v2, but got an error.
>>>
>>> making all mod_mp4v2
>>> make[4]: Entering directory '/usr/src/freeswitch/src/mod/applications/mod_mp4v2'
>>> CC mod_mp4v2_la-mod_mp4v2.lo
>>> mod_mp4v2.c:37:25: fatal error: mp4v2/mp4v2.h: No such file or directory
>>> #include <mp4v2/mp4v2.h>
>>> ^
>>> compilation terminated.
>>> Makefile:657: recipe for target 'mod_mp4v2_la-mod_mp4v2.lo' failed
>>> make[4]: *** [mod_mp4v2_la-mod_mp4v2.lo] Error 1
>>> make[4]: Leaving directory '/usr/src/freeswitch/src/mod/applications/mod_mp4v2'
>>> Makefile:653: recipe for target 'mod_mp4v2-all' failed
>>> make[3]: *** [mod_mp4v2-all] Error 1
>>> make[3]: Leaving directory '/usr/src/freeswitch/src/mod'
>>> Makefile:563: recipe for target 'all-recursive' failed
>>> make[2]: *** [all-recursive] Error 1
>>> make[2]: Leaving directory '/usr/src/freeswitch/src'
>>> Makefile:3132: recipe for target 'all-recursive' failed
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory '/usr/src/freeswitch'
>>> Makefile:1402: recipe for target 'all' failed
>>> make: *** [all] Error 2
>>>
>>> It seems that I had missed some files?
>>>
>>>> 2017/11/09 12:31、Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>>のメール:
>>>
>>>>
>>>> use mod_av.
>>>>
>>>> On Wed, Nov 8, 2017 at 9:57 PM Freeswitch user <freeswitch940 at gmail.com <mailto:freeswitch940 at gmail.com>> wrote:
>>>> Use mod_mp4v2.
>>>>
>>>> On Thu, 9 Nov 2017 at 7:06 AM, 王聡 <cong.wang.itsherpa at gmail.com <mailto:cong.wang.itsherpa at gmail.com>> wrote:
>>>> Hi All,
>>>>
>>>> Recently I need to record all contents for video calls on my FS server to make sure no illegal contents, and I found mod_vlc (https://wiki.freeswitch.org/wiki/Mod_vlc <https://wiki.freeswitch.org/wiki/Mod_vlc>) which might helps. However, I got some troubles during my build, it shows no dependencies for this mod.
>>>>
>>>> making all mod_vlc
>>>> make[4]: Entering directory '/usr/src/freeswitch/src/mod/formats/mod_vlc'
>>>> Makefile:892: *** You must install libvlc-dev to build mod_vlc.
>>>> make[4]: Leaving directory '/usr/src/freeswitch/src/mod/formats/mod_vlc'
>>>> Makefile:653: recipe for target 'mod_vlc-all' failed
>>>> make[3]: *** [mod_vlc-all] Error 1
>>>> make[3]: Leaving directory '/usr/src/freeswitch/src/mod'
>>>> Makefile:563: recipe for target 'all-recursive' failed
>>>> make[2]: *** [all-recursive] Error 1
>>>> make[2]: Leaving directory '/usr/src/freeswitch/src'
>>>> Makefile:3132: recipe for target 'all-recursive' failed
>>>> make[1]: *** [all-recursive] Error 1
>>>> make[1]: Leaving directory '/usr/src/freeswitch'
>>>> Makefile:1402: recipe for target 'all' failed
>>>> make: *** [all] Error 2
>>>>
>>>> I had already installed the libvlc-dev but it still can’t built correctly.
>>>>
>>>> Is there any idea? Or any other way for video call recordings?
>>>>
>>>> Regards.
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>>>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>>>> http://www.cluecon.com <http://www.cluecon.com/>
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>>> http://www.freeswitch.org <http://www.freeswitch.org/>_________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>>>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>>>> http://www.cluecon.com <http://www.cluecon.com/>
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>>> http://www.freeswitch.org <http://www.freeswitch.org/>_________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>>>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>>>> http://www.cluecon.com <http://www.cluecon.com/>
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>>> http://www.freeswitch.org <http://www.freeswitch.org/>_________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>>> http://www.cluecon.com <http://www.cluecon.com/>
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>> http://www.freeswitch.org <http://www.freeswitch.org/>_________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>>> http://www.cluecon.com <http://www.cluecon.com/>
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org <http://www.freeswitch.org/>
>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>> http://www.cluecon.com <http://www.cluecon.com/>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>> http://www.freeswitch.org <http://www.freeswitch.org/>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org <http://www.freeswitch.org/>
> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
> http://www.cluecon.com <http://www.cluecon.com/>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
>
>
>
> --
>
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20171110/bc5e3490/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list