<div dir="ltr">Forgot to add how xbmc opens and handles (demux) ffmpegs streams: "<a href="https://github.com/xbmc/xbmc/blob/master/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp#L233">DVDDemuxFFmpeg.cpp - Line 233</a>" (xbmc main repro) /Regards, Lars.<div>
<div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 3, 2013 at 12:04 AM, Lars Hammarstrand <span dir="ltr"><<a href="mailto:lars.hammarstrand@gmail.com" target="_blank">lars.hammarstrand@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello folks!<br><br>We are having some problems with the ffmpeg libraries in xbmc. Streaming <b><em style="line-height:16px;font-style:normal;font-family:arial,sans-serif">HLS</em> M3U8</b> urls often causes stuttering video. For example, when testing the m3u8 url below, BANDWIDTH "984000" and "2793000" streams are stuttering, the rest works as normal. If you download the streams (ffmpeg -c copy) and play them locally they all work.  All streams also works fine using mplayer2.  Please have look at the xbmc forum link:  <a href="http://forum.xbmc.org/showthread.php?tid=154016" target="_blank">"BUG No cache/buffer is used for m3u8 playlists, causes stuttering video"</a>.  Also, check this recorded example of a stuttering video (same as in forum post #8): <a href="http://dl.dropbox.com/u/21767340/XBMC/SVT.Play.Screen.Recording.mp4" target="_blank">"SVT.Play.Screen.Recording.mp4"</a>.<div>

<div><div><br></div><div>Some questions:<br></div><div><div><br></div><div> 1. Could this be it's buffering problem, i.e do we need to enable some sort of caching for m3u8 streams?</div><div> 2. Are there any smart tricks we can use to debug/trace m3u8 streams with the ffmpeg libs? Any pointers, suggestions and ideas are appreciated!</div>

<div> 3. Anyone seen a simular problem in the past?</div><div>--</div><div><br></div><div>Thanks in advance!</div><div>Regards, Lars.<br><br><br><a href="http://svtplay7m-f.akamaihd.net/i/se//open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/master.m3u8" target="_blank">http://svtplay7m-f.akamaihd.net/i/se//open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/master.m3u8</a><br>

========================================================================================================================<br><font face="courier new, monospace">#EXTM3U<br>#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=<b>984000</b>,RESOLUTION=768x432,CODECS="avc1.77.30, mp4a.40.5"<br>

<a href="http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_0_av.m3u8?null=&e=b2a7ace1bf661c32&id=" target="_blank">http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_0_av.m3u8?null=&e=b2a7ace1bf661c32&id=</a><br>

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=<b>345000</b>,RESOLUTION=512x288,CODECS="avc1.66.30, mp4a.40.5"<br><a href="http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_1_av.m3u8?null=&e=b2a7ace1bf661c32&id=" target="_blank">http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_1_av.m3u8?null=&e=b2a7ace1bf661c32&id=</a><br>

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=<b>561000</b>,RESOLUTION=512x288,CODECS="avc1.66.30, mp4a.40.5"<br><a href="http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_2_av.m3u8?null=&e=b2a7ace1bf661c32&id=" target="_blank">http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_2_av.m3u8?null=&e=b2a7ace1bf661c32&id=</a><br>

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=<b>1677000</b>,RESOLUTION=1024x576,CODECS="avc1.77.30, mp4a.40.5"<br><a href="http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_3_av.m3u8?null=&e=b2a7ace1bf661c32&id=" target="_blank">http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_3_av.m3u8?null=&e=b2a7ace1bf661c32&id=</a><br>

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=<b>2793000</b>,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.5"<br><a href="http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_4_av.m3u8?null=&e=b2a7ace1bf661c32&id" target="_blank">http://svtplay7m-f.akamaihd.net/i/se/open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/index_4_av.m3u8?null=&e=b2a7ace1bf661c32&id</a></font><br>

<div>=======================================================================================================================<br></div></div></div></div><div>--</div><div><br></div></div></div>
</blockquote></div><br></div>