google / spatial-media

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

Error: Invalid crop params: {crop} #152

Closed musubk closed 7 years ago

musubk commented 7 years ago

I'm getting this error when I try to inject metadata into my files. I can see that error message comes from line 435 of metadata_utils.py, but I can't understand what is leading me into that piece of code. I'm not giving it any crop parameters at all; I run the utility with

python spatialmedia -i input.mp4 output.mp4 I was using this at the end of December and it worked fine, I was able to upload a test video to YouTube that worked perfectly in the 360 format. Then I lost contact with the server for two weeks due to power failure, and now it's not working. I can't recall if I was calling the utility differently back then - is there another argument I need to add or something? My pano is 5664x2832 pixels and covers the entire 360x180 degree sphere. I'm running the utility on the exact same input file I used previously but I'm now getting this error. Any ideas or suggestions?

musubk commented 7 years ago

nevermind, I figured out my problem - I was running it with python 3 instead of python 2. It works now, I'm just kind of an idiot sometimes :)