Audio/video rtspsrc to processing to webmux

Sebastian Dröge sebastian at centricular.com
Fri Mar 11 06:46:27 UTC 2016


On Do, 2016-03-10 at 02:35 -0800, bomba wrote:
> Hello,
> I've got an incoming vorbis audio/h264 video rtsp stream from the
> internet.
> I need to restream it locally in a webm container.
> 
> My current pipeline consist in:
> 
> gst-launch-1.0 \
> rtspsrc location=rtsp://myurl:8554/stream protocols=0x00000004
> latency=0 !
> rtph264depay ! avdec_h264 ! vp8enc deadline=5 threads=4
> error-resilient=0x00000002 ! queue ! \
> webmmux name=mux ! tcpserversink host=0.0.0.0 port=8080 \
> rtspsrc location=rtsp://myurl:8554/stream protocols=0x00000004
> latency=0 ! \
> rtpvorbisdepay ! vorbisdec ! audioconvert ! audioresample ! vorbisenc
> ! mux.
> 
> There are a few problems about that:
> 
> - I'm accessing the rtsp source twice
> - The sync between audio and video is lost

Why are you using two rtspsrc? You could do something like

  rtspsrc ... name=src ! rtph264depay ! ...
    src. ! rtpvorbisdepay ! ...

The you use the same source twice, and sync should also be preserved.

> - I have to decode and re-encode audio in vorbis, otherwise webmmux
> doesn't like it

vorbisparse might help here.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160311/7cdd72c2/attachment.sig>


More information about the gstreamer-devel mailing list