Open keitasumiya opened 2 years ago
Thanks for the clear demonstration of the issue.
I assume this is for some sort of VJ use case?
Are you also using the 'Use Custom MOV Parser' option?
Have you tried turning some of the other options off, such as:
Use Text Tracks : Disabled
Use Stereo Detection : Disabled
Use Facebook Audio 360 : Disabled
Audio Output : None
Also - does the issue only happen with mp4 files? What happens if you disable the 'Use Hap/NotchLC codec' option?
Thanks,
Thank you for your reply.
Yes, I make a VJ-like system for business and occur this problem... I tested your suggestions but it did not solve this problem. Results are as followings:
Slow Motion capture:
Slow Motion capture:
Normal Speed capture:
Normal Speed capture:
Thanks,
@AndrewRH
Hi, I tested your suggestions as the previous comment. If possible, I would appreciate your reply.
Thanks, Keita
Hi Keita,
Sorry for the slow response - we've very busy at the moment so I haven't had time to investigate this further.
Perhaps you could open the videos in sequence instead of at the same time? Maybe open one video and then a few frames/milliseconds later open the next one.
For DirectShow we anticipate a delay (causing frame drop) because the API is not asynchronous. This can only be fixed by moving all of the code to another thread. This is a known solution, it will just take time to implement it.
For Media Foundation the API is meant to be asynchronous, but I guess there is something in there that's causing a delay - perhaps the texture creation / destruction. I will have to investigate this to find the cause and then see what we can do about it.
Also - perhaps you could reduce the number of chunks in your Hap encoding? Try 4 or 8 chunks, as this will mean we can create less threads which may help loading time.
Thanks,
Hi, Andrew
Thank you so much for your reply. And I am sorry for my previous comment because you are so busy now.
Moreover, thank you for your advices. As you mentioned, I open those videos in sequence. So I’ll try opening those in other threads.
I really appreciate your kind messages. Thanks, Keita
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.
This is an optimisation issue and it would be good to improve this. We need to investigate where the bottlenecks are for loading Hap videos. We may need to expose some options, as our Hap decoder is optimised towards high resolutions, but that may be hurting performance for simpler videos that just need to load fast.. Could also be some texture creation overhead. Anyway, something seems to be blocking the main thread...
Describe the issue I would like to instantiate new AVPro videos without effects some AVPro videos which already plays. Could you tell me the way how can I do it? (This issue is relevant to my previous issue: https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1017) (I made a test project for this issue so is it OK if I send the test project?)
Your Setup (please complete the following information):
Video specs (resolution, frame-rate, codec, file size):
https://www.dropbox.com/sh/782pd4h5enrvdwa/AAC6K6J04adxs4-uo-vjQh2da?dl=0
hap
ffmpeg -y -r 30 -i inputDir/%04d.dpx -vcodec hap -format hap -r 30 -chunks 64 output.mov
h265
ffmpeg -y -r 30 -i inputDir/%04d.dpx -c:v libx265 -crf 24 -pix_fmt yuv420p -tune zerolatency -r 30 -vtag hvc1 output.mp4
To Reproduce
Logs If applicable, add error logs to help explain your problem.
Screenshots If applicable, add screenshots to help explain your problem.
Videos videos for debug: https://www.dropbox.com/sh/782pd4h5enrvdwa/AAC6K6J04adxs4-uo-vjQh2da?dl=0
Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE
Instead email the link to us unitysupport@renderheads.com I made a test project for this issue so is it OK if I send the test project?