temaran / ue4webcamera Goto Github PK
View Code? Open in Web Editor NEWAdds support for web cameras in Unreal Engine 4
Adds support for web cameras in Unreal Engine 4
Hei,
I'm using your plugin with Unreal 4.15 and it works very well most of the time. Sometimes it crashes after I stop the game from the editor, and the call stack says it comes from the ENQUEUE_UNIQUE_RENDER_COMMAND_ONEPARAMETER
block in FVideoCallbackHandler::SampleCB
.
My guess is that this block is sometimes executed after the games stops, and the code is accessing deallocated memory. Could you suggest a small fix ?
Access violation - code c0000005 (first/second chance not available)
UE4Editor_Webcamera!FTexture2DResource::GetTexture2DRHI() [c:\program files\epic games\ue_4.15\engine\source\runtime\engine\public\textureresource.h:276]
UE4Editor_Webcamera!`FVideoCallbackHandler::SampleCB'::`8'::EURCMacro_UpdateTextureRegionsData::DoTask() [v:\project\plugins\webcamera\source\private\videocallbackhandler.cpp:74]
UE4Editor_Webcamera!TGraphTask<`FVideoCallbackHandler::SampleCB'::`8'::EURCMacro_UpdateTextureRegionsData>::ExecuteTask() [c:\program files\epic games\ue_4.15\engine\source\runtime\core\public\async\taskgraphinterfaces.h:883]
UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll
It's a shame that such a nice project doesn't have a step by step guide on how to play a video.
I got it to build (which was a pain), but the brief and scanty comments on what to do is not enough.
A fuller step by step guide would be great, what should have been done was to make a sample project that plays a video (local file) and nothing else. A small video should have been included in project So that no set up would have been necessary, just running the project would get it to play. And again, a step by step guide on how to do it with a local video file, and another one for a web camera.
Hi,
Is it possible to have an update of this project with UE4.27 or UE5 ?
This function seems to be removed in 4.27 :
ENQUEUE_UNIQUE_RENDER_COMMAND_ONEPARAMETER(
UpdateTextureRegionsData,
FUpdateTextureRegionsData*, RegionData, RegionData,
{
int32 CurrentFirstMip = RegionData->Texture2DResource->GetCurrentFirstMip();
if (RegionData->MipIndex >= CurrentFirstMip)
{
RHIUpdateTexture2D(RegionData->Texture2DResource->GetTexture2DRHI(),
RegionData->MipIndex - CurrentFirstMip,
RegionData->Region,
RegionData->SrcPitch,
RegionData->SrcData + RegionData->Region.SrcY * RegionData->SrcPitch + RegionData->Region.SrcX * RegionData->SrcBpp);
}
delete RegionData;
});
In Source/Private/VideoCallbackHandler.cpp
Thanks
First of all, I would like to thank you for such a great plugin.
I wanna play live streaming in my unreal project, and take the hand movement as input in unreal to control the object movement in the game.
Can you help me?
I've got the sample project running under 4.14 and have applied the plugin to my project. Currently viewing 3 webcams at the same time under Win10. It is so great to have this functionality and it should probably be part of the engine.
I'm struggling to get the cameras operating in anything beyond 640x480 30fps. I'd like to achieve up to 1900x1080 and 60fps or higher. Can you provide any tips on how to achieve this in the plugin source?
Do you have any plans to improve this project? Or are you perhaps available to do some freelance work based on it?
Regards,
David
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.