Method for providing prunable video
A method of encoding a video stream for the provision of prunable video data, comprising: receiving, in an encoder, a video stream in which each image frame of the video stream is divided into a number of subviews, providing each subview with an assigned category based on a content of the particular subview, monitoring the evolution of category assigned for each subview, and encoding the video stream using a hierarchical P-frame encoding structure, in such manner that each change in category for a subview starts a new hierarchical P-frame structure.
1. A method of encoding a video stream for the provision of a prunable video stream, comprising:
receiving, in an encoder, a video stream in which each image frame of the video stream is divided into a number of subviews,
assigning a category to each subview in each image frame of the video stream based on a content of the particular subview,
monitoring the assigned category for each subview in each image frame of the video stream and identifying any change in the assigned category for the particular subview in relation to a previous image frame,
encoding the video stream to create an encoded video stream using hierarchical multi-layer encoding, in such manner that, for each subview in each image frame of the video stream, each change in the assigned category for the particular subview in relation to the previous image frame starts a new hierarchical P-frame structure for the particular subview.
2. The method of claim 1 , wherein the content, based on which category is assigned to each subview in each image frame of the video stream, comprises object classes.
3. The method of claim 1 , wherein the content, based on which category is assigned to each subview in each image frame of the video stream, comprises motion.
4. The method of claim 1 , further comprising determining the content from metadata relating to the particular subview.
5. The method of claim 1 , further comprising acquiring video data for generation of the video stream.
6. The method of claim 1 , further comprising transmitting the encoded video stream.
7. The method of claim 1 , wherein there are at least two categories to assign, comprising a category of higher importance and a category of lesser importance.
8. The method of claim 1 , further comprising
generating a first hash value based on the whole video stream, and
generating a second hash value based on all or a selection of separate subviews, and
signing both the first and the second hash, in order to allow verifying the authenticity of the video both when not pruned and when pruned.
9. The method of claim 1 , wherein the method is performed in a video camera.
10. The method of claim 1 , further comprising pruning the encoded video stream by means of discarding some or all hierarchical P-frame structures of subviews being assigned the category of lesser importance.
11. The method of claim 10 , wherein the encoded video stream is pruned prior to being transferred to a storage.
12. The method of claim 10 , wherein the encoded video stream is pruned post being transferred to a storage.
13. The method of claim 10 , wherein the encoded video stream is pruned prior to leaving a video camera.
14. The method of claim 1 , wherein the subview division is predetermined.
15. The method of claim 1 , wherein the subview division is dynamically set based on events in the imaged scene.