1. A method comprising a processor, a memory, a video sensor, a video encoder and a transceiver, the memory including instructions stored thereon which, when executed by the processor, perform a method for generating video analytics, the method comprising: providing, by the processor, information representative of a sequence of images captured by the video sensor to the video encoder that is adapted to encode the information using macroblock-based video encoding to obtain a plurality of video frames, wherein the video sensor and video encoder are co-located in a first apparatus; generating, by the processor, pixel domain video analytics metadata (VAMD) that includes video content analysis information for each of a plurality of macroblocks while encoding the information in the video encoder; generating, by the processor, a global video analytics message applicable to a plurality of images in the sequence of images using the VAMD; generating, by the processor, a local video analytics message applicable to a first video frame in the plurality of video frames using the VAMD; and transmitting, by the transceiver, the plurality of video frames through a network to a second apparatus with a package comprising the VAMD and the local video analytics message or the global video analytics message, wherein the second apparatus includes a video analytics processor configured to process the package transmitted by the first apparatus.