# Issues with Playback of HLS in VLC

**URL:** <https://community.wowza.com/t/issues-with-playback-of-hls-in-vlc/43833>\
**Category:** Wowza Streaming Engine\
**Created:** [September 23, 2014, 4:56pm UTC](https://community.wowza.com/t/issues-with-playback-of-hls-in-vlc/43833 "2014-09-23T16:56:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seemant\_Shankar1](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@Seemant\_Shankar1](https://community.wowza.com/u/Seemant_Shankar1)\
**Post date:** [September 23, 2014, 4:56pm UTC](https://community.wowza.com/t/issues-with-playback-of-hls-in-vlc/43833/1 "2014-09-23T16:56:39Z")

</div>

Background… (Using Wowza Streaming Engine 4.1 Updated - Trial License)

1. One UDP Multicast Stream coming from: udp://224.12.16.40:5050 - Stream Coming from Private UDP Encoder Link. Stream in HD (1080i, H.264, AAC)

2. Wowza on connected internal server with public IP. Server Specs: 2 CPU, 16 Core, 2.6 Ghz., 16GB RAM

3. Wowza set to default transcoder profiles 720p, 360p, 240p, 160p - Encoded to Defaults (Created template - StarSportsHD.stream, Match Incoming Streams to Template)

4. Created a .stream file from the above UDP address. Called it StarSportsHD.stream

5. Connected the Stream and was able to observe the above mentioned encodes in the ‘Incoming Streams’ section.

6. Created a SMIL file (StarSportsHD.smil) and added the above encodes.

7. Connected the SMIL file.

8. Checked the Incoming Streams again and found an extra StarSportsHD\_360p stream out of nowhere. Status - “Waiting for Stream”

9. Opened VLC player on remote computer and played back the SMIL URL [Http://xx.xx.xx.xx:1935/MyApp/smil:StarSportsHD.smil/playlist.m3u8](http://xx.xx.xx.xx:1935/MyApp/smil:StarSportsHD.smil/playlist.m3u8)

10. Playback starts but keeps stuttering. I get the following errors on VLC’s Log…

```auto
ts warning: discontinuity received 0x2 instead of 0x4 (pid=256)
httplive warning: playback in danger of stalling
ts warning: discontinuity received 0x2 instead of 0xa (pid=256)
httplive error: EXT-X-MEDIA-SEQUENCE gap in playlist (new=45, old=44)
httplive error: EXT-X-MEDIA-SEQUENCE gap in playlist (new=45, old=44)
httplive error: EXT-X-MEDIA-SEQUENCE gap in playlist (new=45, old=44)
ts warning: discontinuity received 0x2 instead of 0x6 (pid=256)
ts warning: discontinuity received 0x2 instead of 0xe (pid=256)
httplive warning: playback in danger of stalling
ts warning: discontinuity received 0x2 instead of 0xa (pid=256)
httplive warning: playback in danger of stalling
httplive error: EXT-X-MEDIA-SEQUENCE gap in playlist (new=48, old=47)
httplive error: EXT-X-MEDIA-SEQUENCE gap in playlist (new=49, old=47)
httplive error: EXT-X-MEDIA-SEQUENCE gap in playlist (new=49, old=47)
httplive error: gap in sequence numbers found: new=49 expected 48
httplive error: gap in sequence numbers found: new=49 expected 48
ts warning: discontinuity received 0x2 instead of 0x6 (pid=256)
main warning: picture is too late to be displayed (missing 8706 ms)
main warning: picture is too late to be displayed (missing 8666 ms)
main warning: picture is too late to be displayed (missing 8703 ms)
main warning: picture is too late to be displayed (missing 8663 ms)
main error: Failed to resize display 

```

I do not know what is happening here. I have followed the book as far as I know. Can you please guide me on how to fix this? Also, why are there rogue 360p streams being created when I connect my SMIL file to application? Please advise.

PS: I tried playing back the stream on my mobile phone on a conventional 3G network giving me a DL speed of 4.5 mbps. The stream starts directly in HD and then plays for about 5 seconds and freezes. If left alone, I get the “Cannot Playback Stream” error on my MX Player in Android (Jellybean). When I playback the stream on my 8 mbps DSL connection, everything works smoothly. Now I am beginning to get seriously pissed off ☹

PPS: I did a quick [speedtest.net](http://speedtest.net) on the server and it is clocking at about 150 mbps DOWN and 25 mbps UP. So speed issues are thereby ruled out. Wowza CPU load is maxing at about 60%. Performance does not seem to be an issue either. Same goes for Wowza Memory and Heap…all seem to be well under control.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [September 23, 2014, 8:12am UTC](https://community.wowza.com/t/issues-with-playback-of-hls-in-vlc/43833/2 "2014-09-23T08:12:46Z")

</div>

Hello there and welcome to the Wowza support forum.

I think the best course of action here would e for you to open a support ticket.

To do so please zip up the following folders and send them to support@wowza.com. Also please include a link to this thread as a reference.

**[install-dir]/conf**

**[install-dir]/logs**

**[install-dir]/transcoder**

**[install-dir]/manager/logs**

Thank you.

Salvadore

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [September 24, 2014, 8:09am UTC](https://community.wowza.com/t/issues-with-playback-of-hls-in-vlc/43833/3 "2014-09-24T08:09:45Z")

</div>

Hi,

There is also a section called “Adaptive bitrate streaming with Stream Name Groups” in the [Transcoder tutorial](https://www.wowza.com/docs/how-to-set-up-and-run-wowza-transcoder-for-live-streaming#ABR).

If you do have problems using this method, please open a ticket as suggested by Salvadore.

When providing the requested directories, please make sure you provide logs which show Wowza server starting.

If you are not sure how to get this information please see the following tutorial.

[How to create a compressed zip file in Windows, OS X, and Linux](https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux)

In the ticket ensure that you mention the following:

- If you have a live stream please outline the type of encoder in use along with the encoding settings for the stream.

- If you are using a .stream file to start re-streaming please provide this.

- If you are using multiple bitrates (ABR) then please provide the SMIL file associated with your configuration.

Please also include a link to this thread for reference.

Regards,

Jason

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [September 26, 2014, 8:30am UTC](https://community.wowza.com/t/issues-with-playback-of-hls-in-vlc/43833/4 "2014-09-26T08:30:28Z")

</div>

Hi,

Are you seeing any messages in the Wowza Streaming Engine access log when searching for the work “SKIP”?

As you’re using a server which only has 2 CPU cores and the transcoder is a high CPU intensive process it may not be creating the streams as expected.

The transcoder will skip frames and to a point that it’s keyframes only if it does not have the required hardware resources to perform the task it’s configured to do.

The transcoder skips frames to reduce the CPU requirements which prevent the server from crashing.

Without a ticket to search through the logs it’s hard to troubleshoot the issue. Perhaps try only enabling the lowest quality encodes to begin with so see if this helps.

Regards,

Jason

---

<div class="post-metadata">

**Author:** ![Allan\_John](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@Allan\_John](https://community.wowza.com/u/Allan_John)\
**Post date:** [September 24, 2014, 11:05am UTC](https://community.wowza.com/t/issues-with-playback-of-hls-in-vlc/43833/5 "2014-09-24T11:05:27Z")

</div>

Hello,

Its livestreaming from a .stream file. Better try creating streamname groups for transcoder profile and play the streamname group with the ngrp prefix instead of playing smil file.

Check “playback with streamname groups” in this pdf link : [https://www.wowza.com/resources/WowzaTranscoderAddOn\_UsersGuide.pdf](https://www.wowza.com/resources/WowzaTranscoderAddOn_UsersGuide.pdf)

Thank you,

Allan

---

<div class="post-metadata">

**Author:** ![Seemant\_Shankar1](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@Seemant\_Shankar1](https://community.wowza.com/u/Seemant_Shankar1)\
**Post date:** [September 24, 2014, 2:59pm UTC](https://community.wowza.com/t/issues-with-playback-of-hls-in-vlc/43833/6 "2014-09-24T14:59:39Z")

</div>

Thanks everyone for your comments…

1. Regarding Creating Stream Name Groups…I tried doing that and copy-pasted the HLS url in VLC. Nothing plays the logs I get are these…

_main debug: adding item `[http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8](http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8)’ ( [http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8](http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8) )_

_qt4 debug: Adding a new MRL to recent ones: [http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8](http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8)_

_main debug: processing request item: [http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8](http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8), node: null, skip: 0_

_main debug: rebuilding array of current - root Playlist_

_main debug: rebuild done - 1 items, index 0_

_main debug: starting playback of the new playlist item_

_main debug: resyncing on [http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8](http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8)_

_main debug: [http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8](http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8) is at 0_

_main debug: creating new input thread_

_main debug: Creating an input for ‘[http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8](http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8)’_

_main debug: using timeshift granularity of 50 MiB, in path ‘C:\Users\flo2go\AppData\Local\Temp’_

_main debug: `[http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8](http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8)' gives access `http’ demux `' path `xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8’_

_main debug: creating demux: access=‘http’ demux=’’ location=‘xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8’ file=’\xx.xx.xx.xx:1935\flo2golive\ngrp:StarSportsHD.stream\_all\playlist.m3u8’_

_main debug: looking for access\_demux module matching “http”: 12 candidates_

_main debug: no access\_demux modules matched_

_main debug: creating access ‘http’ location=‘xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8’, path=’\xx.xx.xx.xx:1935\flo2golive\ngrp:StarSportsHD.stream\_all\playlist.m3u8’_

_main debug: looking for access module matching “http”: 20 candidates_

_access\_http debug: querying proxy for [http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8](http://xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream_all/playlist.m3u8)_

_access\_http debug: no proxy_

_access\_http debug: http: server=‘xx.xx.xx.xx’ port=1935 file=’/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8’_

_main debug: net: connecting to xx.xx.xx.xx port 1935_

_main debug: no fetch required for (null) (art currently (null))_

_qt4 debug: IM: Setting an input_

_main debug: connection succeeded (socket = 1992)_

_access\_http debug: protocol ‘HTTP’ answer code 200_

_access\_http debug: Server: WowzaStreamingEngine/4.1.0_

_access\_http debug: Content-Type: application/vnd.apple.mpegurl_

_access\_http debug: this frame size=25_

_main debug: using access module “access\_http”_

_main debug: Using stream method for AStream\*_

_main debug: starting pre-buffering_

_main debug: received first data after 233 ms_

_main debug: looking for stream\_filter module matching “any”: 6 candidates_

_httplive info: HTTP Live Streaming (xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8)_

_httplive debug: parse\_M3U8 #EXTM3U #EXT-X-VERSION:3_

_httplive debug: Live Playlist HLS protocol version: 3_

_httplive debug: Choose segment 0/0 (sequence=0)_

_httplive error: fetching first segment failed._

_main debug: no stream\_filter modules matched_

_main debug: looking for stream\_filter module matching “record”: 6 candidates_

_main debug: using stream\_filter module “record”_

_main debug: creating demux: access=‘http’ demux=’’ location=‘xx.xx.xx.xx:1935/flo2golive/ngrp:StarSportsHD.stream\_all/playlist.m3u8’ file=’\xx.xx.xx.xx:1935\flo2golive\ngrp:StarSportsHD.stream\_all\playlist.m3u8’_

_main debug: looking for demux module matching “m3u8”: 63 candidates_

_playlist debug: found valid M3U playlist_
