hlssink with live camera

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

hlssink with live camera

Jerry Geis-2
I have hlssink working with a file using:

gst-launch-1.0 -v -e mpegtsmux name=m  \
! queue \
        ! hlssink playlist-root=http://192/168.1.8/hlssink \
          location=hlssink.%05d.ts \
          playlist-location=hlssink/playlist.m3u8 \
filesrc location=movie.mov \
        ! qtdemux name=d \
        ! h264parse  \
! queue \
! m. d. \
! aacparse \
! queue \
! m.

I would like to also have it work with a camera.

I thought I would be able to change the line that has filesrc localtion=movie.mov to 
rtspsrc location="rtsp://IP/channel2" which is the H264 encoded stream.

This does not seem to work. I dont see any files in the hlssink directory and no errors are printed.

Am I missing a piece ?


gstreamer-devel mailing list
[hidden email]
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Re: hlssink with live camera

Arjen Veenhuizen
As you can see here, rtspsrc has a sometimes pad for every elementary stream of type application/x-rtp. This means that at the very least you should remove qtdemux from the pipeline, add an rtph264depay element after the rtspsrc and remove all audio related stuff (assuming there is only video).

In case there is audio you will have to do the same for that elementary stream. Figure out how it is payloaded (you can find the various depayloaders here) insert it and add the appropriate parser before hooking it up to the mpegtsmux multiplexer.

You can run the pipeline after setting GST_DEBUG=2 (or 3) in order to yield more verbose logging on stdout and see what goes wrong (you will probably see one or multiple "not negotiated" errors as it is right now).