<div dir="ltr">I just learned that this is a known bug:
<a href="https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/113">https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/113</a><div><br></div><div>I will try using hlssink2 tomorrow (hoping it gets around the bug).</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 23, 2019 at 9:58 AM David Ing <<a href="mailto:ding@panopto.com">ding@panopto.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>The following command remuxes an audio.m4a file into HLS.<br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><br></div><div>gst-launch-1.0 filesrc location="c:/tmp/audio.m4a" ! qtdemux name=a a.audio_0 ! queue ! aacparse ! queue ! mpegtsmux name=mux ! queue ! hlssink location="c:/tmp/hls_audio_only/%05d.ts" max-files=0 playlist-length=0 playlist-location=c:/tmp/hls_audio_only/index.m3u8 <span style="background-color:rgb(255,255,0)">target-duration=8</span></div></blockquote></div><div><br></div><div>Given that the target duration is 8 seconds, and my source file is 20 seconds, the output I expect is three *.ts files (each no greater than 8 seconds); and the *.m3u8 file.</div><div><br></div><div>Instead I get a single *.ts file and the playlist looks like this.</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>#EXTM3U<br>#EXT-X-VERSION:3<br>#EXT-X-ALLOW-CACHE:NO<br>#EXT-X-MEDIA-SEQUENCE:0<br>#EXT-X-TARGETDURATION:20<br><br>#EXTINF:<span style="background-color:rgb(255,255,0)">19.945941925048828</span>,<br>00000.ts<br>#EXT-X-ENDLIST<br></div></blockquote></div><div><br></div><div>The *.ts file is the same length as the audio input file, which is just a 19.94... second audio file which I uploaded here: <a href="https://drive.google.com/file/d/1hN2EbRKJOa9HCrGBrLlUCLPHNg5VfdJh/view?usp=sharing" target="_blank">https://drive.google.com/file/d/1hN2EbRKJOa9HCrGBrLlUCLPHNg5VfdJh/view?usp=sharing</a></div><div><br></div><div><span style="background-color:rgb(255,255,0)">I only see this bug in audio-only scenarios</span>. I can build a similar kind of pipeline for video-only or audio+video and I get the expected output.</div><div><br></div><div>I am using gstreamer 1.16.1-msvc on Windows.</div><div><br></div><div>Can anyone provide guidance about what is broken and how I might fix it?</div></div>
</blockquote></div>