Working QSee/Swann/Zmodo DVR support! - Updated 2013-04-21

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Phoenix84
Posts: 21
Joined: Sat Jun 25, 2011 7:20 pm

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by Phoenix84 »

I've updated the program. See OP for update.
Also, Ian (whiteduck), pointed me to a site where he listed directions on how to connect to some DVR's to get the raw x264 files: http://www.cctvforum.com/viewtopic.php? ... 5&start=45
Might be useful to some.
mmuyskens
Posts: 3
Joined: Tue Jan 31, 2012 6:12 am

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by mmuyskens »

Any luck with the model that was on Woot yesterday? (PKD-DK40107)

I'd be willing to work with you to get this model going as well.
Phoenix84
Posts: 21
Joined: Sat Jun 25, 2011 7:20 pm

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by Phoenix84 »

mmuyskens wrote:Any luck with the model that was on Woot yesterday? (PKD-DK40107)

I'd be willing to work with you to get this model going as well.
No one has offered as of yet. If you have it, I'd love to work with you to get it working.
Just see this post for directions how: http://www.zoneminder.com/forums/viewto ... 761#p72761
I posted in the Woot discussion earlier (don't know if you saw that) offering/asking for help.
I'd like to have it going before the 4447 people that ordered get theirs delivered.
mmuyskens
Posts: 3
Joined: Tue Jan 31, 2012 6:12 am

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by mmuyskens »

Unfortunately, don't have it yet. I'm one of those that just ordered it.

Essentially, I would love to be able to run this on a linux VPS and be able to record remotely and screw the idea of installing a harddrive.

Won't be able to do the actual install anytime soon, as I'm in the middle of escrow for my new house, but i'll definitely hook it up quickly and do a mock setup once I get it here at my office and get whatever information I can sent over to you.
mmuyskens
Posts: 3
Joined: Tue Jan 31, 2012 6:12 am

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by mmuyskens »

Phoenix84 wrote:
mmuyskens wrote:Any luck with the model that was on Woot yesterday? (PKD-DK40107)

I'd be willing to work with you to get this model going as well.
No one has offered as of yet. If you have it, I'd love to work with you to get it working.
Just see this post for directions how: http://www.zoneminder.com/forums/viewto ... 761#p72761
I posted in the Woot discussion earlier (don't know if you saw that) offering/asking for help.
I'd like to have it going before the 4447 people that ordered get theirs delivered.
Sent a PM. Let me know if you need anything else.
localuser
Posts: 4
Joined: Thu Feb 09, 2012 6:16 am

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by localuser »

So what is the secret to getting this to work wit the qsee QT428? I am running the following

./zmodopipe -s 192.168.0.120 -p 6036 -c 1 -v -u username -a passwd -m 4
Ch 1: Connect result: 0
313131318800000001010000ffffffff0400000078000000030000000000000
Ch 1: Send 1 result: 144
Ch 1: Receive 1 failed: 64
Ch 1: Send 2 result: 88
313131313400000001020000f0b73d08030000002400000000f800000000000001f800000001000002f800000000000003f800000001000040f80000
Ch 1: Send 3 result: 60
Ch 1: Receive 3 failed.
Login failed, bailing.
Did you select the right model?
Child 1357 returned: 256
#


Any suggestions. I can post the a wireshark if that helps. thanks.
Last edited by localuser on Fri Feb 10, 2012 3:12 am, edited 1 time in total.
Phoenix84
Posts: 21
Joined: Sat Jun 25, 2011 7:20 pm

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by Phoenix84 »

localuser wrote:So what is the secret to getting this to work wit the qsee QT428? I am running the following

./zmodopipe -s 192.168.0.120 -p 6036 -c 1 -v -u username -a passwd -m 4
Ch 1: Connect result: 0
313131318800000001010000ffffffff04000000780000000300000000000000[remainder redacted]
Ch 1: Send 1 result: 144
Ch 1: Receive 1 failed: 64
Ch 1: Send 2 result: 88
313131313400000001020000f0b73d08030000002400000000f800000000000001f800000001000002f800000000000003f800000001000040f80000
Ch 1: Send 3 result: 60
Ch 1: Receive 3 failed.
Login failed, bailing.
Did you select the right model?
Child 1357 returned: 256
#


Any suggestions. I can post the a wireshark if that helps. thanks.
At least one of the QT models ended up having an encrypted video feed (the code is still in there).
See the last post on the first page (that's specifically about QT-504)

It might just simply be the login information isn't correct in the 428.
You can first attempt to comment out the "return 1;" on line 886 and try again.
If that still doesn't work (which I doubt it will), send me a wireshark capture of at least 5 seconds of streaming. Both the text form and the raw.
What I can do is pull out the video feed and see if I can play it. If I can, then I'll check the login information again.

FYI: In the output you posted above, your username/password are shown as ASCII numbers. If you obscured that, I suggest you cut out the numbers (see my 'redacted' edit in the quote).
localuser
Posts: 4
Joined: Thu Feb 09, 2012 6:16 am

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by localuser »

Thanks for the suggestion. I have edited my post. Although the qsee dvr is not very secure anyhow, everything is clear text. I don't leave it open to the internet. I vpn into my network to access anything such as rdp, ssh, cifs, or the dvr.

Anyhow, I will test the code change tonight and post the wireshark tonight hopefully.
Phoenix84
Posts: 21
Joined: Sat Jun 25, 2011 7:20 pm

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by Phoenix84 »

localuser wrote:Thanks for the suggestion. I have edited my post. Although the qsee dvr is not very secure anyhow, everything is clear text. I don't leave it open to the internet. I vpn into my network to access anything such as rdp, ssh, cifs, or the dvr.

Anyhow, I will test the code change tonight and post the wireshark tonight hopefully.
Yeah, I don't have my DVR open to the internet either. I just have zoneminder accessible.
If you can, I'd prefer you to email those to me (see the first post).
localuser
Posts: 4
Joined: Thu Feb 09, 2012 6:16 am

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by localuser »

I commented out the line and all I got was this

Code: Select all

Ch 1: Connect result: 0
Ch 1: Send 1 result: 144
Ch 1: Receive 1 failed: 64
Ch 1: Send 2 result: 88
Ch 1: Send 3 result: 60
Ch 1: Receive 3 failed.
Ch 1: Socket closed. Receive result: 0
Ch 1: Connect result: 0
Ch 1: Send 1 result: 144
Ch 1: Receive 1 failed: 64
Ch 1: Send 2 result: 88

So I have uploaded my wireshark traces
www . pathfindertech . net/dvr_ascii.zip
www . pathfindertech . net/dvr_raw.zip

Thanks again for your help.
Phoenix84
Posts: 21
Joined: Sat Jun 25, 2011 7:20 pm

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by Phoenix84 »

localuser wrote:I commented out the line and all I got was this
So I have uploaded my wireshark traces
www . pathfindertech . net/dvr_ascii.zip
www . pathfindertech . net/dvr_raw.zip

Thanks again for your help.
Would you mind uploading them again? When I try to unzip, I get an error that they're invalid archives (7-zip and others).
localuser
Posts: 4
Joined: Thu Feb 09, 2012 6:16 am

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by localuser »

I have re-uploaded the files. This time with my ftp transfer type set to binary :wink:

Here is the address to the new upload
http: // www . pathfindertech . net/dvr_ascii2.zip

http: // www . pathfindertech . net/dvr_raw2.zip
vext
Posts: 1
Joined: Sun Feb 12, 2012 3:46 am

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by vext »

Thanks for all you hard work on this project!

I have a DVR-8114HV and I am trying to get it to run with ZoneMinder. I run the following command:

./zmodopipe -s 192.168.2.62 -p 8888 -v -c 1 -u admin -a 123456 -m 5

It looks like it connects:

Ch 1: Connect result: 0
0000007001000000280004000300070048002400202020212020200000000000000000004d4f42494c4500000000000000000000000000002900380061646d696e00000000000000000000000000000000000000000000000000006e313233343536000000000000000000000100000000000000
Ch 1: Send result: 116
....................


Keeps up the dots until ZM connects then it stops. Sometimes I get a single image or none at all. Nothing happens for about a minute then I get "Ch 1: Write would block" repeated over and over.

Hopefully it's just a config issue. Any help would be appreciated.
gewehrschuss
Posts: 1
Joined: Sat Feb 18, 2012 2:40 pm

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by gewehrschuss »

I have a KView SHA108v2 and I'm really excited about getting these cameras to display in something other than the ActiveX control.

I've been playing around with this and the mobile port (option 1) works well but I can only connect to 4 streams. Any login attempts to more streams fail. I'd be all set if I could figure out how to connect to all 8 cameras.

Also, the media port (option 2) somewhat works. Looking at it with ffmpeg directly shows the resolution is 704x240 and the video looks stretched but otherwise normal. Using that resolution in ZM allows me to connect if I set it to grayscale but it looks all garbled, unlike the ffmpeg output.
cvschleich
Posts: 1
Joined: Fri Mar 30, 2012 10:32 pm

Re: Working QSee/Swann/Zmodo DVR support! - Updated 2012-01-

Post by cvschleich »

I have the DVR-8114HV, and like vext above, I'm just getting the dots.............

Anyone have any luck with these units?

Here's the command line I'm using:
./zmodopipe -s 192.168.xx.xxx -p 8888 -v -c 1 -u <user> -a <password> -m 5


Ch 1: Connect result: 0
0000007001000000280004000300070048002400202020212020200000000000000000004d4f42494c450000000000000000000000000000
290038006d6f62696c65000000000000000000000000000000000000000000000000006e7a6d6f646f00000000000000000000000100000000000000
Ch 1: Send result: 116
..............................................................................................................................................................................................................................................
..............................................................................................................................................................................................................................................
..............................................................................................................................................................................................................................................
..............................................................................................................................................................................................................................................
..............................................................................................................................................................................................................
Ch 1: Socket closed. Receive result: -1

Got the socket closed message when I hit Ctrl-C.

Any help is greatly appreciated! Thanks so much for all the work to get us this far!
Post Reply