[Freeswitch-users] Record module for video calls

Shaun Stokes shaun.stokes at itec-support.co.uk
Fri Nov 10 11:49:31 UTC 2017


I've just tested video recording in mod_av and it works great but if I do need to unload mod_26x.

Unlike audio recording which combines all channels you have to record each video channel\steam separately (not a problem, just an observation).
uuid_record xxx-xxx-xxx start /tmp/test.mp4

Shaun
________________________________________
From: FreeSWITCH-users [freeswitch-users-bounces at lists.freeswitch.org] on behalf of Shaun Stokes [shaun.stokes at itec-support.co.uk]
Sent: 10 November 2017 08:08
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Record module for video calls

It's just a guess, but if you're using mod_av then do you still need mod_h26x as that only supports pass-through mode. Perhaps mod_h26x is being used for the video therefore preventing mod_av from recording (Operation not permitted), again just a guess.

Does it work if you disable mod_h26x?

Shaun
________________________________________
From: FreeSWITCH-users [freeswitch-users-bounces at lists.freeswitch.org] on behalf of 王聡 [cong.wang.itsherpa at gmail.com]
Sent: 10 November 2017 01:44
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Record module for video calls

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<mailto: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) 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
UNSUBSCRIBE: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
UNSUBSCRIBE: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
UNSUBSCRIBE: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
UNSUBSCRIBE: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
UNSUBSCRIBE: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
UNSUBSCRIBE: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
UNSUBSCRIBE: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<mailto: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


______________________________________________________________________
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.
______________________________________________________________________

______________________________________________________________________
This message has been checked for all known viruses by  MessageLabs Virus Scanning Service.
______________________________________________________________________

_________________________________________________________________________
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

______________________________________________________________________
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.
______________________________________________________________________

______________________________________________________________________
This message has been checked for all known viruses by  MessageLabs Virus Scanning Service.
______________________________________________________________________



More information about the FreeSWITCH-users mailing list