{"action":"created","issue":{"url":"https://api.github.com/repos/sannies/mp4parser/issues/149","labels_url":"https://api.github.com/repos/sannies/mp4parser/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/sannies/mp4parser/issues/149/comments","events_url":"https://api.github.com/repos/sannies/mp4parser/issues/149/events","html_url":"https://github.com/sannies/mp4parser/issues/149","id":125679299,"number":149,"title":"Replace Audio of a Video with diff AAC audio","user":{"login":"priyankinfinnov","id":15610225,"avatar_url":"https://avatars.githubusercontent.com/u/15610225?v=3","gravatar_id":"","url":"https://api.github.com/users/priyankinfinnov","html_url":"https://github.com/priyankinfinnov","followers_url":"https://api.github.com/users/priyankinfinnov/followers","following_url":"https://api.github.com/users/priyankinfinnov/following{/other_user}","gists_url":"https://api.github.com/users/priyankinfinnov/gists{/gist_id}","starred_url":"https://api.github.com/users/priyankinfinnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priyankinfinnov/subscriptions","organizations_url":"https://api.github.com/users/priyankinfinnov/orgs","repos_url":"https://api.github.com/users/priyankinfinnov/repos","events_url":"https://api.github.com/users/priyankinfinnov/events{/privacy}","received_events_url":"https://api.github.com/users/priyankinfinnov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-08T19:40:59Z","updated_at":"2016-01-09T19:12:27Z","closed_at":null,"body":"Hey nice lib, \r\nI want to replace the audio of a mp4 video with other aac audio(which i have recorded using phones mic) in Android.\r\n\r\n                        String accFileName = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/recording.acc\";\r\n                        String videoFileName = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/myvid.mp4\";\r\n\r\n                        Movie m = MovieCreator.build( new FileDataSourceImpl(videoFileName));\r\n                        List<Track> nuTracks = new ArrayList<>();\r\n                        for (Track t : m.getTracks()) {\r\n                            // Re-use all tracks besides the audio track\r\n                            if (!\"soun\".equals(t.getHandler())) {\r\n                                nuTracks.add(t);\r\n                            }\r\n                        }\r\n                        Track nuAudio = new AACTrackImpl(new FileDataSourceImpl(accFileName));\r\n                          //giving error on the above line \"Expected Start Word 0xfff\"\r\n                        nuTracks.add(nuAudio); // add the new audio track\r\n                        m.setTracks(nuTracks);\r\n                        String outputFileName = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/output.mp4\";\r\n                        Container c = new DefaultMp4Builder().build(m);\r\n                        c.writeContainer(new FileOutputStream(outputFileName).getChannel());\r\nAnd what is diffrence btwn raw aac and normal aac ? @sannies "},"comment":{"url":"https://api.github.com/repos/sannies/mp4parser/issues/comments/170271172","html_url":"https://github.com/sannies/mp4parser/issues/149#issuecomment-170271172","issue_url":"https://api.github.com/repos/sannies/mp4parser/issues/149","id":170271172,"user":{"login":"priyankinfinnov","id":15610225,"avatar_url":"https://avatars.githubusercontent.com/u/15610225?v=3","gravatar_id":"","url":"https://api.github.com/users/priyankinfinnov","html_url":"https://github.com/priyankinfinnov","followers_url":"https://api.github.com/users/priyankinfinnov/followers","following_url":"https://api.github.com/users/priyankinfinnov/following{/other_user}","gists_url":"https://api.github.com/users/priyankinfinnov/gists{/gist_id}","starred_url":"https://api.github.com/users/priyankinfinnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priyankinfinnov/subscriptions","organizations_url":"https://api.github.com/users/priyankinfinnov/orgs","repos_url":"https://api.github.com/users/priyankinfinnov/repos","events_url":"https://api.github.com/users/priyankinfinnov/events{/privacy}","received_events_url":"https://api.github.com/users/priyankinfinnov/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T19:12:26Z","updated_at":"2016-01-09T19:12:26Z","body":"Hi it is adts\nOn Jan 10, 2016 12:34 AM, \"Sebastian Annies\" <notifications@github.com>\nwrote:\n\n> Hi,\n> could you check what kind of AAC you recorded. There are two variant of\n> 'raw' AAC:\n>\n>    - fltp or (aac version 4) which is very uncommon in my eyes (not\n>    supported!)\n>    - and ADTS Could you use mediainfo on your file to see what it is?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/sannies/mp4parser/issues/149#issuecomment-170270052>.\n>\n"}}