{"action":"created","issue":{"url":"https://api.github.com/repos/google/spatial-media/issues/129","repository_url":"https://api.github.com/repos/google/spatial-media","labels_url":"https://api.github.com/repos/google/spatial-media/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/google/spatial-media/issues/129/comments","events_url":"https://api.github.com/repos/google/spatial-media/issues/129/events","html_url":"https://github.com/google/spatial-media/issues/129","id":177626177,"number":129,"title":"Trying to add metadata fails","user":{"login":"ubusound","id":22268364,"avatar_url":"https://avatars.githubusercontent.com/u/22268364?v=3","gravatar_id":"","url":"https://api.github.com/users/ubusound","html_url":"https://github.com/ubusound","followers_url":"https://api.github.com/users/ubusound/followers","following_url":"https://api.github.com/users/ubusound/following{/other_user}","gists_url":"https://api.github.com/users/ubusound/gists{/gist_id}","starred_url":"https://api.github.com/users/ubusound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubusound/subscriptions","organizations_url":"https://api.github.com/users/ubusound/orgs","repos_url":"https://api.github.com/users/ubusound/repos","events_url":"https://api.github.com/users/ubusound/events{/privacy}","received_events_url":"https://api.github.com/users/ubusound/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-18T03:14:23Z","updated_at":"2016-09-22T12:52:25Z","closed_at":null,"body":"Hi,\r\n\r\nI have the Kodak PixPro 4k, and just received my TetraMic.  I've converted the recording to \"YouTube\" standard with the Blue Ripple Decoder plug in and reaper.\r\n\r\nI exported a video in the Kodak software to Youtube format, opened it in Quicktime 7 Pro, deleted the embedded audio track, and added the B-Format track, saving it as an .mov file.\r\n\r\nWhen I upload the file itself, YouTube does not recognize it as a 360 video.  When I try running spatial-media on it, I get:\r\n\r\n`Jeremys-Mac-Pro:spatial-media-master jeremylee$ python spatialmedia -i --spatial-audio /Volumes/Storage/SP360\\ 4k/Youtube\\ Exports\\ from\\ PixPro/Oregon\\ Beach\\ Youtube\\ w-\\ B-Format\\ Audio.mov /Volumes/Storage/SP360\\ 4k/Youtube\\ Exports\\ from\\ PixPro/Oregon\\ Beach\\ Youtube\\ w-\\ B-Format\\ Audio-metadata.mov\r\nProcessing: /Volumes/Storage/SP360 4k/Youtube Exports from PixPro/Oregon Beach Youtube w- B-Format Audio.mov\r\n\r\nError, invalid size 0 in ? at 21371\r\n\r\nError, failed to load box.\r\n\r\nError, failed to load box.\r\n\r\nError, failed to load box.\r\n\r\nError, failed to load box.\r\n\r\nError, failed to load .mp4 file.\r\n\r\nError file could not be opened.\r\n\r\nTraceback (most recent call last):\r\n\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 162, in _run_module_as_main\r\n    \"__main__\", fname, loader, pkg_name)\r\n\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 72, in _run_code\r\n    exec code in run_globals\r\n\r\n  File \"/Users/jeremylee/Box Sync/ Transfer to Mac Pro/Ambisonics Stuff/spatial-media-master/spatialmedia/__main__.py\", line 111, in <module>\r\n    main()\r\n\r\n  File \"/Users/jeremylee/Box Sync/ Transfer to Mac Pro/Ambisonics Stuff/spatial-media-master/spatialmedia/__main__.py\", line 96, in main\r\n    console)\r\n\r\n  File \"/Users/jeremylee/Box Sync/ Transfer to Mac Pro/Ambisonics Stuff/spatial-media-master/spatialmedia/../spatialmedia/metadata_utils.py\", line 417, in inject_metadata\r\n    inject_mpeg4(infile, outfile, metadata, console)\r\n\r\n  File \"/Users/jeremylee/Box Sync/ Transfer to Mac Pro/Ambisonics Stuff/spatial-media-master/spatialmedia/../spatialmedia/metadata_utils.py\", line 359, in inject_mpeg4\r\n    if not mpeg4_add_spherical(mpeg4_file, in_fh, metadata.video):\r\n\r\n  File \"/Users/jeremylee/Box Sync/ Transfer to Mac Pro/Ambisonics Stuff/spatial-media-master/spatialmedia/../spatialmedia/metadata_utils.py\", line 146, in mpeg4_add_spherical\r\n    for element in mpeg4_file.moov_box.contents:\r\n\r\nAttributeError: 'NoneType' object has no attribute 'moov_box'\r\n\r\nJeremys-Mac-Pro:spatial-media-master jeremylee$ python spatialmedia /Volumes/Storage/SP360\\ 4k/Youtube\\ Exports\\ from\\ PixPro/Oregon\\ Beach\\ Youtube\\ w-\\ B-Format\\ Audio.mov \r\nProcessing: /Volumes/Storage/SP360 4k/Youtube Exports from PixPro/Oregon Beach Youtube w- B-Format Audio.mov\r\n\r\nError, invalid size 0 in ? at 21371\r\n\r\nError, failed to load box.\r\n\r\nError, failed to load box.\r\n\r\nError, failed to load box.\r\n\r\nError, failed to load box.\r\n\r\nError, failed to load .mp4 file.\r\n\r\nError, file could not be opened.`\r\n\r\nAny idea what I'm doing wrong?  I'm new to this workflow.\r\n\r\nThanks!\r\n\r\nJeremy"},"comment":{"url":"https://api.github.com/repos/google/spatial-media/issues/comments/248894886","html_url":"https://github.com/google/spatial-media/issues/129#issuecomment-248894886","issue_url":"https://api.github.com/repos/google/spatial-media/issues/129","id":248894886,"user":{"login":"ubusound","id":22268364,"avatar_url":"https://avatars.githubusercontent.com/u/22268364?v=3","gravatar_id":"","url":"https://api.github.com/users/ubusound","html_url":"https://github.com/ubusound","followers_url":"https://api.github.com/users/ubusound/followers","following_url":"https://api.github.com/users/ubusound/following{/other_user}","gists_url":"https://api.github.com/users/ubusound/gists{/gist_id}","starred_url":"https://api.github.com/users/ubusound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubusound/subscriptions","organizations_url":"https://api.github.com/users/ubusound/orgs","repos_url":"https://api.github.com/users/ubusound/repos","events_url":"https://api.github.com/users/ubusound/events{/privacy}","received_events_url":"https://api.github.com/users/ubusound/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T12:52:25Z","updated_at":"2016-09-22T12:52:25Z","body":"OK.  So adding the track through iFFMPEG led to the VIDEO being recognized as 360º, but the audio is not, even after running the python script.  Here's the output from the script:\r\n\r\nProcessing: /Volumes/Storage/Movies/Oregon Beach.mov\r\nSaved file settings\r\n\tTrack 0\r\n\t\tSpherical = true\r\n\t\tStitched = true\r\n\t\tStitchingSoftware = Spherical Metadata Tool\r\n\t\tProjectionType = equirectangular\r\n\tTrack 1\r\n\t\tAmbisonic Type: periphonic\r\n\t\tAmbisonic Order: 1\r\n\t\tAmbisonic Channel Ordering: ACN\r\n\t\tAmbisonic Normalization: SN3D\r\n\t\tNumber of Channels: 4\r\n\t\tChannel Map: [0, 1, 2, 3]\r\n\r\nAnd I followed the instructions here:\r\n\r\nhttps://fb360spatialworkstation.zendesk.com/hc/en-us/articles/207888189-Add-Spatial-Audio-to-a-Video-For-YouTube\r\n\r\nIs there something I'm doing wrong?  Obviously there is ;-).  I'm giving YouTube a B-Format 24bit 48k audio file to play with, but even after the metadata injection, it's just playing back in stereo- not panning around with the video in Firefox.\r\n\r\nThanks for any more help you can give!\r\n\r\nJeremy"}}
{"actor":{"display_login":"ubusound"}}