Streaming a filesrc to udpsink

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Streaming a filesrc to udpsink

Wes Miller
I have a server at 10.253.5.153:10000 that accepts an mpegts encoded stream over udp.  I want to play an mpeg file to this server.  I tried:

gst-launch \
        filesrc location="/home/wmiller/Music/Romance.mp3"
     ! decodebin2 caps=audio/mpeg,width=16,depth=16
     ! identity
     ! mpegtsmux
     ! udpsink host=10.253.5.153  port=10000

This pipeline does ot "fail" but it plays in about 2 seconds and reports that it got eos from the pipeline0.

What am I missing?

Thanks,

Wes
Reply | Threaded
Open this post in threaded view
|

Re: Streaming a filesrc to udpsink

Marc Olzheim
On Tue, Jul 02, 2013 at 06:37:23AM -0700, Wes Miller wrote:

> I have a server at 10.253.5.153:10000 that accepts an mpegts encoded stream
> over udp.  I want to play an mpeg file to this server.  I tried:
>
> gst-launch \
>         filesrc location="/home/wmiller/Music/Romance.mp3"
>      ! decodebin2 caps=audio/mpeg,width=16,depth=16
>      ! identity
>      ! mpegtsmux
>      ! udpsink host=10.253.5.153  port=10000
>
> This pipeline does ot "fail" but it plays in about 2 seconds and reports
> that it got eos from the pipeline0.
>
> What am I missing?

You are missing that there is nothing enforcing the stream to be sent
out at playback speed, so it will send it out as fast as it possibly
can...

Marc
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Streaming a filesrc to udpsink

Wes Miller
I suspected as much.  Is there a pacing element?  I guess I could tee the stream into a local speaker but that seems backwards.

Wes