{"action":"created","issue":{"url":"https://api.github.com/repos/sannies/mp4parser/issues/109","labels_url":"https://api.github.com/repos/sannies/mp4parser/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/sannies/mp4parser/issues/109/comments","events_url":"https://api.github.com/repos/sannies/mp4parser/issues/109/events","html_url":"https://github.com/sannies/mp4parser/issues/109","id":108529389,"number":109,"title":"NoSuchElementException when accessing list but .size() works ok","user":{"login":"Episodex","id":6061876,"avatar_url":"https://avatars.githubusercontent.com/u/6061876?v=3","gravatar_id":"","url":"https://api.github.com/users/Episodex","html_url":"https://github.com/Episodex","followers_url":"https://api.github.com/users/Episodex/followers","following_url":"https://api.github.com/users/Episodex/following{/other_user}","gists_url":"https://api.github.com/users/Episodex/gists{/gist_id}","starred_url":"https://api.github.com/users/Episodex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Episodex/subscriptions","organizations_url":"https://api.github.com/users/Episodex/orgs","repos_url":"https://api.github.com/users/Episodex/repos","events_url":"https://api.github.com/users/Episodex/events{/privacy}","received_events_url":"https://api.github.com/users/Episodex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-09-27T10:59:59Z","updated_at":"2015-09-29T19:23:44Z","closed_at":null,"body":"Hello,\r\nI'm concatenating several videos to make one. It works for some videos (mainly rather short ones, the longest I tried with success was 5 min 56 sec total. But when I try to join longer set of videos I get exception on audio track .getSamples(). All audio tracks are cropped because of syncing issues so the are `CroppedTrack` in fact.\r\n\r\nNow more into details.\r\nI'm using version 1.1.7 which I believe is the latest.\r\n\r\nThis is how error looks like in Watch:\r\n![how](https://cloud.githubusercontent.com/assets/6061876/10122325/d8e5022e-6515-11e5-9c79-3ff6b32070ae.PNG)\r\n\r\nAs you can see size() works but whole list not.\r\n\r\nThe code where this happens is:\r\n\r\n    public List<Sample> getSamples() {\r\n        return origTrack.getSamples().subList(fromSample, toSample);\r\n    }\r\n\r\nin `CroppedTrack.java`. If I get into `origTrack.getSamples()` and run watch on private variable `samples` I get the error that is attached.\r\n\r\nI think something may be wrong with the implementation of `AbstractArray` for cropped list. I will try to debug further to find out what's happening but maybe you'll have time to make it even faster.\r\n\r\nThe problem is with test case. It doesn't happen for all videos. I crop all of them and some are concatenated without a problem and others throw exception. The one rule I noticed so far, but can't tell it's 100% is that it doesn't work for long video sets. But maybe it's not about time but number of tracks. In this example there are 14 video tracks appended to each other. The error is thrown on second audio track. I go back to debugging. Let me know if you need more details on this.\r\n\r\nBtw. great job with the library! I will donate for sure when this finally works for me :)."},"comment":{"url":"https://api.github.com/repos/sannies/mp4parser/issues/comments/144162461","html_url":"https://github.com/sannies/mp4parser/issues/109#issuecomment-144162461","issue_url":"https://api.github.com/repos/sannies/mp4parser/issues/109","id":144162461,"user":{"login":"rniebecker","id":12074961,"avatar_url":"https://avatars.githubusercontent.com/u/12074961?v=3","gravatar_id":"","url":"https://api.github.com/users/rniebecker","html_url":"https://github.com/rniebecker","followers_url":"https://api.github.com/users/rniebecker/followers","following_url":"https://api.github.com/users/rniebecker/following{/other_user}","gists_url":"https://api.github.com/users/rniebecker/gists{/gist_id}","starred_url":"https://api.github.com/users/rniebecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rniebecker/subscriptions","organizations_url":"https://api.github.com/users/rniebecker/orgs","repos_url":"https://api.github.com/users/rniebecker/repos","events_url":"https://api.github.com/users/rniebecker/events{/privacy}","received_events_url":"https://api.github.com/users/rniebecker/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T19:23:44Z","updated_at":"2015-09-29T19:23:44Z","body":"Same here 1.1.9 is not working. Will test the other versions as well...\r\n\r\nI don't know where I got the version 1.0.7.1 from tbh, I had it in my download folder, must have downloaded it some weeks ago.\r\n\r\nCheers,\r\nRalf"}}