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

Can't display MJPEG stream #57

Open helldog136 opened 6 years ago

helldog136 commented 6 years ago

Hi,

I'm trying to display a MJPEG stream served via http using VLC in an Unreal Engine 4.18 app. But when i open the StreamMediaSource with a Media Player i get the following error:

LogVlcMedia: Error: mmdevice: cannot initialize COM (error 0x80010106) LogVlcMedia: Error: vmem: video format setup failure (no pictures) LogVlcMedia: Error: main: video output creation failed LogVlcMedia: Error: main: failed to create video output LogVlcMedia: Error: vmem: video format setup failure (no pictures) 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

The media seems to be playing (ie the time counter is active) but the image stays black.

On the other hand, i am able to open and dispay the stream outside of UE4 using VLC

What did i do wrong?

sedoy-jango-2 commented 3 years ago

Did you fix the problem? Please help me if is. I spend two days on it and still in research.

helldog136 commented 3 years ago

Hi, this is very old and I can't remember how I did it... You can always check the project I made at the time here: https://github.com/helldog136/AppVIVENAOControl