Re: [Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

2005-09-03 Thread cmisip
mp3 doesn't work, I recoded everything to gsm using  a batch script with
mplayer and sox. It took a couple of days but everything is working
fine.

Thanks.


On Mon, 2005-08-29 at 16:00, Kris Edwards wrote: 
 cmisip wrote:
 
 Controlplayback with the wealth of codecs supported by mplayer would be
 nice though as one of my future plans is sending a tv audio source
 through asterisk.
   
 
   
 
 I've done that w/ a radio, allbeit a bit convoluted setup.  I was just
 running the live audio on an mp3 stream and then using the mp3 stream as
 an onhold class.
 ___
 --Bandwidth and Colocation sponsored by Easynews.com --
 
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

2005-08-29 Thread cmisip
Thanks for the replies.  It seems that controlplayback will fit my
needs.

I assume it supports :

g723, g729, gsm, h263, ulaw, alaw, vox, wav  and MP3?

Does it support mp3 or must I recode to gsm? 


Controlplayback with the wealth of codecs supported by mplayer would be
nice though as one of my future plans is sending a tv audio source
through asterisk.





On Sun, 2005-08-28 at 23:12, Matt Riddell wrote:
 trixter http://www.0xdecafbad.com wrote:
  On Mon, 2005-08-29 at 15:24 +1200, Matt Riddell wrote:
  
 trixter http://www.0xdecafbad.com wrote:
 
 controlplayback seems to fit if all you want is mp3s however ...
 
 Although it works with all supported formats.
 
  
  
  how many are supported?  mplayer for example does at least 130 codecs
  making it easier to get whatever you happen to have.  That was my point.
 
 :) Ok very good you win! Hehe.
 
  You always could use mencoder or other tool to convert to the desired
  format, but that isnt always an option (usually it is though).
 
 True, but most of the files you'd be dealing with in Asterisk would normally
 be created through telephony.  Granted this isn't always the case though.

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

2005-08-29 Thread Kris Edwards
cmisip wrote:

Controlplayback with the wealth of codecs supported by mplayer would be
nice though as one of my future plans is sending a tv audio source
through asterisk.
  

  

I've done that w/ a radio, allbeit a bit convoluted setup.  I was just
running the live audio on an mp3 stream and then using the mp3 stream as
an onhold class.
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

2005-08-28 Thread cmisip
There is a patch to mplayer that allows it to suppress stdout messages
and instead output pcm data to stdout.  I managed to get it working with
app_mp3.c and seems like it is working fine.  All that was needed was a
change in the execl line and a slight increase in timeout value.  I have
only done limited testing.  If mplayer is able to replace mpg123 without
issues, this opens up a whole lot of media that can be piped through
Asterisk.


I want to be able to send a dtmf key to asterisk and have mplayer
forward or rewind.

I dont know much about all this stuff ( I really am not a programmer )
but I have a lot of interest in it.  I use asterisk to play podcasts on
my cell phone (podcasts on the road) and the forward rewind feature
would be nice.  

Mplayer has a -slave command that allows it to read commands from stdin
I think. It also has the -input parameter which allows it to read
commands from a fifo.  I could get the -input  to work on the command
line sending commands to the fifo with bash echo.  However, when I am
actually listening to a podcast from MP3Player in asterisk, sending a
command to the fifo would cause MP3Player to respond to the command,
continue playback for a short time and then exit with a No More MP3
message and a bunch of Dropping voice to exceptionally long queue

Any ideas on how a forward, rewind feature can be implemented on
MP3Player cmd?

I have successfully used a bash script to interact with asterisk agi.  

My idea is to modify the app_mp3.c program to allow for a second
parameter to MP3Player to pass file position value.  Have app_mp3.c
store the value of f-subclass into res and exit with this value
whenever a key is pressed.  Bash could read this value and restart the
MP3Player application with a computed fileposition value as second
parameter.

This should achieve the result I want.  Is there a simpler way?

Any help or insight is appreciated.

Thanks.



___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

2005-08-28 Thread Matt Riddell
cmisip wrote:
 I want to be able to send a dtmf key to asterisk and have mplayer
 forward or rewind.

pabx*CLI show application ControlPlayback
pabx*CLI
  -= Info about application 'ControlPlayback' =-

[Synopsis]
Play a file with fast forward and rewind

[Description]
ControlPlayback(filename[|skipms[|ffchar[|rewchar[|stopchar[|pausechar[|restartchar]]):
  Plays  back  a  given  filename (do not put extension). Options may also
  be included following a pipe symbol.  You can use * and # to rewind and
  fast forward the playback specified. If 'stopchar' is added the file will
  terminate playback when 'stopchar' is pressed. If 'restartchar' is added,
the file
  will restart when 'restartchar' is pressed. Returns -1 if the channel
  was hung up. if the file does not exist jumps to n+101 if it present.

  Example:  exten = 1234,1,ControlPlayback(file|4000|*|#|1|0|5)


-- 
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

2005-08-28 Thread trixter http://www.0xdecafbad.com
On Mon, 2005-08-29 at 11:37 +1200, Matt Riddell wrote:
 cmisip wrote:
  I want to be able to send a dtmf key to asterisk and have mplayer
  forward or rewind.
 
 pabx*CLI show application ControlPlayback

mplayer has advantages of more codecs as well, so you arent as limited.
In addition it will play tv (with tuner card), dvds, etc.  So you can
really pick what you want as your audio source.

It would seem to me to be not that difficult with an agi to use mplayer,
although I havent tried.

controlplayback seems to fit if all you want is mp3s however ...


-- 
Trixter http://www.0xdecafbad.com Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378


signature.asc
Description: This is a digitally signed message part
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

2005-08-28 Thread Matt Riddell
trixter http://www.0xdecafbad.com wrote:
 controlplayback seems to fit if all you want is mp3s however ...

Although it works with all supported formats.

-- 
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

2005-08-28 Thread trixter http://www.0xdecafbad.com
On Mon, 2005-08-29 at 15:24 +1200, Matt Riddell wrote:
 trixter http://www.0xdecafbad.com wrote:
  controlplayback seems to fit if all you want is mp3s however ...
 
 Although it works with all supported formats.
 

how many are supported?  mplayer for example does at least 130 codecs
making it easier to get whatever you happen to have.  That was my point.

You always could use mencoder or other tool to convert to the desired
format, but that isnt always an option (usually it is though).


-- 
Trixter http://www.0xdecafbad.com Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378


signature.asc
Description: This is a digitally signed message part
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

2005-08-28 Thread Matt Riddell
trixter http://www.0xdecafbad.com wrote:
 On Mon, 2005-08-29 at 15:24 +1200, Matt Riddell wrote:
 
trixter http://www.0xdecafbad.com wrote:

controlplayback seems to fit if all you want is mp3s however ...

Although it works with all supported formats.

 
 
 how many are supported?  mplayer for example does at least 130 codecs
 making it easier to get whatever you happen to have.  That was my point.

:) Ok very good you win! Hehe.

 You always could use mencoder or other tool to convert to the desired
 format, but that isnt always an option (usually it is though).

True, but most of the files you'd be dealing with in Asterisk would normally
be created through telephony.  Granted this isn't always the case though.

-- 
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users