{"action":"created","issue":{"url":"https://api.github.com/repos/begeekmyfriend/yasea/issues/149","repository_url":"https://api.github.com/repos/begeekmyfriend/yasea","labels_url":"https://api.github.com/repos/begeekmyfriend/yasea/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/begeekmyfriend/yasea/issues/149/comments","events_url":"https://api.github.com/repos/begeekmyfriend/yasea/issues/149/events","html_url":"https://github.com/begeekmyfriend/yasea/issues/149","id":178801159,"number":149,"title":"录制视频问题","user":{"login":"Jack1103","id":22094696,"avatar_url":"https://avatars.githubusercontent.com/u/22094696?v=3","gravatar_id":"","url":"https://api.github.com/users/Jack1103","html_url":"https://github.com/Jack1103","followers_url":"https://api.github.com/users/Jack1103/followers","following_url":"https://api.github.com/users/Jack1103/following{/other_user}","gists_url":"https://api.github.com/users/Jack1103/gists{/gist_id}","starred_url":"https://api.github.com/users/Jack1103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jack1103/subscriptions","organizations_url":"https://api.github.com/users/Jack1103/orgs","repos_url":"https://api.github.com/users/Jack1103/repos","events_url":"https://api.github.com/users/Jack1103/events{/privacy}","received_events_url":"https://api.github.com/users/Jack1103/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-23T07:07:37Z","updated_at":"2016-09-23T07:24:35Z","closed_at":null,"body":"前段时间忙着项目，最近有时间研究视频录制了，我想要的效果是视频预录，我之前提过Issues，我的想法是对SrsMp4Muxer进行操作，一直回调writeFrameByte进行FIFO写frameCache，保证frameCache有两个keyFrame和若干非关键帧，我通过研究觉得这样能实现预录制2-5秒，当点击录制的时候我结束代码自己的poll，然后继续写frameCache，同时record开启worker，从frameCache的第一个关键帧开始形成视频，这样我觉得就可以实现在点击的时候录制视频从点击前几秒开始了，但事与愿违，根据这个想法改了多次发现产生的视频花屏，请问能提供给我一个思路吗？"},"comment":{"url":"https://api.github.com/repos/begeekmyfriend/yasea/issues/comments/249121320","html_url":"https://github.com/begeekmyfriend/yasea/issues/149#issuecomment-249121320","issue_url":"https://api.github.com/repos/begeekmyfriend/yasea/issues/149","id":249121320,"user":{"login":"Jack1103","id":22094696,"avatar_url":"https://avatars.githubusercontent.com/u/22094696?v=3","gravatar_id":"","url":"https://api.github.com/users/Jack1103","html_url":"https://github.com/Jack1103","followers_url":"https://api.github.com/users/Jack1103/followers","following_url":"https://api.github.com/users/Jack1103/following{/other_user}","gists_url":"https://api.github.com/users/Jack1103/gists{/gist_id}","starred_url":"https://api.github.com/users/Jack1103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jack1103/subscriptions","organizations_url":"https://api.github.com/users/Jack1103/orgs","repos_url":"https://api.github.com/users/Jack1103/repos","events_url":"https://api.github.com/users/Jack1103/events{/privacy}","received_events_url":"https://api.github.com/users/Jack1103/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T07:24:35Z","updated_at":"2016-09-23T07:24:35Z","body":"我发现 报了如下异常：\r\n09-23 15:19:31.427 11582-13713/com.dragonfly W/System.err: java.io.IOException: write failed: EFAULT (Bad address)\r\n09-23 15:19:31.427 11582-13713/com.dragonfly W/System.err:     at java.nio.FileChannelImpl.writeImpl(FileChannelImpl.java:503)\r\n09-23 15:19:31.427 11582-13713/com.dragonfly W/System.err:     at java.nio.FileChannelImpl.write(FileChannelImpl.java:480)\r\n09-23 15:19:31.427 11582-13713/com.dragonfly W/System.err:     at net.ossrs.yasea.SrsMp4Muxer.writeSampleData(SrsMp4Muxer.java:863)\r\n09-23 15:19:31.427 11582-13713/com.dragonfly W/System.err:     at net.ossrs.yasea.SrsMp4Muxer.access$300(SrsMp4Muxer.java:62)\r\n09-23 15:19:31.427 11582-13713/com.dragonfly W/System.err:     at net.ossrs.yasea.SrsMp4Muxer$1.run(SrsMp4Muxer.java:152)\r\n09-23 15:19:31.427 11582-13713/com.dragonfly W/System.err:     at java.lang.Thread.run(Thread.java:818)\r\n09-23 15:19:31.427 11582-13713/com.dragonfly W/System.err: Caused by: android.system.ErrnoException: write failed: EFAULT (Bad address)\r\n09-23 15:19:31.427 11582-13713/com.dragonfly W/System.err:     at libcore.io.Posix.writeBytes(Native Method)\r\n09-23 15:19:31.428 11582-13713/com.dragonfly W/System.err:     at libcore.io.Posix.write(Posix.java:261)\r\n09-23 15:19:31.428 11582-13713/com.dragonfly W/System.err:     at libcore.io.BlockGuardOs.write(BlockGuardOs.java:308)\r\n09-23 15:19:31.428 11582-13713/com.dragonfly W/System.err:     at java.nio.FileChannelImpl.writeImpl(FileChannelImpl.java:498)\r\n09-23 15:19:31.428 11582-13713/com.dragonfly W/System.err: \t... 5 more\r\n\r\n"}}
{"actor":{"display_login":"Jack1103"}}