{"action":"created","issue":{"url":"https://api.github.com/repos/SeedlingsBabylab/vidlengths/issues/1","labels_url":"https://api.github.com/repos/SeedlingsBabylab/vidlengths/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/SeedlingsBabylab/vidlengths/issues/1/comments","events_url":"https://api.github.com/repos/SeedlingsBabylab/vidlengths/issues/1/events","html_url":"https://github.com/SeedlingsBabylab/vidlengths/issues/1","id":124826498,"number":1,"title":"works in 'output' folder and with .mp4,  not on other folders, file types","user":{"login":"ebergelson","id":11085620,"avatar_url":"https://avatars.githubusercontent.com/u/11085620?v=3","gravatar_id":"","url":"https://api.github.com/users/ebergelson","html_url":"https://github.com/ebergelson","followers_url":"https://api.github.com/users/ebergelson/followers","following_url":"https://api.github.com/users/ebergelson/following{/other_user}","gists_url":"https://api.github.com/users/ebergelson/gists{/gist_id}","starred_url":"https://api.github.com/users/ebergelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebergelson/subscriptions","organizations_url":"https://api.github.com/users/ebergelson/orgs","repos_url":"https://api.github.com/users/ebergelson/repos","events_url":"https://api.github.com/users/ebergelson/events{/privacy}","received_events_url":"https://api.github.com/users/ebergelson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-04T19:54:08Z","updated_at":"2016-01-05T17:26:10Z","closed_at":null,"body":"maybe this is just a formatting thing but when i direct the script to another folder (e.g. Desktop instead of 'data') i get this:\r\nelikab01:vidlengths elikab$ python vidlengths.py /Users/elikab/Desktop/ eb_vidlengths.csv\r\nTraceback (most recent call last):\r\n  File \"vidlengths.py\", line 32, in <module>\r\n    walk_tree(start_dir)\r\n  File \"vidlengths.py\", line 24, in walk_tree\r\n    length = metadata.streams[0].durationSeconds()\r\nIndexError: list index out of range\r\n"},"comment":{"url":"https://api.github.com/repos/SeedlingsBabylab/vidlengths/issues/comments/169070818","html_url":"https://github.com/SeedlingsBabylab/vidlengths/issues/1#issuecomment-169070818","issue_url":"https://api.github.com/repos/SeedlingsBabylab/vidlengths/issues/1","id":169070818,"user":{"login":"andreiamatuni","id":744026,"avatar_url":"https://avatars.githubusercontent.com/u/744026?v=3","gravatar_id":"","url":"https://api.github.com/users/andreiamatuni","html_url":"https://github.com/andreiamatuni","followers_url":"https://api.github.com/users/andreiamatuni/followers","following_url":"https://api.github.com/users/andreiamatuni/following{/other_user}","gists_url":"https://api.github.com/users/andreiamatuni/gists{/gist_id}","starred_url":"https://api.github.com/users/andreiamatuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreiamatuni/subscriptions","organizations_url":"https://api.github.com/users/andreiamatuni/orgs","repos_url":"https://api.github.com/users/andreiamatuni/repos","events_url":"https://api.github.com/users/andreiamatuni/events{/privacy}","received_events_url":"https://api.github.com/users/andreiamatuni/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T17:26:10Z","updated_at":"2016-01-05T17:26:10Z","body":"Not sure at this point why running it on your Desktop is throwing that error, but as far as the file formats, the current script explicitly looks for files ending with .mp4. I can change that check to include whatever file formats necessary. What other file formats besides .mov should it be able to handle? I'll make the file format user specifiable from the command line and have it print what the default is otherwise. "}}