[gst-devel] Convert WMA stream to AAC/MP4 RTP stream

Chris Burns Chris.Burns at abdeus.com
Fri Aug 28 07:14:52 CEST 2009


Hi all,
 
I'm trying to setup a gstreamer pipeline to convert a WMA (radio) stream
to an AAC/MP4 RTP stream, to bounce off a DarwinStreamingServer to a
mobile phone.
 
I have purchased, downloaded and installed the Fluendo Windows Media
codec pack for gstreamer
(fluendo-codecs-windowsmedia-bundle-8-3.fedora.i386.rpm) onto an FC11
dev box, but while I can get the WMA stream and save it to disk, I can't
quite get the conversion to AAC and sending via RTP quite right.
 
Can anyone help me a little with this gst-launch pipeline please?
 
 
[root at gstreamer ~]# gst-launch-0.10 -v --gst-debug-level=2 flummssrc
location=mms://ac1.streaming.net.nz/trn-zmonline-akl ! fluasfdemux !
fluwmadec ! faac ! rtpmp4apay ! udpsink host=10.7.8.112 port=9876
Setting pipeline to PAUSED ...
** Message: send error -6
/GstPipeline:pipeline0/GstFluMMSSrc:flummssrc0.GstPad:src: caps =
video/x-ms-asf
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstFluAsfDemux:fluasfdemux0.GstPad:sink: caps =
video/x-ms-asf
/GstPipeline:pipeline0/GstFluWMADec:fluwmadec0.GstPad:src: caps =
audio/x-raw-int, channels=(int)1, width=(int)16, depth=(int)16,
rate=(int)44100, signed=(boolean)true, endianness=(int)1234
/GstPipeline:pipeline0/GstFluWMADec:fluwmadec0.GstPad:sink: caps =
audio/x-wma, wmaversion=(int)2, rate=(int)44100, channels=(int)1,
bitrate=(int)32024, depth=(int)16, width=(int)16, block_align=(int)1487,
codec_data=(buffer)008800000f0000000000
/GstPipeline:pipeline0/GstFaac:faac0.GstPad:sink: caps =
audio/x-raw-int, channels=(int)1, width=(int)16, depth=(int)16,
rate=(int)44100, signed=(boolean)true, endianness=(int)1234
/GstPipeline:pipeline0/GstFaac:faac0.GstPad:src: caps = audio/mpeg,
mpegversion=(int)4, channels=(int)1, rate=(int)44100,
codec_data=(buffer)0a08
/GstPipeline:pipeline0/GstRtpMP4APay:rtpmp4apay0.GstPad:src: caps =
application/x-rtp, media=(string)audio, clock-rate=(int)44100,
encoding-name=(string)MP4A-LATM, cpresent=(string)0,
config=(string)40001410, payload=(int)96, ssrc=(guint)3519953302,
clock-base=(guint)1992414633, seqnum-base=(guint)47702
/GstPipeline:pipeline0/GstRtpMP4APay:rtpmp4apay0.GstPad:sink: caps =
audio/mpeg, mpegversion=(int)4, channels=(int)1, rate=(int)44100,
codec_data=(buffer)0a08
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps =
application/x-rtp, media=(string)audio, clock-rate=(int)44100,
encoding-name=(string)MP4A-LATM, cpresent=(string)0,
config=(string)40001410, payload=(int)96, ssrc=(guint)3519953302,
clock-base=(guint)1992414633, seqnum-base=(guint)47702
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 84558633604 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstRtpMP4APay:rtpmp4apay0.GstPad:sink: caps =
NULL
/GstPipeline:pipeline0/GstRtpMP4APay:rtpmp4apay0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstFaac:faac0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstFaac:faac0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstFluWMADec:fluwmadec0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstFluWMADec:fluwmadec0.GstPad:sink: caps = NULL
0:01:25.347799378  4078  0x8d14c28 WARN             fluasfdemux
fluasfobjects.c:3759:fluasfobjects_parse_packet:<fluasfdemux0> failed
parsing payload -2 (wrong-state)
0:01:25.348893340  4078  0x8d14c28 WARN             fluasfdemux
fluasfdemux.c:792:gst_fluasfdemux_chain:<fluasfdemux0> got wrong-state
parsing packet 233
/GstPipeline:pipeline0/GstFluAsfDemux:fluasfdemux0.GstFluAsfStream:strea
m_0_1: caps = NULL
/GstPipeline:pipeline0/GstFluAsfDemux:fluasfdemux0.GstPad:sink: caps =
NULL
/GstPipeline:pipeline0/GstFluMMSSrc:flummssrc0.GstPad:src: caps = NULL
Setting pipeline to NULL ...
Freeing pipeline ...
 
 
VLC (v1.0.0 Win32) refuses to play this stream.
 
 
Chris Burns
Tech Lead
Abdeus Group
M: +64 21 391 286
Ph: +64 9 360 7300
chris.burns at abdeus.com
 
  <http://www.abdeus.com/>  
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090828/b6e868ab/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3269 bytes
Desc: abdeus-small.jpg
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090828/b6e868ab/attachment.jpeg>


More information about the gstreamer-devel mailing list