[Freeswitch-users] conference play video

Danny Gershman danny.gershman at gmail.com
Fri Jun 24 01:09:58 MSD 2016


Take this lua script for instance for testing this out.

-- getting arguments
local confName = argv[1];
local url = argv[2];

-- initialize the API
api = freeswitch.API();

-- download the slide
local cachedPath = api:executeString("http_get " .. url);

-- display the cached path
freeswitch.consoleLog("info", "cached path: " .. cachedPath);

-- display the cached file
api:executeString("conference " .. confName .. " play " .. cachedPath);

On Thu, Jun 23, 2016 at 5:08 PM Danny Gershman <danny.gershman at gmail.com>
wrote:

> I also noticed some weirdness when combining this with mod_http_cache.
>
> On Thu, Jun 23, 2016 at 5:05 PM Anthony Minessale <
> anthony.minessale at gmail.com> wrote:
>
>> https://freeswitch.org/jira/browse/FS-9296
>>
>> Update to master and it should work now.
>>
>>
>> On Thu, Jun 23, 2016 at 3:12 PM, Danny Gershman <danny.gershman at gmail.com
>> > wrote:
>>
>>> I am able to see the same on my side, video file is playing now.  Thanks.
>>>
>>> On Thu, Jun 23, 2016 at 4:07 PM Anthony Minessale <
>>> anthony.minessale at gmail.com> wrote:
>>>
>>>> Those details are relevant.
>>>>
>>>> I tried it and i see the same problem but only when using the http url.
>>>> If I wget the file then it place so we may have a small bug with
>>>> playing mp4 using htttapi.  I have never tried this before.
>>>>
>>>>
>>>> On Thu, Jun 23, 2016 at 2:01 PM, Danny Gershman <
>>>> danny.gershman at gmail.com> wrote:
>>>>
>>>>> I got this working on a video recorded by FS, but apparently this
>>>>> particular video I was testing with didn't work too well.  Is there a
>>>>> limitation on the videos that can be played back?  Some setting in the
>>>>> conference.conf.xml?
>>>>>
>>>>> On Thu, Jun 23, 2016 at 1:59 PM Danny Gershman <
>>>>> danny.gershman at gmail.com> wrote:
>>>>>
>>>>>> Here is the output of the command I'm executing:
>>>>>>
>>>>>> freeswitch at freeswitch>conference ~video2~conf_123 play
>>>>>> http://download.openbricks.org/sample/H264/h264_sintel_trailer-1080p.mp4
>>>>>> (play) Playing file
>>>>>> http://download.openbricks.org/sample/H264/h264_sintel_trailer-1080p.mp4
>>>>>> 2016-06-23 04:37:23.278786 [DEBUG] avformat.c:1694 sample rate:
>>>>>> 48000, channels: 2
>>>>>> 2016-06-23 04:37:23.450105 [INFO] avformat.c:1303 file
>>>>>> /usr/local/freeswitch/storage/http_file_cache/43772c747785c73f5beb03cc76d617de.mp4
>>>>>> is seekable
>>>>>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
>>>>>> '/usr/local/freeswitch/storage/http_file_cache/43772c747785c73f5beb03cc76d617de.mp4':
>>>>>>   Metadata:
>>>>>>     major_brand     : isom
>>>>>>     minor_version   : 512
>>>>>>     compatible_brands: isomiso2avc1mp41
>>>>>>     creation_time   : 1970-01-01 00:00:00
>>>>>>     title           : Sintel Trailer
>>>>>>     artist          : Durian Open Movie Team
>>>>>>     encoder         : Lavf52.62.0
>>>>>>     copyright       : (c) copyright Blender Foundation |
>>>>>> durian.blender.org
>>>>>>     description     : Trailer for the Sintel open movie project
>>>>>>   Duration:
>>>>>> 00:00:52.20
>>>>>> , start:
>>>>>> 0.000000
>>>>>> , bitrate:
>>>>>> 2240 kb/s
>>>>>>     Stream #0.0
>>>>>> (und)
>>>>>> : Video: h264 (High), yuv420p, 1920x1080, 2108 kb/s
>>>>>> , 24 fps
>>>>>> , 24 tbn
>>>>>> , 48 tbc
>>>>>>  (default)
>>>>>>     Metadata:
>>>>>>       creation_time   : 1970-01-01 00:00:00
>>>>>>     Stream #0.1
>>>>>> (und)
>>>>>> : Audio: aac, 48000 Hz, stereo, fltp, 126 kb/s
>>>>>>  (default)
>>>>>>     Metadata:
>>>>>> freeswitch at freeswitch>
>>>>>>       creation_time   : 1970-01-01 00:00:00
>>>>>>
>>>>>> On Thu, Jun 23, 2016 at 1:55 PM Danny Gershman <
>>>>>> danny.gershman at gmail.com> wrote:
>>>>>>
>>>>>>> Other features of mod_av are working fine.  For example, I am to
>>>>>>> record to an rtmp endpoint and see video.  Video codecs are negotiating
>>>>>>> properly.
>>>>>>>
>>>>>>> On Thu, Jun 23, 2016 at 1:54 PM Michael Jerris <mike at jerris.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I would confirm for sure thats installed, then look at the debug
>>>>>>>> and confirm its actually negotiating a video codec.  Its really hard to
>>>>>>>> make guesses with no information to go on so we are just making wild
>>>>>>>> guesses here.
>>>>>>>>
>>>>>>>> On Jun 23, 2016, at 1:43 PM, Danny Gershman <
>>>>>>>> danny.gershman at gmail.com> wrote:
>>>>>>>>
>>>>>>>> Already have it there, FS was compiled with it.
>>>>>>>>
>>>>>>>> On Thu, Jun 23, 2016 at 1:29 PM Anthony Minessale <
>>>>>>>> anthony.minessale at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Like mike said, make sure you have main contrib non-free for you
>>>>>>>>> repos and
>>>>>>>>>
>>>>>>>>> libavcodec-extra
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Jun 23, 2016 at 12:12 PM, Danny Gershman <
>>>>>>>>> danny.gershman at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> I'm trying on 1.6.9 and I'm still not getting results.  Is there
>>>>>>>>>> some specific condition in which this will work.  If I have muxing turned
>>>>>>>>>> on, how does that display back to a softphone?  Should this be played in a
>>>>>>>>>> specific channel?  Is playing a video file to all users in a conference,
>>>>>>>>>> what would the expected response be?
>>>>>>>>>>
>>>>>>>>>> On Thu, Jun 16, 2016 at 8:08 PM Michael Jerris <mike at jerris.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Try 1.6.9 as thats now released, if thats not working, take a
>>>>>>>>>>> look at the debug logs and see what it says.  One common issue is playing
>>>>>>>>>>> mp4 files requires the libav-extras package on debian.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Jun 16, 2016, at 6:54 PM, Danny Gershman <
>>>>>>>>>>> danny.gershman at gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> I'm having an issue playing back video in a conference, running
>>>>>>>>>>> (1.6.8 tag and loaded up mod_av), which it only plays audio back (no
>>>>>>>>>>> visual).  I'm dialed in using a softphone with VP8 codec.
>>>>>>>>>>>
>>>>>>>>>>> I run command:
>>>>>>>>>>>
>>>>>>>>>>> conference <conf> play http://example.org/play.mp4
>>>>>>>>>>>
>>>>>>>>>>> Any pointers.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Danny Gershman
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>> _________________________________________________________________________
>>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> 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
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>>>
>>>>http://freeswitch.org/http://cluecon.com/>>>> http://twitter.com/FreeSWITCH
>>>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>>>> <http://freeswitch.org/g+>*
>>>>
>>>> ClueCon Weekly Development Call
>>>> ☎ sip:888 at conference.freeswitch.org  ☎ +19193869900
>>>>
>>>> https://www.youtube.com/watch?v=9XXgW34t40s
>>>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>>>>
>>>> _________________________________________________________________________
>>>> 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
>>>
>>>
>>> _________________________________________________________________________
>>> 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
>>>
>>
>>
>>
>> --
>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>
>>http://freeswitch.org/http://cluecon.com/>> http://twitter.com/FreeSWITCH
>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>> <http://freeswitch.org/g+>*
>>
>> ClueCon Weekly Development Call
>> ☎ sip:888 at conference.freeswitch.org  ☎ +19193869900
>>
>> https://www.youtube.com/watch?v=9XXgW34t40s
>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>> _________________________________________________________________________
>> 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/20160623/2fe353de/attachment-0001.html 


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