[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:57:10 CST 2011



Yes i tried playing the .h263 file which only a video file. On google, for h263 , i find  video only files. 



We are using ffmpeg converter for converting the file to various formats. There is an option of adding the audio to video only file  but it does not generate .h263 file.  Only .avi files are generated for this kind of functionality but asterisk does not support .avi format. 



Please suggest what are the pre-requisites/steps/examples to play the video file using asterisk as I am badly struck here. 



I have tried playing the video file using asterisk 10 also but no success. 




Regards, 
Shalu Dhamija 

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

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. [Bamboo] Matthew Jordan commented on Asterisk - 10 - Ubuntu 
      Lucid (10.04) 417 (Matthew Jordan) 
   2. Re: [Code Review] [patch] Improve debug of ast_hangup (schmidts) 
   3. Re: Not able to play video file in asterisk 1.8.7.1 
      (Tilghman Lesher) 


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

Message: 1 
Date: Fri, 23 Dec 2011 08:08:27 -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: 
        <851522200.2004.1324649307053.JavaMail.root at bamboo.asterisk.org> 
Content-Type: text/plain; charset="utf-8" 

------------------------------------------------------------------------------- 
AST10-LUCID-417 commented by Matthew Jordan - 23 Dec 2011, 8:08:26 AM 
------------------------------------------------------------------------------- 

Created ASTERISK-19100 to track this failure 

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

------------------ 
Previous Comments 
------------------ 
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. 
         

-- 
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/5a6276ae/attachment-0001.htm> 

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

Message: 2 
Date: Fri, 23 Dec 2011 14:43:07 -0000 
From: "schmidts" <reviewboard at asterisk.org> 
Subject: Re: [asterisk-dev] [Code Review] [patch] Improve debug of 
        ast_hangup 
To: "Olle E Johansson" <oej at edvina.net>, "schmidts" 
        <reviewboard at asterisk.org>,        "Asterisk Developers" 
        <asterisk-dev at lists.digium.com> 
Message-ID: <20111223144307.29663.42947 at hotblack.digium.com> 
Content-Type: text/plain; charset="utf-8" 


----------------------------------------------------------- 
This is an automatically generated e-mail. To reply, visit: 
https://reviewboard.asterisk.org/r/1164/#review5074 
----------------------------------------------------------- 


i have walked about this review and i think it would be the easiest way to use a common flag for debuging like DEV_MODE. 

then the patch would look like this: 

Index: include/asterisk/channel.h 
=================================================================== 
--- include/asterisk/channel.h        (Revision 348991) 
+++ include/asterisk/channel.h        (Arbeitskopie) 
@@ -1421,8 +1421,15 @@ 
  * \param chan channel to hang up 
  * \return Returns 0 on success, -1 on failure. 
  */ 
-int ast_hangup(struct ast_channel *chan); 
+#ifdef AST_DEVMODE 
+#define ast_hangup(chan)        __ast_hangup_debug(chan,__PRETTY_FUNCTION__,__FILE__,__LINE__) 
+#else 
+#define ast_hangup(chan)        __ast_hangup(chan) 
+#endif 
  
+int __ast_hangup_debug(struct ast_channel *chan, const char *func, const char *file, const int line); 
+int __ast_hangup(struct ast_channel *chan); 
+ 
 /*! 
  * \brief Softly hangup up a channel 
  * 
Index: main/channel.c 
=================================================================== 
--- main/channel.c        (Revision 348991) 
+++ main/channel.c        (Arbeitskopie) 
@@ -2771,8 +2771,19 @@ 
         } 
 } 
  
+ 
+/*! \brief Debug output whom started Hangup on a channel */ 
+int __ast_hangup_debug(struct ast_channel *chan, const char *func, const char *file, const int line) 
+{ 
+ 
+        if (!chan->masq) { 
+                ast_debug(1, "Starting hangup process  on channel '%s' - called by %s() in %s, line %d\n", chan->name, func, file, line); 
+        } 
+        return __ast_hangup(chan); 
+} 
+ 
 /*! \brief Hangup a channel */ 
-int ast_hangup(struct ast_channel *chan) 
+int __ast_hangup(struct ast_channel *chan) 
 { 
         char extra_str[64]; /* used for cel logging below */ 

still very easy but it really could help to find some issues easier. 

- schmidts 


On April 7, 2011, 6:21 a.m., Olle E Johansson wrote: 
> 
> ----------------------------------------------------------- 
> This is an automatically generated e-mail. To reply, visit: 
> https://reviewboard.asterisk.org/r/1164/ 
> ----------------------------------------------------------- 
> 
> (Updated April 7, 2011, 6:21 a.m.) 
> 
> 
> Review request for Asterisk Developers. 
> 
> 
> Summary 
> ------- 
> 
> In many cases when I develop crazy code, I get weird hangups. It may only happen to me, but it does happen. I need to know when a hangup process is initiated and by whom. This small patch is a first step towards that goal. 
> 
> 
> This addresses bug 19080. 
>     https://issues.asterisk.org/jira/browse/19080 
> 
> 
> Diffs 
> ----- 
> 
>   /trunk/include/asterisk/channel.h 313005 
>   /trunk/main/channel.c 313005 
> 
> Diff: https://reviewboard.asterisk.org/r/1164/diff 
> 
> 
> Testing 
> ------- 
> 
> Tested in various versions of Asterisk. Seems to give me the output I need. 
> 
> 
> Thanks, 
> 
> Olle E 
> 
> 

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

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

Message: 3 
Date: Fri, 23 Dec 2011 10:10:40 -0600 
From: Tilghman Lesher <tilghman at meg.abyt.es> 
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: 
        <CAHPkZcV9tykwNQWzypbAc73xHis3_0zWBjDW8NW3wjz-+dem0A at mail.gmail.com> 
Content-Type: text/plain; charset=ISO-8859-1 

2011/12/23 shalu dhamija <shalu.dhamija at rancoretech.com>: 
> In my case, my code does not reach upto point where seeking on file is 
> performed. 

I suspect the problem here is that you're attempting to play a video stream 
alone, without the benefit of an accompanying audio file.  That is not 
supported.  Video streams are secondary to audio streams in the playback 
system.  When you stream files, you MUST have a primary audio stream. 



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

_______________________________________________ 
--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 94 
******************************************** 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20111224/93dec2a5/attachment.htm>


More information about the asterisk-dev mailing list