{"action":"created","issue":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1271","repository_url":"https://api.github.com/repos/Bilibili/ijkplayer","labels_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1271/labels{/name}","comments_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1271/comments","events_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1271/events","html_url":"https://github.com/Bilibili/ijkplayer/pull/1271","id":153229892,"number":1271,"title":"Video toolbox only support avcC, some h264 stream is annexB. covert it.","user":{"login":"betallcoffee","id":1055616,"avatar_url":"https://avatars.githubusercontent.com/u/1055616?v=3","gravatar_id":"","url":"https://api.github.com/users/betallcoffee","html_url":"https://github.com/betallcoffee","followers_url":"https://api.github.com/users/betallcoffee/followers","following_url":"https://api.github.com/users/betallcoffee/following{/other_user}","gists_url":"https://api.github.com/users/betallcoffee/gists{/gist_id}","starred_url":"https://api.github.com/users/betallcoffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betallcoffee/subscriptions","organizations_url":"https://api.github.com/users/betallcoffee/orgs","repos_url":"https://api.github.com/users/betallcoffee/repos","events_url":"https://api.github.com/users/betallcoffee/events{/privacy}","received_events_url":"https://api.github.com/users/betallcoffee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-05T13:16:46Z","updated_at":"2016-05-09T02:55:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/pulls/1271","html_url":"https://github.com/Bilibili/ijkplayer/pull/1271","diff_url":"https://github.com/Bilibili/ijkplayer/pull/1271.diff","patch_url":"https://github.com/Bilibili/ijkplayer/pull/1271.patch"},"body":"由此也可发现，VideoToolbox编码输出为avcC格式，而且VideoToolbox也只支持avcC格式的H.264。如果从网络中得到Annex-B格式的H.264数据（一般称作H.264裸流或Elementary Stream），用CMVideoFormatDescriptionCreateFromH264ParameterSets创建视频格式描述更方便，同时解码时需要将Annex-B转换成avcC，这也是WWDC2014 513 \"direct access to media encoding and decoding\"中说VideoToolbox只支持MP4容器装载的H.264数据的原因，就我所知，当写入MP4时，Annex-B使用的起始码（Start Code）会被写成长度（Length）。这就是VideoToolBox硬解最容易出问题的点，\r\n\r\n文／赖__82084788（简书作者）\r\n原文链接：http://www.jianshu.com/p/9febe519732a\r\n著作权归作者所有，转载请联系作者获得授权，并标注“简书作者”。"},"comment":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/comments/217766444","html_url":"https://github.com/Bilibili/ijkplayer/pull/1271#issuecomment-217766444","issue_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1271","id":217766444,"user":{"login":"bbcallen","id":835728,"avatar_url":"https://avatars.githubusercontent.com/u/835728?v=3","gravatar_id":"","url":"https://api.github.com/users/bbcallen","html_url":"https://github.com/bbcallen","followers_url":"https://api.github.com/users/bbcallen/followers","following_url":"https://api.github.com/users/bbcallen/following{/other_user}","gists_url":"https://api.github.com/users/bbcallen/gists{/gist_id}","starred_url":"https://api.github.com/users/bbcallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbcallen/subscriptions","organizations_url":"https://api.github.com/users/bbcallen/orgs","repos_url":"https://api.github.com/users/bbcallen/repos","events_url":"https://api.github.com/users/bbcallen/events{/privacy}","received_events_url":"https://api.github.com/users/bbcallen/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T02:55:58Z","updated_at":"2016-05-09T02:55:58Z","body":"Do you have any video sample can't be played before this patch?"}}