{"action":"opened","issue":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1440","repository_url":"https://api.github.com/repos/Bilibili/ijkplayer","labels_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1440/labels{/name}","comments_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1440/comments","events_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/1440/events","html_url":"https://github.com/Bilibili/ijkplayer/issues/1440","id":159806424,"number":1440,"title":"如何减少直播视频流的延迟时间","user":{"login":"vitanie","id":9428149,"avatar_url":"https://avatars.githubusercontent.com/u/9428149?v=3","gravatar_id":"","url":"https://api.github.com/users/vitanie","html_url":"https://github.com/vitanie","followers_url":"https://api.github.com/users/vitanie/followers","following_url":"https://api.github.com/users/vitanie/following{/other_user}","gists_url":"https://api.github.com/users/vitanie/gists{/gist_id}","starred_url":"https://api.github.com/users/vitanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitanie/subscriptions","organizations_url":"https://api.github.com/users/vitanie/orgs","repos_url":"https://api.github.com/users/vitanie/repos","events_url":"https://api.github.com/users/vitanie/events{/privacy}","received_events_url":"https://api.github.com/users/vitanie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-12T03:57:04Z","updated_at":"2016-06-12T03:57:04Z","closed_at":null,"body":"第一次接触ios ijkplayer，客户端的视频流和服务端的RTMP视频流延迟在1-2s之间，以下是我的设置\r\nIJKFFOptions *options = [IJKFFOptions optionsByDefault]; //使用默认配置\r\n    [options setPlayerOptionIntValue:10 forKey:@\"max-buffer-size\"];\r\n    [options setFormatOptionIntValue:10 forKey:@\"rtbufsize\"];\r\n    [options setFormatOptionIntValue:2000000 forKey:@\"analyzeduration\"];\r\n    [options setFormatOptionValue:@\"nobuffer\" forKey:@\"fflags\"];\r\n    [options setFormatOptionIntValue:4096 forKey:@\"probsize\"];\r\n\r\n#define DEFAULT_HIGH_WATER_MARK_IN_BYTES        (256 * 1024)\r\n\r\n/*\r\n * START: buffering after prepared/seeked\r\n * NEXT:  buffering for the second time after START\r\n * MAX:   ...\r\n */\r\n#define DEFAULT_START_HIGH_WATER_MARK_IN_MS     (100)\r\n#define DEFAULT_NEXT_HIGH_WATER_MARK_IN_MS      (600)\r\n#define DEFAULT_MAX_HIGH_WATER_MARK_IN_MS       (2 * 1000)\r\n\r\n#define BUFFERING_CHECK_PER_BYTES               (512)\r\n#define BUFFERING_CHECK_PER_MILLISECONDS        (200)\r\n\r\n#define MAX_QUEUE_SIZE (5 * 1024 * 1024)\r\n#ifdef FFP_MERGE\r\n#define MIN_FRAMES 25\r\n#endif\r\n#define DEFAULT_MIN_FRAMES  5000\r\n#define MIN_MIN_FRAMES      5\r\n#define MAX_MIN_FRAMES      30000\r\n#define MIN_FRAMES (ffp->min_frames)\r\n#define EXTERNAL_CLOCK_MIN_FRAMES 2\r\n#define EXTERNAL_CLOCK_MAX_FRAMES 10"}}
{"actor":{"display_login":"vitanie"}}