Giter VIP home page Giter VIP logo

shrdvr's People

Contributors

cfsworks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

potinjc

shrdvr's Issues

rtsp_proxy call failure

Hi

Sorry to ask here, but I feel like a moron. I can't get rtsp_proxy.py to run.

I can get svtool.py to connect after changing line 78 to send unencoded username/pass
#1 (comment)

python2 .\svtool.py --username admin --password 4321 http://192.168.2.200 authorize
1081249063-01-07

But now I have no idea how to call rtsp_proxy.py

I keep getting
socket.error: [Errno 10049] The requested address is not valid in its context

Can someone please give me an example command on how to call rtsp_proxy.py properly? I've been trying for like an hour and no joy

Video stream

self.set_header(resp_headers, 'Transport: RTP/AVP/TCP;unicast;' + interleaved_header)

I had to change this line to self.set_header(resp_headers, self.req_transport) to make it work, because the readers like Vlc or ffplay gave me 'Bad Header transport or less'.

But the problem now is that the video stream is very poor unlike the WEB version or the Samsung program.
Do you have any idea how to solve it?
Thank you.

Trying to use your script

Hi Sam,
I'm trying to use your script for my SHR 2082.
IP : 192.168.0.130. TCP configuration (not UDP)

Can you please provide a sample call for the script ?
I tried several commands but always get main_.AuthenticationError: WRONG_ID.

You are my last chance !
Thks Sam

Here's my wireshark trace performed during opening of SmartViewer on my PC. Apparently username and password are not encoded... :
SV..V...AUTHENTICATE..............TEXT......ID:Mfd7I44=
PW:nHrZrptdaThzVlB2CM0tOg==
SV..7...AUTHENTICATE_OK...........TEXT......WRONG_ID
.SV..~...AUTHENTICATE..............TEXT......ID:Mfd7I44=
PW:fe2592b42a727e977f055947385b709cc82b16b9a87f88c6abf3900d65d0cdc3
SV..7...AUTHENTICATE_OK...........TEXT......WRONG_ID
.SV..^...AUTHENTICATE..............TEXT......ID:Mfd7I44=
PW:d93591bdf7860e1e4ee2fca799911215
SV..7...AUTHENTICATE_OK...........TEXT......WRONG_ID
.SV..?...AUTHENTICATE..............TEXT......ID:ADMIN
PW:4321
SV..6...AUTHENTICATE_OK...........TEXT......SUCCESS
.SV..,...DESCRIBE..................TEXT......SV......DESCRIBE_OK...............TEXT......encoder_number:8
version:B3.03E-K1.54-V2.23_0711221059
authority:1050856324-01-04
unicast:port=8032-8039
time:1493202397
video:11111111
audio:00000000
ptz:00000000
cameraname:Portail.CAM 02.CAM 03.CAM 04.CAM 05.CAM 06.CAM 07.CAM 08.
alarm:0001.0002.0004.0008.0010.0020.0040.0080
ddns:samsung
mac:00-16-6C-22-73-0E
model_name:SHR-2082
protocol_version:V1.1
.

Thks
Laurent

Examle using rtsp_proxy and svtool

Try to connect to my SHR-5042 DVR using Python 2.7
I run the scripts on the command line like: svtool.py --username test --password test url RTSP://IP off DVR:PORT of DVR
I keep getting an error like: url {describe,authorize}
Please give an example how to give the right arguments.
Many thanks (y)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.