VideoStreamingAPI
ThisdocumentiscopyrightprotectedandisthepropertyofAxisCommunicationsABandmaynotbecopied,reproducedordistributedinanywaywithout
thepriorwrittenconsentofAxisCommunicationsAB.
HTTPCode:200OK
Content-Type:image/jpeg
Content-Length:<imagesizeinbytes>
Body:
<JPEGimagedata>

2.6.3MotionJPEGVideoCGIRequest

Themjpg/video.cgiisusedtorequestaMotionJPEGvideostreamwithspeciedarguments.Theargumentscanbespecied
explicitly,orapredenedstreamprolecanbeused.Imagesettingssavedinastreamprolecanbeoverriddenbyspecifying
newsettingsafterthestreamproleargument.
Accesscontrol:viewer
Method:GET
Syntax:
http://<servername>/axis-cgi/mjpg/video.cgi
[?<argument>=<value>[&<argument>=<value>...]]
Inadditiontotheargumentsdescribedin2.7ImageRequestArguments,onpage13mjpg/video.cgiacceptsthefollwing
arguments.
ArgumentValidvaluesDescription
streamprofile=<string><streamprofilename>Useapredenedstreamprole.
Supportedstreamprolenamesarestored
intheStreamProfile.S#.Name
parameters.
duration=<int>AnunsignedintegerSpeciesforhowmanysecondsthevideo
willbegeneratedandpushedtothe
client.
0=unlimited.
nbrofframes=<int>AnunsignedintegerSpecieshowmanyframestheAxis
productwillgenerateandpush.
0=unlimited.
fps=<int>AnunsignedintegerUsingfpsitispossibletospecifythe
frameratefromtheAxisproduct.
0=unlimited.
Generalimagearguments,see2.7ImageRequestArguments.
Example13:
RequestaMotionJPEGvideostreamfromvideosource1withresolution320x240andcompression25.
http://myserver/axis-cgi/mjpg/video.cgi?resolution=320x240
&compression=25&camera=1
Example14:
RequestaMotionJPEGvideostreamfromthedefaultvideosourcewithframerate5.
http://myserver/axis-cgi/mjpg/video.cgi?fps=5
Example15:
RequestaMotionJPEGvideostreamusingthemyprofilestreamprolebutwithalowerresolution.
12