{"action":"created","issue":{"url":"https://api.github.com/repos/ponchio/untrunc/issues/34","labels_url":"https://api.github.com/repos/ponchio/untrunc/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/ponchio/untrunc/issues/34/comments","events_url":"https://api.github.com/repos/ponchio/untrunc/issues/34/events","html_url":"https://github.com/ponchio/untrunc/issues/34","id":109075376,"number":34,"title":"invalid offset in trunk","user":{"login":"jensp","id":20545,"avatar_url":"https://avatars.githubusercontent.com/u/20545?v=3","gravatar_id":"","url":"https://api.github.com/users/jensp","html_url":"https://github.com/jensp","followers_url":"https://api.github.com/users/jensp/followers","following_url":"https://api.github.com/users/jensp/following{/other_user}","gists_url":"https://api.github.com/users/jensp/gists{/gist_id}","starred_url":"https://api.github.com/users/jensp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensp/subscriptions","organizations_url":"https://api.github.com/users/jensp/orgs","repos_url":"https://api.github.com/users/jensp/repos","events_url":"https://api.github.com/users/jensp/events{/privacy}","received_events_url":"https://api.github.com/users/jensp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-30T12:21:18Z","updated_at":"2015-10-01T06:53:41Z","closed_at":null,"body":"Hey, I have a very large (363GB) .mov file with a corrupted header. If I run untrunc against a valid file from the same app it quits with \"invalid offset in trunk\".\r\n\r\nI have tried to debug the issue by printing the values from the if statement:\r\n\r\noffsets size: 15784320\r\ni: 1148160 \r\noffset: -2117294592 \r\nmdat start: 40 \r\nmdat length: 28970628568 \r\n\r\nWith the offset being negative the comparison obviously fails. Any ideas?"},"comment":{"url":"https://api.github.com/repos/ponchio/untrunc/issues/comments/144637737","html_url":"https://github.com/ponchio/untrunc/issues/34#issuecomment-144637737","issue_url":"https://api.github.com/repos/ponchio/untrunc/issues/34","id":144637737,"user":{"login":"jensp","id":20545,"avatar_url":"https://avatars.githubusercontent.com/u/20545?v=3","gravatar_id":"","url":"https://api.github.com/users/jensp","html_url":"https://github.com/jensp","followers_url":"https://api.github.com/users/jensp/followers","following_url":"https://api.github.com/users/jensp/following{/other_user}","gists_url":"https://api.github.com/users/jensp/gists{/gist_id}","starred_url":"https://api.github.com/users/jensp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensp/subscriptions","organizations_url":"https://api.github.com/users/jensp/orgs","repos_url":"https://api.github.com/users/jensp/repos","events_url":"https://api.github.com/users/jensp/events{/privacy}","received_events_url":"https://api.github.com/users/jensp/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T06:53:41Z","updated_at":"2015-10-01T06:53:41Z","body":"yep, 363 GB. The memory part isn't an issue for me, I've been using a large 1TB swapfile on a fast SSD, but yeah the 2GB limitation is probably the issue.\r\nAnyway thanks a lot for your quick reply and for writing the tool in the first place, I'll try to find another solution in the mean time."}}