{"action":"opened","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/4505","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/4505/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/4505/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/4505/events","html_url":"https://github.com/Itseez/opencv/issues/4505","id":97421940,"number":4505,"title":"VideoCapture crashes opening wrong IP address","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/affected:%202.4","name":"affected: 2.4","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20highgui-camera","name":"category: highgui-camera","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/priority:%20normal","name":"priority: normal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-27T09:27:33Z","updated_at":"2015-07-27T09:27:33Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/2785\r\n```\n|| Walter Lucetti on 2013-02-08 15:09\n|| Priority: Normal\n|| Affected: branch 'master' (2.4.9)\n|| Category: highgui-camera\n|| Tracker: Bug\n|| Difficulty: None\n|| PR: \n|| Platform: None / None\n```\n\nVideoCapture crashes opening wrong IP address\n-----------\n```\nHi,\r\n\r\nI found a problem in VideoCapture used with IP Cameras. \r\n\r\nWhen i try to open a \"wrong\" IP (e.g. the camera is not connected to the network) the \"open\" function crashes instead of returning \"false\".\r\n\r\nDebugging the application I noticed those fact:\r\n\r\n- GStreamer report this error: [tcp @ 0x7a9580] TCP connection to 10.200.0.198:554 failed: No route to host\r\n\r\n- the function crashes in file \"cap_gstreamer.cpp\" calling \"gst_caps_unref(caps);\" with a SEGMENTATION FAULT\n```\n\nHistory\n-------\n##### Kirill Kornyakov on 2013-02-12 06:20\n```\nWalter, thank you for both reports, but I have to inform you that IP camera support is a low priority for the OpenCV project... At the same time both issues are not looking as difficult ones, so if you're ready to work on a fix, that would help a lot! Please note, that better to target fixes to the '2.4' branch, and patches are accepted as GitHub pull requests.\n```\n##### Walter Lucetti on 2013-02-13 09:49\n```\nKirill, I'm going to work at the patches because I think that it is really important that the functionality are the same for each kind of sensor we can use with OpenCV.\r\nOpenCV is going to gain a lot of importance in videosurveillance applications and I think that a full support to IP Cameras could improve its diffusion in this field.\n```\n##### Kirill Kornyakov on 2013-02-14 07:48\n```\nWalter, actually I'm totally agree with you. In one of may past projects we had to \"manually\" communicate with IP camera, because OpenCV didn't provide support for them. So, this feature would be useful for many projects, and it would be great if you could help with that, while OpenCV team is cooking the next release.\n-   Assignee changed from Vadim Pisarevsky to Walter Lucetti\n```\n##### Walter Lucetti on 2013-02-15 16:47\n```\nKirill, I'm almost done with the patch. How can I \"commit\" it when I am ready?\r\nI saw that there are the \"pull request\", but I did not find instruction about how to do it.\n```\n##### Anna Kogan on 2013-02-18 10:52\n```\nHello Walter,\r\nOur GitHub repo is https://github.com/Itseez/opencv. If you forked you repo from it (see https://help.github.com/articles/fork-a-repo), you just push the branch with the fix in your GitHub fork (when you think it's ready to go in OpenCV). Here you will find \"Pull request\" button. You can get more information there: https://help.github.com/articles/using-pull-requests. OpenCV has smart pull request system: http://opencv.org/opencv-pull-requests-test-results.html, so you're welcome! =)\n```\n##### Anna Kogan on 2013-02-20 06:54\n```\nHere is a full description of contributing process: http://www.code.opencv.org/projects/opencv/wiki/How_to_contribute\n```\n##### Walter Lucetti on 2013-02-20 15:10\n```\nThank you Anna\n```"}}