CN110225351B - Video file processing method and device, electronic equipment and storage medium - Google Patents

Video file processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110225351B
CN110225351B CN201910538747.5A CN201910538747A CN110225351B CN 110225351 B CN110225351 B CN 110225351B CN 201910538747 A CN201910538747 A CN 201910538747A CN 110225351 B CN110225351 B CN 110225351B
Authority
CN
China
Prior art keywords
metadata
compression
occupied space
storage unit
compression unit
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910538747.5A
Other languages
Chinese (zh)
Other versions
CN110225351A (en
Inventor
吴阳怿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910538747.5A priority Critical patent/CN110225351B/en
Publication of CN110225351A publication Critical patent/CN110225351A/en
Application granted granted Critical
Publication of CN110225351B publication Critical patent/CN110225351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The disclosure relates to a video file processing method, a video file processing device, electronic equipment and a storage medium, and relates to the technical field of information processing. The method modifies index information in the metadata storage unit according to the preset offset, compresses the metadata storage unit, acquires the occupied space of the metadata compression unit, judges whether the difference between the preset offset and the occupied space of the metadata compression unit meets the preset condition, and moves the metadata compression unit to the front of the media data storage unit when the difference meets the preset condition. Updating a preset offset according to the occupied space of the metadata compression unit obtained by the last compression, modifying the index information in advance according to the preset offset before compressing the metadata storage unit, and moving the metadata compression unit obtained by the current compression to the front of the media data storage unit when a preset condition is met so as to reduce the first screen time; the metadata compression unit replaces the metadata storage unit, so that the size of the video file is reduced, and the transmission time is shortened.

Description

Video file processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a video file processing method and apparatus, an electronic device, and a storage medium.
Background
Generally, when an encoder encodes a video file, a metadata storage unit is placed behind a media data storage unit, and when a streaming media is played, the entire video file needs to be downloaded to start playing.
In a related art, in order to reduce the first screen time, the metadata storage unit may be moved to a position before the media data storage unit, and moving the position of the metadata storage unit may cause the position of the media data storage unit to be shifted relative to the entire video file, so that the index information needs to be modified according to the occupied space of the metadata storage unit; however, since the metadata storage unit has the index information, the metadata storage unit is large, so that the video file is also large, and when the video file is transmitted, the transmission time is long, and the playing of the video file is delayed.
In another related art, in order to reduce the transmission time of the video file, the metadata storage unit may be compressed to obtain a metadata compression unit, and the metadata compression unit replaces the metadata storage unit; however, since the metadata compression unit is obtained by compressing the metadata storage unit, if the metadata compression unit is moved to the front of the media data storage unit to reduce the first screen time, the index information needs to be modified in advance according to the occupied space of the compressed metadata compression unit before the metadata storage unit is compressed, but the occupied space of the metadata compression unit obtained by the current compression cannot be known in advance during modification, and therefore the metadata compression unit cannot be moved to the front of the media data storage unit, which leads to a longer first screen time.
Disclosure of Invention
The present disclosure provides a video file processing method, an apparatus, an electronic device, and a storage medium, so as to at least solve the problem that the transmission time of a video file and the first screen time when the video file is played cannot be reduced simultaneously in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a video file method, the video file including a metadata storage unit and a media data storage unit, the method including:
acquiring a preset offset; the preset offset is updated according to the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed last time;
modifying the index information in the metadata storage unit according to the preset offset;
compressing the metadata storage unit to obtain a metadata compression unit obtained by the current compression;
acquiring the occupied space of the metadata compression unit obtained by the compression;
judging whether the difference value between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition or not;
and when the preset condition is met, moving the metadata compression unit obtained by the current compression to the front of the media data storage unit.
Optionally, after the step of determining whether the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition, the method further includes:
and when the preset condition is not met and the occupied space of the metadata compression unit obtained by the current compression is not equal to the occupied space of the metadata compression unit obtained by each previous compression, continuously updating the preset offset according to the occupied space of the metadata compression unit obtained by the current compression, and executing the steps after the step of obtaining the preset offset.
Optionally, after the step of determining whether the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition, the method further includes:
when the preset condition is not met and the occupied space of the metadata compression unit obtained by the current compression is equal to the occupied space of the metadata compression unit obtained by the compression of the appointed times, the occupied space of the metadata compression unit obtained by each compression from the appointed times to the current time is obtained; the specified times are any times before the current time;
selecting a minimum occupation space and a maximum occupation space from the occupation spaces of the metadata compression units obtained by each compression between the specified times and this time;
adding a first set value to the maximum occupied space to obtain a target occupied space;
and updating the preset offset in sequence according to each occupied space between the minimum occupied space and the target occupied space, and executing the steps after the step of obtaining the preset offset.
Optionally, after the steps after the step of sequentially updating the preset offset according to each occupied space between the minimum occupied space and the target occupied space and the step of obtaining the preset offset are executed, the method further includes:
and when the difference value between each occupied space between the minimum occupied space and the target occupied space and the corresponding occupied space of the metadata compression unit obtained by each compression does not meet the preset condition, moving the metadata storage unit to the front of the media data storage unit.
Optionally, the preset condition is that the difference is equal to 0.
Optionally, the preset condition is that the difference is greater than or equal to a second set value, where the second set value is a positive number, and after the step before moving the metadata compression unit obtained by the current compression to the media data storage unit, the method further includes:
determining the target number of idle units according to the difference value;
filling the target number of free cells between the metadata compression unit and the media data storage unit.
Optionally, the index information in the metadata storage unit includes a byte sequence number of each video frame in the media data storage unit in the video file; the step of modifying the index information in the metadata storage unit according to the preset offset includes:
and adding the preset offset to the byte sequence numbers respectively to modify the index information in the metadata storage unit.
According to a second aspect of the embodiments of the present disclosure, there is provided a video file processing apparatus, the video file including a metadata storage unit and a media data storage unit, the apparatus comprising:
a preset offset acquisition module configured to acquire a preset offset; the preset offset is updated according to the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed last time;
an index information modification module configured to modify the index information in the metadata storage unit according to the preset offset;
the metadata storage unit compression module is configured to compress the metadata storage unit to obtain a metadata compression unit obtained by the current compression;
a first occupied space acquisition module configured to acquire an occupied space of the metadata compression unit obtained by the current compression;
a preset condition judgment module configured to judge whether a difference between the preset offset and an occupied space of the metadata compression unit obtained by the current compression satisfies a preset condition;
and the metadata compression unit moving module is configured to move the metadata compression unit obtained by the current compression to the front of the media data storage unit when the preset condition is met.
Optionally, the apparatus further comprises:
and the preset offset first updating module is configured to continuously update the preset offset according to the occupied space of the metadata compression unit obtained by the compression when the preset condition is not met and the occupied space of the metadata compression unit obtained by the compression is not equal to the occupied space of the metadata compression unit obtained by each previous compression, and execute the module behind the preset offset obtaining module.
Optionally, the apparatus further comprises:
a second occupied space acquisition module configured to acquire, when the preset condition is not satisfied and the occupied space of the metadata compression unit obtained by the current compression is equal to the occupied space of the metadata compression unit obtained by the specified number of times of compression, the occupied space of the metadata compression unit obtained by each time of compression from the specified number of times to this time; the specified times are any times before the current time;
the occupied space selection module is configured to select the minimum occupied space and the maximum occupied space from the occupied spaces of the metadata compression units obtained by each compression between the specified times and this time;
the target occupied space calculation module is configured to add a first set value to the maximum occupied space to obtain a target occupied space;
and the preset offset second updating module is configured to sequentially update the preset offset according to each occupied space between the minimum occupied space and the target occupied space, and execute the module behind the preset offset obtaining module.
Optionally, the apparatus further comprises:
and the metadata storage unit moving module is configured to move the metadata storage unit to a position in front of the media data storage unit when the difference value between each occupied space between the minimum occupied space and the target occupied space and the corresponding occupied space of the metadata compression unit obtained by each compression does not meet the preset condition.
Optionally, the preset condition is that the difference is equal to 0.
Optionally, the preset condition is that the difference is greater than or equal to a second set value, where the second set value is a positive number, and the apparatus further includes:
a target number determination module configured to determine a target number of idle cells based on the difference;
a free unit filling module configured to fill the target number of free units between the metadata compression unit and the media data storage unit.
Optionally, the index information in the metadata storage unit includes a byte sequence number of each video frame in the media data storage unit in the video file; the index information modification module comprises:
the index information modification submodule is configured to add the preset offset to the byte sequence numbers respectively to modify the index information in the metadata storage unit.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video file processing method described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the above-described video file processing method.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the above-mentioned video file processing method.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method comprises the steps of obtaining a preset offset, updating the preset offset according to the occupied space of a metadata compression unit obtained after a metadata storage unit is compressed last time, modifying index information in the metadata storage unit according to the preset offset, compressing the metadata storage unit, obtaining the metadata compression unit obtained through compression this time, obtaining the occupied space of the metadata compression unit obtained through compression this time, judging whether the difference value between the preset offset and the occupied space of the metadata compression unit obtained through compression this time meets a preset condition, and when the preset condition is met, moving the metadata compression unit obtained through compression this time to the front of a media data storage unit. Updating a preset offset according to the occupied space of the metadata compression unit obtained by the last compression, so that before the metadata storage unit is compressed, the index information is modified in advance according to the preset offset, and when the difference value between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition, the metadata compression unit obtained by the current compression is moved to the front of the media data storage unit, so that the first screen time is reduced; in the video file, the compressed metadata compression unit replaces the metadata storage unit, so that the size of the video file is reduced, the transmission time of the file can be reduced when the video file is transmitted, and the delay of video playing is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a method of video file processing in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another video file processing method in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a video file processing apparatus according to an exemplary embodiment;
fig. 4 is a block diagram illustrating another video file processing apparatus according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flow chart illustrating a video file processing method according to an exemplary embodiment, which may include the steps of, as shown in fig. 1:
in step S101, a preset offset is obtained; and the preset offset is updated according to the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed last time.
The video file is an MP4 file, which includes a metadata storage unit (moov) and a media data storage unit (media data, mdat), and further includes a file type unit (ftyp), and the encoder encodes the video file with the file type unit being located at the very beginning of the entire video file, followed by the media data storage unit, and finally the metadata storage unit, i.e., the metadata storage unit, being located after the media data storage unit.
The media data storage unit stores actual video data, the metadata storage unit records various metadata and index information of the video file, the metadata comprises data of resolution, color gamut, frame rate, duration and the like of the video file, and the index information is used for searching corresponding video data in the media data storage unit.
It should be noted that the video file is not limited to the MP4 file, as long as the metadata storage unit is located behind the media data storage unit, and the metadata storage unit can compress the video file.
If the metadata compression unit obtained after the metadata storage unit is compressed is moved to the front of the media data storage unit, the position of the media data storage unit is shifted relative to the whole video file, in order to accurately find the corresponding video data according to the index information in the metadata storage unit, the index information in the metadata storage unit needs to be modified before the metadata storage unit is compressed, but because the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed at this time cannot be known in advance, the preset offset needs to be updated according to the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed at the last time, and the updated preset offset is obtained.
For example, the occupied space of the metadata compression unit obtained from the previous compression is 100 bytes, i.e. the preset offset is 100 bytes.
In step S102, the index information in the metadata storage unit is modified according to the preset offset.
And modifying the index information in the metadata storage unit according to the updated preset offset, namely, reserving a space with the size of the preset offset for the metadata compression unit obtained by the compression before the media data storage unit.
In step S103, the metadata storage unit is compressed to obtain a metadata compression unit obtained by the current compression.
The metadata compression unit obtained by compressing the metadata storage unit this time can generally maintain a compression rate of about 60% when the metadata storage unit is compressed.
For example, the occupied space of the metadata storage unit is 250 bytes, and if the compression rate is 60%, the occupied space of the metadata compression unit obtained by the current compression after compression is 250-.
In step S104, the occupied space of the metadata compression unit obtained by the current compression is acquired.
After obtaining the metadata compression unit obtained by the current compression, obtaining an occupied space of the metadata compression unit obtained by the current compression, wherein the occupied space is usually represented by bytes.
In step S105, it is determined whether a difference between the preset offset and an occupied space of the metadata compression unit obtained by the current compression satisfies a preset condition.
Judging whether the preset offset and the occupied space of the metadata compression unit obtained by the current compression meet the preset condition or not; wherein the preset conditions are as follows: the difference is equal to 0, or the difference is greater than or equal to a second set value, and the second set value is a positive number.
And when the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression is equal to 0, or when the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression is greater than or equal to a second set value, determining that the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition.
It should be noted that the second setting value is determined according to a data storage format of the video file, for example, the video file is an MP4 file, and since one unit in the MP4 file is at least 8 bytes, the second setting value is 8.
For example, the preset offset is 100 bytes, the occupied space of the metadata compression unit obtained by the current compression is 100 bytes, the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression is equal to 0, and it is determined that the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression satisfies the preset condition.
In step S106, when the preset condition is satisfied, the metadata compression unit obtained by the current compression is moved to a position before the media data storage unit.
When the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets the preset condition, the space with the preset offset reserved for the metadata compression unit obtained by the current compression is determined before the media data storage unit, the metadata compression unit obtained by the current compression can be placed in the metadata compression unit obtained by the current compression, and the metadata compression unit obtained by the current compression is moved to the front of the media data storage unit.
It should be noted that, when the preset condition is that the difference is equal to 0, that is, when the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression is equal to 0, the metadata compression unit obtained by the current compression is directly moved to a location before the media data storage unit, and when the preset condition is that the difference is greater than or equal to a second set value, the second set value is a positive number, and before the metadata compression unit obtained by the current compression is moved to the media data storage unit, a corresponding number of idle units need to be filled between the metadata compression unit and the media data storage unit.
Specifically, the faststart parameter may be used to move the metadata compression unit obtained by the secondary compression to the front of the media data storage unit.
In the actual execution process, the metadata storage unit is firstly compressed to obtain a metadata compression unit obtained by first compression, the occupied space of the metadata compression unit obtained by first compression is obtained, updating the preset offset according to the occupied space of the metadata compression unit obtained by the first compression, subsequently modifying the index information in the metadata storage unit according to the preset offset, performing second compression on the metadata storage unit to obtain a metadata compression unit obtained by the second compression, obtaining the occupied space of the metadata compression unit obtained by the second compression, judging whether the difference between the preset offset and the occupied space of the metadata compression unit obtained by the second compression meets the preset condition or not, and when the preset condition is met, moving the metadata compression unit obtained by the second compression to the front of the media data storage unit.
Therefore, it can be understood that, when the n-th compression is performed on the metadata storage unit to obtain the metadata compression unit obtained by the n-th compression, the preset offset compared with the occupation space of the metadata compression unit obtained by the n-th compression is the occupation space of the metadata compression unit obtained by the n-1-th compression, and n is a positive integer greater than 0.
At this time, the processed video file includes a file type unit, a metadata compression unit, and a media data storage unit in this order. The processed video file can be applied to streaming media, the processed video file can be uploaded to a network subsequently, a client is connected with the network, the processed video file is downloaded from the network, then the video file is analyzed, and the analyzed video file is submitted to a player in the client for playing, so that the effect of playing while playing is achieved; specifically, when the video file is analyzed, the metadata compression unit in the video file can be decompressed to obtain the metadata storage unit, and when the player plays the video file, the video data in the downloaded media data storage unit can be searched based on the index information in the metadata storage unit, that is, the downloaded video data can be played in the player.
The metadata compression unit is smaller than the metadata storage unit, so that the processed video file is smaller than the video file before processing, and the transmission time of the file can be reduced in the subsequent video file transmission process, thereby reducing the video playing delay; and because the metadata compression unit is positioned in front of the media data storage unit, when the video file is played, the whole video file does not need to be downloaded completely, after the metadata compression unit is downloaded, the metadata compression unit is decompressed to obtain the metadata storage unit, and as long as the first frame of video in the media data storage unit is downloaded successfully, the first frame of video can be played in the player based on the index information in the metadata storage unit, so that the waiting time before playing is reduced, namely the first screen time is reduced.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method comprises the steps of obtaining a preset offset, updating the preset offset according to the occupied space of a metadata compression unit obtained after a metadata storage unit is compressed last time, modifying index information in the metadata storage unit according to the preset offset, compressing the metadata storage unit, obtaining the metadata compression unit obtained through compression this time, obtaining the occupied space of the metadata compression unit obtained through compression this time, judging whether the difference value between the preset offset and the occupied space of the metadata compression unit obtained through compression this time meets a preset condition, and when the preset condition is met, moving the metadata compression unit obtained through compression this time to the front of a media data storage unit. Updating a preset offset according to the occupied space of the metadata compression unit obtained by the last compression, so that before the metadata storage unit is compressed, the index information is modified in advance according to the preset offset, and when the difference value between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition, the metadata compression unit obtained by the current compression is moved to the front of the media data storage unit, so that the first screen time is reduced; in the video file, the compressed metadata compression unit replaces the metadata storage unit, so that the size of the video file is reduced, the transmission time of the file can be reduced when the video file is transmitted, and the delay of video playing is reduced.
Fig. 2 is a flow chart illustrating another video file processing method according to an exemplary embodiment, which may further include the steps of, as shown in fig. 2:
in step S201, a preset offset is obtained; and the preset offset is updated according to the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed last time.
This step is similar to the above step S101 in principle, and is not described herein again.
In step S202, the index information in the metadata storage unit is modified according to the preset offset.
Specifically, the step S202 may include the following step a 1:
in step a1, the byte sequence numbers are respectively added with the preset offset to modify the index information in the metadata storage unit.
In the embodiment of the present disclosure, the index information in the metadata storage unit includes a byte sequence number of each video frame in the media data storage unit in the video file, and therefore, when it is necessary to move the metadata compression unit obtained after the metadata storage unit is compressed to the media data storage unit, the position of the media data storage unit may be shifted relative to the entire video file, and in order to accurately find the corresponding video data according to the index information in the metadata storage unit, it is necessary to add a preset offset to the byte sequence number of each video frame in the media data storage unit in the video file.
For example, if the byte sequence number of one of the video frames in the media data storage unit in the video file is 100 bytes to 1000 bytes, and the predetermined offset is 100 bytes, the modified index information, that is, the modified video frame in the video file has the byte sequence number of 200 bytes to 1100 bytes, and the predetermined offset may be added to the other video frames in the media data storage unit.
In step S203, the metadata storage unit is compressed to obtain a metadata compression unit obtained by the current compression.
In step S204, the occupied space of the metadata compression unit obtained by the current compression is obtained.
In step S205, it is determined whether a difference between the preset offset and an occupied space of the metadata compression unit obtained by the current compression satisfies a preset condition.
Compressing the metadata storage unit to obtain a metadata compression unit obtained by the compression, obtaining the occupied space of the metadata compression unit obtained by the compression, and then judging whether the preset offset and the occupied space of the metadata compression unit obtained by the compression meet the preset conditions or not; wherein the preset conditions are as follows: the difference is equal to 0, or the difference is greater than or equal to a second set value.
When the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition, wherein the preset condition is that the difference is greater than or equal to a second set value, and the second set value is a positive number, executing step S206 to step S208; when the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition, and at this time, the preset condition is that the difference is equal to 0, only step S206 is executed; when the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression does not meet the preset condition, and the occupied space of the metadata compression unit obtained by the current compression is not equal to the occupied space of the metadata compression unit obtained by each previous compression, executing step S209; when the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression does not satisfy the preset condition, and the occupied space of the metadata compression unit obtained by the current compression is equal to the occupied space of the metadata compression unit obtained by the specified number of times of compression, steps S210 to S213 are performed.
In step S206, when the preset condition is met, the metadata compression unit obtained by the current compression is moved to a position before the media data storage unit.
In an exemplary embodiment, when a difference between a preset offset and an occupied space of a metadata compression unit obtained by current compression is equal to 0, a space with a preset offset size reserved for the metadata compression unit obtained by current compression is just equal to the occupied space of the metadata compression unit obtained by current compression, and the metadata compression unit obtained by current compression is directly moved to a position in front of a media data storage unit.
In another exemplary embodiment, when the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression is greater than or equal to the second set value, the space of the preset offset reserved for the metadata compression unit obtained by the current compression is greater than the occupied space of the metadata compression unit obtained by the current compression, and at least one unit of space is left, then after the step before the metadata compression unit obtained by the current compression is moved to the media data storage unit, step S207 and step S208 need to be executed.
In step S207, a target number of free cells is determined based on the difference.
In step S208, the free units having the target number are filled between the metadata compression unit and the media data storage unit.
When the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression is larger than or equal to a second set value, after the step before the metadata compression unit obtained by the current compression is moved to the media data storage unit, the target number of the idle units is determined according to the difference, and then the idle units with the target number are filled between the metadata compression unit and the media data storage unit.
That is, the target number of free units is equal to the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression.
For example, when the preset offset is 100 bytes and the occupied space of the metadata compression unit obtained by the current compression is 92 bytes, after the step before the metadata compression unit obtained by the current compression is moved to the media data storage unit, it is determined that the target number of the free units is 8 bytes, and then the free units with 8 bytes are filled between the metadata compression unit and the media data storage unit.
In step S209, when the preset condition is not satisfied and the occupied space of the metadata compression unit obtained by the current compression is not equal to the occupied space of the metadata compression unit obtained by each previous compression, the preset offset is continuously updated according to the occupied space of the metadata compression unit obtained by the current compression, and the steps after the step of obtaining the preset offset are performed.
When the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression does not meet the preset condition, and the occupied space of the metadata compression unit obtained by the current compression is not equal to the occupied space of the metadata compression unit obtained by each previous compression, the updated preset offset does not meet the requirement, the preset offset is continuously updated according to the occupied space of the metadata compression unit obtained by the current compression, and the steps S202 to S205 are executed.
If the preset offset updated according to the occupied space of the metadata compression unit obtained by the current compression still does not meet the requirement, the steps S202 to S205 are continuously repeated.
For example, if the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed for the first time is 100 bytes, the preset offset is updated for the first time according to the occupied space of the metadata compression unit obtained by the first compression, that is, the preset offset of the first update is 100 bytes; then, modifying index information in the metadata storage unit according to the first updated preset offset, and performing second compression on the metadata storage unit, wherein the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed for the second time is 110 bytes, and if the difference value between the first updated preset offset and the occupied space of the metadata compression unit obtained through the second compression does not meet the preset condition, performing second update on the preset offset according to the occupied space of the metadata compression unit obtained through the second compression, namely the second updated preset offset is 110 bytes; then, modifying the index information in the metadata storage unit according to the preset offset of the second update, performing third compression on the metadata storage unit, acquiring that the occupied space of the metadata compression unit obtained after the third compression on the metadata storage unit is 105 bytes, and if the difference value between the preset offset of the second update and the occupied space of the metadata compression unit obtained by the third compression does not meet the preset condition, performing third update on the preset offset according to the occupied space of the metadata compression unit obtained by the third compression, namely the preset offset of the third update is 105; then, the same can be said.
And continuously updating the preset offset based on the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed for the last time, finishing the iteration process when the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression in the iteration process meets the preset condition through multiple iterations, and moving the metadata compression unit obtained by the current compression to the front of the media data storage unit to obtain the processed video file.
In step S210, when the preset condition is not satisfied and the occupied space of the metadata compression unit obtained by the current compression is equal to the occupied space of the metadata compression unit obtained by the compression of the specified number of times, the occupied space of the metadata compression unit obtained by each compression between the specified number of times and this time is obtained; the specified times are any times before the current time.
When the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression does not meet the preset condition, and the occupied space of the metadata compression unit obtained by the current compression is equal to the occupied space of the metadata compression unit obtained by the compression of the specified times, which indicates that the situation of non-convergence occurs in the iteration process, the iteration process exits, and the enumeration process is entered, wherein the enumeration process refers to steps S210 to S213.
Firstly, the occupied space of the metadata compression unit obtained by each compression between the appointed times and this time is obtained, and the appointed times are any times before this time.
Assuming that the appointed number of times is the kth time, the current time is the nth time, k is greater than or equal to 1 and less than n, when the difference value between the preset offset Xn-1 updated at the nth-1 time and the occupied space Yn of the metadata compression unit obtained by the nth compression does not meet the preset condition, and the occupied space Yn of the metadata compression unit obtained by the nth compression is equal to the occupied space Yk of the metadata compression unit obtained by the kth compression, the occupied space of the metadata compression unit obtained by each compression between the kth time and the nth time, namely Yk, Yk +1, … Yn, is obtained.
For example, k is equal to 10, n is equal to 13, the occupied space Y10 of the metadata compression unit obtained by 10 th compression is 102 bytes, the occupied space of the metadata compression unit obtained by 11 th compression is 106 bytes, the occupied space of the metadata compression unit obtained by 12 th compression is 108 bytes, the occupied space of the metadata compression unit obtained by 13 th compression is 102 bytes, the difference between the preset offset of 12 th update (i.e. the occupied space 108 bytes of the metadata compression unit obtained by 12 th compression) and the occupied space 102 bytes of the metadata compression unit obtained by 13 th compression does not satisfy the preset condition, and the occupied space 102 bytes of the metadata compression unit obtained by 13 th compression is equal to the occupied space 102 bytes of the metadata compression unit obtained by 10 th compression, the occupied space of each metadata compression unit obtained by 10 th to 13 th compression is obtained, that is, 102 bytes of occupied space of the metadata compression unit obtained by the 10 th compression, 106 bytes of occupied space of the metadata compression unit obtained by the 11 th compression, 108 bytes of occupied space of the metadata compression unit obtained by the 12 th compression and 102 bytes of occupied space of the metadata compression unit obtained by the 13 th compression are respectively obtained.
In step S211, from the occupied spaces of the metadata compression units obtained by each compression between the specified number of times and this time, the minimum occupied space and the maximum occupied space are selected.
Then, from the occupied space of the metadata compression unit obtained by each compression between the specified times and this time, selecting the minimum occupied space and the maximum occupied space, wherein the maximum occupied space refers to: the maximum value of the occupied space of the metadata compression unit obtained by each compression between the specified times and this time is specified, and the minimum occupied space refers to: and appointing the number of times to the minimum value in the occupied space of the metadata compression unit obtained by each compression between this time.
Assuming that the designated number of times is k times, this time is n times, the minimum occupied space and the maximum occupied space are selected from the occupied spaces of the metadata compression units obtained by each compression between the k times and the n times, that is, Yk +1, … Yn.
For example, k is equal to 10, n is equal to 13, the occupied space of the metadata compression unit obtained by 10 th compression is 102 bytes, the occupied space of the metadata compression unit obtained by 11 th compression is 106 bytes, the occupied space of the metadata compression unit obtained by 12 th compression is 108 bytes, and the occupied space of the metadata compression unit obtained by 13 th compression is 102 bytes, then the minimum occupied space is 102 bytes, and the maximum occupied space is 108 bytes from the occupied space of the metadata compression unit obtained by each compression between 10 th compression and 13 th compression.
In step S212, a first set value is added to the maximum occupied space to obtain a target occupied space.
Then, a first set value is added to the maximum occupied space to obtain a target occupied space, wherein the first set value is an empirical value and can be 20 bytes.
For example, if the maximum occupied space is 108 bytes and the first setting value is 20 bytes, the target occupied space is 128 bytes.
In step S213, the preset offset is sequentially updated according to each occupied space between the minimum occupied space and the target occupied space, and the steps after the step of obtaining the preset offset are executed.
Finally, according to each occupied space between the minimum occupied space and the target occupied space, updating the preset offset in sequence, and after the offset is preset for the next time, executing the steps S202 to S205, selecting one occupied space from the minimum occupied space to the target occupied space each time, updating the preset offset according to the selected occupied space, modifying the index information in the metadata storage unit according to the preset offset, compressing the metadata storage unit, when the selected occupied space and the occupied space of the compressed metadata compression unit meet the preset condition, moving the compressed metadata compression unit to the front of the media data storage unit to obtain a processed video file, when the selected occupied space and the occupied space of the compressed metadata compression unit do not meet the preset condition, selecting another occupied space from the minimum occupied space to the target occupied space, and repeats steps S202 to S205.
For example, if the minimum occupied space is 102 bytes, and the target occupied space is 128 bytes, then each occupied space from the minimum occupied space to the target occupied space is 102 bytes, 103 bytes, 104 bytes … 127 bytes, and 128 bytes, first selecting 102 bytes to update the preset offset, and executing steps S202 to S205, when the occupied space between 102 bytes and the metadata compression unit compressed this time does not satisfy the preset condition, selecting 103 bytes to update the preset offset for the second time, and executing steps S202 to S205, when the occupied space between 103 bytes and the metadata compression unit compressed this time does not satisfy the preset condition, selecting 104 bytes for updating the preset offset for the third time, and so on until the occupied space of the compressed metadata compression unit compressed after updating the preset offset and updating the preset offset satisfies the preset condition.
In step S214, when the difference between each occupied space between the minimum occupied space and the target occupied space and the occupied space of the corresponding metadata compression unit obtained by each compression does not satisfy the preset condition, the metadata storage unit is moved to a position before the media data storage unit.
When the difference value between each occupied space between the minimum occupied space and the target occupied space and the corresponding occupied space of the metadata compression unit obtained by each compression does not meet the preset condition, the metadata storage unit does not need to be compressed, and the metadata storage unit is directly moved to the front of the media data storage unit, so that the normal use of the video file is ensured.
For example, each occupied space from the minimum occupied space to the target occupied space is 102 bytes, 103 bytes, 104 bytes … 127 bytes and 128 bytes, respectively, and from 102 bytes to 128 bytes, if the difference between the occupied space selected each time and the occupied space of the corresponding metadata compression unit obtained by each compression does not satisfy the preset condition, the metadata storage unit is directly moved to the front of the media data storage unit.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
updating the preset offset in a mode of iteration first and enumeration later, and determining a proper preset offset, so that before compressing the metadata storage unit, the index information is modified in advance according to the preset offset, and when the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition, the metadata compression unit obtained by the current compression is moved to the front of the media data storage unit, so as to reduce the first screen time; in the video file, the compressed metadata compression unit replaces the metadata storage unit, so that the size of the video file is reduced, the transmission time of the file can be reduced when the video file is transmitted, and the delay of video playing is reduced.
Fig. 3 is a block diagram illustrating a video file processing apparatus according to an example embodiment. Referring to fig. 3, the video file processing apparatus 300 includes: a preset offset obtaining module 301, an index information modifying module 302, a metadata storage unit compressing module 303, a first occupied space obtaining module 304, a preset condition judging module 305 and a metadata compression unit moving module 306.
A preset offset acquisition module 301 configured to acquire a preset offset; the preset offset is updated according to the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed last time;
an index information modification module 302 configured to modify the index information in the metadata storage unit according to the preset offset;
a metadata storage unit compression module 303, configured to compress the metadata storage unit to obtain a metadata compression unit obtained by this compression;
a first occupied space obtaining module 304 configured to obtain an occupied space of the metadata compression unit obtained by the current compression;
a preset condition determining module 305 configured to determine whether a difference between the preset offset and an occupied space of the metadata compression unit obtained by the current compression satisfies a preset condition;
a metadata compression unit moving module 306, configured to move the metadata compression unit obtained by the current compression to a position in front of the media data storage unit when the preset condition is met.
Fig. 4 is a block diagram illustrating another video file processing apparatus according to an example embodiment. On the basis of fig. 3, the video file processing apparatus 300 further includes:
a preset offset first updating module 307 configured to, when the preset condition is not satisfied and the occupied space of the metadata compression unit obtained by the current compression is not equal to the occupied space of the metadata compression unit obtained by each previous compression, continuously update the preset offset according to the occupied space of the metadata compression unit obtained by the current compression, and execute a module after the preset offset obtaining module.
In an optional implementation manner, the video file processing apparatus 300 further includes:
a second occupied space obtaining module 308 configured to obtain, when the preset condition is not satisfied and the occupied space of the metadata compression unit obtained by the current compression is equal to the occupied space of the metadata compression unit obtained by the compression of the specified number of times, the occupied space of the metadata compression unit obtained by each compression between the specified number of times and this time; the specified times are any times before the current time;
an occupation space selection module 309 configured to select a minimum occupation space and a maximum occupation space from the occupation spaces of the metadata compression units obtained by each compression between the specified times and this time;
a target occupation space calculation module 310 configured to add the maximum occupation space to a first set value to obtain a target occupation space;
and a preset offset second updating module 311 configured to sequentially update the preset offset according to each occupied space between the minimum occupied space and the target occupied space, and execute modules subsequent to the preset offset obtaining module.
In an optional implementation manner, the video file processing apparatus 300 further includes:
a metadata storage unit moving module 312, configured to, when a difference between each occupied space between the minimum occupied space and the target occupied space and the corresponding occupied space of the metadata compression unit obtained by each compression does not satisfy the preset condition, move the metadata storage unit to a position before the media data storage unit.
In an alternative embodiment, the preset condition is that the difference is equal to 0.
In an optional embodiment, the preset condition is that the difference is greater than or equal to a second set value, and the second set value is a positive number, and the apparatus further includes:
a target number determination module 313 configured to determine a target number of free cells from the difference;
a free unit filling module 314 configured to fill the target number of free units between the metadata compression unit and the media data storage unit.
In an optional embodiment, the index information in the metadata storage unit includes a byte sequence number of each video frame in the media data storage unit in the video file; the index information modification module 302 includes:
the index information modification submodule is configured to add the preset offset to the byte sequence numbers respectively to modify the index information in the metadata storage unit.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method comprises the steps of obtaining a preset offset, updating the preset offset according to the occupied space of a metadata compression unit obtained after a metadata storage unit is compressed last time, modifying index information in the metadata storage unit according to the preset offset, compressing the metadata storage unit, obtaining the metadata compression unit obtained through compression this time, obtaining the occupied space of the metadata compression unit obtained through compression this time, judging whether the difference value between the preset offset and the occupied space of the metadata compression unit obtained through compression this time meets a preset condition, and when the preset condition is met, moving the metadata compression unit obtained through compression this time to the front of a media data storage unit. Updating a preset offset according to the occupied space of the metadata compression unit obtained by the last compression, so that before the metadata storage unit is compressed, the index information is modified in advance according to the preset offset, and when the difference value between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition, the metadata compression unit obtained by the current compression is moved to the front of the media data storage unit, so that the first screen time is reduced; in the video file, the compressed metadata compression unit replaces the metadata storage unit, so that the size of the video file is reduced, the transmission time of the file can be reduced when the video file is transmitted, and the delay of video playing is reduced.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In an exemplary embodiment, there is also provided an electronic device, a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the above instructions to implement the above video file processing method.
In an exemplary embodiment, a storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an electronic device to perform the above method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the above-described video file processing method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A video file processing method, wherein the video file includes a metadata storage unit and a media data storage unit, the method comprising:
acquiring a preset offset, wherein the preset offset is updated according to the occupied space of the metadata compression unit obtained after the metadata storage unit is compressed last time;
modifying the index information in the metadata storage unit according to the preset offset;
compressing the metadata storage unit to obtain a metadata compression unit obtained by the current compression;
acquiring the occupied space of the metadata compression unit obtained by the compression;
judging whether the difference value between the preset offset and the occupied space of the metadata compression unit obtained by the current compression meets a preset condition or not;
when the preset condition is met, moving the metadata compression unit obtained by the current compression to the front of the media data storage unit;
the preset condition is that the difference is equal to 0, or the preset condition is that the difference is greater than or equal to a second set value, and the second set value is a positive number.
2. The method according to claim 1, wherein after the step of determining whether the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression satisfies a preset condition, the method further comprises:
and when the preset condition is not met and the occupied space of the metadata compression unit obtained by the current compression is not equal to the occupied space of the metadata compression unit obtained by each previous compression, continuously updating the preset offset according to the occupied space of the metadata compression unit obtained by the current compression, and executing the steps after the step of obtaining the preset offset.
3. The method according to claim 1, wherein after the step of determining whether the difference between the preset offset and the occupied space of the metadata compression unit obtained by the current compression satisfies a preset condition, the method further comprises:
when the preset condition is not met and the occupied space of the metadata compression unit obtained by the current compression is equal to the occupied space of the metadata compression unit obtained by the compression of the appointed times, the occupied space of the metadata compression unit obtained by each compression from the appointed times to the current time is obtained; the specified times are any times before the current time;
selecting a minimum occupation space and a maximum occupation space from the occupation spaces of the metadata compression units obtained by each compression between the specified times and this time;
adding a first set value to the maximum occupied space to obtain a target occupied space;
and updating the preset offset in sequence according to each occupied space between the minimum occupied space and the target occupied space, and executing the steps after the step of obtaining the preset offset.
4. The method according to claim 3, wherein after the steps of sequentially updating the preset offset according to each occupied space from the minimum occupied space to the target occupied space and performing the step after the step of obtaining the preset offset, the method further comprises:
and when the difference value between each occupied space between the minimum occupied space and the target occupied space and the corresponding occupied space of the metadata compression unit obtained by each compression does not meet the preset condition, moving the metadata storage unit to the front of the media data storage unit.
5. The method according to any one of claims 1 to 4, wherein the preset condition is that the difference is greater than or equal to a second set value, and when the second set value is a positive number, after the step before moving the metadata compression unit obtained by the current compression to the media data storage unit, the method further comprises:
determining the target number of idle units according to the difference value;
filling the target number of free cells between the metadata compression unit and the media data storage unit.
6. The method of claim 1, wherein the index information in the metadata storage unit comprises a byte sequence number in the video file for each video frame in the media data storage unit; the step of modifying the index information in the metadata storage unit according to the preset offset includes:
and adding the preset offset to the byte sequence numbers respectively to modify the index information in the metadata storage unit.
7. A video file processing apparatus, wherein the video file includes a metadata storage unit and a media data storage unit, the apparatus comprising:
a preset offset obtaining module configured to obtain a preset offset, where the preset offset is updated according to an occupied space of the metadata compression unit obtained after the metadata storage unit is compressed last time;
an index information modification module configured to modify the index information in the metadata storage unit according to the preset offset;
the metadata storage unit compression module is configured to compress the metadata storage unit to obtain a metadata compression unit obtained by the current compression;
a first occupied space acquisition module configured to acquire an occupied space of the metadata compression unit obtained by the current compression;
a preset condition judgment module configured to judge whether a difference between the preset offset and an occupied space of the metadata compression unit obtained by the current compression satisfies a preset condition;
the metadata compression unit moving module is configured to move the metadata compression unit obtained by the current compression to the front of the media data storage unit when the preset condition is met;
the preset condition is that the difference is equal to 0, or the preset condition is that the difference is greater than or equal to a second set value, and the second set value is a positive number.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video file processing method of any of claims 1 to 6.
9. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the video file processing method of any one of claims 1 to 6.
CN201910538747.5A 2019-06-20 2019-06-20 Video file processing method and device, electronic equipment and storage medium Active CN110225351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910538747.5A CN110225351B (en) 2019-06-20 2019-06-20 Video file processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910538747.5A CN110225351B (en) 2019-06-20 2019-06-20 Video file processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110225351A CN110225351A (en) 2019-09-10
CN110225351B true CN110225351B (en) 2021-07-09

Family

ID=67814000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910538747.5A Active CN110225351B (en) 2019-06-20 2019-06-20 Video file processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110225351B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115470049B (en) * 2022-11-15 2023-02-28 浪潮电子信息产业股份有限公司 Metadata repairing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7516140B2 (en) * 2006-05-30 2009-04-07 Microsoft Corporation Dense formats for media metadata
CN101415069A (en) * 2008-10-22 2009-04-22 清华大学 Server and method for sending on-line play video
CN102170453A (en) * 2011-05-26 2011-08-31 北京暴风网际科技有限公司 Audio and video coding method and playing method for shortening waiting time before on demand playing
CN103747065A (en) * 2013-12-27 2014-04-23 河海大学 Client HTTP retrieval full-index container format media resource time slice method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11789923B2 (en) * 2015-10-23 2023-10-17 Oracle International Corporation Compression units in an index block

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7516140B2 (en) * 2006-05-30 2009-04-07 Microsoft Corporation Dense formats for media metadata
CN101415069A (en) * 2008-10-22 2009-04-22 清华大学 Server and method for sending on-line play video
CN102170453A (en) * 2011-05-26 2011-08-31 北京暴风网际科技有限公司 Audio and video coding method and playing method for shortening waiting time before on demand playing
CN103747065A (en) * 2013-12-27 2014-04-23 河海大学 Client HTTP retrieval full-index container format media resource time slice method

Also Published As

Publication number Publication date
CN110225351A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN111464256A (en) Time stamp correction method and device, electronic equipment and storage medium
RU2763518C1 (en) Method, device and apparatus for adding special effects in video and data media
CN106170968B (en) A kind of data compression storage method, device and distributed file system
CN107221341A (en) A kind of tone testing method and device
CN110059225B (en) Video classification method and device, terminal equipment and storage medium
CN110225351B (en) Video file processing method and device, electronic equipment and storage medium
CN111182302B (en) Video image encoding method, terminal device, and storage medium
US11330030B2 (en) Network resource oriented data communication
CN111263243A (en) Video coding method and device, computer readable medium and electronic equipment
CN112994980A (en) Time delay testing method and device, electronic equipment and storage medium
CN108632667B (en) A kind of coding/decoding method and terminal of multimedia file
CN104767955A (en) Video processing method and device
CN110415318B (en) Image processing method and device
US10469794B2 (en) Information processing apparatus, information processing method, and information processing system for content management using play lists
US9525843B2 (en) Multimedia file playback method, playback apparatus and system
CN105812865A (en) Information processing method and electronic device
KR101637022B1 (en) Apparatus and method for transmitting and receiving content
CN113596351A (en) Video display method and device
CN115529497A (en) Bullet screen playing method and device
CN105282598B (en) A kind of method and device of the TV programme of determining TV station
CN105307004B (en) A kind of method and device of definite television channel
RU2818891C1 (en) Method and device, computing device and data medium for encoding video
CN113411675B (en) Video mixed playing method, device, equipment and readable storage medium
CN111432291B (en) View updating method and device under video segmentation frame taking scene
JP2005529416A (en) How to calculate the cumulative histogram

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant