WO2015131700A1 - Procédé et dispositif de stockage de fichiers - Google Patents

Procédé et dispositif de stockage de fichiers Download PDF

Info

Publication number
WO2015131700A1
WO2015131700A1 PCT/CN2015/071449 CN2015071449W WO2015131700A1 WO 2015131700 A1 WO2015131700 A1 WO 2015131700A1 CN 2015071449 W CN2015071449 W CN 2015071449W WO 2015131700 A1 WO2015131700 A1 WO 2015131700A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
video
buffers
recording
unit
Prior art date
Application number
PCT/CN2015/071449
Other languages
English (en)
Chinese (zh)
Inventor
吴飞
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131700A1 publication Critical patent/WO2015131700A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24568Data stream processing; Continuous queries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations

Definitions

  • the present invention relates to the field of communications, and in particular to a file storage method and apparatus.
  • the functions of smart phones are increasing, which greatly enriches people's lives.
  • the video recording function of the mobile phone greatly improves the user's life, so that the user can record the wonderful moment without purchasing an expensive video recorder.
  • the current video recording function of the smartphone has the following problems: when the user shoots some scenes that may be sudden, such as shooting a scene on the court and shooting a scene with a cute expression of the child, it is not sure when these wonderful things will occur.
  • the screen must be recorded all the time, which may cause the memory card of the mobile phone to be fully stored, but the user wants to take the picture, so the user needs to delete the original stored file to ensure that the mobile phone has extra storage space.
  • the present invention provides a file storage method and apparatus to solve at least the problem that the user cannot save the recorded content in time due to the limited storage space of the terminal existing in the related art.
  • a file storage method comprising: establishing two or more file buffers configured to store a predetermined duration video file; and sequentially or two or more in a manner of overlay update The video file is input into the file buffer in a time period; the video file is stored according to the video file input in the two or more file buffers.
  • establishing two or more file buffers configured to store the predetermined duration video file includes: determining a time-limited mode set to limit the recording duration; establishing two or more of the file buffers according to the time-limited mode .
  • inputting the video file in a time period of two or more of the file buffers by using an overlay update manner includes: determining whether a video file before the current time period is input in the file buffer; If the result of the determination is YES, the recording file before the current time period input in the file buffer is updated to the recording file recorded in the current time period.
  • storing the video file according to the video file stored in the two or more file buffers comprises: acquiring video files stored in two or more file buffers; Or recording the video files in the two or more file buffers separately; splicing the video files in the two or more file buffers after the segmentation processing in time series; storing the video after the splicing process file.
  • separately performing the segmentation processing on the video files in the two or more file buffers includes: acquiring key frame information of the video files in the two or more file buffers, where The key frame information includes a time stamp and an offset; and the video file is segmented according to the key frame information.
  • a file storage apparatus comprising: an establishing module configured to establish two or more file buffers configured to store a predetermined duration video file; and an input module configured to use overlay update The method sequentially inputs the video files in two or more of the file buffers in a time period; the storage module is configured to pair the video files according to the video files input in the two or more file buffers. Store.
  • the establishing module comprises: a determining unit configured to determine a time-limited mode set to limit a recording duration; and an establishing unit configured to establish two or more file buffers according to the time-limited mode.
  • the input module includes: a determining unit, configured to determine whether a recording file before the current time period is input in the file buffer; and an updating unit, configured to: if the determination result is yes, the file The video file before the current time period entered in the buffer is updated to the video file recorded in the current time period.
  • the storage module includes: an obtaining unit configured to acquire a video file stored in two or more file buffers; and a dividing unit, configured to pair two or more of the file buffers
  • the video files are respectively divided and processed;
  • the splicing unit is configured to splicing the video files in the two or more file buffers after the segmentation process in time series;
  • the storage unit is set to store the video after the splicing process file.
  • the segmentation unit includes: an acquisition subunit configured to acquire key frame information of a video file in two or more file buffers, wherein the key frame information includes a time stamp and an offset And dividing the subunit, configured to divide the video file according to the key frame information.
  • two or more file buffers configured to store a predetermined duration video file are created; and the recording is sequentially input in two or more of the file buffers in a time interval by means of overlay update.
  • File storing the video file according to the video file input in the file buffer of the two or more files, which solves the problem that the user cannot save the video content in time due to limited storage space of the terminal in the related art.
  • the video content that the user wants can be saved in time to improve the user experience.
  • FIG. 1 is a flow chart of a file storage method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a file storage device according to an embodiment of the present invention.
  • FIG. 3 is a structural block diagram of a building module 22 in a file storage device according to an embodiment of the present invention
  • FIG. 4 is a block diagram showing the structure of an input module 24 in a file storage device according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a storage module 26 in a file storage device according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a dividing unit 54 in a file storage device according to an embodiment of the present invention.
  • FIG. 7 is a block diagram showing the structure of a time-limited video recording apparatus according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a display recording method according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of recording data storage according to an embodiment of the present invention.
  • FIG. 10 is a flow chart of processing a video file according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a file storage method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 establishing two or more file buffers configured to store a predetermined duration video file
  • Step S104 sequentially inputting a video file in a time period of two or more file buffers by using an overlay update manner
  • Step S106 The video file is stored according to the video file input in the two or more file buffers.
  • two or more file buffers configured to store a predetermined duration video file are created; in the overlay update manner, video files are input in time segments in two or more file buffers; Or the video file input in the two or more file buffers stores the video file, so that when the time is not recorded to the user, the latest recorded content is replaced by the original recorded content until the recording is waited for the user.
  • the problem that the user cannot save the recorded content in time due to the limited storage space of the terminal in the related art is solved, thereby achieving the effect that the video content desired by the user can be saved in time and the user experience is improved.
  • establishing two or more file buffers configured to store the predetermined duration video file includes: determining a time-limited mode set to limit the recording duration; establishing two or more file buffers according to the time-limited mode Area.
  • the length of the video files that can be cached by two or more file buffers can be the same or different from each other. When the length of the video to be obtained is long, the recording duration that can be cached in each file buffer can be set larger. When the length of the desired recording is short, the recording duration of each file buffer can be buffered. The settings are smaller. Therefore, it can be well adapted to different video environments.
  • the step of inputting the video file into the two or more file buffers in a time interval by using the overlay update method includes: determining whether the video file before the current time period is input in the file buffer; If the result of the determination is YES, the recording file before the current time period input in the file buffer is updated to the recording file recorded in the current time period. Realize the deletion of redundant recording content in real time, ensuring that the terminal has enough memory to store the video content that the user wants.
  • storing the video file according to the video files stored in the two or more file buffers includes: acquiring video files stored in two or more file buffers; The video files in the two or more file buffers are separately divided; the video files in the two or more file buffers after the split processing are spliced in time series; and the video files after the stitching processing are stored.
  • separately performing the segmentation processing on the video files in the two or more file buffers includes: acquiring key frame information of the video files in the two or more file buffers, where The key frame information includes a time stamp and an offset; and the video file is divided according to the key frame information.
  • the key frame information includes a time stamp and an offset
  • file segmentation can also be performed based on other information.
  • a file storage device is also provided in the embodiment, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a block diagram showing the structure of a file storage device according to an embodiment of the present invention. As shown in FIG. 2, the device includes an establishing module 22, an input module 24, and a storage module 26. The device will be described below.
  • the establishing module 22 is configured to establish two or more file buffers configured to store the recording files of the predetermined duration; the input module 24 is connected to the establishing module 22, and is set to use two or two in the manner of overlay update.
  • the video file is input into the above file buffer in a time period; the storage module 26 is connected to the input module 24, and is configured to store the video file according to the video file input in the two or more file buffers.
  • FIG. 3 is a structural block diagram of the establishing module 22 in the file storage device according to the embodiment of the present invention. As shown in FIG. 3, the establishing module 22 includes a determining unit 32 and an establishing unit 34. The building module 22 will be described below.
  • the determining unit 32 is arranged to determine a time-limited mode set to limit the recording duration; the establishing unit 34 is connected to the determining unit 32, and is configured to establish two or more file buffers according to the time-limited mode.
  • FIG. 4 is a block diagram showing the structure of an input module 24 in a file storage device according to an embodiment of the present invention. As shown in FIG. 4, the input module 24 includes a judging unit 42 and an updating unit 44. The input module 24 will be described below.
  • the determining unit 42 is configured to determine whether a recording file before the current time period is input in the file buffer; the updating unit 44 is connected to the determining unit 42 and is set to input the file buffer if the determination result is yes.
  • the video file before the current time period is updated to the video file recorded in the current time period.
  • FIG. 5 is a structural block diagram of a storage module 26 in a file storage device according to an embodiment of the present invention. As shown in FIG. 5, the storage module 26 includes an obtaining unit 52, a dividing unit 54, a splicing unit 56, and a storage unit 58. The storage module 26 will be described below.
  • the obtaining unit 52 is configured to acquire the video files stored in the two or more file buffers; the dividing unit 54 is configured to separately perform the segmentation processing on the video files in the two or more file buffers; the splicing unit 56 And configured to splicing the video files in the two or more file buffers after the split processing in time series; the storage unit 58 is configured to store the video files after the stitching processing.
  • FIG. 6 is a block diagram showing the structure of a dividing unit 54 in a file storage device according to an embodiment of the present invention.
  • the dividing unit 54 includes an obtaining sub-unit 62 and a dividing sub-unit 64.
  • the division unit 54 will be described below.
  • the obtaining sub-unit 62 is configured to acquire key frame information of the video file in the two or more file buffers, wherein the key frame information includes a time stamp and an offset; the dividing sub-unit 64 is connected to the above acquiring sub- Unit 62 is arranged to split the video file based on the key frame information.
  • FIG. 7 is a structural block diagram of a time-limited recording apparatus according to an embodiment of the present invention.
  • the apparatus includes the following modules: a recording module 72 (same as the above input module 24) and a file pool module 74 (same as the above-mentioned establishing module 22).
  • the file processing module 76 (same as the above storage module 26) and the recording management module 78 (same as the above-described building module 22).
  • the recording module 72 is configured to collect images, sounds, and encodes;
  • the file pool module 74 is configured to open a file buffer and provide a function for reading and writing multimedia files; and the file processing module 76 is configured to perform multimedia files in the file pool.
  • the video management module 78 provides the user with an interface for setting time-limited recording, such as selecting a recording mode and selecting the duration of the recording.
  • the user sets the recording mode to the time-limited mode through the recording management module 78 and selects an appropriate duration, and then the user starts the recording module 72 to start recording, and the multimedia data generated during the recording process is written into a file through the file pool module 74.
  • the new video file automatically overwrites the "old" file, and the user stops recording after capturing the desired scene.
  • the file processing module 76 starts splitting and merging the video files, and saves the latest content as a separate video file. And ultimately to the user.
  • a new recording mode a time-limited mode, in which only the most recent content is recorded, the length of the time can be specified by the user as needed, such as 1 minute, 5 minutes.
  • the content before this time will be overwritten during the shooting process, thus ensuring that the file generated by the recording only contains a scene that has just appeared, so that the file size can be controlled; and the wonderful content that you want to shoot is not missed.
  • FIG. 8 is a flowchart of a display recording method according to an embodiment of the present invention. As shown in FIG. 8, the method includes the following steps:
  • Step S802 the recording function of the mobile terminal is turned on.
  • step S804 the user selects the time-limited mode through the recording management module and selects the required duration, such as 1 minute and 5 minutes.
  • step S806 the recording module is started to start recording, and the “old” content is automatically overwritten during the recording process, and the latest content is saved.
  • This step can be implemented by the following method: opening two file buffers A and B through the file pool module, each buffer restricts the recording time to the length selected by the user (for example, 1 minute), and the recorded data is first output to the A buffer. When the A buffer is full, it starts to output to the B buffer. When the B buffer is slow, it will output to the A buffer again, overwriting the contents of the original A buffer, and then changing to B when A is full, thus alternately used.
  • FIG. 9 is a schematic diagram of recording data storage according to an embodiment of the present invention.
  • step S808 the user stops recording after capturing the desired scene, and the file processing module generates a corresponding video file.
  • the A buffer saves the time of 00'00"-04'59
  • the B buffer saves the time of 05'00"-06'59"
  • the user stops recording if the content of the most recent time is saved in the same buffer, you can directly generate the file with the corresponding buffer; if the content is distributed in two buffers (that is, each part is saved), Then two pieces of data need to be spliced to generate a file, and the process mainly involves the generation of a file header.
  • the A buffer saves
  • FIG. 10 is a video file processing flow according to an embodiment of the present invention. The figure is illustrated by taking the format of the video file as the mp4 format as an example. The process includes the following steps.
  • step S1002 two file key frame lists are obtained.
  • Step S1004 selecting a time period to be divided, A takes 02'00"-04'59", B takes 05'00"-06'59", and obtains key frame information in the corresponding time, including time Poke, offset, due to the nonlinear characteristics of multimedia coding, the key frame may be slightly deviated from this time, resulting in the actual generated file length is slightly larger than the required time, because the impact of this point is minimal, the impact on the user experience can be ignored.
  • step S1006 the moov box (the most important information in the mp4 file header) and other mp4 file header contents are regenerated according to the key frame information.
  • step S1008 the corresponding media data in the two files is copied, and a new mp4 file is generated.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. Perform the steps shown or described, or separate them into individual integrated circuit modules, or Multiple of these modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
  • the problem that the user cannot save the recorded content in time due to the limited storage space of the terminal in the related art is solved, thereby achieving the effect of timely saving the video content desired by the user and improving the user experience. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

