Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tplink KC100 spot ipcam #73

Open
WhitecastlePT opened this issue May 28, 2020 · 7 comments
Open

Tplink KC100 spot ipcam #73

WhitecastlePT opened this issue May 28, 2020 · 7 comments

Comments

@WhitecastlePT
Copy link

Tried to use this for KC100. I detected that port 9999 is also open in this device. But i can´t get it to work with the provided commands.

If i wanted to get the video stream from this cam without the need of the app. Think its possible ?

@joshgetter
Copy link

@WhitecastlePT - I was able to get local streaming to work following this walkthrough on Medium. I'm just having problems trying to control the camera (power on/off) via port 9999. Overall not a huge deal though.

@WhitecastlePT
Copy link
Author

@WhitecastlePT - I was able to get local streaming to work following this walkthrough on Medium. I'm just having problems trying to control the camera (power on/off) via port 9999. Overall not a huge deal though.

Can you tell me what did you used to see the stream outside Kasa'a app ?

@joshgetter
Copy link

@WhitecastlePT - the last portion of the walkthrough contains the following snippet:
curl -vv -k -u admin:YWRtaW4= --ignore-content-length "https://192.168.10.40:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd&deviceId= CAFEDEADBEAFCAFEDEADBEAFCAFEDEADBEAFCAFE" --output - | ffmpeg -y -i - test.mp4

Using this snippet (on a linux machine with Ffmpeg installed) I made the following modifications:

  1. Update the credentials
    The -u admin:YWRtaW4= portion of the command needs to be updated with your TP Link Kasa account credentials. Say my username is [email protected] and my password is mypassword. You need to Base64 encode the password. So mypassword becomes bXlwYXNzd29yZA==. This portion of the command now becomes -u [email protected]:bXlwYXNzd29yZA==
  2. I updated the referenced IP address to the IP address of the camera.
  3. I removed the &deviceId= CAFEDEADBEAFCAFEDEADBEAFCAFEDEADBEAFCAFE parameter from the request (since I didn't know what the deviceId was).

My final command was then:
curl -vv -k -u [email protected]:bXlwYXNzd29yZA== --ignore-content-length "https://<CAMERAIPADDRESS>:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" --output - | ffmpeg -y -i - test.mp4

This command will use cURL to make a request to the camera, and then pipe it out to FFmpeg which will write to the file test.mp4. After terminating the command I was able to open test.mp4 in VLC.

@WhitecastlePT
Copy link
Author

Ok, only need to discover deviceID aswell...thx ;)

@joshgetter
Copy link

Oh perhaps I wasn't clear you can leave the deviceID parameter out. Hope it works for you!

@WhitecastlePT
Copy link
Author

Sorry didn´t read the part "I removed the &deviceId=" sorry 👍

@pepperagusa
Copy link

Thanks @WhitecastlePT. This seems to stream the feed to an mp4 file. What about streaming a live view in the browser? Would that be possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants