hlssink from different sources

Jerry Geis jerry.geis at gmail.com
Fri Oct 13 18:18:40 UTC 2017


I have hlssink working from h264. Fantastic!

I use this:
gst-launch-1.0 rtspsrc location=rtsp://IP/camera.sdp '!' rtph264depay '!'
h264parse '!' queue '!' mpegtsmux '!' hlssink playlist-root=
http://192.168.1.8/hlssink location=/var/www/html/hlssink.ts
playlist-location=/var/www/html/playlist.m3u8

I would like two things:
1) To use the same command above with a MPEG4 source
2) To use any source

To that end I took the above command and changed to:
gst-launch-1.0 rtspsrc location=rtsp://IP/camera.sdp '!' rtpmp4vdepay '!'
mpeg4videoparse '!' queue '!' mpegtsmux '!' hlssink playlist-root=
http://192.168.1.8/hlssink location=/var/www/html/hlssink.ts
playlist-location=/var/www/html/playlist.m3u8

This did not work.
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.1.231/channel2
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Delayed
linking failed.
Additional debug info:
./grammar.y(510): gst_parse_no_more_pads ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
failed delayed linking some pad of GstRTSPSrc named rtspsrc0 to some pad of
GstRtpMP4VDepay named rtpmp4vdepay0
ERROR: from element
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: Internal data
stream error.
Additional debug info:
gstbasesrc.c(2939): gst_base_src_loop ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:
streaming stopped, reason not-linked (-1)
Execution ended after 0:00:00.457602478
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...




Then again I would like to use "decodebin" or something for "any" video
source.

What am I missing? thanks,

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171013/73707aed/attachment-0001.html>


More information about the gstreamer-devel mailing list