google / spatial-media

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

360videosmetadata.py #48

Closed AsrielLewis closed 8 years ago

AsrielLewis commented 9 years ago

I was directed here by this page: https://support.google.com/youtube/answer/6178631?hl=en and told to download the zip and run the 360videosmetadata.py script, but it is no longer included in the zip and I can't figure out how to make the current script(s) work. I am new to python, and trying to inject 360 metadata into a equirectangular 360 video for youtube. Any help appreciated.

jprouty commented 9 years ago

That is indeed confusing! Sorry for the hassle. You can run the script as per the instructions on this page https://github.com/google/spatial-media/tree/master/spatialmedia. We'll be sure to update the help article you linked. Thanks for bringing it to our attention.

On Mon, Nov 30, 2015 at 4:34 PM AsrielLewis notifications@github.com wrote:

I was directed here by this page: https://support.google.com/youtube/answer/6178631?hl=en and told to download the zip and run the 360videosmetadata.py script, but it is no longer included in the zip and I can't figure out how to make the current script(s) work. I am new to python, and trying to inject 360 metadata into a equirectangular 360 video for youtube. Any help appreciated.

— Reply to this email directly or view it on GitHub https://github.com/google/spatial-media/issues/48.

mrjoshuak commented 8 years ago

Those instructions also do not seem to work.

suderman-google commented 8 years ago

If you are not in the current folder as the "spatialmedia" folder you will need to provide the entire path.

e.g. python ~/Desktop/spatial-media/spatialmedia -i ...

Alternatively we have an easier to use standalone application. https://github.com/google/spatial-media/releases/tag/v2.0

arpu commented 8 years ago

hello

how can i inject mkv web videos (vp9) ?

i use old 360videosmetadata.py i can set metadata , but youtube does not show the 360 degree player :(

suderman-google commented 8 years ago

Support for webm was removed for our current tooling due to some platform issues. We plan to reintroduce support however for now you will need to use an mp4 file.

AsrielLewis commented 8 years ago

When I download the standalone application to Downloads folder on MacBookPro/OS10.11.1 and open the injector tool, all the boxes are disabled, and when I highlight the equirectangular mp4 file on my desktop and select open, the app displays "No metadata found."

What am I doing wrong?

suderman-google commented 8 years ago

No metadata found is fine as the file likely does not contain any spherical metadata. Once loaded you will be able to select checkboxes and save the file with new metadata. So no worries, everything is working fine :+1:

AsrielLewis commented 8 years ago

Ok - that worked. How do I preview the injected clip? Thanks

suderman-google commented 8 years ago

There are a few options:

1 - You can use the metadata tool to verify the correct data is injected. If you open the save file it will state metadata is present and update checkboxes to match the contained metadata.

2 - Use KolorEyes to inspect the content. It does not parse metadata at this point but it does provide playback for the video and you can toggle mono/stereo.

3 - If you want to test the full set (metadata and playback) the best method at this point is to uploaded to YouTube as an unlisted video and playback the video.

AsrielLewis commented 8 years ago

Thanks for all the help.

suderman-google commented 8 years ago

No problem, happy to help!

ako515 commented 8 years ago

Hey guys! Any news in webm support? Or is there a solution for 8K video? Thanks.

suderman-google commented 8 years ago

We do not have an implementation for webm at the moment however there are some alternative solutions. One suggestion is to save as a prores .mov file, change the extension to .mp4, inject metadata, and restore the mov extension.

This should work in most cases and we will be releasing an updated version with mov support shortly.

dahnovka commented 8 years ago

Is there a standalone application for working with spatial audio? How to properly add it to the 360 video?

henrynho commented 8 years ago

sorry I have a question I have a problem, I lower the 360 Video Metadata Tool.app of goolgle , but after using it in two videos, no longer works for me porq I get opened file,

any help please thanks

xxraymoxx commented 8 years ago

Hi team

Ive been trying to use the standalone file for windows "360.Video.Metadata.Tool.win.exe"

I get the error message: "This app can't run on your PC. To find a version for your PC, check with the software publisher"

I've scoured the internet results and it looks like there are no posts or suggestions anywhere on this issue. Any ideas?

Many thanks in advance for your help.

suderman-google commented 8 years ago

The current version is not compatible with Windows 10. Are you using a windows 10 PC?

henrynho commented 8 years ago

suderman-google: friend a query when I open a video in Video Metadata Tool.app 360 Opened file tells me that means or where I find the file, can you help me please , Greetings

dcower commented 8 years ago

Hi @henrynho and @xxraymoxx,

Could you please re-download the latest Spatial Media Metadata Injector release and let us know if you are still having issues?

Thanks, Dillon

henrynho commented 8 years ago

when I open the video in the program tells me Opened file , I abjunto same image , I hope you can help me greetings captura de pantalla 2016-04-20 a las 5 09 06 p m )

