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

Denis Jakovlev yadenis at seznam.cz
Thu Aug 27 16:16:31 MSD 2015


Dobrý den,

Data rate 1311kbps,
Total bitrate 1442kbps, 
Frame Rate 28 frames/second

Frame width = 1280 
Frame height = 480

-- 
S pozdravem,
Ing.Denis Jakovlev                           
mob.tel. 775-415-382

čtvrtek 27. srpna 2015, 13:26:26, napsal jste:


What bitrate of recorded video? Or what length and its weight(megabytes) ?​

2015-08-26 19:30 GMT+05:00 Denis Jakovlev <yadenis at seznam.cz>:
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


_________________________________________________________________________
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



-- 

Arthur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150827/e6caacd2/attachment.html 


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