L'invention concerne un procédé et un dispositif de stockage de fichiers. Le procédé consiste à : établir deux zones, ou plus, de tamponnage de fichiers pour enregistrer des fichiers vidéo d'une longueur prédéfinie (S102); entrer un fichier vidéo en séquence dans les deux zones, ou plus, de tamponnage de fichiers en écrasant en continu les zones tampons (S104); stocker le fichier vidéo conformément aux fichiers vidéo entrés dans les deux zones, ou plus, de tamponnage de fichiers (S106). Le procédé résout le problème lié, dans l'état de la technique, au fait que l'espace de stockage limité d'un terminal empêche un utilisateur de stocker un contenu vidéo au moment voulu. L'invention permet donc aux utilisateurs de stocker un contenu vidéo souhaité et améliore l'expérience utilisateur.
PCT/CN2015/071449 2014-10-15 2015-01-23 Procédé et dispositif de stockage de fichiers WO2015131700A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410545519.8 2014-10-15
CN201410545519.8A CN105573921A (zh) 2014-10-15 2014-10-15 文件存储方法及装置

Publications (1)

Publication Number Publication Date
WO2015131700A1 true WO2015131700A1 (fr) 2015-09-11

Family

ID=54054548

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071449 WO2015131700A1 (fr) 2014-10-15 2015-01-23 Procédé et dispositif de stockage de fichiers

