[Asterisk-video] RE: AVTF - What's going on?

Pierre-Antoine Strievi strievi at laposte.net
Thu May 18 23:58:35 MST 2006


Hi everybody,

I see that GStreamer allows encoding video media for Asterisk.
But how to stream a h263 file with Asterisk?

I applied a patch for res_agi.c
(http://bugs.digium.com/view.php?id=5392&nbn=10) to allow the
STREAM FILE AGI command to also stream a video file but this
seems not to work. Someone can help me?

Pierre-Antoine


> 
> > >> - GStreamer & Asterisk:
> > > That is really cool. I'll look at it. Does it divide the
video into one 
> > > audio and one video file?
> > 
> > Yes - you invoke it with a command line like:
> > 
> > gst-launch filesrc location=avin.ogg ! oggdemux name=demux
! theoradec ! 
> > ffmpegcolorspace ! videoscale ! video/x-raw-yuv,
width=352, height=288 ! 
> > ffenc_h263 rtp-payload-size=512 ! rtph263enc !
asteriskh263 ! filesink 
> > location=avout.h263 demux. ! queue ! vorbisdec !
audioconvert ! 
> > audio/x-raw-int ! audioconvert ! wavenc ! filesink
location=soxin.wav && 
> > sox soxin.wav -r 8000 -c 1 -s -w avout.wav resample -ql
> 
> The separate invocation of sox is not necessary, GStreamer
can handle
> all of the conversion tasks:
> 
> gst-launch filesrc location=AstriDevCon_Europe_2006.mov !
qtdemux name=demux ! ffdec_h263 ! videoscale !
video/x-raw-yuv,width=352,height=288 ! ffenc_h263
rtp-payload-size=512 ! rtph263pay ! asteriskh263 ! filesink
location=avout.h263 demux. ! queue ! ffdec_adpcm_ima_qt !
audioconvert ! audioresample !
audio/x-raw-int,rate=8000,channels=1 ! wavenc ! filesink
location=avout.wav
> 
> My example uses a input file that's been encoded with different
> audio/video codecs but the same principle applies.  I
believe that there
> is an error in the original GStreamer invocation -
"rtp263enc" should be
> "rtph263pay".  GStreamer 0.10 is required!
> 
> Jeff
> 
> 

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)





More information about the asterisk-video mailing list