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

shalu dhamija shalu.dhamija at rancoretech.com
Fri Dec 23 07:04:59 CST 2011



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.htm>


More information about the asterisk-dev mailing list