Country Status (2)

Country Link
CN (1) CN105573921A (fr)
WO (1) WO2015131700A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125022A (zh) * 2019-11-15 2020-05-08 浙江大华技术股份有限公司 录像覆盖权重的确定方法、装置、设备和存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866422B (zh) * 2020-06-16 2022-12-09 普联技术有限公司 录像数据上传方法、装置、设备及计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812533A (zh) * 2006-01-10 2006-08-02 无敌科技(西安)有限公司 一种录像方法
CN101409831A (zh) * 2008-07-10 2009-04-15 浙江师范大学 一种多媒体视频对象处理方法
CN102413035A (zh) * 2011-08-16 2012-04-11 北京首钢自动化信息技术有限公司 一种实现快速数据采集的方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4499573B2 (ja) * 2002-12-20 2010-07-07 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ より使いやすいタイムシフトバッファ
CN1780383A (zh) * 2004-11-24 2006-05-31 上海乐金广电电子有限公司 数字复合录像机中的数据连续记录方法
US8433859B2 (en) * 2008-11-25 2013-04-30 Mediatek Inc. Apparatus and method for buffer management for a memory operating
ATE543324T1 (de) * 2009-05-06 2012-02-15 Alcatel Lucent Verfahren zur optimierung der lieferung von inhalten aus einem cache mit bezug auf kosten
CN103297739B (zh) * 2012-02-22 2016-08-31 安凯(广州)微电子技术有限公司 一种音视频录制方法及装置
CN103067696A (zh) * 2013-01-31 2013-04-24 东方网力科技股份有限公司 面向视频监控的流媒体缓存方法、装置、控制器和系统
CN103744993A (zh) * 2014-01-22 2014-04-23 苏州科达科技股份有限公司 一种录像文件的存储与检索方法及其存储与检索装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812533A (zh) * 2006-01-10 2006-08-02 无敌科技(西安)有限公司 一种录像方法
CN101409831A (zh) * 2008-07-10 2009-04-15 浙江师范大学 一种多媒体视频对象处理方法
CN102413035A (zh) * 2011-08-16 2012-04-11 北京首钢自动化信息技术有限公司 一种实现快速数据采集的方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125022A (zh) * 2019-11-15 2020-05-08 浙江大华技术股份有限公司 录像覆盖权重的确定方法、装置、设备和存储介质

