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_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel