{"action":"created","issue":{"url":"https://api.github.com/repos/sahilchaddha/homebridge-dafang/issues/9","repository_url":"https://api.github.com/repos/sahilchaddha/homebridge-dafang","labels_url":"https://api.github.com/repos/sahilchaddha/homebridge-dafang/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sahilchaddha/homebridge-dafang/issues/9/comments","events_url":"https://api.github.com/repos/sahilchaddha/homebridge-dafang/issues/9/events","html_url":"https://github.com/sahilchaddha/homebridge-dafang/issues/9","id":388196235,"node_id":"MDU6SXNzdWUzODgxOTYyMzU=","number":9,"title":"FFmpeg issues and windows directory.","user":{"login":"kaytek","id":28340425,"node_id":"MDQ6VXNlcjI4MzQwNDI1","avatar_url":"https://avatars1.githubusercontent.com/u/28340425?v=4","gravatar_id":"","url":"https://api.github.com/users/kaytek","html_url":"https://github.com/kaytek","followers_url":"https://api.github.com/users/kaytek/followers","following_url":"https://api.github.com/users/kaytek/following{/other_user}","gists_url":"https://api.github.com/users/kaytek/gists{/gist_id}","starred_url":"https://api.github.com/users/kaytek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaytek/subscriptions","organizations_url":"https://api.github.com/users/kaytek/orgs","repos_url":"https://api.github.com/users/kaytek/repos","events_url":"https://api.github.com/users/kaytek/events{/privacy}","received_events_url":"https://api.github.com/users/kaytek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-06T12:39:55Z","updated_at":"2018-12-07T02:05:32Z","closed_at":null,"author_association":"NONE","body":"Hi all,\r\n\r\nCurrently trying to transition my setup of my hacked Xiaofang from using homebridge-ffmpeg to this as it allows for much better control of the camera, but I've run into a few issues.\r\n\r\nAt the moment whenever I try and stream from the camera the console will always spit out a FFmpeg exited with code 1 and the stream will fail to load. I haven't had this issue with homebridge-ffmpeg, so I'm not too sure where I've gone wrong. I've attached the config down below.\r\n\r\nHere is the full error:\r\n```\r\n[2018-12-6 23:38:24] [Dafang] Start streaming video from XiaoFang with 1280x720@200kBit\r\nffmpeg -rtsp_transport tcp -i rtsp://root:ismart12@192.168.0.143:8554/unicast -map 0:0 -vcodec h264 -pix_fmt yuv420p -r 15 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 200k -bufsize 200k -maxrate 200k -payload_type 99 -ssrc 12344156 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 1bhz+/cqXSwvd8nTZWupdlhND+LxQfeH0T9pQmQ6 srtp://192.168.0.126:54996?rtcpport=54996&localrtcpport=54996&pkt_size=752 -map 0:1 -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -bufsize 24k -ac 1 -payload_type 110 -ssrc 1269516 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params tF+nWT3bzXj/vLFy/qW8ThfKd6mSemN4Z5bwNvyi srtp://192.168.0.126:64875?rtcpport=64875&localrtcpport=64875&pkt_size=752\r\n[2018-12-6 23:38:26] [Dafang] ERROR: FFmpeg exited with code 1\r\n```\r\n\r\nAnother issue is that I'm not too sure how to translate a windows directory to absolute path to save the recordings. Currently I've just glossed over it and had something random but obviously I can't save anything.\r\n\r\nMy homebridge setup is currently running on our media PC which runs on windows 10, so any help would be greatly appreciated!\r\n\r\n```\r\n{\r\n\t\"bridge\": {\r\n\t\t\"name\": \"Homebridge\",\r\n\t\t\"username\": \"CC:22:3D:E3:CE:30\",\r\n\t\t\"port\": 51826,\r\n\t\t\"pin\": \"222-22-222\"\r\n\t},\r\n\r\n\t\"description\": \"This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.\",\r\n\r\n\t\"platforms\": [{\r\n\t\t\t\"platform\": \"AqaraPlatform\",\r\n\t\t\t\"sid\": [\"34ce008be6d5\"],\r\n\t\t\t\"password\": [\"qb5mefe7d5tssmy1\"],\r\n\t\t\t\"fakeLightBulbForLightSwitch\": true\r\n\t\t},\r\n\t\t{\r\n\r\n\t\t\t\"platform\": \"Dafang\",\r\n\r\n\t\t\t\"mqtt\": {\r\n\t\t\t\t\"hostBroker\": true,\r\n\t\t\t\t\"port\": 1883,\r\n\t\t\t\t\"host\": \"localhost\",\r\n\t\t\t\t\"debug\": true,\r\n\t\t\t\t\"mongoUrl\": \"mongodb://localhost:27017/mqtt\"\r\n\t\t\t},\r\n\t\t\t\"cameras\": [{\r\n\t\t\t\t\t\"cameraName\": \"XiaoFang\",\r\n\t\t\t\t\t\"cameraRTSPStreamUrl\": \"rtsp://192.168.0.143:8554/unicast\",\r\n\t\t\t\t\t\"mqttTopic\": \"myhome/dafang/#\",\r\n\t\t\t\t\t\"folder\": \"test/recordings\",\r\n\t\t\t\t\t\"accessories\": [{\r\n\t\t\t\t\t\t\t\"name\": \"Motion Sensor\",\r\n\t\t\t\t\t\t\t\"type\": \"richMotionSensor\",\r\n\t\t\t\t\t\t\t\"threshold\": 300000\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Auto Motion Tracking Switch\",\r\n\t\t\t\t\t\t\t\"type\": \"autoMotionTrackingSwitch\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Night Vision Sensor\",\r\n\t\t\t\t\t\t\t\"type\": \"nightVisionSensor\",\r\n\t\t\t\t\t\t\t\"threshold\": 0\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Night Vision Switch\",\r\n\t\t\t\t\t\t\t\"type\": \"nightVisionSwitch\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Auto Night Vision Switch\",\r\n\t\t\t\t\t\t\t\"type\": \"autoNightVisionSwitch\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Record Video\",\r\n\t\t\t\t\t\t\t\"type\": \"recordVideo\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Record Audio\",\r\n\t\t\t\t\t\t\t\"type\": \"recordAudio\"\r\n\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Capture Image\",\r\n\t\t\t\t\t\t\t\"type\": \"captureImage\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Clear Storage Switch\",\r\n\t\t\t\t\t\t\t\"type\": \"clearStorage\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Reset Streaming\",\r\n\t\t\t\t\t\t\t\"type\": \"resetFFMPEG\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"name\": \"Camera Brightness\",\r\n\t\t\t\t\t\t\t\"type\": \"brightness\"\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t],\r\n\t\t\t\t\t\"videoConfig\": {\r\n\r\n\t\t\t\t\t\t\"source\": \"-rtsp_transport tcp -i rtsp://root:ismart12@192.168.0.143:8554/unicast\",\r\n\t\t\t\t\t\t\"stillImageSource\": \"-rtsp_transport tcp -i rtsp://root:ismart12@192.168.0.143:8554/unicast -vframes 1 -r 1\",\r\n\t\t\t\t\t\t\"maxStreams\": 5,\r\n\t\t\t\t\t\t\"maxWidth\": 1280,\r\n\t\t\t\t\t\t\"maxHeight\": 720,\r\n\t\t\t\t\t\t\"maxFPS\": 15,\r\n\t\t\t\t\t\t\"vcodec\": \"h264\",\r\n\t\t\t\t\t\t\"packetSize\": 752,\r\n\t\t\t\t\t\t\"maxBitrate\": 200,\r\n\t\t\t\t\t\t\"debug\": true\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\r\n\t\t]\r\n\r\n\r\n\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/sahilchaddha/homebridge-dafang/issues/comments/445097436","html_url":"https://github.com/sahilchaddha/homebridge-dafang/issues/9#issuecomment-445097436","issue_url":"https://api.github.com/repos/sahilchaddha/homebridge-dafang/issues/9","id":445097436,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTA5NzQzNg==","user":{"login":"sahilchaddha","id":15357444,"node_id":"MDQ6VXNlcjE1MzU3NDQ0","avatar_url":"https://avatars1.githubusercontent.com/u/15357444?v=4","gravatar_id":"","url":"https://api.github.com/users/sahilchaddha","html_url":"https://github.com/sahilchaddha","followers_url":"https://api.github.com/users/sahilchaddha/followers","following_url":"https://api.github.com/users/sahilchaddha/following{/other_user}","gists_url":"https://api.github.com/users/sahilchaddha/gists{/gist_id}","starred_url":"https://api.github.com/users/sahilchaddha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahilchaddha/subscriptions","organizations_url":"https://api.github.com/users/sahilchaddha/orgs","repos_url":"https://api.github.com/users/sahilchaddha/repos","events_url":"https://api.github.com/users/sahilchaddha/events{/privacy}","received_events_url":"https://api.github.com/users/sahilchaddha/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T02:05:32Z","updated_at":"2018-12-07T02:05:32Z","author_association":"OWNER","body":"I would also appreciate if you can help me test\r\n\r\nhttps://github.com/sahilchaddha/homebridge-dafang/pull/6"}}
{"actor":{"display_login":"sahilchaddha"}}