Comments (14)
from ue4-ffmpeg.
我这边尝试运行也是crash在这里,FFmpegDirector.cpp:222: LockTexture2D()
这行。 @waterfu1124 有找到什么相关的资料吗?
void UFFmpegDirector::GetScreenVideoData()
{
FRHICommandListImmediate& list = GRHICommandList.GetImmediateCommandList();
uint8* TextureData = (uint8*)list.LockTexture2D(GameTexture->GetTexture2D(), 0, EResourceLockMode::RLM_ReadOnly, LolStride, false);
if(Runnable)
Runnable->InsertVideo(TextureData);
list.UnlockTexture2D(GameTexture, 0, false);
}
堆栈:
[2022.09.27-12.16.55:354][319]LogWindows: Error: === Critical error: ===
[2022.09.27-12.16.55:354][319]LogWindows: Error:
[2022.09.27-12.16.55:354][319]LogWindows: Error: Fatal error: [File:D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp] [Line: 934]
[2022.09.27-12.16.55:354][319]LogWindows: Error: Rendering thread exception:
[2022.09.27-12.16.55:354][319]LogWindows: Error: Fatal error!
[2022.09.27-12.16.55:354][319]LogWindows: Error:
[2022.09.27-12.16.55:354][319]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000128
[2022.09.27-12.16.55:354][319]LogWindows: Error:
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffaa4927e9a UnrealEditor-D3D12RHI.dll!TD3D12Texture2D<FD3D12BaseTexture2D>::Lock() [D:\build\++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12Texture.cpp:1998]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffaa4929ab1 UnrealEditor-D3D12RHI.dll!FD3D12DynamicRHI::LockTexture2D_RenderThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12Texture.cpp:2492]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffaa6adc19c UnrealEditor-UFFmpeg.dll!UFFmpegDirector::GetScreenVideoData() [E:\UnrealProjects\UE5_ffmpeg\Plugins\UFFMpeg\Source\UFFMpeg\Private\FFmpegDirector.cpp:222]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffaa6ade447 UnrealEditor-UFFmpeg.dll!UFFmpegDirector::OnBackBufferReady_RenderThread() [E:\UnrealProjects\UE5_ffmpeg\Plugins\UFFMpeg\Source\UFFMpeg\Private\FFmpegDirector.cpp:197]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffaa6adb84c UnrealEditor-UFFmpeg.dll!TBaseUObjectMethodDelegateInstance<0,UFFmpegDirector,void __cdecl(SWindow &,TRefCountPtr<FRHITexture2D> const &),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\Epic\UE_5.0\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:611]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffaab2761c2 UnrealEditor-SlateRHIRenderer.dll!FSlateRHIRenderer::DrawWindow_RenderThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateRHIRenderer\Private\SlateRHIRenderer.cpp:1110]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffaab269ec7 UnrealEditor-SlateRHIRenderer.dll!TEnqueueUniqueRenderCommandType<`FSlateRHIRenderer::DrawWindows_Private'::`39'::SlateDrawWindowsCommandName,<lambda_f9feabdceba9d88a5c7b2ca3d59100d9> >::DoTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:193]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffaab27ef9a UnrealEditor-SlateRHIRenderer.dll!TGraphTask<TEnqueueUniqueRenderCommandType<`FSlateRHIRenderer::DrawWindows_Private'::`39'::SlateDrawWindowsCommandName,<lambda_f9feabdceba9d88a5c7b2ca3d59100d9> > >::ExecuteTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:975]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffad9d73a9d UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:753]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffad9d73f3e UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:642]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffad9d742e1 UnrealEditor-Core.dll!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:2115]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffae824976b UnrealEditor-RenderCore.dll!RenderingThreadMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:380]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffae824d158 UnrealEditor-RenderCore.dll!FRenderingThread::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:527]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffada447a2b UnrealEditor-Core.dll!FRunnableThreadWin::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:146]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffada440a90 UnrealEditor-Core.dll!FRunnableThreadWin::GuardedRun() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:76]
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffb3a897034 KERNEL32.DLL!UnknownFunction []
[2022.09.27-12.16.55:354][319]LogWindows: Error: [Callstack] 0x00007ffb3b142651 ntdll.dll!UnknownFunction []
from ue4-ffmpeg.
可以调试的工程在这里:https://github.com/upbit/ue5-ffmpeg
from ue4-ffmpeg.
你解决问题啦,可以可以感谢感谢!
可以调试的工程在这里:https://github.com/upbit/ue5-ffmpeg
你解决问题啦,可以可以感谢感谢!
from ue4-ffmpeg.
你解决问题啦,可以可以感谢感谢!
可以调试的工程在这里:https://github.com/upbit/ue5-ffmpeg
你解决问题啦,可以可以感谢感谢!
并没有,只有个48字节的空文件。暂时没找到DX12崩溃的相关资料。不过你可以试试DX11,之前我 DX12+ NDI tools 5 也是崩溃,换DX11正常
from ue4-ffmpeg.
如果有处理方法的话,也可以帮忙指点下。验证后我来提交MR
另外,ffmpeg的编译方法能共享下吗?替换了个自己的ffmpeg遇到点问题
from ue4-ffmpeg.
并没有,只有个48字节的空文件。暂时没找到DX12崩溃的相关资料。不过你可以试试DX11,之前我 DX12+ NDI tools 5 也是崩溃,换DX11正常
https://dev.epicgames.com/community/learning/tutorials/aqV9/render-hardware-interface-rhi
果然是这个原因。切换RHI到DX11后捕获正常,我更新下例子工程
RHI+DX12的资料估计得找下如何处理
from ue4-ffmpeg.
可以调试的工程在这里:https://github.com/upbit/ue5-ffmpeg
你好,我是个新手,打开工程文件的时候报错,麻烦可以指导一下吗
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 Unable to instantiate module 'UnrealEd': Unable to instantiate UnrealEd module for non-editor targets. UE5_ffmpeg X:\UE5\ue5-ffmpeg-master\Intermediate\ProjectFiles\UnrealBuildTool 1
from ue4-ffmpeg.
如果有处理方法的话,也可以帮忙指点下。验证后我来提交MR
另外,ffmpeg的编译方法能下共享吗?替换了一个自己的ffmpeg遇到点问题
额我就直接用的作者的插件进行编译,好像没什么能共享的呀
from ue4-ffmpeg.
并没有,只有个48字节的空文件。暂时没找到DX12崩溃的相关资料。不过你可以试试DX11,之前我 DX12+ NDI tools 5 也是崩溃,换DX11正常
https://dev.epicgames.com/community/learning/tutorials/aqV9/render-hardware-interface-rhi 果然是这个原因。切换RHI到DX11后捕获正常,我更新下例子工程
RHI+DX12的资料估计得找下如何处理
你好,请问有解决DX12崩溃的问题吗?可以指点一下
from ue4-ffmpeg.
没有找到对应的资料,后面是切换DX11做的。。
from ue4-ffmpeg.
from ue4-ffmpeg.
我发现用DX12录制的会极大的降低帧率,太卡了
from ue4-ffmpeg.
你们推流正常吗?我推流在avformat_write_header(out_format_context, NULL) < 0在370这个行崩溃,也不知道是声明原因
from ue4-ffmpeg.
Related Issues (18)
- 分辨率较高时crash HOT 1
- Create_Audio_Encoder("aac")编码格式只能是aac?还有其它的吗
- 插件移植报错 HOT 2
- 打包后运行抓帧功能失效 ?有遇到过吗?
- License
- 视频录制不准确,录制画面到最后是停止的
- 请问此插件支持ios吗
- > 并没有,只有个48字节的空文件。暂时没找到DX12崩溃的相关资料。不过你可以试试DX11,之前我 DX12+ NDI tools 5 也是崩溃,换DX11正常
- 4.25 大概率会崩溃 报Video_Frame_YUV_From_BGR方法内sws_scale处错误,访问越界 但有时候又不会崩溃 HOT 5
- ue5.0.3 rtmp crash, video save 正常,请问这种问题怎样解决 HOT 1
- 请问可以提供工程文件吗?vcproject这些文件 HOT 5
- 提个建议,新增库函数版本的暂停录制 HOT 6
- VR模式运行下,录制的是头盔里的内容,而不是程序窗口内容,并视频出现花屏颜色不对的问题。请问如何解决? HOT 3
- h h
- 硬件解码
- ffmpeg版本
- 前段会加速 后半段不动 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ue4-ffmpeg.