ue4plugins / VlcMedia

Media Framework plug-in using the Video LAN Codec (libvlc).
BSD 3-Clause "New" or "Revised" License
267 stars 145 forks source link

RTMP Streams not working #39

Open dkhalili opened 7 years ago

dkhalili commented 7 years ago

More of a personal issue than software issue. I may be doing something wrong but when I try playing an RTMP stream in a Media Player I get this error: LogMediaUtils: | VlcMedia (URI scheme or file extension not supported)

I have the the plugin installed and activated in UE4 version 4.18.

Wondering what I have to do to stream my RTMP video live and on demand in UE4.

Side question: Would it be possible do use this plugin if RTMP is working in a Daydream or Android game? I understand it's only supported in Windows but if I could participate in building plugin to be compatible with what I need I would be willing to add.

Thank you

gmpreussner commented 7 years ago

I added rtmp:// as a supported URI scheme. Let me know if it works, thanks!

dkhalili commented 7 years ago

Thank you for the quick support.

So it shows that is is playing but it isn't displaying the video, I tried other sample RTMP streams and I am receiving the same error in the output log:

LogVlcMedia: Error: mmdevice: cannot initialize COM (error 0x80010106) LogVlcMedia: Warning: faad: decoded zero sample LogVlcMedia: Warning: faad: Bitstream value not allowed by specification LogVlcMedia: Warning: faad: Unexpected channel configuration change LogVlcMedia: Warning: faad: decoded zero sample LogVlcMedia: Error: vmem: video format setup failure (no pictures) LogVlcMedia: Error: core: video output creation failed LogVlcMedia: Error: core: failed to create video output LogVlcMedia: Error: vmem: video format setup failure (no pictures) LogVlcMedia: Error: core: video output creation failed LogVlcMedia: Error: core: failed to create video output LogVlcMedia: Error: core: Failed to set on top LogVlcMedia: Warning: avcodec: plane 0 not aligned: disabling direct rendering

My computer has a 1050 TI GPU and 16gb RAM.

Thank you again, love this plugin.

gmpreussner commented 7 years ago

Can you send me one or two of the RTMP sample stream URLs you're using, so I can try to repro it here? Thanks!

dkhalili commented 7 years ago

rtmp://184.72.239.149/vod/mp4:bigbuckbunny_1500.mp4

I have some streams from my server as well, I could E-mail them over to you if you need more.

Thank you!

dkhalili commented 7 years ago

Audio is working fine, but no visual.

gmpreussner commented 7 years ago

Yeah, something is broken with video. I'll take a look soon!

dkhalili commented 7 years ago

So quick testing update.

Some .mp4 streams work, but not all of them.

FLV files aren't displaying at all, so for RTMP live streams and any VOD .flv streams, it is still problematic. I'm looking into what the issue may be as well, so if I solve anything I'll submit a pull request.

Thank you for everything!

dkhalili commented 7 years ago

Any updates on fixing RTMP streams?

jernkuan commented 7 years ago

I'm using an older branch of 4.16. Not seeing any problem with a nginx based rtmp server after updating https://github.com/ue4plugins/VlcMedia/commit/fbf58fcbbab7479be230393279702fccb9607ac7

armmah5 commented 6 years ago

I have tried 4.15, 4.16 and 4.17, all of them have problems opening the stream, complaining about format not being supported,

LogVlcMedia:Error: avcodec: Failed to open rtmp://...: Operation not permitted
LogVlcMedia:Error: core: Your input can't be opened

while the last one isn't even opening it at all. Any fixes to this problem?

gmpreussner commented 6 years ago

Please try the latest version (4.19), which includes the newest VLC 4.0.0. If the problem persists, please also check in VLC Player 4.0.0 directly (download from nightly builds website) and let me know if works there, thanks!

gmpreussner commented 6 years ago

This should be fixed in the 4.19 version. I am able to play the following stream now: rtmp://184.72.239.149/vod/mp4:bigbuckbunny_1500.mp4

Lewkas commented 6 years ago

Hello,

I'm using Unreal Engine 4.19.2 with the VLCplug-in too to read a RTMP stream. Downloaded the latest 4.19 build from github. However, like dkhalili, I can't manage to get rid of those errors :

LogVlcMedia: Error: mmdevice: cannot initialize COM (error 0x80010106) LogVlcMedia: Warning: faad: decoded zero sample LogVlcMedia: Error: vmem: missing lock callback LogVlcMedia: Error: main: video output creation failed LogVlcMedia: Error: main: failed to create video output [...] LogVlcMedia: Error: main: Failed to set on top LogVlcMedia: Warning: avcodec: plane 0 not aligned: disabling direct rendering

Any help would be really appreciated. Thanks, Lewkas

jamesmugford commented 6 years ago

I can confirm this is fixed and working as expected. @Lewkas , have you checked you've recompiled all of your binaries?

Lewkas commented 6 years ago

Well, I do not have the RTMP camera anymore, so I can't try to get my stream working for now. Sorry ^^'

fornof commented 6 years ago

I have RTMP streams working - if it plays in VLC Media Player, it can play it in unreal engine.

tm9k1 commented 5 years ago

LogVlcMedia: Error: mmdevice: cannot initialize COM (error 0x80010106) please tell me more about this error

HereafterMills commented 3 years ago

Hey! Im trying to get these streams to play on Android, Mac and iOS. They dont work. Can hear only audio. Can you tell me what i could use for this?