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

v380 video output problem #21

Open
mgorshkov opened this issue Jul 17, 2022 · 6 comments
Open

v380 video output problem #21

mgorshkov opened this issue Jul 17, 2022 · 6 comments

Comments

@mgorshkov
Copy link

mgorshkov commented Jul 17, 2022

Hello! I'm using v380 with the newest firmware
Software version: AppV380E31_V1.1.6.3_202111105
Firmware version: HwV380E31_WF8_PTZ_WIFI_20201218
The v380 tool successfully discovers the cam, but outputs errors on attempt to output video:
$ ./v380 -id 58017398 --addr --output=video -p
Login response: unsupported -11, continuing
Unknown 0x9c command
Stream stopped, restarting stream
Login response: unsupported -11, continuing
Unknown 0x9c command
Stream stopped, restarting stream
Login response: unsupported -11, continuing
Unknown 0x9c command
Stream stopped, restarting stream
Login response: unsupported -11, continuing
Unknown 0x9c command
Stream stopped, restarting stream
Login response: unsupported -11, continuing
Unknown 0x9c command
Stream stopped, restarting stream

Same for nodejs version:
$ npm run start

[email protected] start
ts-node src/app.ts

Login response: unsupported -11, continuing
RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 4294967295. Received -11
at checkInt (internal/buffer.js:68:11)
at writeU_Int32LE (internal/buffer.js:688:3)
at Buffer.writeUInt32LE (internal/buffer.js:701:10)
at Primitive.pack (/home/mike/git/v380/v380-nodejs/node_modules/typebase/typebase.js:162:21)
at Struct.pack (/home/mike/git/v380/v380-nodejs/node_modules/typebase/typebase.js:260:24)
at Socket. (/home/mike/git/v380/v380-nodejs/src/app.ts:268:22)
at Socket.emit (events.js:314:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at emitReadable_ (_stream_readable.js:557:12)
at processTicksAndRejections (internal/process/task_queues.js:83:21) {
code: 'ERR_OUT_OF_RANGE'
}

What do I do with this?

@cronnosli
Copy link

cronnosli commented Sep 27, 2022

I'm using firmware V1.4.12_20220711 and I'm getting this same error.

Here are some logs I got in the nodeJS trying to connect to my Camera.

loginReq: {"buf":{"type":"Buffer","data":[143,4,0,0,254,3,0,0,2,1,0,0,0,177,179,212,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,100,109,105,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,121,50,97,115,68,66,41,100,72,119,48,66,99,61,79,77,100,130,170,99,98,124,49,179,197,181,33,12,240,237,155,47,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"off":0}

loginReqData:
{ command: 1167, deviceId: <Buffer 36 34 32 37 31 32 38 31>, unknown1: 1022, unknown2: 2, unknown3: 1, hostDateTime: [], username: <Buffer 61 64 6d 69 6e>, password: <Buffer ---> }

Data Reply: {"type":"Buffer","data":[156,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}

loginResp: { command: -100, loginResult: 0, resultValue: 0, version: 0, authTicket: 0, session: 0, deviceType: 0, camType: 0, vendorId: 0, isDomainExists: 0, domain: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], recDevId: 0, nChannels: 0, nAudioPri: 0, nVideoPri: 0, nSpeaker: 0, nPtzPri: 0, nReversePri: 0, nPtzXPri: 0, nPtzXCount: 0, settings: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], panoX: 0, panoY: 0, panoRad: 0, unknown1: 0, canUpdateDevice: 0 }

streamStartReq: {"buf":{"type":"Buffer","data":[45,1,0,0,177,179,212,3,0,0,0,0,15,0,0,0,0,0,0,0,0,0,1,16,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"off":0}

streamStartData: { command: 303, unknown1: -11 }

RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 4294967295. Received -11 at new NodeError (internal/errors.js:322:7) at checkInt (internal/buffer.js:71:11) at writeU_Int32LE (internal/buffer.js:691:3) at Buffer.writeUInt32LE (internal/buffer.js:704:10) at Primitive.pack (/home/douglas/projetos/camera/v380/v380-nodejs/node_modules/typebase/typebase.js:162:21) at Struct.pack (/home/douglas/projetos/camera/v380/v380-nodejs/node_modules/typebase/typebase.js:260:24) at Socket.<anonymous> (/home/douglas/projetos/camera/v380/v380-nodejs/src/app.ts:273:22) at Socket.emit (events.js:400:28) at Socket.emit (domain.js:475:12) at emitReadable_ (internal/streams/readable.js:555:12) { code: 'ERR_OUT_OF_RANGE' } error Command failed with exit code 1.

@thatdevsherry
Copy link

I'm getting the same error. These are the versions:

Software Version: AppV380E31_V1.1.3.4_20211105
Firmware Version: HwV380E31_WF8_PTZ_WIFI_20201218

@thalesmaoa
Copy link

I'm getting the same error. Any suggestion?

@thatdevsherry
Copy link

@thalesmaoa I'm not sure if this is exactly the case, but I found out that my camera was sending non-compliant packets at the start of the RTSP stream. Maybe you can check if your camera works with retina. I had created an issue before reg. this but didn't get time to contribute a fix, (issue)

@kw217
Copy link

kw217 commented Apr 13, 2024

I'm seeing this too. -11 is a login failure; this happens before the stream is started. Perhaps your password is wrong, or perhaps the password encryption algorithm has changed.

@kw217
Copy link

kw217 commented Apr 13, 2024

See #22 for my analysis and #23 for a possible solution.

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

5 participants