hlssink: Critical error

Petteri Matilainen pmatil at gmail.com
Tue Nov 24 00:59:56 PST 2015


I'm using hlssink with gstreamer 1.6.1 along with plugins of the same
version compiled from source. The pipeline is as follows:

gst-launch-1.0 -v -e uvch264src initial-bitrate=$init_bitrate
average-bitrate=$avg_bitrate peak-bitrate=$pk_bitrate
rate-control=$rate_ctrl iframe-period=$if_period name=src
auto-start=true \
 src.vfsrc ! queue !
video/x-raw,format=\(string\)YUY2,width=320,height=240,framerate=10/1
! fakesink \
 src.vidsrc ! queue !
video/x-h264,width=$vid_width,height=$vid_height,framerate=$vid_framerate,profile=$vid_profile,stream-format=$vid_frmt
\
 ! h264parse ! mpegtsmux ! hlssink max-files=5
playlist-location=/var/www/playlist.m3u8
location=/var/www/segment-%05d.ts target-duration=15

The pipeline starts fine, but in the end I get some errors though the
pipeline stays running:

(gst-launch-1.0:21792): GStreamer-CRITICAL **:
gst_segment_to_running_time: assertion 'segment->format == format'
failed

(gst-launch-1.0:21792): GStreamer-CRITICAL **:
gst_segment_to_stream_time: assertion 'segment->format == format'
failed

The full output of the pipeline: http://pastebin.com/PbsBwe9k

What it does is it starts saving the videofile segment-00000.ts into
/var/www/ but no playlist.m3u8. After 15 secs it should stop and start
another segment but it doesn't. And that's what the error is about I
think. After I stop the pipeline with ctrl-C, it writes the
playlist.m3u8 into /var/www/ with the duration of the file. I tested
the same pipeline with version 1.4.4 but the same error appears. Is
there something wrong with my pipeline or is the hlssink maybe not
completely working?


More information about the gstreamer-devel mailing list