{"action":"created","issue":{"url":"https://api.github.com/repos/goodow/GDLiveStreaming/issues/11","repository_url":"https://api.github.com/repos/goodow/GDLiveStreaming","labels_url":"https://api.github.com/repos/goodow/GDLiveStreaming/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/goodow/GDLiveStreaming/issues/11/comments","events_url":"https://api.github.com/repos/goodow/GDLiveStreaming/issues/11/events","html_url":"https://github.com/goodow/GDLiveStreaming/issues/11","id":160815816,"number":11,"title":"GDLLiveStreaming无法向FMS服务器推送流","user":{"login":"zas132","id":19943071,"avatar_url":"https://avatars.githubusercontent.com/u/19943071?v=3","gravatar_id":"","url":"https://api.github.com/users/zas132","html_url":"https://github.com/zas132","followers_url":"https://api.github.com/users/zas132/followers","following_url":"https://api.github.com/users/zas132/following{/other_user}","gists_url":"https://api.github.com/users/zas132/gists{/gist_id}","starred_url":"https://api.github.com/users/zas132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zas132/subscriptions","organizations_url":"https://api.github.com/users/zas132/orgs","repos_url":"https://api.github.com/users/zas132/repos","events_url":"https://api.github.com/users/zas132/events{/privacy}","received_events_url":"https://api.github.com/users/zas132/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-17T05:39:49Z","updated_at":"2016-06-17T08:30:49Z","closed_at":null,"body":"log如下：\r\n\r\n2016-06-17 13:38:34.200 GDLiveStreaming_Example[10579:3638533] Creating context\r\n2016-06-17 13:38:34.222 GDLiveStreaming_Example[10579:3638593] Focus mode not supported: AVCaptureFocusModeContinuousAutoFocus\r\n2016-06-17 13:38:34.222 GDLiveStreaming_Example[10579:3638593] Exposure mode not supported: AVCaptureExposureModeContinuousAutoExposure\r\nConnecting: xxx, stream name:letest\r\nClientState: 1\r\nClientState: 2\r\nClientState: 3\r\nWant read:4096, read:1428\r\nClientState: 4\r\nNot enough s1 size\r\nWant read:2668, read:1645\r\nClientState: 5\r\nClientState: 6\r\nTracking command(1, connect)\r\nWant read:4096, read:305\r\nSteam in buffer size:305\r\nFirst byte:0x2, header type:0\r\nHandle message:5\r\nReceived server window size: 2500000\r\nSteam in buffer size:289\r\nFirst byte:0x2, header type:0\r\nHandle message:6\r\nReceived peer bandwidth limit: 2500000 type: 2\r\nSteam in buffer size:272\r\nFirst byte:0x2, header type:0\r\nHandle message:1\r\nRequest to change incoming chunk size from 128 -> 4096\r\nSteam in buffer size:256\r\nFirst byte:0x3, header type:0\r\nHandle message:20\r\nReceived invoke\r\nReceived invoke _result\r\nFind command: connect for ID:1\r\nTracking command(2, releaseStream)\r\nTracking command(3, FCPublish)\r\nTracking command(4, createStream)\r\nClientState: 7\r\nWant read:4096, read:33\r\nSteam in buffer size:33\r\nFirst byte:0x3, header type:0\r\nHandle message:20\r\nReceived invoke\r\nReceived invoke onBWDone\r\nWant read:4096, read:0\r\nRead from stream error:0\r\nClientState: 11\r\n\r\n\r\n推送的代码：\r\n_videoCamera = [[GPUImageVideoCamera alloc] initWithSessionPreset:AVCaptureSessionPresetiFrame960x540 cameraPosition:AVCaptureDevicePositionFront];\r\n_videoCamera.outputImageOrientation = UIInterfaceOrientationPortrait;\r\n_videoCamera.frameRate = 20;\r\n\r\n    CGSize viewSize = self.view.frame.size;\r\n    GPUImageView *filteredVideoView = [[GPUImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, viewSize.width, viewSize.height)];\r\n    [self.view addSubview:filteredVideoView];\r\n    [_videoCamera addTarget:filteredVideoView];\r\n    GDLRawDataOutput *rtmpOutput = [[GDLRawDataOutput alloc] initWithVideoCamera:_videoCamera withImageSize:CGSizeMake(400, 712)];\r\n    [_videoCamera addTarget:rtmpOutput];\r\n    beautifyFilter = [[GPUImageBeautifyFilter alloc] init];\r\n    [GDLFilterUtil insertFilter:beautifyFilter before:filteredVideoView toChain:_videoCamera];\r\n\r\n    [rtmpOutput startUploadStreamWithURL:@\"rtmp://xxx/live/\" andStreamKey:@\"letest\"];\r\n    _videoCamera.audioEncodingTarget = nil;\r\n    [_videoCamera startCameraCapture];"},"comment":{"url":"https://api.github.com/repos/goodow/GDLiveStreaming/issues/comments/226711807","html_url":"https://github.com/goodow/GDLiveStreaming/issues/11#issuecomment-226711807","issue_url":"https://api.github.com/repos/goodow/GDLiveStreaming/issues/11","id":226711807,"user":{"login":"zas132","id":19943071,"avatar_url":"https://avatars.githubusercontent.com/u/19943071?v=3","gravatar_id":"","url":"https://api.github.com/users/zas132","html_url":"https://github.com/zas132","followers_url":"https://api.github.com/users/zas132/followers","following_url":"https://api.github.com/users/zas132/following{/other_user}","gists_url":"https://api.github.com/users/zas132/gists{/gist_id}","starred_url":"https://api.github.com/users/zas132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zas132/subscriptions","organizations_url":"https://api.github.com/users/zas132/orgs","repos_url":"https://api.github.com/users/zas132/repos","events_url":"https://api.github.com/users/zas132/events{/privacy}","received_events_url":"https://api.github.com/users/zas132/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T08:30:49Z","updated_at":"2016-06-17T08:30:49Z","body":"也许是VideoCore本身的问题，出错在握手还没开始推送阶段。"}}
{"actor":{"display_login":"zas132"}}