# HLS based camera URLs taking time to connect using Mediacaster

**URL:** <https://community.wowza.com/t/hls-based-camera-urls-taking-time-to-connect-using-mediacaster/95845>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-engine\
**Created:** [January 23, 2023, 11:49am UTC](https://community.wowza.com/t/hls-based-camera-urls-taking-time-to-connect-using-mediacaster/95845 "2023-01-23T11:49:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alok\_Kumar2](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Alok\_Kumar2](https://community.wowza.com/u/Alok_Kumar2)\
**Post date:** [January 23, 2023, 11:49am UTC](https://community.wowza.com/t/hls-based-camera-urls-taking-time-to-connect-using-mediacaster/95845/1 "2023-01-23T11:49:02Z")

</div>

Hi,

We have been using RTSP url to ingest into Wowza and convert it to WebRTC and view the streams in a HTML5 based WebPage.

Recently, we have a requirement to ingest HLS based stream to Wowza and convert it to WebRTC. We are able to do that but we have noticed that it takes Wowza longer time to connect to a HLS based stream compared to a RTSP based URL.

Please let us know if this is the expected behavior and how can we reduce this connect time for HLS based URL. I am sharing a public HLS url that you can use for your testing if required.

Sample HLS URL: [https://wzmedia.dot.ca.gov/D10/SJ\_SB99\_OffToJackToneRd.stream/playlist.m3u8](https://wzmedia.dot.ca.gov/D10/SJ_SB99_OffToJackToneRd.stream/playlist.m3u8)

Area: Playback  
Engine Version: 4.8.5.05

---

<div class="post-metadata">

**Author:** ![Tim\_Dougherty](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/tim_dougherty/32/596_2.png) [@Tim\_Dougherty](https://community.wowza.com/u/Tim_Dougherty)\
**Post date:** [January 24, 2023, 7:11pm UTC](https://community.wowza.com/t/hls-based-camera-urls-taking-time-to-connect-using-mediacaster/95845/2 "2023-01-24T19:11:48Z")

</div>

HTTP/HLS is chunk based. The time it takes WSE to download the chunk(s) and package it to be ready for WebRTC delivery is likely the issue. If your camera/source supports, it may help to reduce the chunk duration to 1-2 seconds (from what’s likely 10) to speed up the download time (that’s how we reduce latency using WSE on the HLS delivery side).

As a best practice, for ultra-low latency, I would suggest not using HTTP and stick with RTMP, RTSP, SRT, etc. for the contribution protocol.

_Fun fact: That camera is just a few miles from my home (Lodi, CA)._

---

<div class="post-metadata">

**Author:** ![Alok\_Kumar2](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Alok\_Kumar2](https://community.wowza.com/u/Alok_Kumar2)\
**Post date:** [January 25, 2023, 5:14am UTC](https://community.wowza.com/t/hls-based-camera-urls-taking-time-to-connect-using-mediacaster/95845/3 "2023-01-25T05:14:01Z")

</div>

Thanks @Tim_Dougherty for your response.

We are only provided HLS based input urls to be consumed and these are all public URLs so it would be difficult to change the chunk durations on these cameras.

Apart from this, we have also noticed that many times Wowza is not even able to connect to these streams at all but the HLS stream works natively in a browser. What do you think could be the issue for this? Is there a default timeout setting for HLS based Mediacaster in Wowza that we need to increase so that it gives Wowza more time to pull the chunks.

---

<div class="post-metadata">

**Author:** ![Tim\_Dougherty](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/tim_dougherty/32/596_2.png) [@Tim\_Dougherty](https://community.wowza.com/u/Tim_Dougherty)\
**Post date:** [January 25, 2023, 6:07pm UTC](https://community.wowza.com/t/hls-based-camera-urls-taking-time-to-connect-using-mediacaster/95845/4 "2023-01-25T18:07:38Z")

</div>

Pulling HLS using media caster (Stream Files) can be problematic, in some cases. I would suggest you [contact Wowza support](https://www.wowza.com/support/open-ticket) for analysis.

---

<div class="post-metadata">

**Author:** ![Alok\_Kumar2](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Alok\_Kumar2](https://community.wowza.com/u/Alok_Kumar2)\
**Post date:** [January 26, 2023, 6:54am UTC](https://community.wowza.com/t/hls-based-camera-urls-taking-time-to-connect-using-mediacaster/95845/5 "2023-01-26T06:54:19Z")

</div>

@Tim_Dougherty, Yes I have opened a support ticket as well. If we have a HLS url, what other options are available in Wowza other than using a stream file to ingest this url?

---

<div class="post-metadata">

**Author:** ![Tim\_Dougherty](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/tim_dougherty/32/596_2.png) [@Tim\_Dougherty](https://community.wowza.com/u/Tim_Dougherty)\
**Post date:** [January 26, 2023, 5:07pm UTC](https://community.wowza.com/t/hls-based-camera-urls-taking-time-to-connect-using-mediacaster/95845/6 "2023-01-26T17:07:22Z")

</div>

There isn’t another option for ingesting HLS.
