[asterisk-dev] Not able to play video file in asterisk 1.8.7.1

shalu dhamija shalu.dhamija at rancoretech.com
Sat Dec 24 03:23:12 CST 2011



I have tried with asterisk 10 also and i am facing the same problem. 

Regards, 
Shalu 




----- Original Message ----- 
From: asterisk-dev-request at lists.digium.com 
To: asterisk-dev at lists.digium.com 
Sent: Friday, December 23, 2011 7:29:57 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi 
Subject: asterisk-dev Digest, Vol 89, Issue 93 

Send asterisk-dev mailing list submissions to 
        asterisk-dev at lists.digium.com 

To subscribe or unsubscribe via the World Wide Web, visit 
        http://lists.digium.com/mailman/listinfo/asterisk-dev 
or, via email, send a message with subject or body 'help' to 
        asterisk-dev-request at lists.digium.com 

You can reach the person managing the list at 
        asterisk-dev-owner at lists.digium.com 

When replying, please edit your Subject line so it is more specific 
than "Re: Contents of asterisk-dev digest..." 


Today's Topics: 

   1. 2011 The Year in Review - where were you when... (Dean Collins) 
   2. Not able to play video file in asterisk 1.8.7.1 (shalu dhamija) 
   3. Re: Not able to play video file in asterisk 1.8.7.1 
      (Stefan Schmidt) 
   4. Re: Not able to play video file in asterisk 1.8.7.1 (Timo Ter?s) 
   5. Re: Not able to play video file in asterisk 1.8.7.1 
      (shalu dhamija) 
   6. [Bamboo] Matthew Jordan commented on Asterisk - 10 - Ubuntu 
      Lucid (10.04) 417 (Matthew Jordan) 


---------------------------------------------------------------------- 

Message: 1 
Date: Fri, 23 Dec 2011 02:48:21 -0500 
From: "Dean Collins" <Dean at cognation.net> 
Subject: [asterisk-dev] 2011 The Year in Review - where were you 
        when... 
Message-ID: 
        <3685A8FD247FA94C957C4304AB386A0475988C at cognationsvr1.Cognation.local> 
Content-Type: text/plain; charset="us-ascii" 

In these "interesting times" just a quick email wishing you and your 
family all the very best over the holiday season and looking forward to 
a safer more prosperous 2012. 

  

2011 The Year in Review - where were you when... 
http://fabzing.com/watch?s=msTgSprW 

  

  

Regards, 

Dean Collins 
Cognation Inc 
dean at cognation.net 
<mailto:dean at cognation.net> +1-212-203-4357   New York 
+61-2-9016-5642   (Sydney in-dial). 
+44-20-3129-6001 (London in-dial). 

  

-------------- next part -------------- 
An HTML attachment was scrubbed... 
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20111223/22b4b673/attachment-0001.htm> 

------------------------------ 

Message: 2 
Date: Fri, 23 Dec 2011 18:34:59 +0530 (IST) 
From: shalu dhamija <shalu.dhamija at rancoretech.com> 
Subject: [asterisk-dev] Not able to play video file in asterisk 
        1.8.7.1 
To: asterisk-dev <asterisk-dev at lists.digium.com> 
Message-ID: <9111052.207591324645499251.JavaMail.root at mail01> 
Content-Type: text/plain; charset="utf-8" 



Hello, 



I am trying to play a video file (H.263 format)? using playback() application. 

extensions.conf:? 

exten=> 102,1,Playback(miss)????? ; miss.h263 is a video file and its playing in vlc player. 



sip.conf 

videosupport = yes ; in general section 



[phone2] 
?type=friend 
host=dynamic 
;secret=verysecretpassword2; put a strong, unique password here instead 
context= employees 
;context= phones 
;context= outbound-local 
mailbox=102 at default 
callerid="phone2<102>" 
videosupport=yes 
disallow=all 
allow=ilbc 
allow=g729 
allow=gsm 
allow=g723 
allow=ulaw 
allow=alaw 
allow=adpcm 
allow=h263 
allow=h263p 
allow=h261 



