# Live Stream in UE4

**URL:** <https://forums.unrealengine.com/t/live-stream-in-ue4/392741>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 4, 2017, 8:14pm UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741 "2017-05-04T20:14:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnkitPassi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnkitPassi](https://forums.unrealengine.com/u/AnkitPassi)\
**Post date:** [May 4, 2017, 8:14pm UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/1 "2017-05-04T20:14:34Z")

</div>

I know that I can Media stream in UE4 and i am doing exact that.

But is there any way to play a Live Stream video in UE4 Media Stream. ?

---

<div class="post-metadata">

**Author:** ![Ryderizm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryderizm](https://forums.unrealengine.com/u/Ryderizm)\
**Post date:** [May 6, 2017, 12:31pm UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/2 "2017-05-06T12:31:57Z")

</div>

Stream from VLC as the following:

set your path to be /folder/play.asf “http”

your stream output settings should be: ASF/WMV , set video output to MJEPG with your desired bitrate, disable audio- optional. and then load in media player “[http://localip:8080/folder/play.asf/](http://localip:8080/folder/play.asf/)”

localip should be 192.16\*._ **.** _ … etc…

---

<div class="post-metadata">

**Author:** ![AnkitPassi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnkitPassi](https://forums.unrealengine.com/u/AnkitPassi)\
**Post date:** [May 6, 2017, 2:15pm UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/3 "2017-05-06T14:15:34Z")

</div>

i want to set up a Live stream for AndroidMedia , according to documentation , only .mp4 , …3gpp , .aac , .m3u8 is supported for android media player.

Upon changing streaming settings to :  
path : /folder/play.mp4  
encapsulation : H.264 +Mp3 (Mp4) (Epic is recommending to use this standard)  
video codec : H-264

it is not playing !

any changes you want to suggest ?

thanks

---

<div class="post-metadata">

**Author:** ![Ryderizm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryderizm](https://forums.unrealengine.com/u/Ryderizm)\
**Post date:** [May 7, 2017, 2:59pm UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/4 "2017-05-07T14:59:42Z")

</div>

Sadly, the stream did not work with MP4 with me… but i’m pretty sure VLC has problems with codecs… I believe you have to download VLC codecs just before streaming… Because i tried to stream to http and let a different VLC window read the stream but it fails… so UE4 will also fail… basically try to stream to yourself. if it did not work that means missing codecs or there’s no way to livestream in MP4 format… WMV stream only worked with me. sorry i tried… and if you managed to stream to in .mp4 please tell me because i’m having the same problem.

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [May 10, 2017, 7:01pm UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/5 "2017-05-10T19:01:56Z")

</div>

You need to use a StreamMediaSource for this. Set the URL field to the address of the stream.

Not all platforms support the same streaming protocols and video codecs. Check first two tables on the [Media Framework Technical Reference](https://docs.unrealengine.com/latest/INT/Engine/MediaFramework/TechReference/index.html) for supported combinations.

VlcMedia is not included on that page as it is not an officially supported plug-in. However, It probably has the best support of all the plug-ins and should be able to consume pretty much anything. Anything that will work in VLC Player should also work in the VlcMedia plug-in. The only exception that I know of is YouTube, because VLC Player implements some custom YouTube container parsing code in Lua that is not part of the LibVLC core libraries, and I haven’t had time to port it to UE4 yet.

---

<div class="post-metadata">

**Author:** ![RealAero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/realaero/32/716140_2.png) [@RealAero](https://forums.unrealengine.com/u/RealAero)\
**Post date:** [December 23, 2017, 6:56am UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/6 "2017-12-23T06:56:52Z")

</div>

HOLY ■■■■!!!

I SOLVED IT!!! I used Twitch, I assume YouTube will work similarly but I will teach with Twitch!!

So use OBS or other streamer of choice to stream to Twitch.

So hear me out!! You have to use also install the VLC Media Framework plugin for Unreal Engine 4. This is the 4.18 port. [GitHub - ue4plugins/VlcMedia: Media Framework plug-in using the Video LAN Codec (libvlc).](https://github.com/ue4plugins/VlcMedia)

Grab your desired profile URL while streaming and enter it here to get the .m3u8 stream: [Stream URL Extraction Tool](https://pwn.sh/tools/getstream.html)

Right click 1080p60 (or whichever of your choice and press Copy Link Address.

You should get a massive URL like:

[https://video-weaver.fra02.hls.ttvnw.net/v1/playlist/CsAC1qzOdMs8Y5g6iuLKHQ2AaRGBMI22Cot1BlO4bgaymW7RzZSrvilF-NNypjV\_nPgeMohePUmoOeuNCTYav0K044YfJUzMgXmNIKiKc72E5C6Y6-43C3iT4ypYJzJXymU7m3wTD0kZVScHsBDkIIKoe4VkBWI9vmFYTqQTYf1-gaE9lVDwMkXXLKf7N-mR85WmoWTC-aLDyvSdxoiXmSUkewnQKzcY7Tn2gdWgLBpNEf7kS5TqVwdlsGG8tIPyt\_C9i3wGb\_YSXaizBG\_SVaNG-cy2WbrBQQLYpZUM2H2E-gPtJNnAVXD3FfN1oHY4HJDiOy-HBrDReYUlVOAxwrha1CNBrxDRA1RLoZ1oM07xfeSWYoH9zoqanfdWs-8iX2HGMCgRC1eqxOBYL4Kz1tRIphFWNnPpB\_UKBirOykZtcQ0SEOqHDad5kSmzuw57O1RJjRsaDB307BXLfhNUVwpZ6Q.mp4](https://video-weaver.fra02.hls.ttvnw.net/v1/playlist/CsAC1qzOdMs8Y5g6iuLKHQ2AaRGBMI22Cot1BlO4bgaymW7RzZSrvilF-NNypjV_nPgeMohePUmoOeuNCTYav0K044YfJUzMgXmNIKiKc72E5C6Y6-43C3iT4ypYJzJXymU7m3wTD0kZVScHsBDkIIKoe4VkBWI9vmFYTqQTYf1-gaE9lVDwMkXXLKf7N-mR85WmoWTC-aLDyvSdxoiXmSUkewnQKzcY7Tn2gdWgLBpNEf7kS5TqVwdlsGG8tIPyt_C9i3wGb_YSXaizBG_SVaNG-cy2WbrBQQLYpZUM2H2E-gPtJNnAVXD3FfN1oHY4HJDiOy-HBrDReYUlVOAxwrha1CNBrxDRA1RLoZ1oM07xfeSWYoH9zoqanfdWs-8iX2HGMCgRC1eqxOBYL4Kz1tRIphFWNnPpB_UKBirOykZtcQ0SEOqHDad5kSmzuw57O1RJjRsaDB307BXLfhNUVwpZ6Q.mp4)

Rename this to have .mp4

[https://video-weaver.fra02.hls.ttvnw.net/v1/playlist/CsAC1qzOdMs8Y5g6iuLKHQ2AaRGBMI22Cot1BlO4bgaymW7RzZSrvilF-NNypjV\_nPgeMohePUmoOeuNCTYav0K044YfJUzMgXmNIKiKc72E5C6Y6-43C3iT4ypYJzJXymU7m3wTD0kZVScHsBDkIIKoe4VkBWI9vmFYTqQTYf1-gaE9lVDwMkXXLKf7N-mR85WmoWTC-aLDyvSdxoiXmSUkewnQKzcY7Tn2gdWgLBpNEf7kS5TqVwdlsGG8tIPyt\_C9i3wGb\_YSXaizBG\_SVaNG-cy2WbrBQQLYpZUM2H2E-gPtJNnAVXD3FfN1oHY4HJDiOy-HBrDReYUlVOAxwrha1CNBrxDRA1RLoZ1oM07xfeSWYoH9zoqanfdWs-8iX2HGMCgRC1eqxOBYL4Kz1tRIphFWNnPpB\_UKBirOykZtcQ0SEOqHDad5kSmzuw57O1RJjRsaDB307BXLfhNUVwpZ6Q.mp4](https://video-weaver.fra02.hls.ttvnw.net/v1/playlist/CsAC1qzOdMs8Y5g6iuLKHQ2AaRGBMI22Cot1BlO4bgaymW7RzZSrvilF-NNypjV_nPgeMohePUmoOeuNCTYav0K044YfJUzMgXmNIKiKc72E5C6Y6-43C3iT4ypYJzJXymU7m3wTD0kZVScHsBDkIIKoe4VkBWI9vmFYTqQTYf1-gaE9lVDwMkXXLKf7N-mR85WmoWTC-aLDyvSdxoiXmSUkewnQKzcY7Tn2gdWgLBpNEf7kS5TqVwdlsGG8tIPyt_C9i3wGb_YSXaizBG_SVaNG-cy2WbrBQQLYpZUM2H2E-gPtJNnAVXD3FfN1oHY4HJDiOy-HBrDReYUlVOAxwrha1CNBrxDRA1RLoZ1oM07xfeSWYoH9zoqanfdWs-8iX2HGMCgRC1eqxOBYL4Kz1tRIphFWNnPpB_UKBirOykZtcQ0SEOqHDad5kSmzuw57O1RJjRsaDB307BXLfhNUVwpZ6Q.mp4)

Enter this URL to the StreamMediaSource URL.  
Under Platforms, switch Windows from Windows Media Foundation (WmfMedia) to VideoLANPlayer (VLCMedia), and voila!!!

😃 I am so happy right now!

---

<div class="post-metadata">

**Author:** ![6r0m](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/6r0m/32/1194563_2.png) [@6r0m](https://forums.unrealengine.com/u/6r0m)\
**Post date:** [June 26, 2020, 8:20am UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/7 "2020-06-26T08:20:45Z")

</div>

Thanks! for youtube live - on 4.24: I cloned master (version of 13.12.2018) of the VLC Media Framework plugin and get URL m3u8 like [here](https://stackoverflow.com/questions/35608686/how-can-i-get-the-actual-video-url-of-a-youtube-live-stream) in the StreamMediaSource.

---

<div class="post-metadata">

**Author:** ![Anoberia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anoberia/32/590142_2.png) [@Anoberia](https://forums.unrealengine.com/u/Anoberia)\
**Post date:** [November 27, 2024, 6:01am UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/8 "2024-11-27T06:01:58Z")

</div>

Hey man thanks for the solution. The video plays perfect but audio is stuttering so much. Do you remember how it worked for you. And sorry for reviving a dead post!!

---

<div class="post-metadata">

**Author:** ![RealAero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/realaero/32/716140_2.png) [@RealAero](https://forums.unrealengine.com/u/RealAero)\
**Post date:** [November 28, 2024, 3:19am UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/9 "2024-11-28T03:19:46Z")

</div>

Same method as back then, but now you can use Electra Player instead of VLC. It should work

---

<div class="post-metadata">

**Author:** ![Anoberia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anoberia/32/590142_2.png) [@Anoberia](https://forums.unrealengine.com/u/Anoberia)\
**Post date:** [November 28, 2024, 6:25am UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/10 "2024-11-28T06:25:15Z")

</div>

Hey thanks for replying this fast! I’ve tried Electra player over VLS but it gives me “Not a master playlist” error. When I feed it with a Master playlist url, it crashes. I’ve confirmed that master playlist URL is working in standalone VLC. I’ll investigate source code for Electra where it doesn’t fetch master playlist. Wish me luck!!

---

<div class="post-metadata">

**Author:** ![RealAero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/realaero/32/716140_2.png) [@RealAero](https://forums.unrealengine.com/u/RealAero)\
**Post date:** [November 29, 2024, 4:18am UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/11 "2024-11-29T04:18:46Z")

</div>

I believe you have to ensure your stream is in mp4 format opposed to HLS I believe. If you aren’t generating the stream, then this is determined by the streaming service. I have since built a custom streaming CDN using [mux.com](http://mux.com) so we have control over the streams.

It’s been a long time since this post 😛

---

<div class="post-metadata">

**Author:** ![Anoberia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anoberia/32/590142_2.png) [@Anoberia](https://forums.unrealengine.com/u/Anoberia)\
**Post date:** [November 29, 2024, 9:15am UTC](https://forums.unrealengine.com/t/live-stream-in-ue4/392741/12 "2024-11-29T09:15:15Z")

</div>

I’ve converted live stream from .m3u8 to .ts file using ffmpeg. It’s opening with MediaSource but not StreamMediaSource. But audio is still clippy. So I’ll concentrate on audio rather than decoder 😃 They’re both my weak side but it’s fun to explore things ^^
