Android video intergration (NX witness)

177 views
Skip to first unread message

Glen

unread,
Dec 16, 2015, 4:22:57 PM12/16/15
to CommandFusion Software

Hi all

I am using NX witness to serve all my IP cams, as they are only rtsp protocol. This works fine on my ipads using the URL http://glenandrobyn.dyndns-ip.com:7001/media/00-00-1B-55-05-BE.mpjpeg?resolution=640x480 and type mpjpg, but i cant get the android to work.

I wrote to the NX witness people they suggested and android compatible URL of http://glenandrobyn.dyndns-ip.com:7001/media/00-00-1B-55-05-CF.webm but i have tried this with all different types selected. Does anyone have a solution or has used nx witness before.
for testing user admin pass:admin

Any suggestions appreciated
Thanks
Glen



**Please include as much software version information as possible. This ensures that other users and CommandFusion staff can provide a helpful answer as quickly as possible.** - Please Delete this line BEFORE posting.

Glen

unread,
Feb 29, 2016, 12:54:55 AM2/29/16
to CommandFusion Software

Can someone help me?
The above link works fine on ipad but not on android. 
My cams only support rstp: how can i get them ontoCF for android??
I currently am using NX whitness as a server for all my cams so i can view them using CF, is there other recommended software compatible with CF IOS and Android.

Here is information from NX witness, can some one help me get this working on my android device. I have tried lots of combinations but no joy.

Direct download

Url format for downloading fragment of archive by specifying fragment start time and duration. Fragment can be downloaded in mpeg-2/ts (.ts) format or matroska (.mkv). No transcoding is done. Stream format can be one of following: ts, mkv Example: http://glenandrobyn.dyndns-ip.com:7001/hls/00-00-1B-55-05-CF.mkv?startDatetime=2015-02-05T19:00&duration=10

Parameters

Name

Description

Optional

pos

Fragment start time. Can be: date/time in ISO format, server time zone (example: 2015-02-20T19:00), milliseconds since epoch (1970-01-01 00:00, UTC) or microseconds since epoch

true

duration

Fragment length in seconds

false

hi

Return high quality stream

true

lo

Return low quality stream

true

Result

Video stream in requested format

 

RTSP Streaming

PLAY/<physicalId>

Open RTSP video from a camera. It is not an exact method name. It means that RTSP url may contain any camera unique ID. For instance: rtsp://<server_ip>:<port>/12AB42FD5912?pos=1235631&resolution=240p

Parameters

Name

Description

Optional

Values

pos

By default server opens camera from live position. This parameter defines position in an archive in milliseconds since epoch, microseconds since epoch or text date in ISO fomat (e.g., 2015-07-30T12:00:00). Position can be passed via standard RTSP attribute as well as via URL parameter

true

resolution

Turn on video transcoding to the specified resolution. Resolution string either may contain width and height (for instance 320x240) or height only (for instance 240p)

true

rotation

Rotate item. Can be 0, 90, 180 or 270 degree. If parameter is absent, video will be rotated to default value defined in a camera settings dialog. Parameter take place if video transcoding is activated (parameter codec and/or parameter resolution are presents.)

true

codec

Defines video codec used for transcoding. Default value H263.

true

  • H263 (?)
  • H263p (?)
  • mpeg2video (?)
  • mjpeg (?)
  • mpeg4 (?)
  • libvpx (?)

stream

Open high quality stream if parameter is 0 or low quality stream if parameter is 1. By default server auto detect preferred stream index based on destination resolution.

true

speed

Playback speed. Only values in range [1..32] are supported. Default value is 1.

true

Result

Return RTSP video stream


HTTP Streaming

Url format for opening camera stream using HTTP protocol. Codec and stream format can be specified in url parameters. Live stream and archive can be downloaded. If required and possible, media stream transcoding is performed on-the-fly. Stream format can be one of following: webm, mpegts, mpjpeg (motion jpeg) Example: http://<server_ip>:<port>/media/12AB42FD5912.webm

Parameters

Name

Description

Optional

resolution

Video stream resolution. Example: 720x576, 1920x1080, 720p, 1080p. By default, 640x480 is used

true

pos

If present and not equal to <now>, specifies archive stream start positions milliseconds since epoch (1970-01-01 00:00, UTC), microseconds since epoch or text date in ISO fomat (e.g., 2015-07-30T12:00:00). Otherwise, LIVE stream is provided

true

endPos

If present then specifies archive stream end positions. It used only if 'pos' parameter is present. Milliseconds since epoch (1970-01-01 00:00, UTC), microseconds since epoch or text date in ISO fomat (e.g., 2015-07-30T12:00:00).

true

rotation

Rotate item. Can be 0, 90, 180 or 270 degree. If parameter is absent, video will be rotated to default value defined in a camera settings dialog

true

Sfd

Stand Frame Duration. If parameter is present, video speed is limited by real time.

true

Rt

Turn on realtime optimization. It will drop some frames if not enough CPU for realtime transcoding.

true

Result

Video stream in requested format

HLS Streaming

GET/hls/<physicalId>.m3u try method

Url format for opening camera stream with Http Live Streaming (HLS). This protocol is supported by iOS-based devices (iPhone, iPad). Example: http://<server_ip>:<port>/hls/12AB42FD5912.m3u

Parameters

Name

Description

Optional

pos

Camera archive position to open. Can be: date/time in ISO format, server time zone (example: 2015-02-20T19:00), milliseconds since epoch (1970-01-01 00:00, UTC) or microseconds since epoch

true

hi

If specified, only hi quality is available on streaming session. If neither <hi> nor <lo> is specified than HLS client is allowed to perform dynamic stream switching (to fit in available bandwidth and compensate for traffic congestion)

true

lo

If specified, only low quality is available on streaming session. If neither <hi> nor <lo> is specified than HLS client is allowed to perform dynamic stream switching (to fit in available bandwidth and compensate for traffic congestion)

true

Result

Video stream in mpeg-2/ts format

Jarrod Bell

unread,
Feb 29, 2016, 1:01:55 AM2/29/16
to comman...@googlegroups.com
Use the HTTP streaming option, with MJPEG.


Regards,

Jarrod Bell
CommandFusion
www.commandfusion.com


--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Glen

unread,
Feb 29, 2016, 1:02:49 AM2/29/16
to comman...@googlegroups.com
For testing purposes. user logon
port:7001
User: test
pass: test

Thanks
 

Glen

unread,
Feb 29, 2016, 1:22:34 AM2/29/16
to CommandFusion Software
Thanks Jarrod
it says options are
Stream format can be one of following: webm, mpegts, mpjpeg (motion jpeg)
mpjpg works on IOS but not on the android, am i out of luck with this software. if so is there any recommended video server software one can recommend. 
Thanks for your time

Jarrod Bell

unread,
Feb 29, 2016, 1:35:08 AM2/29/16
to comman...@googlegroups.com
Can you get static JPEG screenshots? Then you can use the image object in your guiDesigner project, and set the refresh rate of the image object to 250 or something.


Regards,

Jarrod Bell
CommandFusion
www.commandfusion.com


Glen

unread,
Mar 3, 2016, 9:19:18 PM3/3/16
to CommandFusion Software, jar...@commandfusion.com

For anyone else using NXwitness as a CCTV server and/or NVR and want to connect iviewer for android to it, here is the URL for an image, none of the video api's work on android. (IOS is fine for video connection with nxwitness).

Rgds
Glen
Reply all
Reply to author
Forward
0 new messages