Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Video Pauses During Encoding #37

Closed
cieraej opened this issue Apr 12, 2018 · 11 comments
Closed

Video Pauses During Encoding #37

cieraej opened this issue Apr 12, 2018 · 11 comments

Comments

@cieraej
Copy link

cieraej commented Apr 12, 2018

Hi,

I am using Unity 2017.4.0f1 and Windows 10. The encoder works for about 9 seconds before it just video pauses, and it doesn't say that there's an error. What can I do to ensure that this does not happen?

Best,
Ciera

@grancia
Copy link
Contributor

grancia commented Apr 12, 2018

Can you share FBCaptureSDK.txt in your project folder?

@cieraej
Copy link
Author

cieraej commented Apr 12, 2018

FBCaptureSDK.txt

Thank you for getting back to me so quickly!
It currently doesn't put out any errors pertaining to the issue. The only errors in this file are when I was trying to push it to an 8k video file.

@cg439
Copy link
Contributor

cg439 commented Apr 12, 2018 via email

@grancia
Copy link
Contributor

grancia commented Apr 12, 2018

I can't download your attached log file. Can you just copy and paste here?
Also as cg439 said, we don't support more than 4k encoding by limitation from AMD and NVIDIA's hardware encoding APIs.

@cieraej
Copy link
Author

cieraej commented Apr 12, 2018

pc: AMD Ryzen 51600
os: Windows 10
gfx card: NVIDIA GTX 1070 Ti
resolution: 4096 x 2048 & 2048 x 1024
and context of what you are encoding? encoding a unity scene using the encoder object provided/
video example: https://vimeo.com/264512278

The log file :
[ 2018-04-12 17:11:48 ]: Capture SDK Version: : 1.20
[ 2018-04-12 17:11:49 ][INFO]: Output folder already existed
[ 2018-04-12 17:11:49 ][INFO]: It's invalid texture pointer: null
[ 2018-04-12 17:11:49 ][INFO]: WAV file name ==================> : D:\Unity Projects\MakingWater_ClinkenFilms\MakingWater\Gallery/movie_2048x1024_2018-04-12 05_11_49.wav
[ 2018-04-12 17:12:00 ][INFO]: Released wave file resources
[ 2018-04-12 17:12:00 ][INFO]: Audio transcoding. Source file name ==================> : D:\Unity Projects\MakingWater_ClinkenFilms\MakingWater\Gallery/movie_2048x1024_2018-04-12 05_11_49.wav

(this log file hasn't updated anything since i stopped trying to make 8k videos)

Let me know if you need anything else to help diagnose the problem!

@grancia
Copy link
Contributor

grancia commented Apr 12, 2018

That issue seems to be what I fixed few weeks ago.
Since we're preparing for releasing 2.0 soon, I didn't update current version for a while.
But for your test, I will update latest version of 1.0 today. If you still encounter the issue, please let me know.
Thanks,

@cieraej
Copy link
Author

cieraej commented Apr 12, 2018

Amazing!

Thank you so much for the time spent on helping me fix this issue! It is very much appreciated :)
Will update you on whether the fix is successful.

Best,
Ciera

@grancia
Copy link
Contributor

grancia commented Apr 12, 2018

Updated Capture SDK v1.3. Please check it out..

@cieraej
Copy link
Author

cieraej commented Apr 13, 2018

It is still doing it! The only way I can make it a bit better is by reducing the complexity of the scene. But it isn't too intensive as is. I will try to see if dropping to the version of Unity you're using might help? Do you have any other suggestions?

@cg439
Copy link
Contributor

cg439 commented Apr 13, 2018 via email

@grancia
Copy link
Contributor

grancia commented Apr 13, 2018

I think you're already rendering heavy scene? Because of that, it seems like GPU doesn't have enough room for encoding work.
Can you grab the latest code that I just pushed and try with lower "fps" value on CaptureOption?(like 30 fps to 24 fps) c093af0

And as Chetan said, if you're using old graphics card, then you need to update the driver too.

@grancia grancia closed this as completed Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants