Packaging method and apparatus

An encapsulation method and encapsulation format technology, applied in the field of data processing, can solve the problems of lack of index data, inability to write index data, loss of index data, etc., and achieve the effect of improving playability

Inactive Publication Date: 2018-05-11
HANGZHOU HIKVISION DIGITAL TECH
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, for this encapsulation method, once the storage system is powered off during the encapsulation process, the index data in the memory will be lost, which will cause the index data of the video data to be unable to be written into the file to be encapsulated, and finally the video data will be encapsulated become multimedia files that lack index data
When playing a multimedia file lacking index data, because the index data cannot be obtained in the obtained multimedia file, the multimedia file cannot be played normally.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Packaging method and apparatus
  • Packaging method and apparatus
  • Packaging method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0047] In order to solve the problem in the prior art that when the video data is encapsulated into multimedia files that need to carry index data such as MP4 and avi, the storage system loses power and causes the index data to be lost, which in turn leads to the problem that the encapsulated multimedia files cannot be played normally. The example provides an encapsulation method and device to improve the playability of a multimedia file encapsulated by a stora...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a packaging method and apparatus. The method comprises the following steps: obtaining respective video frames of a video data to be packaged; writing the respective video frames into a media file storage area in a preset package file, wherein the package file at least comprises the media file storage area for writing the video frames and a pre-writing buffer area for writing index data; after any video frame is written into the media file storage area, writing the index data of the video frame into the pre-writing buffer area to package a multimedia file. By applying the embodiment of the invention, the playability of multimedia files packaged by a storage system in a power-down scene is improved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a packaging method and device. Background technique [0002] With the development of technology, various encapsulation methods can be used to encapsulate video data, so as to obtain multimedia files in different encapsulation formats. For example, video can be packaged into MP4 (MPEG-4 Part 14, multimedia computer file format using MPEG-4), avi (Audio Video Interleaved, audio and video interleaved format) and WMV (WindowsMedia Video, media video format) and other formats of multimedia document. [0003] Among them, when video data is encapsulated into multimedia files such as MP4 and avi that need to carry index data, it is necessary to first generate a file header, and then encapsulate each video frame of the video data. After each video frame is encapsulated, the video frame corresponding to the The index data is written into the internal memory; furthermore, after th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04N21/433H04N21/845
CPCH04N21/4331H04N21/4332H04N21/8455
Inventor辛安民
OwnerHANGZHOU HIKVISION DIGITAL TECH