[Asterisk-video] RE: AVTF - What's going on?
Jeffrey C. Ollie
jeff at ocjtech.us
Thu May 18 21:02:24 MST 2006
> >> - 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-video/attachments/20060518/ae1da575/attachment.pgp
More information about the asterisk-video
mailing list