[Freeswitch-users] Video playback in 1.7

Michael Jerris mike at jerris.com
Wed Jul 1 04:54:53 MSD 2015


That error happens when avresample_open call fails.  This is going to be some sort of issue with how libav was built as this is known working.

> On Jun 30, 2015, at 7:51 PM, Stanislav Sinyagin <ssinyagin at gmail.com> wrote:
> 
> I made a few more tests: the original file has AAC audio, and avconv needs "-strict experimental" option to process that. Probably that's why FreeSWITCH crashes. After I converted the video to 320x240 and MP3 audio, I get a different error: 
> 
> 2015-07-01 01:46:22.701171 [ERR] avformat.c:1136 Failed to initialize the resampling context
> 
> same error if I need to produce 48kHz OPUS or 8kHZ G711.
> 
> VLC plays back both the original and converted videos so far.
> 
> I'll play around with it during the week.
> 
> 
> 
> 
> On Tue, Jun 30, 2015 at 8:45 PM, Anthony Minessale <anthony.minessale at gmail.com <mailto:anthony.minessale at gmail.com>> wrote:
> Depending on what ext you have and the proper build of mod_av I can't comment.
> 
> I can confirm with the properly installed debian packages for jessie that at least mp4 files work either by reference to .mp4 files or by using av:///path/to/file.mp4
> 
> 
> 
> On Tue, Jun 30, 2015 at 12:46 PM, Stanislav Sinyagin <ssinyagin at gmail.com <mailto:ssinyagin at gmail.com>> wrote:
> av:///tmp/somefile.ext crashed the daemon, I didn't yet find the time to analyze it and file a jira.
> 
> On Jun 30, 2015 7:43 PM, "Anthony Minessale" <anthony.minessale at gmail.com <mailto:anthony.minessale at gmail.com>> wrote:
> mod_av is not an endpoint its a codec and file format module.
> 
> 2015-06-30 12:40:40.248642 [NOTICE] switch_loadable_module.c:213 Adding Codec H264 99 H264 Video 90000hz 0ms (VBR)
> 
> 2015-06-30 12:40:40.248642 [NOTICE] switch_loadable_module.c:292 Adding Application 'record_av'
> 
> 2015-06-30 12:40:40.248642 [NOTICE] switch_loadable_module.c:338 Adding API Function 'av_format'
> 
> 2015-06-30 12:40:40.248642 [NOTICE] switch_loadable_module.c:338 Adding API Function 'av_codec'
> 
> 2015-06-30 12:40:40.248642 [NOTICE] switch_loadable_module.c:390 Adding File Format 'av'
> 
> 2015-06-30 12:40:40.248642 [NOTICE] switch_loadable_module.c:390 Adding File Format 'rtmp'
> 
> 2015-06-30 12:40:40.248642 [NOTICE] switch_loadable_module.c:390 Adding File Format 'mp4'
> 
> 2015-06-30 12:40:40.248642 [NOTICE] switch_loadable_module.c:390 Adding File Format 'mov'
> 
> 
> 
> It was av:// not avformat:// i was remembering the old version.
> 
> 
> 
> if av:///tmp/somefile.ext works then it can be added to mod_avformat_load function in avformat.c:1949 ish  to register the extension for convenience.
> 
>  
> 
> 
> 
> On Tue, Jun 30, 2015 at 2:07 AM, Stanislav Sinyagin <ssinyagin at gmail.com <mailto:ssinyagin at gmail.com>> wrote:
> mod_av doesn't seem to be registering an endpoint, so prefixing avformat:// or av:// does not help. I'll have a closer look later and probably open a Jira
> 
> On Tue, Jun 30, 2015 at 1:18 AM, Anthony Minessale <anthony.minessale at gmail.com <mailto:anthony.minessale at gmail.com>> wrote:
> Webm has its own module.  Av and vlc both have broken webm at the time of coding.
> 
> 
> mod_vlc can play other formats but they are not registered in the module by file exten however you can use vlc:// syntax.
> 
> mp4 is the safest bet because it works in mod_av which is more stable than vlc.  More formats can be added to mod_av as well but I don't remember if its as easy as avformat://<path>
> 
> We don't have any choosing best format etc.  It's not going to be a point of focus to squeeze performance out of stuff like that in this stage of development.
> 
> On Monday, June 29, 2015, Stanislav Sinyagin <ssinyagin at gmail.com <mailto:ssinyagin at gmail.com>> wrote:
> by the way, is there a way for playback to select a best matching
> encoding, like it does with audio sample rates?
> 
> On Tue, Jun 30, 2015 at 12:56 AM, Giovanni Maruzzelli <gmaruzz at gmail.com <>> wrote:
> > h264 I believe is supported...
> >
> > On Tue, Jun 30, 2015 at 12:48 AM, Stanislav Sinyagin <ssinyagin at gmail.com <>>
> > wrote:
> >>
> >> the newest 1.7 freeswitch successfully played an .mp4 file with
> >> "playback" application, and the picture was sent to an VP8 client
> >> (linphone on Android).
> >>
> >> The playback took about 20% CPU usage on a Xeon core -- probably
> >> because of resising work. The source file was taken from
> >> http://www.quirksmode.org/html5/tests/video.html <http://www.quirksmode.org/html5/tests/video.html>
> >>
> >>
> >> Question: what other file formats are supported?
> >>
> >> I tried .ogv and .webm, but I got "Invalid file format" error.
> >>
> >> thanks
> >>
> >> _________________________________________________________________________
> >> Professional FreeSWITCH Consulting Services:
> >> 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 <>
> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> >> http://www.freeswitch.org <http://www.freeswitch.org/>
> >
> >
> >
> >
> > --
> > Sincerely,
> >
> > Giovanni Maruzzelli
> > Cell : +39-347-2665618 <tel:%2B39-347-2665618>
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > 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 <>
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> > http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> 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 <>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> 
> -- 
> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
> 
>http://freeswitch.org/ <http://freeswitch.org/>  ☞ http://cluecon.com/ <http://cluecon.com/>  ☞ http://twitter.com/FreeSWITCH <http://twitter.com/FreeSWITCH>
> ☞ irc.freenode.net <http://irc.freenode.net/> #freeswitch ☞ http://freeswitch.org/g+ <http://freeswitch.org/g+>
> 
> ClueCon Weekly Development Call 
> ☎ sip:888 at conference.freeswitch.org <mailto:sip%3A888 at conference.freeswitch.org>  ☎ +19193869900 <tel:%2B19193869900> 
> 
> https://www.youtube.com/watch?v=9XXgW34t40s <https://www.youtube.com/watch?v=9XXgW34t40s>
> https://www.youtube.com/watch?v=NLaDpGQuZDA <https://www.youtube.com/watch?v=NLaDpGQuZDA>
> 
> 
> _________________________________________________________________________
> 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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> 
> 
> -- 
> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
> 
>http://freeswitch.org/ <http://freeswitch.org/>  ☞ http://cluecon.com/ <http://cluecon.com/>  ☞ http://twitter.com/FreeSWITCH <http://twitter.com/FreeSWITCH>
> ☞ irc.freenode.net <http://irc.freenode.net/> #freeswitch ☞ http://freeswitch.org/g+ <http://freeswitch.org/g+>
> 
> ClueCon Weekly Development Call 
> ☎ sip:888 at conference.freeswitch.org <mailto:sip%3A888 at conference.freeswitch.org>  ☎ +19193869900 <tel:%2B19193869900> 
> 
> https://www.youtube.com/watch?v=9XXgW34t40s <https://www.youtube.com/watch?v=9XXgW34t40s>
> https://www.youtube.com/watch?v=NLaDpGQuZDA <https://www.youtube.com/watch?v=NLaDpGQuZDA>
> 
> _________________________________________________________________________
> 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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> 
> 
> -- 
> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
> 
>http://freeswitch.org/ <http://freeswitch.org/>  ☞ http://cluecon.com/ <http://cluecon.com/>  ☞ http://twitter.com/FreeSWITCH <http://twitter.com/FreeSWITCH>
> ☞ irc.freenode.net <http://irc.freenode.net/> #freeswitch ☞ http://freeswitch.org/g+ <http://freeswitch.org/g+>
> 
> ClueCon Weekly Development Call 
> ☎ sip:888 at conference.freeswitch.org <mailto:sip%3A888 at conference.freeswitch.org>  ☎ +19193869900 <tel:%2B19193869900> 
> 
> https://www.youtube.com/watch?v=9XXgW34t40s <https://www.youtube.com/watch?v=9XXgW34t40s>
> https://www.youtube.com/watch?v=NLaDpGQuZDA <https://www.youtube.com/watch?v=NLaDpGQuZDA>
> 
> _________________________________________________________________________
> 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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150630/d8254762/attachment-0001.html 


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