{"action":"created","issue":{"url":"https://api.github.com/repos/Genymobile/scrcpy/issues/1","repository_url":"https://api.github.com/repos/Genymobile/scrcpy","labels_url":"https://api.github.com/repos/Genymobile/scrcpy/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Genymobile/scrcpy/issues/1/comments","events_url":"https://api.github.com/repos/Genymobile/scrcpy/issues/1/events","html_url":"https://github.com/Genymobile/scrcpy/issues/1","id":303661704,"node_id":"MDU6SXNzdWUzMDM2NjE3MDQ=","number":1,"title":"ERROR: Could not open video stream","user":{"login":"Necklaces","id":6997961,"node_id":"MDQ6VXNlcjY5OTc5NjE=","avatar_url":"https://avatars2.githubusercontent.com/u/6997961?v=4","gravatar_id":"","url":"https://api.github.com/users/Necklaces","html_url":"https://github.com/Necklaces","followers_url":"https://api.github.com/users/Necklaces/followers","following_url":"https://api.github.com/users/Necklaces/following{/other_user}","gists_url":"https://api.github.com/users/Necklaces/gists{/gist_id}","starred_url":"https://api.github.com/users/Necklaces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Necklaces/subscriptions","organizations_url":"https://api.github.com/users/Necklaces/orgs","repos_url":"https://api.github.com/users/Necklaces/repos","events_url":"https://api.github.com/users/Necklaces/events{/privacy}","received_events_url":"https://api.github.com/users/Necklaces/received_events","type":"User","site_admin":false},"labels":[{"id":872382022,"node_id":"MDU6TGFiZWw4NzIzODIwMjI=","url":"https://api.github.com/repos/Genymobile/scrcpy/labels/codec","name":"codec","color":"8c5edb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-03-08T22:51:04Z","updated_at":"2018-06-25T03:05:49Z","closed_at":null,"author_association":"NONE","body":"On Arch GNU/Linux, built scrcpy using the released .jar.\r\n\r\n```\r\nmeson x --buildtype release --strip -Db_lto=true \\\r\n    -Dprebuilt_server=/path/to/scrcpy-server.jar\r\ncd x\r\nninja\r\nsudo ninja install\r\n```\r\n\r\nI have a Samsung Galaxy Note II N7100 running [Replicant 6.0 0003](https://replicant.us).\r\nThe resulution should be 720x1280.\r\n\r\n```\r\n$ scrcpy -m 1280 \r\n/usr/local/share/scrcpy/scrcpy-server.jar: 1 file pushed. 1.9 MB/s (19038 bytes in 0.009s)\r\nInvalid return value 0 for stream protocol\r\nInvalid return value 0 for stream protocol\r\nInvalid return value 0 for stream protocol\r\nInvalid return value 0 for stream protocol\r\nInvalid return value 0 for stream protocol\r\nERROR: Could not open video stream\r\nERROR: Exception on thread Thread[main,5,main]\r\njava.lang.IllegalStateException\r\n\tat android.media.MediaCodec.native_stop(Native Method)\r\n\tat android.media.MediaCodec.stop(MediaCodec.java:1901)\r\n\tat com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:69)\r\n\tat com.genymobile.scrcpy.Server.scrcpy(Server.java:21)\r\n\tat com.genymobile.scrcpy.Server.main(Server.java:70)\r\n\tat com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)\r\n\tat com.android.internal.os.RuntimeInit.main(RuntimeInit.java:258)\r\nINFO: Initial texture: 720x1280\r\n```\r\n\r\nAny ideas? I think Replicant may be the offender here.\r\n\r\nEdit: installed android sdk `aura -A android-sdk` and built my own .jar; same result."},"comment":{"url":"https://api.github.com/repos/Genymobile/scrcpy/issues/comments/399817863","html_url":"https://github.com/Genymobile/scrcpy/issues/1#issuecomment-399817863","issue_url":"https://api.github.com/repos/Genymobile/scrcpy/issues/1","id":399817863,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTgxNzg2Mw==","user":{"login":"lilith645","id":11486093,"node_id":"MDQ6VXNlcjExNDg2MDkz","avatar_url":"https://avatars2.githubusercontent.com/u/11486093?v=4","gravatar_id":"","url":"https://api.github.com/users/lilith645","html_url":"https://github.com/lilith645","followers_url":"https://api.github.com/users/lilith645/followers","following_url":"https://api.github.com/users/lilith645/following{/other_user}","gists_url":"https://api.github.com/users/lilith645/gists{/gist_id}","starred_url":"https://api.github.com/users/lilith645/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilith645/subscriptions","organizations_url":"https://api.github.com/users/lilith645/orgs","repos_url":"https://api.github.com/users/lilith645/repos","events_url":"https://api.github.com/users/lilith645/events{/privacy}","received_events_url":"https://api.github.com/users/lilith645/received_events","type":"User","site_admin":false},"created_at":"2018-06-25T03:05:49Z","updated_at":"2018-06-25T03:05:49Z","author_association":"NONE","body":"I had this issue too, I have very little to do with this program until 5min ago, \r\nBut seems like this error has been very briefly looked at before in Issue #73 \r\nUsing the lower resolution/bitrate with the parameters,\r\n\r\nscrcpy -b2M -m800"}}
{"actor":{"display_login":"lilith645"}}