google / spatial-media

Specifications and tools for 360º video and spatial audio.
Other
1.86k stars 429 forks source link

Injection not seeing input and output files #62

Closed patricktr closed 8 years ago

patricktr commented 8 years ago

I'm trying to inject InitialView metadtata into a file. I have used the standalone GUI app to inject spherical tag, and that works. But when I type python spatialmedia -i [--InitialViewRollDegrees=80] v1.mp4 v1_80.mp4 the command line returns "Injecting Metadata requiores both an input and output file.

I have tried this several ways, but it does not seem to "see" the two files I have given it. What's going on here? screen shot 2016-02-18 at 3 57 06 pm

suderman-google commented 8 years ago

You are missing the -- infront of InitialViewRollDegrees=80, however --InitialViewRollDegrees=80 is optional.

Just try: python spatialmedia -i v1.mp4 v180.mp4

patricktr commented 8 years ago

Hmm, I've tried it with the -- in a variety of places with no success: screen shot 2016-02-18 at 4 20 32 pm

I know that the initial view is optional, but it is also the sole thing I am trying to accomplish -- right now I have a file that was shot on an angle against the horizon, and am trying to fix it. Of course, now that I know that YouTube does not yet support InitialView, this may be a moot point. Still, I'd love to figure out how to do this.

suderman-google commented 8 years ago

Square brackets indicate optional parameters and should not be included, the command you need to run is as follows:

python spatialmedia -i --InitialViewRollDegrees=80 v1.mp4 v1_80.mp4

sphericvr commented 8 years ago

Why not fix it in AE or Premiere? Want to share the file and I can help you out?

dcower commented 8 years ago

Hey @patricktr, sorry for any confusion here. The injector doesn't have support for InitialViewRollDegrees currently, so that's why you're unable to use the option. As @sphericvr mentioned, the right way to correct this today is by using video editing software.

patricktr commented 8 years ago

Okay thanks all. We can fix it in AE or premiere, but are interested in learning the code end of things. But if the injector doesn't yet support initial roll yet, then we'll fix it manually.

Thanks Sphericvr and dcower for your help!