Trying to stream mp4 video across network but play audio locally

Chris Bare chris.bare at gmail.com
Tue Nov 17 08:50:14 PST 2015


I'm trying to figure out how to use gstreamer to read an mp4 file, stream
the h.264 video over the network to another gstreamer, and play the audio
locally.

I tried this on the sending side:
gst-launch-1.0 playbin uri=file:///storage/2015test/P1000332.MP4
video-sink="rtph264pay ! udpsink host=10.1.10.17 port=5555"

and this on the display side:
gst-launch-1.0 udpsrc port=5555 caps="application/x-rtp" ! queue !
rtph264depay ! decodebin ! videoconvert ! autovideosink

And I hear the audio, but the display side doesn't seem to hear anything. I
don't get any pipeline or network errors, though.

Can anyone give me some pointers on the most efficient way to implement
this?
The display side is a raspberry pi, so it's ok to make it h.264 specific.
I'd like to be able to auto-detect different audio formats on the sending
side, if possible, since all mp4s are not encoded the same way.

-- 
Chris Bare
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151117/bbba9c54/attachment.html>


More information about the gstreamer-devel mailing list