Also Published As

Publication number Publication date
CN105573921A (zh) 2016-05-11

Similar Documents

Publication Publication Date Title
CN112073649B (zh) 多媒体数据的处理方法、生成方法及相关设备
US11670339B2 (en) Video acquisition method and device, terminal and medium
US10992623B2 (en) Digital media messages and files
CN112866796A (zh) 视频生成方法、装置、电子设备和存储介质
CN113055709B (zh) 视频发布方法、装置、设备、存储介质及程序产品
CN111435600B (zh) 用于处理音频的方法和装置
CN106095881A (zh) 一种显示照片相应信息的方法、系统及移动终端
JP2014030153A (ja) 情報処理装置及び情報処理方法、並びにコンピューター・プログラム
WO2015131700A1 (fr) Procédé et dispositif de stockage de fichiers
JP6869135B2 (ja) 再生装置、再生装置の制御方法、及び、プログラム
US20200344300A1 (en) Managing data
JP2016063477A (ja) 会議システム、情報処理方法、及びプログラム
CN111669625A (zh) 一种拍摄文件的处理方法、装置、设备及存储介质
WO2017176940A1 (fr) Messages et fichiers de média numériques
JP5233730B2 (ja) 情報処理装置及び情報処理方法
US9979787B2 (en) Information processing system, network storage device, and non-transitory recording medium
JP2015023317A5 (ja) 画像管理装置及び画像管理方法、プログラム、並びに記憶媒体
CN103093486A (zh) 日志编辑的方法及装置
CN111625508A (zh) 一种信息处理方法及装置
CN112422808B (zh) 照片的获取、媒体对象的处理方法及装置、电子设备
CN116506654A (zh) 媒体内容发布方法、装置、设备及存储介质
CN117376635A (zh) 多媒体数据处理方法、装置、设备、存储介质和程序产品
JP2014204235A (ja) コンテンツ記録再生装置、コンテンツ管理方法及びプログラム
CN117556066A (zh) 多媒体内容生成方法和电子设备
JP2014096194A (ja) 記録装置及び記録方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15758655

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15758655

Country of ref document: EP

Kind code of ref document: A1