[Freeswitch-users] FSV to MP4(or something else) conversion

Michael Jerris mike at jerris.com
Tue Nov 10 01:35:24 MSK 2015


use the "record" application instead

On Monday, November 9, 2015, SamyGo <govoiper at gmail.com> wrote:

> Yes thats what Im trying to see via the wireshark captures.
>
> Goodness, well doing a restart on this demo virtual machine and restarting
> FS seems to get it working. I am using this dialplan.
>
>   <extension name="video_record">
>       <condition field="destination_number" expression="^9193$">
>         <action application="answer"/>
>         <action application="set"
> data="enable_file_write_buffering=false"/>
>         <action application="set"
> data="nolocal:enable_file_write_buffering=false"/>
>         <action application="record_mp4"
> data="$${temp_dir}/testrecord_${uuid}.mp4"/>
>       </condition>
>     </extension>
>
>  So when it starts to this dialplan here are the cli logs:
>
>
>
> EXECUTE sofia/internal/1001 at 192.168.2.244
> <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> set(enable_file_write_buffering=false)
> 2015-11-09 17:00:00.010636 [DEBUG] mod_dptools.c:1498 SET sofia/internal/
> 1001 at 192.168.2.244 <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> [enable_file_write_buffering]=[false]
> EXECUTE sofia/internal/1001 at 192.168.2.244
> <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> set(nolocal:enable_file_write_buffering=false)
> 2015-11-09 17:00:00.010636 [DEBUG] mod_dptools.c:1498 SET sofia/internal/
> 1001 at 192.168.2.244 <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> [nolocal:enable_file_write_buffering]=[false]
> EXECUTE sofia/internal/1001 at 192.168.2.244
> <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> record_mp4(/tmp/testrecord_845ceec5-0462-4ffb-8786-e6e3717c6a41.mp4)
> 2015-11-09 17:00:00.010636 [ERR] mod_mp4v2.c:337 ms: 20000, ts: 1200
> 2015-11-09 17:00:00.010636 [DEBUG] mod_mp4v2.c:377 Audio Codec Activation
> Success
> 2015-11-09 17:00:00.010636 [DEBUG] switch_core_codec.c:221 sofia/internal/
> 1001 at 192.168.2.244 <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> Push codec PCMU:0
> 2015-11-09 17:00:00.010636 [DEBUG] switch_core_media.c:5035 sofia/internal/
> 1001 at 192.168.2.244 <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> Video thread started. Echo is off
> 2015-11-09 17:00:00.086900 [DEBUG] sofia.c:6750 Channel sofia/internal/
> 1001 at 192.168.2.244 <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> entering state [ready][200]
> 2015-11-09 17:00:00.116406 [DEBUG] switch_rtp.c:6598 Correct audio ip/port
> confirmed.
> 2015-11-09 17:00:00.116406 [INFO] mod_mp4v2.c:457 init timer
> 2015-11-09 17:00:00.116406 [ERR] mod_mp4v2.c:462 960 960
> ...Above message repeated 40 times.
> 2015-11-09 17:00:00.536999 [ERR] mod_mp4v2.c:462 960 960
> 2015-11-09 17:00:00.546869 [DEBUG] switch_rtp.c:6598 Correct video ip/port
> confirmed.
> 2015-11-09 17:00:00.546869 [WARNING] mod_mp4v2.c:78 We have no idea about
> the video size without decoding the video or actually parse the SPS, using
> hardcoded 1280x720
>
> for the whole duration of the message it keeps displaying this hundreds of
> lines in one second:
>
> 2015-11-09 17:00:00.556695 [ERR] mod_mp4v2.c:462 960 960
> 2015-11-09 17:00:00.856407 [ERR] mod_mp4v2.c:462 960 960
> 2015-11-09 17:00:05.016710 [ERR] mod_mp4v2.c:462 960 960
> 2015-11-09 17:00:05.036475 [ERR] mod_mp4v2.c:462 960 960
> 2015-11-09 17:00:05.056776 [NOTICE] sofia.c:952 Hangup sofia/internal/
> 1001 at 192.168.2.244 <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> [CS_EXECUTE] [NORMAL_CLEARING]
> 2015-11-09 17:00:05.056776 [ERR] mod_mp4v2.c:462 960 960
> 2015-11-09 17:00:05.056776 [WARNING] mod_mp4v2.c:481 waiting video thread
> to be done ...
> 2015-11-09 17:00:05.056776 [DEBUG] switch_core_media.c:5159 sofia/internal/
> 1001 at 192.168.2.244 <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> Video thread ended
> 2015-11-09 17:00:05.156425 [DEBUG] switch_core_codec.c:246 sofia/internal/
> 1001 at 192.168.2.244 <javascript:_e(%7B%7D,'cvml','1001 at 192.168.2.244');>
> Restore previous codec opus:116.
> 2015-11-09 17:00:05.156425 [NOTICE] mod_mp4v2.c:497 closing file
> /tmp/testrecord_845ceec5-0462-4ffb-8786-e6e3717c6a41.mp4
>
>
> So, I'm thinking its all expected and normal !!
>
> Thanks,
> Sammy
>
>
>
> On Mon, Nov 9, 2015 at 1:47 PM, Michael Jerris <mike at jerris.com
> <javascript:_e(%7B%7D,'cvml','mike at jerris.com');>> wrote:
>
>> maybe there is no video in it, check the freeswitch log when you record
>> it.
>>
>> On Nov 9, 2015, at 4:25 PM, SamyGo <govoiper at gmail.com
>> <javascript:_e(%7B%7D,'cvml','govoiper at gmail.com');>> wrote:
>>
>> Quicktime is the only player that tells me something - Windows Media
>> player as name suggests didn't help. VLC plays the file with black screen
>> and just audio. One thing that I did notice is that the Video file (mp4) is
>> only 1.5 MB in size. Is it pretty small for a 33 second of video ?
>>
>> <image.png>
>>
>> Thanks for your help and time.
>>
>>
>> Regards,
>> Sammy
>>
>>
>> On Mon, Nov 9, 2015 at 1:16 PM, Michael Jerris <mike at jerris.com
>> <javascript:_e(%7B%7D,'cvml','mike at jerris.com');>> wrote:
>>
>>> Those were the key things I was thinking, not sure other than that.
>>> Maybe the player app will tell you more about why its not playing?
>>>
>>> On Nov 9, 2015, at 4:08 PM, SamyGo <govoiper at gmail.com
>>> <javascript:_e(%7B%7D,'cvml','govoiper at gmail.com');>> wrote:
>>>
>>> Thanks Michael for assuring - I just rechecked and here is the OS info.
>>>
>>> Distributor ID: Debian
>>> Description:    Debian GNU/Linux 8.2 (jessie)
>>> Release:        8.2
>>> Codename:       jessie
>>>
>>> and I did follow the whole tutorial on video and I also did a regular
>>> latest master branch installation as well from sources.I can't say I did a
>>> perfect setup and I'm pretty sure that self signed signatures for WSS don't
>>> plat a role for this since I can't login from verto default login page and
>>> give me those standard "connection closed" error. Don't think its related.
>>>
>>> Regards,
>>> Sammy
>>>
>>>
>>> On Mon, Nov 9, 2015 at 12:57 PM, Michael Jerris <mike at jerris.com
>>> <javascript:_e(%7B%7D,'cvml','mike at jerris.com');>> wrote:
>>>
>>>> You for sure want to be using mp4, not fsv.  That being said I have not
>>>> seen a problem playing those, can you confirm your using Debian 8 with our
>>>> repo for dependencies?  If not, I suspect a dep issue is the problem.
>>>>
>>>> > On Nov 9, 2015, at 2:24 PM, SamyGo <govoiper at gmail.com
>>>> <javascript:_e(%7B%7D,'cvml','govoiper at gmail.com');>> wrote:
>>>> >
>>>> > Hi,
>>>> >
>>>> > I'm running the FS 1.6 for video calls, the calls works perfectly
>>>> fine - thanks for the hardwork, really appreciate it.
>>>> >
>>>> > I'm able to record the video messages and retrieve them from my
>>>> IP-Phone/Softphone. However I need to convert the recorded file from FS
>>>> video format to MP4 or some other codecs, so they video message can be
>>>> playable through web services or any media player.
>>>> >
>>>> > I'm also able to record a video conference/call in MP4 format but
>>>> when I play it in VLC or any other media player it doesn't display any
>>>> video just audio (at max).
>>>> >
>>>> > Any directions or help on how to play the (fsv|mp4) files on
>>>> different applications.
>>>> >
>>>> > Regards,
>>>> > Sammy
>>>>
>>>>
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> <javascript:_e(%7B%7D,'cvml','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
>> <javascript:_e(%7B%7D,'cvml','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/20151109/bf507ada/attachment.html 


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