{"action":"created","issue":{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1671","repository_url":"https://api.github.com/repos/mbunkus/mkvtoolnix","labels_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1671/labels{/name}","comments_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1671/comments","events_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1671/events","html_url":"https://github.com/mbunkus/mkvtoolnix/issues/1671","id":150691941,"number":1671,"title":"MKVToolnix \"eats\" all the memory when demuxing and never starts the process","user":{"login":"rootsandculture","id":12083250,"avatar_url":"https://avatars.githubusercontent.com/u/12083250?v=3","gravatar_id":"","url":"https://api.github.com/users/rootsandculture","html_url":"https://github.com/rootsandculture","followers_url":"https://api.github.com/users/rootsandculture/followers","following_url":"https://api.github.com/users/rootsandculture/following{/other_user}","gists_url":"https://api.github.com/users/rootsandculture/gists{/gist_id}","starred_url":"https://api.github.com/users/rootsandculture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootsandculture/subscriptions","organizations_url":"https://api.github.com/users/rootsandculture/orgs","repos_url":"https://api.github.com/users/rootsandculture/repos","events_url":"https://api.github.com/users/rootsandculture/events{/privacy}","received_events_url":"https://api.github.com/users/rootsandculture/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels/app:mkvmerge","name":"app:mkvmerge","color":"fbca04"},{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels/os:all","name":"os:all","color":"444444"},{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels/res:fixed/implemented","name":"res:fixed/implemented","color":"009800"},{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels/type:bug","name":"type:bug","color":"fc2929"},{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels/v9.1.0","name":"v9.1.0","color":"330099"}],"state":"closed","locked":false,"assignee":{"login":"mbunkus","id":414282,"avatar_url":"https://avatars.githubusercontent.com/u/414282?v=3","gravatar_id":"","url":"https://api.github.com/users/mbunkus","html_url":"https://github.com/mbunkus","followers_url":"https://api.github.com/users/mbunkus/followers","following_url":"https://api.github.com/users/mbunkus/following{/other_user}","gists_url":"https://api.github.com/users/mbunkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mbunkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbunkus/subscriptions","organizations_url":"https://api.github.com/users/mbunkus/orgs","repos_url":"https://api.github.com/users/mbunkus/repos","events_url":"https://api.github.com/users/mbunkus/events{/privacy}","received_events_url":"https://api.github.com/users/mbunkus/received_events","type":"User","site_admin":false},"milestone":null,"comments":19,"created_at":"2016-04-24T19:19:07Z","updated_at":"2016-05-01T16:53:54Z","closed_at":"2016-04-26T19:12:43Z","body":"\r\nI'm trying to demux an BD, but it never starts. The HDD shows full activity and the memory starts to increase to hangs the OS. I see the process in the task manager and starts eating all the memory. I tried under Ubuntu and under Win7 and the same happens. Any ideas?\r\n\r\n![screenshot from 2016-04-24 16 13 48](https://cloud.githubusercontent.com/assets/12083250/14769810/b8443b1c-0a37-11e6-96ee-6124bcdc8f3a.png)"},"comment":{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/comments/216055096","html_url":"https://github.com/mbunkus/mkvtoolnix/issues/1671#issuecomment-216055096","issue_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1671","id":216055096,"user":{"login":"mbunkus","id":414282,"avatar_url":"https://avatars.githubusercontent.com/u/414282?v=3","gravatar_id":"","url":"https://api.github.com/users/mbunkus","html_url":"https://github.com/mbunkus","followers_url":"https://api.github.com/users/mbunkus/followers","following_url":"https://api.github.com/users/mbunkus/following{/other_user}","gists_url":"https://api.github.com/users/mbunkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mbunkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbunkus/subscriptions","organizations_url":"https://api.github.com/users/mbunkus/orgs","repos_url":"https://api.github.com/users/mbunkus/repos","events_url":"https://api.github.com/users/mbunkus/events{/privacy}","received_events_url":"https://api.github.com/users/mbunkus/received_events","type":"User","site_admin":false},"created_at":"2016-05-01T16:53:54Z","updated_at":"2016-05-01T16:53:54Z","body":"mkvmerge doesn't mark _all_ I slices as Matroska key frames. Only the ones that are actual key frames and the ones that that in MP4 are marked as random access points with the \"rap \" atom. Matroska simply doesn't differentiate between those two types.\r\n\r\nThe sample the user had uploaded doesn't include a single key frame (neither via recovery point NALUs nor as I slices in IDR NALUs). It does contain a lot of slices of type 2 and 7 in non-IDR NALUs (those are the ones contained in the MP4 \"rap \" atom), though. Those are now marked as key frames in Matroska, and seeking to them does work just fine.\r\n\r\nThis change affects only one of the two packetizers dealing with h.264. The other code path (e.g. when reading h.264 from MP4 files) has been marking MP4 RAP frames as Matroska since the end of 2015. See #1543 for the corresponding bug, one opened by you yourself ;)"}}