In this paper, we consider the problem of lossless compression of video by taking into account temporal information. Video lossless compression is an interesting possibility in the line of production and distribution. We propose a compression technique which is based on motion compensation, optimal 3D linear prediction and context based GolombRice entropy coding. The proposed technique is compared with 3D extensions of the JPEG-LS standard for still image compression. A compression gain of about 0.8 bit/pel with respect to static JPEG-LS, applied on a frame-by-frame basis, is achievable at a reasonable computational complexity.