dcower commented 8 years ago

Hi @henrynho,

After you open a file, you must check Spherical for a 360 video and 3D Top-bottom if the video is stereoscopic (in a top-bottom/over-under layout). Finally, you must click Save as and save the injected video, which you can then upload to YouTube or other 360 video services.

Dillon

henrynho commented 8 years ago

thanks and what I mean is that now I get opened file before he left me the option to save as, but now I get that message , greetings

henrynho commented 8 years ago

because I get "Opened File" and how to fix it because I can not do save as the video, I hope you can understand , Greetings

kotabelud commented 8 years ago

Hi guys. I keep getting "Fatal Error! Gui returned -1" when I tried running "Spatial Media Metadata Injector.exe". What could be the problem? error

dcower commented 8 years ago

Hi @kotabelud,

Could you share what version of Windows you're running, and whether your Windows is 32-bit or 64-bit?

dcower commented 8 years ago

@henrynho: If I understand correctly, the file opens but you're unable to check the boxes? Could you either attach a sample video here that exhibits the issue or email it to me ([myusername]@google.com)?

soursquid commented 8 years ago

I'm running on windows 7 64-bit and having the same issue as @kotabelud , when i run the Spatial Media Metadata Injector app it says "Fatal Error! gui returned -1" and closes immediately.

dcower commented 8 years ago

Hi @kotabelud and @soursquid,

Thanks for reporting and sorry about the inconvenience. I believe the issue should be fixed now. Could you please re-download the latest release and let me know if the issue is fixed? Thanks!

elotrosaulo commented 8 years ago

@dcower Hi! I just signed in to tell you that the latest release works perfectly!.

I wasn't able to open the app this morning (same issue described by @soursquid) , but now with the last update it works without any problem.

Thanks!!!

dcower commented 8 years ago

@elotrosaulo: Excellent! Very glad to hear that. Thanks for letting us know!

elotrosaulo commented 8 years ago

