SystemFriend / GPUVideoEncoder-Trial

This Unity plugin can record full HD h264 encoded video from RenderTexture realtime.
GNU General Public License v3.0
27 stars 7 forks source link

SfMovieRecordPlugin.dll caused an Access Violation (0xc0000005) #1

Closed Darkirius closed 8 years ago

Darkirius commented 8 years ago

Hi. i'm use Unity 5.3.4f1. OS Windows 10.

I get an error SfMovieRecordPlugin.dll caused an Access Violation (0xc0000005). You can fix it?

satoshi-maemoto commented 8 years ago

@Darkirius Hi. I'm developer of this plugin. I checked this plugin. it's worked fine. My environment is follow.

Can you tell me your environment?

Darkirius commented 8 years ago

DxDiag.txt

error.txt

Darkirius commented 8 years ago

https://drive.google.com/open?id=0B_V8lUHHF2uBWEdjOGxKRE5mekE This test project. Need a webcam. Error after several attempts. A maximum of 10. Control via a script Assets\test\ScriptController.cs

Darkirius commented 8 years ago

When you correct the issue? If it works, I'm ready to buy.

satoshi-maemoto commented 8 years ago

Thank you for your information. I will check this issue tomorrow. Please wait a little.

satoshi-maemoto commented 8 years ago

@Darkirius Hi. I fixed this probrem probably. Please check latest version.

Unity Asset Store version has problem yet. but can work replase the MovieRecordCamera.cs.

Your information is very valuable. Thank you!

Darkirius commented 8 years ago

GPUVideoEncoder : Unable to initialize nvenc H/W Encoder. UnityEngine.Debug:Log(Object) GPUVideoEncoder.MovieRecordCamera:SfMovieRecordPluginDebugCallBack(String) (at Assets/GPUVideoEncoder/Scripts/MovieRecordCamera.cs:24) GPUVideoEncoder.SfMovieRecord:SfMR_StartMovieRecord(String, String, IntPtr, Int32, Boolean, UInt64) GPUVideoEncoder.SfMovieRecord:StartMovieRecord(String, String, IntPtr, Int32, Boolean, UInt64) (at Assets/GPUVideoEncoder/Scripts/SfMovieRecord.cs:83) GPUVideoEncoder.MovieRecordCamera:StartMovieRecord() (at Assets/GPUVideoEncoder/Scripts/MovieRecordCamera.cs:45)

Darkirius commented 8 years ago

GPUVideoEncoderException: Unable to initialize nvenc H/W Encoder. GPUVideoEncoder.SfMovieRecord.StartMovieRecord (System.String outputPath, System.String fileTitle, IntPtr texture, Int32 fps, Boolean withAudio, UInt64 audioDeviceIndex) (at Assets/GPUVideoEncoder/Scripts/SfMovieRecord.cs:85) GPUVideoEncoder.MovieRecordCamera.StartMovieRecord () (at Assets/GPUVideoEncoder/Scripts/MovieRecordCamera.cs:45)

satoshi-maemoto commented 8 years ago

@Darkirius Hi. Is this error occurs everytime? or sometime?

Darkirius commented 8 years ago

Often. When I change my code and press Play.

satoshi-maemoto commented 8 years ago

@Darkirius I was update to this branch. https://github.com/SystemFriend/GPUVideoEncoder-Trial/tree/issue/1

Please check and tell me the results.

Darkirius commented 8 years ago

Cool! I'm happy.

How to record sound with the camera AudioListener component?

satoshi-maemoto commented 8 years ago

@Darkirius OK! Thank you for your sample project. It helped me to improve this plugin.

Please refer readme P3 "Audio Recording".

https://github.com/SystemFriend/GPUVideoEncoder-Trial/blob/master/SfMovieRecordDevUnity/Assets/GPUVideoEncoder/readme.pdf

Thank you.

Darkirius commented 8 years ago

Green line bottom in video for trial-version?

satoshi-maemoto commented 8 years ago

@Darkirius This plugin supports 1920x1080 RenderTexrure now. but I want support another resolution. #7