{"action":"created","issue":{"url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/273","labels_url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/273/comments","events_url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/273/events","html_url":"https://github.com/mdhiggins/sickbeard_mp4_automator/issues/273","id":82706674,"number":273,"title":"Duplicate ios-audio streams created on subsequent processing","user":{"login":"mstrelan","id":665110,"avatar_url":"https://avatars.githubusercontent.com/u/665110?v=3","gravatar_id":"","url":"https://api.github.com/users/mstrelan","html_url":"https://github.com/mstrelan","followers_url":"https://api.github.com/users/mstrelan/followers","following_url":"https://api.github.com/users/mstrelan/following{/other_user}","gists_url":"https://api.github.com/users/mstrelan/gists{/gist_id}","starred_url":"https://api.github.com/users/mstrelan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstrelan/subscriptions","organizations_url":"https://api.github.com/users/mstrelan/orgs","repos_url":"https://api.github.com/users/mstrelan/repos","events_url":"https://api.github.com/users/mstrelan/events{/privacy}","received_events_url":"https://api.github.com/users/mstrelan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-30T05:19:56Z","updated_at":"2015-06-23T16:45:05Z","closed_at":null,"body":"It seems an iOS compatible stream is added every time a file is processed. I seem to have some issue that's causing my files to be processed twice, and I end up with 2x AAC streams and an AC3 stream. If I run manual.py on a file with no AAC stream I get 1 AAC stream. If I run it again I get two streams.\r\n\r\nHere's some example output.\r\n\r\n```\r\nReading audio streams.\r\nAudio detected for stream #1: aac [eng].\r\nCreating audio stream 0 from source audio stream 1.\r\nAudio detected for stream #2: ac3 [eng].\r\nCreating audio stream 1 from source audio stream 2 [iOS-audio].\r\nCreating audio stream 2 from source audio stream 2.\r\nReading subtitle streams.\r\nSubtitle detected for stream #3: mov_text [eng].\r\nCreating subtitle stream 0 from source subtitle stream 3.\r\nSubtitle detected for stream #4: mov_text [eng].\r\nCreating subtitle stream 1 from source subtitle stream 4.\r\nSubtitle detected for stream #5: mov_text [eng].\r\nCreating subtitle stream 2 from source subtitle stream 5.\r\n{\r\n    \"subtitle\": {\r\n        \"0\": {\r\n            \"map\": 3,\r\n            \"codec\": \"mov_text\",\r\n            \"language\": \"eng\"\r\n        },\r\n        \"1\": {\r\n            \"map\": 4,\r\n            \"codec\": \"mov_text\",\r\n            \"language\": \"eng\"\r\n        },\r\n        \"2\": {\r\n            \"map\": 5,\r\n            \"codec\": \"mov_text\",\r\n            \"language\": \"eng\"\r\n        }\r\n    },\r\n    \"audio\": {\r\n        \"0\": {\r\n            \"channels\": 2,\r\n            \"map\": 1,\r\n            \"codec\": \"copy\",\r\n            \"bitrate\": 256,\r\n            \"language\": \"eng\"\r\n        },\r\n        \"1\": {\r\n            \"channels\": 2,\r\n            \"map\": 2,\r\n            \"codec\": \"aac\",\r\n            \"bitrate\": 256,\r\n            \"language\": \"eng\"\r\n        },\r\n        \"2\": {\r\n            \"channels\": 6,\r\n            \"map\": 2,\r\n            \"codec\": \"copy\",\r\n            \"bitrate\": 1536,\r\n            \"language\": \"eng\"\r\n        }\r\n    },\r\n```\r\n\r\nI thought perhaps I could set ios-first-track-only = True but that had no effect. Is anyone else affected by this?\r\n\r\nAs a follow up, it would be good to have an option to delete duplicate tracks, so I could run manual.py again on an entire directory to remove duplicate AAC tracks."},"comment":{"url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/comments/114567458","html_url":"https://github.com/mdhiggins/sickbeard_mp4_automator/issues/273#issuecomment-114567458","issue_url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/273","id":114567458,"user":{"login":"mdhiggins","id":3608298,"avatar_url":"https://avatars.githubusercontent.com/u/3608298?v=3","gravatar_id":"","url":"https://api.github.com/users/mdhiggins","html_url":"https://github.com/mdhiggins","followers_url":"https://api.github.com/users/mdhiggins/followers","following_url":"https://api.github.com/users/mdhiggins/following{/other_user}","gists_url":"https://api.github.com/users/mdhiggins/gists{/gist_id}","starred_url":"https://api.github.com/users/mdhiggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdhiggins/subscriptions","organizations_url":"https://api.github.com/users/mdhiggins/orgs","repos_url":"https://api.github.com/users/mdhiggins/repos","events_url":"https://api.github.com/users/mdhiggins/events{/privacy}","received_events_url":"https://api.github.com/users/mdhiggins/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T16:45:05Z","updated_at":"2015-06-23T16:45:05Z","body":"Far as I know there's nowhere to store a label in the MP4 container\n\nOn Tue, Jun 23, 2015 at 11:45 AM, Andy Blackburn <notifications@github.com>\nwrote:\n\n> maybe label the first track \"AAC 2.0 IOS\" on procssing, then get the\n> script check for this ?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/mdhiggins/sickbeard_mp4_automator/issues/273#issuecomment-114551535>\n> .\n>\n"}}