{"action":"created","issue":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1166","repository_url":"https://api.github.com/repos/Bilibili/ijkplayer","labels_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1166/labels{/name}","comments_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1166/comments","events_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1166/events","html_url":"https://github.com/Bilibili/ijkplayer/issues/1166","id":147967885,"node_id":"MDU6SXNzdWUxNDc5Njc4ODU=","number":1166,"title":"怎样边播放边录制直播视频呢？","user":{"login":"cjztool","id":3993323,"node_id":"MDQ6VXNlcjM5OTMzMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/3993323?v=4","gravatar_id":"","url":"https://api.github.com/users/cjztool","html_url":"https://github.com/cjztool","followers_url":"https://api.github.com/users/cjztool/followers","following_url":"https://api.github.com/users/cjztool/following{/other_user}","gists_url":"https://api.github.com/users/cjztool/gists{/gist_id}","starred_url":"https://api.github.com/users/cjztool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjztool/subscriptions","organizations_url":"https://api.github.com/users/cjztool/orgs","repos_url":"https://api.github.com/users/cjztool/repos","events_url":"https://api.github.com/users/cjztool/events{/privacy}","received_events_url":"https://api.github.com/users/cjztool/received_events","type":"User","site_admin":false},"labels":[{"id":301268738,"node_id":"MDU6TGFiZWwzMDEyNjg3Mzg=","url":"https://api.github.com/repos/Bilibili/ijkplayer/labels/staled","name":"staled","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":34,"created_at":"2016-04-13T07:16:05Z","updated_at":"2018-06-21T05:56:26Z","closed_at":"2016-07-18T07:26:53Z","author_association":"NONE","body":"想到的方案有：\n\n一.(基于m3u8的经验是)下载直播流，再在本地拼接成视频文件\n担心占用正在播放时的带宽导致播放器播放卡顿,本地拼接开销也是问题.\n\n二.截屏录制\n基本不行,已实验过替换surfaceviw为自定义的AndroidTextureView,开启线程调用TextureView那个方法 getBitmap(bmp), 传入bmp宽高和屏幕(N6差不多2413x1357)一样的话需要耗时900+ms的时间截一次屏,而且播放画面卡顿一下.即便快到如 #301 dan-huang说的20ms,那截出来的怕也只能做成gif图了..\n\n三.从ijkplayer缓存里直接拷贝到一个本地文件\n参考 jgfntu@b1efc14 的 ffp_get_current_frame_l 函数, 里面的vp->bmp->pitches[0]始终都是0,不知啥原因就搜资料,13年的资料说是结构体SDL_Overlay已弃用,不知道是不是代码太新,,所以就改成\nAVFrame\\* fmp=vp->frame;拿到 AVFrame,可是现在拿到了不知道该怎么弄了, 或是说整个ijkplayer视频解码完成之后哪个代码是控制缓存的呢   \n\n求 @bbcallen 赐教\n"},"comment":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/comments/398985127","html_url":"https://github.com/Bilibili/ijkplayer/issues/1166#issuecomment-398985127","issue_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1166","id":398985127,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODk4NTEyNw==","user":{"login":"xsfgdut","id":7820511,"node_id":"MDQ6VXNlcjc4MjA1MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7820511?v=4","gravatar_id":"","url":"https://api.github.com/users/xsfgdut","html_url":"https://github.com/xsfgdut","followers_url":"https://api.github.com/users/xsfgdut/followers","following_url":"https://api.github.com/users/xsfgdut/following{/other_user}","gists_url":"https://api.github.com/users/xsfgdut/gists{/gist_id}","starred_url":"https://api.github.com/users/xsfgdut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xsfgdut/subscriptions","organizations_url":"https://api.github.com/users/xsfgdut/orgs","repos_url":"https://api.github.com/users/xsfgdut/repos","events_url":"https://api.github.com/users/xsfgdut/events{/privacy}","received_events_url":"https://api.github.com/users/xsfgdut/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T05:56:26Z","updated_at":"2018-06-21T05:56:26Z","author_association":"NONE","body":"@chengzong 参照雷神代码，你有实现录像功能吗？\r\n谢谢！"}}
{"actor":{"display_login":"xsfgdut"}}