<div dir="ltr">Hi Tim, thanks for your response. I think I managed to get it working, I don't know how. This leads me to my next issue, not really related to gstreamer but with hlssink. I need to serve the files produced by hlssink using http. I'm using a library called Crow as http server. Crow doesn't have built-in support for serving files so I had to implement it my self using the following code:<div><br></div><div><div><span class="" style="white-space:pre"> </span>if (fs::exists(filepath)) {</div><div><br></div><div><span class="" style="white-space:pre">               </span>ifstream file(filepath.string(), ifstream::binary);</div><div><br></div><div><span class="" style="white-space:pre">               </span>if (file.is_open()) {</div><div><span class="" style="white-space:pre">                      </span>res.set_header("Content-Type", getMimeType(filepath));</div><div><span class="" style="white-space:pre">                   </span>res.set_header("Accept-Ranges", "bytes");</div><div><span class="" style="white-space:pre">                      </span>res.body.assign(std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>());</div><div><span class="" style="white-space:pre">                       </span>res.end();</div><div><span class="" style="white-space:pre">                 </span>file.close();</div><div><span class="" style="white-space:pre">                      </span>return;</div><div><span class="" style="white-space:pre">            </span>}</div><div><br></div><div><span class="" style="white-space:pre"> </span>}</div></div><div><br></div><div>The problem with this is I occacionaly get error that hlssink fails to unlink the files, probably because the http server is currently reading them. Is there some way of syncronizing with hlssink to get around this race condition?</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:12px;font-weight:bold"><br></p><p style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:12px;font-weight:bold">Med vänliga hälsningar / Best regards,</p><table border="0" cellpadding="0" width="450" style="font-family:'Times New Roman';table-layout:fixed"><tbody><tr><td align="left" valign="middle" width="90"><p style="margin-right:10px;font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;margin-bottom:10px"><a href="http://videocent.com/" style="text-decoration:none" target="_blank"><img src="https://6357a9c9510b23fb64c39a67b38752eb40ab220b.googledrive.com/host/0B6zzKUZJgae8UXM3bi1aZTdheXM/Face-round.png" alt="Videocent AB" border="0" height="80" width="80"></a></p></td><td align="left" nowrap width="370"><p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;color:rgb(33,33,33);margin-bottom:10px"><span style="font-weight:bold;display:inline">Simon Nilsson</span> <span style="display:inline">/</span> <span style="display:inline">Programmer</span> <span style="display:inline"><br></span><a href="mailto:simon.nilsson@videocent.com" style="color:rgb(71,124,204);text-decoration:none;display:inline" target="_blank">simon.nilsson@videocent.com</a><span style="display:inline"> / </span><span style="display:inline">+46761342073</span></p><p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;margin-bottom:10px"><span style="font-weight:bold;color:rgb(33,33,33);display:inline">Videocent AB</span> <span style="display:inline"><br></span><span></span><span></span><span></span><a href="http://videocent.com/" style="color:rgb(71,124,204);text-decoration:none;display:inline" target="_blank">videocent.com</a></p></td></tr></tbody></table></div></div></div></div></div>
<br><div class="gmail_quote">On Sun, Jan 17, 2016 at 11:28 PM, Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 2016-01-17 at 16:05 +0100, Simon Nilsson wrote:<br>
<br>
Hi Simon,<br>
<span class=""><br>
> Please I could really need some assistance with this. I tried<br>
> replacing the hlssink with a filesink to output a .ts file. This file<br>
> plays fine in most media players (e.g. Windows Media Player) but does<br>
> not play in VLC. I have uploaded the file to dropbox if someone would<br>
> like to take a look at it. <a href="https://dl.dropboxusercontent.com/u/765394" rel="noreferrer" target="_blank">https://dl.dropboxusercontent.com/u/765394</a><br>
</span>> 2/test.ts ;<br>
<br>
It might also be useful to see what exactly you're feeding into<br>
GStreamer. Perhaps you could do this:<br>
<br>
 appsrc ! gdppay ! filesink location=foo.gdp<br>
<br>
and capture that for ~10-30 seconds or so and put it on dropbox for us.<br>
Thanks!<br>
<br>
 Cheers<br>
<span class="HOEnZb"><font color="#888888">  -Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>