keijiro / Dkvfx

An example that shows how to use recorded Depthkit footage with Unity VFX Graph
Other
228 stars 34 forks source link

Streaming Assets Folder not recognizing HAP files: "Failed to Open Stream" #2

Closed dollarbilll closed 5 years ago

dollarbilll commented 5 years ago

Hi all, this is my first github issue or forum post ever so my apologies if query doesn't follow the proper etiquette.

//My machine is an MSI GS63VR with a geforce gtx 1060 and I am running Unity 2019.1.0f2//

I've used ffmpeg to encode my depthkit .mp4 file into HAP codec, dragged that file into the Streaming Assets folder and changed the file name in the HAP Player to my file name. I've also converted depthkit metadata and dragged that into the Converter's metadata parameter.

The Hap Player returns a warning in the UI that states "failed to open file. Please specify a valid HAP-encoded .mov file". The console also returns an error that states "failed to open stream (). Unity.Engine.Debug:LogError(object)."

I thought this was probably because I wasn't using ffmpeg properly but I have re-installed ffmpeg several times now and double checked that it is setup to encode HAP following this link.

Also, when I try to revert back to the Test video and test.meta, I receive the same alert and error and see the same sort of generic rectangular vfx particles, so it seems maybe that something else is going on?

Lastly, I've had some trouble using the Git support on package manager. I've looked through the forum and installed mob-sakai's UPM Git Extension package, which seems to help.

Unity 2019 1 0f2 Personal -  PREVIEW PACKAGES IN USE  - Test unity - Dkvfx-master - PC, Mac   Linux Standalone_ _DX11_ 5_30_2019 4_56_01 PM Unity 2019 1 0f2 Personal -  PREVIEW PACKAGES IN USE  - Test unity - Dkvfx-master - PC, Mac   Linux Standalone_ _DX11_ 5_30_2019 4_55_46 PM Unity 2019 1 0f2 Personal -  PREVIEW PACKAGES IN USE  - Test unity - Dkvfx-master - PC, Mac   Linux Standalone_ _DX11_ 5_30_2019 4_55_39 PM Unity 2019 1 0f2 Personal -  PREVIEW PACKAGES IN USE  - Test unity - Dkvfx-master - PC, Mac   Linux Standalone_ _DX11_ 5_30_2019 5_04_24 PM

dollarbilll commented 5 years ago

Here is additional image showing the rest of the console error and its references to Klack scripts.

Unity 2019 1 0f2 Personal -  PREVIEW PACKAGES IN USE  - Test unity - Dkvfx-master - PC, Mac   Linux Standalone_ _DX11_ 5_30_2019 5_19_14 PM

dollarbilll commented 5 years ago

I found the problem. I wasn't including the .mov in the Hap Player file name.

[INCORRECT]:

Unity 2019 1 0f2 Personal -  PREVIEW PACKAGES IN USE  - Test unity - Dkvfx-master - PC, Mac   Linux Standalone_ _DX11_ 5_30_2019 6_47_54 PM

[CORRECT]:

Unity 2019 1 0f2 Personal -  PREVIEW PACKAGES IN USE  - Test unity - Dkvfx-master - PC, Mac   Linux Standalone_ _DX11_ 5_30_2019 6_48_05 PM

I found the answer by looking at this link