[gst-devel] Streaming MP3 Problem

Zeeshan Ali zeelists at yahoo.com
Mon May 12 12:56:06 CEST 2003


Hi,
  for sending mp3 data on a udp channel, you need
atleast one more element between filesrc and udpsink
which actually timestamps the data buffers in order to
make the udpsink understand when to send a particular
mp3 data buffer. ATM such plugins doesnt exist for any
data type except mpeg 1 system streams. So for the
timebeing you are left with no option but to make
mp3parse (or create a new element) to do proper
timestamping or try this pipeline instead:

gst-launch filesrc location=a.mp3 ! mad ! lame !
udpsink host=192.168.0.255

 Oh, i just had a look into lame plugin code, it
doesnt do the timestamping, but thats a minutes hack
IMHO. So let me try fixing that. i am sure the
pipeline above would work as soon as i add the
timestamping code into lame, as the following pipeline
works well for me:

gst-launch filesrc location=any.mpg ! mpeg2dec !
fameenc quality=100 ! udpsink

--- "Ciongoli, Charles" <CCiongoli at viewpoint.org>
wrote:
> Hello.  I am running GStreamer 0.6.1 on RedHat Linux
> 8.0.  I have used
> APT and installed the gstreamer-universe so I could
> just have everything
> ready at my fingertips.  I am both using commandline
> and writing code.
> Right
> now I am trying to get one computer to stream to
> another, however it is not
> working like it should.  On the client computer, I
> have run this in the
> command line: "gst-launch udpsrc ! mad ! osssink". 
> The client runs the
> pipeline and sits and waits.  I then go to the
> server and run
> "gst-launch filesrc location=a.mp3 ! udpsink
> host=192.168.0.255" (or server
> first 
> and client second, makes no difference in results). 
> The server begins
> streaming and I here the song beginning to play on
> the client.  All of a
> sudden (after about 1-2 seconds) the server pipeline
> stops and the song
> playing cuts off with a sound as if you were pulling
> a vinyl off a
> phonograph while it was playing.  The same thing
> happens when I enter
> this into C code, compile, and run the program.  I
> then tried running this
> line on the server "gst-launch filesrc
> location=a.mp3 ! mp3parse ! udpsink
> host=192.168.0.255" and the same thing happens again
> (the song plays
> on the client for about a half a second longer).
> 
> This is wgat the server returns:
> 
> [root at localhost test]# gst-launch filesrc
> location=a.mp3 ! mp3parse !
> udpsink host=10.255.255.255
> INFO ( 1972: 0) Initializing GStreamer Core Library
> version 0.6.0
> INFO ( 1972: 0) CPU features: (00000000) MMX SSE
> registry: loaded user_registry in 0.000151 seconds
>           (/root/.gstreamer/registry.xml)
> registry: loaded global_registry in 0.174187 seconds
>           (/var/cache/gstreamer-0.6/registry.xml)
> GStreamer-INFO: 0 live buffer(s)
> GStreamer-INFO: 0 live bufferpool(s)
> GStreamer-INFO: 0 live event(s)
> RUNNING pipeline
> execution ended after 10121 iterations (sum
> 306369000 ns, average 30270 ns,
> min 2000 ns, max 13244000 ns)
> GStreamer-INFO: 828 live buffer(s)
> GStreamer-INFO: 0 live bufferpool(s)
> GStreamer-INFO: 0 live event(s)
> [root at localhost test]# 
> 
> 
> Has anyone had this problem? What is it that I am
> doing wrong?  Thanks in
> advance.
> 
> -C3 
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com




More information about the gstreamer-devel mailing list