I was able to succesfully generate a hsl stream with gstreamer, with the following code:

gst-launch-1.0 -v  \
               videotestsrc is-live=true \
               ! omxh264enc target-bitrate=2000000 control-rate=variable \
               ! "video/x-h264,profile=high,width=600,height=300" \
               ! mpegtsmux \
               ! hlssink \
               playlist-root= \
               location=/home/attila/frontend/hlssink/hlssink.%05d.ts \
               max-files=5 \
               target-duration=10 \

It works very fine, but it has one flaw, the files genarated according to the property line of hlssink:


are not looping. So the client should always relaod the playlist. How can I make gstreamer to loop through an iteration of file names?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.