{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/678","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/678/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/678/events","html_url":"https://github.com/google/ExoPlayer/issues/678","id":98425914,"number":678,"title":"MPEG-TS stream freezes every several seconds","user":{"login":"ddv2005","id":1864211,"avatar_url":"https://avatars.githubusercontent.com/u/1864211?v=3","gravatar_id":"","url":"https://api.github.com/users/ddv2005","html_url":"https://github.com/ddv2005","followers_url":"https://api.github.com/users/ddv2005/followers","following_url":"https://api.github.com/users/ddv2005/following{/other_user}","gists_url":"https://api.github.com/users/ddv2005/gists{/gist_id}","starred_url":"https://api.github.com/users/ddv2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddv2005/subscriptions","organizations_url":"https://api.github.com/users/ddv2005/orgs","repos_url":"https://api.github.com/users/ddv2005/repos","events_url":"https://api.github.com/users/ddv2005/events{/privacy}","received_events_url":"https://api.github.com/users/ddv2005/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-07-31T16:33:05Z","updated_at":"2015-11-06T03:00:47Z","closed_at":null,"body":"I have MXIII box that works fine in MediaPlayer on MPEG-TS H264/AAC stream. But exoPlayer freezes every several seconds. You can see it in my log at 00:21:23.188 ..Out PTS: 191000... Next PTS: 191040 should be played at 00:21:23.228 but it freezes before 00:21:23.908 (about 700 ms delay). Why it happen?\r\n08-01 00:21:22.988  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 190120..\r\n08-01 00:21:22.998  29788-31971/? V/AmlogicVideoDecoderAwesome﹕ The stream is avc and have no start code, Add one.\r\n08-01 00:21:23.018  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211876392\r\n08-01 00:21:23.018  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211876392 ok\r\n08-01 00:21:23.048  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 190160..\r\n08-01 00:21:23.048  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211877216\r\n08-01 00:21:23.048  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211877216 ok\r\n08-01 00:21:23.058  29788-31971/? V/AmlogicVideoDecoderAwesome﹕ The stream is avc and have no start code, Add one.\r\n08-01 00:21:23.088  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 190880..\r\n08-01 00:21:23.088  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211965448\r\n08-01 00:21:23.088  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211965448 ok\r\n08-01 00:21:23.098  29788-31971/? V/AmlogicVideoDecoderAwesome﹕ The stream is avc and have no start code, Add one.\r\n08-01 00:21:23.108  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 190920..\r\n08-01 00:21:23.118  29788-31971/? V/AmlogicVideoDecoderAwesome﹕ The stream is avc and have no start code, Add one.\r\n08-01 00:21:23.128  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211965104\r\n08-01 00:21:23.128  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211965104 ok\r\n08-01 00:21:23.168  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 190960..\r\n08-01 00:21:23.168  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211964712\r\n08-01 00:21:23.168  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211964712 ok\r\n08-01 00:21:23.188  29788-31971/? V/AmlogicVideoDecoderAwesome﹕ The stream is avc and have no start code, Add one.\r\n08-01 00:21:23.188  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 191000..\r\n08-01 00:21:23.208  29788-31971/? V/AmlogicVideoDecoderAwesome﹕ The stream is avc and have no start code, Add one.\r\n08-01 00:21:23.888  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211876392\r\n08-01 00:21:23.888  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211876392 ok\r\n08-01 00:21:23.908  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 191040..\r\n08-01 00:21:23.928  29788-31971/? V/AmlogicVideoDecoderAwesome﹕ The stream is avc and have no start code, Add one.\r\n08-01 00:21:23.928  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211877216\r\n08-01 00:21:23.928  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211877216 ok\r\n08-01 00:21:23.968  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 191080..\r\n08-01 00:21:23.968  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211965448\r\n08-01 00:21:23.968  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211965448 ok\r\n08-01 00:21:23.988  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 191120..\r\n08-01 00:21:23.988  29788-31971/? V/AmlogicVideoDecoderAwesome﹕ The stream is avc and have no start code, Add one.\r\n08-01 00:21:24.008  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211965104\r\n08-01 00:21:24.008  31225-31964/tv.stb I/ACodec﹕ video render this buffer -1211965104 ok\r\n08-01 00:21:24.018  29788-31971/? V/AmlogicVideoDecoderAwesome﹕ The stream is avc and have no start code, Add one.\r\n08-01 00:21:24.028  29788-31968/? D/AmlogicVideoDecoderAwesome﹕ Out PTS: 191160.."},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/154270237","html_url":"https://github.com/google/ExoPlayer/issues/678#issuecomment-154270237","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/678","id":154270237,"user":{"login":"bsysop","id":9998303,"avatar_url":"https://avatars.githubusercontent.com/u/9998303?v=3","gravatar_id":"","url":"https://api.github.com/users/bsysop","html_url":"https://github.com/bsysop","followers_url":"https://api.github.com/users/bsysop/followers","following_url":"https://api.github.com/users/bsysop/following{/other_user}","gists_url":"https://api.github.com/users/bsysop/gists{/gist_id}","starred_url":"https://api.github.com/users/bsysop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsysop/subscriptions","organizations_url":"https://api.github.com/users/bsysop/orgs","repos_url":"https://api.github.com/users/bsysop/repos","events_url":"https://api.github.com/users/bsysop/events{/privacy}","received_events_url":"https://api.github.com/users/bsysop/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T03:00:47Z","updated_at":"2015-11-06T03:00:47Z","body":"@Avetri yes, they solved that, in some cases need to upgrade all the last media decoders, but normally just changing /system/etc/media_codecs.xml this works.\r\n\r\nI change the avc and hevc for:\r\n\r\n```\r\n<MediaCodec name=\"OMX.amlogic.avc.decoder.awesome\" type=\"video/avc\" >\r\n            <Limit name=\"size\" min=\"64x64\" max=\"1920x1088\" />\r\n            <Limit name=\"alignment\" value=\"2x2\" />\r\n            <Limit name=\"block-size\" value=\"16x16\" />\r\n            <Limit name=\"blocks-per-second\" min=\"1\" max=\"972000\" />\r\n            <Limit name=\"bitrate\" range=\"1-300000000\" />\r\n            <Feature name=\"adaptive-playback\" />\r\n        </MediaCodec>\r\n        <MediaCodec name=\"OMX.amlogic.hevc.decoder.awesome\" type=\"video/hevc\" >\r\n            <Limit name=\"size\" min=\"64x64\" max=\"1920x1088\" />\r\n            <Limit name=\"alignment\" value=\"2x2\" />\r\n            <Limit name=\"block-size\" value=\"16x16\" />\r\n            <Limit name=\"blocks-per-second\" min=\"1\" max=\"972000\" />\r\n            <Limit name=\"bitrate\" range=\"1-300000000\" />\r\n            <Feature name=\"adaptive-playback\" />\r\n        </MediaCodec>\r\n```"}}