Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Media recording method and device thereof

A technology for media and media data, applied in the multimedia field, can solve problems such as failure to write media index information, and achieve the effect of ensuring robustness

Active Publication Date: 2009-06-03
HUAWEI DEVICE CO LTD
View PDF0 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, an embodiment of the present invention provides a method and device for recording media to solve the problem of failure to write media index information due to changes in storage space exceeding expectations during media recording

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
  • Media recording method and device thereof
  • Media recording method and device thereof
  • Media recording method and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The media recording method provided by the embodiment of the present invention is: during the media recording process, periodically generate media index information according to currently written media data blocks, and save the generated media index information. Since the index information is not generated and saved at one time after the recording ends, when the recording is terminated abnormally due to insufficient storage space, it can also ensure that the media data saved before the recording is terminated can be played normally.

[0023] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0024] figure 2 Shown is the flow chart of the media recording method of the embodiment of the present invention, and the specific description is as follows:

[0025] S101. Generate media index information according to currently written media data blocks.

[0026] S102. Save the generated media index in...

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 discloses a media recording method and a device thereof. The media recording method comprises the following steps: periodically generating media index information according to current written media data blocks in the media recording course, and storing the generated media index information. By the technical proposal of the invention, media data which are stored before stopping recording can be normally played even if a storage space change exceeds expectation to cause recording to be abnormally stopped if a terminal further executes other writing tasks while recording the media, which ensures the robustness of the media recording task. Furthermore, a period for generating the index information can also be dynamically adjusted according to the size of the available space in the recording process, for example, the period is shortened when the available space is smaller than a preset threshold, that is, the frequency for generating the index information is increased, thus the available space can be used as much as possible to store more effective media data.

Description

technical field [0001] The invention relates to the field of multimedia technologies, in particular to a method and device for recording media. Background technique [0002] In recent years, various terminals with functions such as recording and video recording have been more and more widely used, and users' demand for terminal storage space is also increasing. [0003] figure 1 Shown is a schematic diagram of a storage format of an existing media file. A media file generally consists of three parts: a file header, media data, and a media index. Some basic information of the media file is recorded in the file header, such as title, producer, encoding format, encoding rate, etc.; the encoded media data will be written into the file in the form of data blocks (Chunk) at regular intervals, Wherein, each data block represents media data of a fixed unit time (usually 1s). After the media data is written, the encoding program will generate a media index (Media Index) according ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G11B20/10G11B27/10
CPCG11B27/309
Inventor 马涛
Owner HUAWEI DEVICE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products