title: hlssink does not split video and does not create a playlist
body: <p>I work with gstreamer and have the following pipeline:</p>
  
  <pre><code>   appsrc name=source is-live=true block=true format=GST_FORMAT_TIME
     caps=video/x-raw,format=BGR,width=1280,height=720,framerate=30/1
     ! videoconvert ! video/x-raw,format=I420 ! x264enc  !
     h264parse config-interval=3  ! queue ! mpegtsmux !
     hlssink playlist-length=2 max-files=5
     playlist-location="/tmp/hls/stream.m3u8" playlist-root="/tmp/hls"
     location="/tmp/hls/fragment%06d.ts" target-duration=10
  </code></pre>
  
  <p>I feed the pipeline through appsrc, which is subscribed to the 'need-data' event in my application.</p>
  
  <p>After starting the application, I expect to see the segments <strong>fragment000000.ts</strong>, <strong>fragment000001.ts</strong>, <strong>fragment000002.ts</strong> ...  <strong>fragment00000N.ts</strong> in the /tmp/hls folder. The playlist file <strong>stream.m3u8</strong> should also appear here.</p>
  
  <p>But in fact, only <strong>fragment000000.ts</strong> appears in /tmp/hls  folder. This segment contains the entire video.</p>
  
  <p>I can’t understand why my pipeline doesn’t segment the video.</p>
  
  <p>There are so many examples of starting pipelines where the video source for hlssink is videotestsrc. For example,  everything works great if I run  the following:</p>
  
  <pre><code>gst-launch-1.0 videotestsrc is-live=true ! video/x-raw, framerate=25/1, width=720, height=576, format=I420 ! x264enc bitrate=1000 key-int-max=25 ! h264parse ! video/x-h264 ! queue ! mpegtsmux ! hlssink playlist-length=10 max-files=20  playlist-location="/tmp/hls/stream.m3u8" location="/tmp/hls/fragment%06d.ts" target-duration=10
  </code></pre>
  
  <p>But I did not find any example of starting gstreamer using the <strong>appsrc -> hlssink</strong> scheme. Help please understand what the problem is</p>