{"action":"closed","issue":{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/307","repository_url":"https://api.github.com/repos/bytedeco/javacpp-presets","labels_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/307/comments","events_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/307/events","html_url":"https://github.com/bytedeco/javacpp-presets/issues/307","id":184607353,"number":307,"title":"dshow format not starting Windows 10 x64","user":{"login":"Jonatino","id":1808569,"avatar_url":"https://avatars.githubusercontent.com/u/1808569?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonatino","html_url":"https://github.com/Jonatino","followers_url":"https://api.github.com/users/Jonatino/followers","following_url":"https://api.github.com/users/Jonatino/following{/other_user}","gists_url":"https://api.github.com/users/Jonatino/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonatino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonatino/subscriptions","organizations_url":"https://api.github.com/users/Jonatino/orgs","repos_url":"https://api.github.com/users/Jonatino/repos","events_url":"https://api.github.com/users/Jonatino/events{/privacy}","received_events_url":"https://api.github.com/users/Jonatino/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-22T04:33:20Z","updated_at":"2016-10-23T01:23:03Z","closed_at":"2016-10-23T01:23:03Z","body":"I'd like to use this library for my remote desktop software but it does not seem to be working.\r\n\r\nHere is my test class:\r\n\r\n````\r\npublic class FFMPEG {\r\n\t\r\n\tpublic static void main(String[] args) throws Exception {\r\n\t\tFFmpegFrameGrabber grabber = new FFmpegFrameGrabber(\"video=\\\"screen-capture-recorder\\\"\");\r\n\t\tgrabber.setFormat(\"dshow\");\r\n\t\tgrabber.setImageWidth(2560);\r\n\t\tgrabber.setImageHeight(1440);\r\n\t\tgrabber.start();\r\n\t\t\r\n\t\tCanvasFrame frame = new CanvasFrame(\"Screen Capture\");\r\n\t\twhile (frame.isVisible()) {\r\n\t\t\tframe.showImage(grabber.grab());\r\n\t\t}\r\n\t\tframe.dispose();\r\n\t\tgrabber.stop();\r\n\t}\r\n\t\r\n}\r\n```\r\n\r\n\r\nand here is what I have in my gradle.build\r\n\r\n````\r\nrepositories {\r\n    mavenCentral()\r\n}\r\n\r\nconfigurations {\r\n    all*.exclude group: 'org.bytedeco', module: 'javacpp-presets'\r\n}\r\n\r\ndependencies {\r\n    compile \"org.bytedeco:javacv:1.2\"\r\n    compile \"org.bytedeco:javacpp:1.2.4\"\r\n\r\n    compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.1.2-1.2'\r\n    compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.1.2-1.2', classifier: 'windows-x86_64'\r\n}\r\n````\r\n\r\nHere is the error I get when running that class:\r\n````\r\nException in thread \"main\" org.bytedeco.javacv.FrameGrabber$Exception: avformat_open_input() error -5: Could not open input \"video=\"screen-capture-recorder\"\". (Has setFormat() been called?)\r\n\tat org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:437)\r\n\tat org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:385)\r\n\tat FFMPEG.main(FFMPEG.java:14)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)\r\n[dshow @ 000000000179c5e0] Could not enumerate video devices (or none found).\r\n[dshow @ 000000000179c5e0] Could not enumerate video devices (or none found)\r\n````"}}
{"actor":{"display_login":"Jonatino"}}