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. ?
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. ?
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/ā
localip should be 192.16*.. ā¦ etcā¦
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
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.
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 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.
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).
Grab your desired profile URL while streaming and enter it here to get the .m3u8 stream: Stream URL Extraction Tool
Right click 1080p60 (or whichever of your choice and press Copy Link Address.
You should get a massive URL like:
Rename this to have .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!
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 in the StreamMediaSource.
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!!
Same method as back then, but now you can use Electra Player instead of VLC. It should work
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!!
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 so we have control over the streams.
Itās been a long time since this post
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 ^^