Audio/video rtspsrc to processing to webmux

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

Audio/video rtspsrc to processing to webmux

bomba
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
- I have to decode and re-encode audio in vorbis, otherwise webmmux doesn't like it

Any suggestions? I know this can be done using queues correctly, any piece of documentation would be appreciated too.

J
Reply | Threaded
Open this post in threaded view
|

Re: Audio/video rtspsrc to processing to webmux

Sebastian Dröge-3
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

signature.asc (968 bytes) Download Attachment