{"action":"created","issue":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/492","labels_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/492/comments","events_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/492/events","html_url":"https://github.com/Bilibili/ijkplayer/issues/492","id":108127967,"number":492,"title":"Endless preparing on network streams","user":{"login":"NikmanSergey","id":8132498,"avatar_url":"https://avatars.githubusercontent.com/u/8132498?v=3","gravatar_id":"","url":"https://api.github.com/users/NikmanSergey","html_url":"https://github.com/NikmanSergey","followers_url":"https://api.github.com/users/NikmanSergey/followers","following_url":"https://api.github.com/users/NikmanSergey/following{/other_user}","gists_url":"https://api.github.com/users/NikmanSergey/gists{/gist_id}","starred_url":"https://api.github.com/users/NikmanSergey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikmanSergey/subscriptions","organizations_url":"https://api.github.com/users/NikmanSergey/orgs","repos_url":"https://api.github.com/users/NikmanSergey/repos","events_url":"https://api.github.com/users/NikmanSergey/events{/privacy}","received_events_url":"https://api.github.com/users/NikmanSergey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Bilibili/ijkplayer/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-24T13:18:28Z","updated_at":"2015-09-28T19:44:45Z","closed_at":null,"body":"Hi!\r\nThanks for the Great library!\r\nI have endless preparing on network streams issue. It happens often and after it happened any other network streams hangs on preparing state. Local files still plays OK. You need to restart app to it work again. Tested on different devices.\r\nHere is the log when preparing hangs:\r\n```\r\nD/IJKMEDIA? IjkMediaPlayer_setDataSourceAndHeaders\r\nV/IJKMEDIA? setDataSource: path http://192.168.1.1:10020/udp/239.1.103.2:44328\r\nD/IJKMEDIA? ijkmp_set_data_source(url=\"http://192.168.1.1:10020/udp/239.1.103.2:44328\")\r\nD/IJKMEDIA? ijkmp_set_data_source(url=\"http://192.168.1.1:10020/udp/239.1.103.2:44328\")=0\r\nD/IJKMEDIA? IjkMediaPlayer_prepareAsync\r\nD/IJKMEDIA? ijkmp_prepare_async()\r\nI/IJKMEDIA? ===== options =====\r\nI/IJKMEDIA? player-opts : mediacodec                   = 1\r\nI/IJKMEDIA? player-opts : opensles                     = 0\r\nI/IJKMEDIA? player-opts : framedrop                    = 12\r\nplayer-opts : start-on-prepared            = 0\r\nformat-opts : ijkinject-opaque             = 546309242\r\nI/IJKMEDIA? format-opts : http-detect-range-support    = 0\r\nformat-opts : user-agent                   = xxx\r\nI/IJKMEDIA? codec-opts  : skip_loop_filter             = 48\r\nI/IJKMEDIA? ===================\r\nI/IJKMEDIA? SDL_RunThread: [27566] ff_msg_loop\r\nD/IJKMEDIA? message_loop\r\nijkmp_prepare_async()=0\r\nFFP_MSG_FLUSH:\r\nSDL_RunThread: [27567] ff_vout\r\nffpipenode_create_video_output_from_android_mediacodec()\r\nSDL_RunThread: [27568] ff_read\r\nD/IJKMEDIA? IjkMediaPlayer_native_finalize\r\nD/IJKMEDIA? IjkMediaPlayer_release\r\n----------------<Preparing process hangs here>----------------\r\n```\r\nLog when releasing this player:\r\n```\r\nD/PlayerIjk? Player releasing\r\nD/IJKMEDIA? IjkMediaPlayer_reset\r\nD/IJKMEDIA? IjkMediaPlayer_release\r\nD/IJKMEDIA? ijkmp_set_android_surface(surface=0x0)\r\nD/IJKMEDIA? ffpipeline_set_surface()\r\nD/IJKMEDIA? ijkmp_set_android_surface(surface=0x0)=void\r\nD/IJKMEDIA? ijkmp_shutdown_l()\r\nD/IJKMEDIA? message_loop exit\r\nE/IJKMEDIA? Option http-detect-range-support not found.\r\nW/IJKMEDIA? http://192.168.1.1:10020/udp/239.1.103.2:44328: could not find codec parameters\r\nD/IJKMEDIA? ijkmp_shutdown_l()=void\r\nD/IJKMEDIA? IjkMediaPlayer_native_setup\r\nI/IJKMEDIA? av_version_info: ff2.8--ijk0.3.3--dev0.3.3--rc1\r\nD/IJKMEDIA? ffpipeline_create_from_android()\r\nD/IJKMEDIA? ijkmp_set_inject_opaque(0x1d800556)\r\nD/IJKMEDIA? ijkmp_set_option_int(ijkinject-opaque, 494929238)\r\nD/IJKMEDIA? ijkmp_set_option_int()=void\r\nD/IJKMEDIA? ijkmp_set_inject_opaque()=void\r\nD/IJKMEDIA? ijkmp_android_set_mediacodec_select_callback()\r\nD/IJKMEDIA? ffpipeline_set_mediacodec_select_callback\r\nD/IJKMEDIA? ijkmp_android_set_mediacodec_select_callback()=void\r\nD/IJKMEDIA? ijkmp_dec_ref(): ref=0\r\nD/IJKMEDIA? ijkmp_shutdown_l()\r\nD/IJKMEDIA? ijkmp_shutdown_l()=void\r\nD/IJKMEDIA? IjkMediaPlayer_release\r\nD/IJKMEDIA? ijkmp_set_android_surface(surface=0x0)\r\nD/IJKMEDIA? ffpipeline_set_surface()\r\nD/IJKMEDIA? ijkmp_set_android_surface(surface=0x0)=void\r\nD/IJKMEDIA? ijkmp_shutdown_l()\r\nD/IJKMEDIA? ijkmp_shutdown_l()=void\r\nD/IJKMEDIA? ijkmp_dec_ref(): ref=0\r\nD/IJKMEDIA? ijkmp_shutdown_l()\r\nD/IJKMEDIA? ijkmp_shutdown_l()=void\r\nD/PlayerIjk? Player release finished\r\n```\r\nThank you for any help!"},"comment":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/comments/143854823","html_url":"https://github.com/Bilibili/ijkplayer/issues/492#issuecomment-143854823","issue_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/492","id":143854823,"user":{"login":"NikmanSergey","id":8132498,"avatar_url":"https://avatars.githubusercontent.com/u/8132498?v=3","gravatar_id":"","url":"https://api.github.com/users/NikmanSergey","html_url":"https://github.com/NikmanSergey","followers_url":"https://api.github.com/users/NikmanSergey/followers","following_url":"https://api.github.com/users/NikmanSergey/following{/other_user}","gists_url":"https://api.github.com/users/NikmanSergey/gists{/gist_id}","starred_url":"https://api.github.com/users/NikmanSergey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikmanSergey/subscriptions","organizations_url":"https://api.github.com/users/NikmanSergey/orgs","repos_url":"https://api.github.com/users/NikmanSergey/repos","events_url":"https://api.github.com/users/NikmanSergey/events{/privacy}","received_events_url":"https://api.github.com/users/NikmanSergey/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T19:44:45Z","updated_at":"2015-09-28T19:44:45Z","body":"@bbcallen,\r\nThe bug is in *hls.c* module. Using this file from previous ffmpeg (ijk-r0.2.4-dev) version or from the latest FFMpeg repository works OK. Thanks!"}}