I wanted to tell you something too @dcower (I dont know if it's normal of not). I tried this morning the Mac app (on a mac pro tower) and in more than 1 hour it couldn't do the encoding process (it has still the "Saving as..." message), but in Windows it took only 30 seconds to process the exactly same video.

soursquid commented 8 years ago

@dcower Thanks for the fix, it's working perfectly fine now!

jacalo commented 8 years ago

Hi, I just dowload the last version of the Spatial Media Metadata injector for mac (8.5.9). Try to write on a H264 (.mp4) file edited and exported from after fx. It let me load the file and select (spherical) but when I hit save in the destination window, just shows saving the file, but won't do anything. Any files came up, and just see the same interface. Running Mac OS 10.10.5 Please help. Thanks in advance.

JC screen shot 2016-04-22 at 11 48 02 pm screen shot 2016-04-22 at 11 48 33 pm

screen shot 2016-04-22 at 11 47 01 pm screen shot 2016-04-22 at 11 42 08 pm

Splash62 commented 8 years ago

Hi All. Running into similar problem as @jacalo @elotrosaulo I believe - File is permanently stuck on "saving file to...." even when run overnight on a small file.

Working on a .mp4 video Running on OSX 10.9.5

Also - The file is 180 degrees only (half a sphere). Do I need to do anything different for that?

Thanks in advance E

Ahurtado12 commented 8 years ago

hi, i have a pixpro 360 4k camera that i have recorded videos on. When I try to run it trough the new metadata program it will not mix right. the top gets distorted and it shows a black hole when it shouldn't. i'm wondering if I download the old version of metadata (if i can find it) my videos will convert right without the blackhole on top. any suggestions on how i can fix this problem will be much appreciated. i should add that when i am edditing video on software it does not mix down with sound.

dcower commented 8 years ago

@jacalo @Splash62 Could you try deleting the old version and re-downloading the latest release of the Spatial Media Metadata Injector to see if the issue still occurs? We've made a couple changes to the .zip downloads.

dcower commented 8 years ago

@Ahurtado12 I believe the PIXPRO software (click "PIXPRO Software" on the top right of the page) should convert it to the YouTube-friendly format.

Ahurtado12 commented 8 years ago

@dcower thanks but I am talking about after that step before uploading them to youtube, I was trying to put two different footage together into one in my video editor but once I've done that I cannot upload into youtube with pixpro program but when I save it trough Metadata a black hole appears on top of my video, why does this happen with the new Metadata software? Is there a link to the older vertigo where it was literally one click of a button?

mrdeerwhale commented 8 years ago

@dcower Thanks. - I was having the same issue as @jacalo with the injector hanging while trying to save the injected file. It is working for me again when using the latest release you linked. I'm adding Spherical metadata to Equirectangular projection, without spatial audio on Mac. Thanks for your help.

Splash62 commented 8 years ago

@dcower thanks! Re-downloading worked, the video saved (and quite quickly).

As an aside, is anyone else trying to view home-made 360 video on iOS? With Kolor Eyes recently purchased by GoPro, I really don't see any good solutions. How are others watching their 360 video on an iPhone?

Splash62 commented 8 years ago

To clarify, I mean viewing 360 video in a VR viewer such as Cardboard using an iphone.

smasmonium commented 8 years ago

Not sure if this is quite the right thread for this question, but I took a 360 degree video with a Ricoh Theta S and am now trying to upload it to YouTube. Following these instructions, I downloaded the Spatial Media Metadata Injector for Mac, but first had to convert the camera's raw .m4v file into a .mov file using QuickTime in order for the Injector to process the file. I then did the injection and uploaded it to YouTube, but the orientation was wrong -- it thinks the "ground" is on the horizon line.

So the question is: Is there some way to use the Metadata Injector to correct the orientation? Or is there some other way to get correctly oriented data into a .m4v file taken using a Ricoh Theta S camera?

dcower commented 8 years ago

@smasmonium Just to check, did you use Ricoh Theta's software to convert the video into an equirectangular projection first, or does it look like this image?

smasmonium commented 8 years ago

Thanks for the assistance Dillon. My video looks like the image you linked to with two circles. When I tried downloading Ricoh "Basic App" for Mac from Ricoh's software site, it didn't seem able to open the raw .m4v file for the 360 degree video generated by the Ricoh Theta S camera, so I'm not sure how to "convert" it. The "Live-Streaming App" didn't seem to work either. Thoughts?

rengelmann commented 8 years ago

@smasmonium I think the only path Ricoh has given to convert their video files from fisheye to equirectangular is to import them from the camera into their mobile app first. Then transfer that resulting movie from your phone to your computer, and finally upload that to Facebook or YouTube. I just tested it again now and YouTube recognized it as a 360 video without running it through the metadata injector.

Unless you are in live mode and using the THETA UVC Blender capture. That works well with OBS or XSplit and YouTube.

Splash62 commented 8 years ago

Running into the most frustrating issue, I feel like I'm not totally understanding the overall process.

I have video recorded on a PixPro SP360 4K. Goal is to view footage on Cardboard using an iPhone.

Do you have to inject metadata to view any video in 360 (not just on youtube)?

The Pixpro app even uploaded a new VR viewer function, but it doesn't seem to work to be selectable.

Anyone else facing the same problem?

dcower commented 8 years ago

Hi everyone, I'm closing this issue since it has devolved to cover a variety of issues, many of which are now fixed. :) Please open separate issues if you have any additional problems/questions. Thanks!

Boscop commented 4 years ago

@jprouty @dcower I've been looking at this doc, but it's still not quite clear to me which CLI flags I have to use when I have an equirectangular video. Can you please tell me which flags I should use? :) (To automate the process / not using the GUI)

Should it be --stereo=none?


Btw, does the function inject_mpeg4 load the whole video into RAM? https://github.com/google/spatial-media/blob/8e20a1c670ba5fe8d972e15abdb378baa14839cb/spatialmedia/metadata_utils.py#L368 I need to use this on video files that are much larger than my available RAM..