I am getting the following warnings upon making a video call through mercuro client: 



Dec 23 17:17:18] WARNING[976]: file.c:653 ast_openstream_full: File miss does not exist in any format 
[Dec 23 17:17:18] WARNING[976]: file.c:959 ast_streamfile: Unable to open miss (format 0x80004 (ulaw|h263)): No such file or directory 
[Dec 23 17:17:18] WARNING[976]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/phone1-00000000 for miss 



In function ast_openstream_full in file.c 



fmts = fileexists_core(filename, NULL, preflang, buf, buflen); 
??????? 

//the?value of fmts is coming as 524288 which is correct for h263 codec 
? 
???????? if (fmts > 0) 
??????????????? fmts &= AST_FORMAT_AUDIO_MASK;?? //#define AST_FORMAT_AUDIO_MASK 0xFFFF0000FFFFULL defined in frame.h 



//The?fmts becomes zero after 'and' operation with AST_FORMAT_AUDIO_MASK. First 16 bits?are used for handling the audio.?It seems that the video support is supressed. 
??????? if (fmts < 1) { 
??????????????? ast_log(LOG_WARNING, "File %s does not exist in any format\n", filename); 
??????????????? return NULL; 
??????? } 



Please find attached the log messages file. 



Kindly tell me the steps/procedure for the video support in asterisk. 



Thanks in advance. 


Regards, 
Shalu 
-------------- next part -------------- 
An HTML attachment was scrubbed... 
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20111223/dad99660/attachment-0001.htm> 

------------------------------ 

Message: 3 
Date: Fri, 23 Dec 2011 14:12:29 +0100 
From: Stefan Schmidt <sst at sil.at> 
Subject: Re: [asterisk-dev] Not able to play video file in asterisk 
        1.8.7.1 
To: Asterisk Developers Mailing List <asterisk-dev at lists.digium.com> 
Message-ID: <4EF47E3D.60607 at sil.at> 
Content-Type: text/plain; charset=ISO-8859-1 

Am 23.12.11 14:04, schrieb shalu dhamija: 
> 
> 
> Hello, 
> 
> 
> 
> I am trying to play a video file (H.263 format)  using playback() application. 
> 
> extensions.conf:   
> 
> exten=> 102,1,Playback(miss)      ; miss.h263 is a video file and its playing in vlc player. 
... 
> 
> 
> 
> Kindly tell me the steps/procedure for the video support in asterisk. 
> 
> 
> 
> Thanks in advance. 
> 
> 
> Regards, 
> Shalu 

Hello Shalu, 

if possible please try it with asterisk 10. I have tried to enable video 
calls with asterisk 1.8 several times and allways give up cause i had a 
lot of problems but with 10 i was able to build a video conference 
system in 1 hour ;) 

thanks 

best regards 

Stefan 



------------------------------ 

Message: 4 
Date: Fri, 23 Dec 2011 15:13:35 +0200 
From: Timo Ter?s <timo.teras at iki.fi> 
Subject: Re: [asterisk-dev] Not able to play video file in asterisk 
        1.8.7.1 
To: Asterisk Developers Mailing List <asterisk-dev at lists.digium.com> 
Cc: shalu dhamija <shalu.dhamija at rancoretech.com> 
Message-ID: <4EF47E7F.1050904 at iki.fi> 
Content-Type: text/plain; charset=ISO-8859-1 

On 12/23/2011 03:04 PM, shalu dhamija wrote: 
> I am trying to play a video file (H.263 format)  using playback() 
> application. 

You probably need my patch from: 
 https://issues.asterisk.org/jira/browse/ASTERISK-18994 

Though there might be something additional involved too. But there are 
chances that this could fix it all together too. 

Cheers, 
 Timo 





