[Freeswitch-users] control the quality of the recorded video

Denis Jakovlev yadenis at seznam.cz
Wed Aug 26 18:30:04 MSD 2015


Hi All,

I have a question. 
Now I record video using mod_av (or mod_vlс). Classical record_session. This works fine. But a heavy load on the server CPU. There are some possibilities to control the quality of the recorded video? For example bit rate, video resolution, etc. Or how i can optimize the performance of friswitch to recording so do not load the CPU?

My dialplan for tests

<extension name="test5">
  <condition field="destination_number" expression="^(6084)$">
    <action application="export" data="nolocal:absolute_codec_string=OPUS,VP8"/>
    <action application="set" data="hangup_after_bridge=true"/>
    <action application="set" data="RECORD_STEREO=true"/>
    <action application="export" data="RECORD_TOGGLE_ON_REPEAT=true"/>
    <action application="export" data="record_concat_video=true"/>
    <action application="answer"/>
    <!-- Shouldn't bind the same file name to both legs,
         if both press *2 it clobbers the file -->
    <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] -->
    <action application="bind_meta_app" data="2 a i record_session::/usr/local/freeswitch/recordings/${strftime(%Y%m%d_%H%M%S)}_${destination_number}_a.mp4"/>
    <action application="bind_meta_app" data="2 b i record_session::/usr/local/freeswitch/recordings/${strftime(%Y%m%d_%H%M%S)}_${destination_number}_b.mp4"/>
    <action application="bridge" data="user/1003${sip_profile}"/>
  </condition>
</extension>

In vars.xml i try to change 
<!-- Video Settings -->
  <!-- Setting the max bandwdith -->
  <X-PRE-PROCESS cmd="set" data="rtp_video_max_bandwidth_in=512kb"/>
  <X-PRE-PROCESS cmd="set" data="rtp_video_max_bandwidth_out=512kb"/>

but it does not help 

Any ideas?

-- 
S pozdravem,
Ing.Denis Jakovlev                           
mob.tel. 775-415-382
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150826/6da597d3/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list