------------------------------ 

Message: 5 
Date: Fri, 23 Dec 2011 18:56:30 +0530 (IST) 
From: shalu dhamija <shalu.dhamija at rancoretech.com> 
Subject: Re: [asterisk-dev] Not able to play video file in asterisk 
        1.8.7.1 
To: Timo Ter?s <timo.teras at iki.fi> 
Cc: Asterisk Developers Mailing List <asterisk-dev at lists.digium.com> 
Message-ID: <10281302.208021324646790341.JavaMail.root at mail01> 
Content-Type: text/plain; charset="utf-8" 



In my case, my code does not reach upto point where seeking on file is performed. 



fs = ast_openstream(chan, filename, preflang); 
??????? if (!fs) { 
??????????????? ast_log(LOG_WARNING, "Unable to open %s (format %s): %s\n", filename, ast_getformatname_multiple(fmt, sizeof(fmt), chan->nativeformats), strerror(errno)); 

//I am getting this warning and the function returns from here 
??????????????? return -1; 
??????? } 



/* check to see if there is any data present (not a zero length file), 
???????? * done this way because there is no where for ast_openstream_full to 
???????? * return the file had no data. */ 
??????? seekattempt = fseek(fs->f, -1, SEEK_END); 









Regards, 

Shalu 






----- Original Message ----- 
From: "Timo Ter?s" <timo.teras at iki.fi> 
To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com> 
Cc: "shalu dhamija" <shalu.dhamija at rancoretech.com> 
Sent: Friday, December 23, 2011 6:43:35 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi 
Subject: Re: [asterisk-dev] Not able to play video file in asterisk 1.8.7.1 

On 12/23/2011 03:04 PM, shalu dhamija wrote: 
> I am trying to play a video file (H.263 format) ?using playback() 
> application. 

You probably need my patch from: 
?https://issues.asterisk.org/jira/browse/ASTERISK-18994 

Though there might be something additional involved too. But there are 
chances that this could fix it all together too. 

Cheers, 
?Timo 


-------------- next part -------------- 
An HTML attachment was scrubbed... 
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20111223/ff5e31fa/attachment-0001.htm> 

------------------------------ 

Message: 6 
Date: Fri, 23 Dec 2011 07:55:37 -0600 (CST) 
From: Matthew Jordan <bamboo at asterisk.org> 
Subject: [asterisk-dev] [Bamboo] Matthew Jordan commented on Asterisk 
        - 10 - Ubuntu Lucid (10.04) 417 
To: asterisk-dev at lists.digium.com 
Message-ID: 
        <784233995.2002.1324648537980.JavaMail.root at bamboo.asterisk.org> 
Content-Type: text/plain; charset="utf-8" 

------------------------------------------------------------------------------- 
AST10-LUCID-417 commented by Matthew Jordan - 23 Dec 2011, 7:55:37 AM 
------------------------------------------------------------------------------- 

Rut roh - this was actually a seg fault that occurred due to an error in ConfBridge.  I'll be backing up these logs and creating an ASTERISK issue from this. 

http://bamboo.asterisk.org/browse/AST10-LUCID-417 


-- 
This message is automatically generated by Atlassian Bamboo 
-------------- next part -------------- 
An HTML attachment was scrubbed... 
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20111223/5d424def/attachment.htm> 

------------------------------ 

_______________________________________________ 
--Bandwidth and Colocation Provided by http://www.api-digital.com-- 

AstriCon 2010 - October 26-28 Washington, DC 
Put in your talk proposal: http://www.bit.ly/speak-astricon2010 

asterisk-dev mailing list 
To UNSUBSCRIBE or update options visit: 
   http://lists.digium.com/mailman/listinfo/asterisk-dev 

End of asterisk-dev Digest, Vol 89, Issue 93 
******************************************** 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20111224/4cfa2bb5/attachment-0001.htm>


More information about the asterisk-dev mailing list