CN111263173B - Data resource adding method and device - Google Patents

Data resource adding method and device Download PDF

Info

Publication number
CN111263173B
CN111263173B CN202010023724.3A CN202010023724A CN111263173B CN 111263173 B CN111263173 B CN 111263173B CN 202010023724 A CN202010023724 A CN 202010023724A CN 111263173 B CN111263173 B CN 111263173B
Authority
CN
China
Prior art keywords
data resource
resource
processed
data
input interface
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
CN202010023724.3A
Other languages
Chinese (zh)
Other versions
CN111263173A (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.)
Anhui Wenxiang Information Technology Co Ltd
Original Assignee
Anhui Wenxiang 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 Anhui Wenxiang Information Technology Co Ltd filed Critical Anhui Wenxiang Information Technology Co Ltd
Priority to CN202010023724.3A priority Critical patent/CN111263173B/en
Publication of CN111263173A publication Critical patent/CN111263173A/en
Application granted granted Critical
Publication of CN111263173B publication Critical patent/CN111263173B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/233Processing of audio elementary streams
    • H04N21/2335Processing of audio elementary streams involving reformatting operations of audio signals, e.g. by converting from one coding standard to another
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The embodiment of the application discloses a data resource adding method and device. And then, calling a corresponding data resource input interface according to the type of the data resource, and simultaneously acquiring the timestamp information corresponding to the data resource to be processed. And inputting the data resource to be processed into a data resource library by using the data resource input interface according to the timestamp information, thereby finishing the addition of the data resource. That is, each to-be-processed data resource is added to the data resource library in the form of a plug-in, and under the condition that the use of the original data resource library is not affected, additional to-be-pushed data resources are added, so that different application requirements are met. And when the client needs to push the newly added data resources, reading the added data resources from the data resource library according to the time stamp information sequence and pushing the data resources according to a preset format.

Description

Data resource adding method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data resource adding method and apparatus.
Background
With the continuous development of internet technology, online education, live entertainment and the like are receiving more and more attention, and the core technology related to the online education, the live entertainment and the like is a video live broadcast technology. Specifically, a sending end collects audio and video and carries out various filter processing, then the processed audio and video is encoded and packaged, then audio and video content is sent to a content distribution network, and a receiving end obtains audio and video stream from the content distribution network and carries out analysis and decoding to realize audio and video playing.
In practical applications, the functions are mainly implemented by using Open Broadcast Software (OBS). Generally, the OBS already includes a large amount of data resources, which can meet most scene requirements, but in some application scenarios, additional resources such as video data and audio data are pushed, and the data resources are not pushed because they exist in the original database.
Disclosure of Invention
In view of this, embodiments of the present application provide a data resource adding method and apparatus, so as to implement adding of data resources more reasonably and effectively, and further perform plug flow on the data resources.
In order to solve the above problem, the technical solution provided by the embodiment of the present application is as follows:
in a first aspect of an embodiment of the present application, a data resource adding method is provided, where the method may include:
determining a resource type of a data resource to be processed; the resource types at least comprise a video resource type and an audio resource type;
calling a corresponding data resource input interface according to the resource type;
acquiring timestamp information corresponding to the data resource to be processed, wherein the timestamp information is used for indicating the stream pushing time corresponding to the data resource to be processed;
and inputting the data resource to be processed into a data resource library by using the data resource input interface according to the timestamp information.
In a possible implementation manner, the inputting the to-be-processed data resource into a data resource library by using the data resource input interface includes:
constructing a data file corresponding to the resource type in the data resource library;
and adding the data resource to be processed to the data file according to the timestamp information by using the data resource input interface.
In one possible implementation, the method further includes:
and reading the data resource to be processed from the data file according to the timestamp information, and pushing the data resource to be processed according to the format of the data resource to be processed.
In a possible implementation manner, when the data resource to be processed is an audio resource, the streaming the data resource to be processed according to the format of the data resource to be processed includes:
converting the format of the data resource to be processed into a preset format; the preset format at least comprises a preset sampling rate and a preset channel number;
and pushing the data resource to be processed according to the preset format.
In one possible implementation, the method further includes:
and releasing the data input interface after the addition of the data resource to be processed is completed.
In one possible implementation, the method further includes:
and pre-constructing a data resource input interface corresponding to each resource type.
In a possible implementation manner, the encoding format of the to-be-processed data resource corresponding to the video resource type is YUV or RGB, and the encoding format of the to-be-processed data resource corresponding to the audio resource type is PCM.
In a second aspect of the embodiments of the present application, there is provided an apparatus for adding data resources, where the apparatus includes:
the determining unit is used for determining the resource type of the data resource to be processed; the resource types at least comprise a video resource type and an audio resource type;
the calling unit is used for calling the corresponding data resource input interface according to the resource type;
the acquisition unit is used for acquiring timestamp information corresponding to the data resource to be processed, wherein the timestamp information is used for indicating the stream pushing time corresponding to the data resource to be processed;
and the input unit is used for inputting the data resource to be processed into a data resource library by using the data resource input interface.
In one possible implementation, the input unit includes:
the construction subunit is used for constructing a data file corresponding to the resource type in the data resource library;
and the adding subunit is used for adding the data resource to be processed to the data file according to the timestamp information by using the data resource input interface.
In one possible implementation, the apparatus further includes:
the reading unit is used for reading the data resource to be processed from the data file according to the timestamp information;
and the stream pushing unit is used for pushing the data resource to be processed according to the format of the data resource to be processed.
In a possible implementation manner, when the data resource to be processed is an audio resource, the stream pushing unit includes:
the conversion subunit is used for converting the format of the data resource to be processed into a preset format; the preset format at least comprises a preset sampling rate and a preset channel number;
and the stream pushing subunit is used for pushing the data resource to be processed according to the preset format.
In one possible implementation, the apparatus further includes:
and the release unit is used for releasing the data input interface after the addition of the data resource to be processed is completed.
In one possible implementation, the apparatus further includes:
and the construction unit is used for constructing the data resource input interfaces corresponding to the resource types in advance.
In a possible implementation manner, the encoding format of the to-be-processed data resource corresponding to the video resource type is YUV or RGB. And the coding format corresponding to the data resource to be processed corresponding to the audio resource type is PCM.
In a third aspect of embodiments of the present application, a computer-readable storage medium is provided, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the instructions cause the terminal device to execute the data resource addition method according to the first aspect.
In a fourth aspect of the embodiments of the present application, an apparatus for implementing data resource addition is provided, including: the data resource adding method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the data resource adding method of the first aspect is realized.
Therefore, the embodiment of the application has the following beneficial effects:
the method includes the steps of firstly obtaining data resources to be processed, and determining resource types of the data resources to be processed, such as video resource types and audio resource types. And then, calling a corresponding data resource input interface according to the type of the data resource, and simultaneously acquiring the timestamp information corresponding to the data resource to be processed. And inputting the data resource to be processed into a data resource library by using the data resource input interface according to the timestamp information, thereby finishing the addition of the data resource. That is, each to-be-processed data resource is added to the data resource library in the form of a plug-in, and under the condition that the use of the original data resource library is not affected, additional to-be-pushed data resources are added, so that different application requirements are met. And when the client needs to push the newly added data resources, reading the added data resources from the data resource library according to the time stamp information sequence and pushing the data resources according to a preset format.
Drawings
Fig. 1 is an exemplary diagram of an application scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of data resource addition according to an embodiment of the present application;
FIG. 3 is a diagram of an application framework provided by an embodiment of the present application;
fig. 4 is a structural diagram of a data resource adding apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the drawings are described in detail below.
Referring to fig. 1, the application scenario is shown, in which a client carried on a terminal 10 is used for live broadcasting, a terminal 20 is used for viewing content that is live broadcasting, and a server 30 is a server used for live broadcasting.
In actual application, a client carried by the terminal 10 may implement addition of data resources, specifically, the client first determines a resource type of a data resource to be processed, and obtains timestamp information corresponding to the data resource to be processed. And then, calling a corresponding data resource input interface according to the resource type, and adding the data resource to be processed into the data resource library by using the data resource input interface according to the timestamp information. When the client performs stream pushing, the data resources to be processed are sequentially read from the data resource library according to the timestamp information, the data resources to be processed are pushed to the server 30 according to the corresponding format, and the terminal 20 acquires the stream pushing resources from the server 30 and plays the stream pushing resources by using the client installed by the terminal.
It should be noted that the client carried on the terminal 10 can be various types of live clients, and the terminal 10 and the terminal 20 can be any user equipment existing, developing or developing in the future capable of interacting with each other through any form of wired and/or wireless connection (e.g., Wi-Fi, LAN, cellular, coaxial cable, etc.), including but not limited to: smart wearable devices, smart phones, non-smart phones, tablets, laptop personal computers, desktop personal computers, minicomputers, midrange computers, mainframe computers, and the like, either now in existence, under development, or developed in the future. The embodiments of the present application are not limited in any way in this respect. It should also be noted that the server 30 in the embodiment of the present application may be an example of an existing, developing or future developing device capable of providing a search service to a user. The embodiments of the present application are not limited in any way in this respect.
Those skilled in the art will appreciate that the block diagram shown in fig. 1 is only one example in which embodiments of the present application may be implemented. The scope of applicability of the embodiments of the present application is not limited in any way by this framework.
Referring to fig. 2, which is a flowchart of a data resource adding method provided in an embodiment of the present application, as shown in fig. 2, the method may include:
s201: and determining the resource type of the data resource to be processed.
In this embodiment, for a to-be-processed data resource that needs to be added, a resource type corresponding to the to-be-processed data resource is first determined, so as to perform subsequent processing according to the resource type. The resource types at least include a video resource type, an audio resource type, a picture resource type, a text resource type, a desktop sharing resource type, and the like.
Specifically, the encoding format of the to-be-processed data resource corresponding to the video resource type may be YUV or RGB, and the encoding format of the to-be-processed data resource corresponding to the audio resource type may be PCM.
S202: and calling the corresponding data resource input interface according to the resource type.
After the resource type of the data resource to be processed is determined, the data resource input interface corresponding to the resource type is called, so that the data resource is added by using the data resource input interface. During specific implementation, the data resource input interfaces corresponding to the resource types can be pre-constructed, and when data resource addition is performed, the corresponding data resource input interfaces can be directly called according to the resource types of the data resources to be processed.
In specific implementation, for a video resource type, a structure rawdata _ source with the resource type of obs _ source _ info is defined, and functions (a creation function and a destruction function) and variables under the structure are defined. The defined creating function is raw data _ source _ create, and the data resource to be processed is received by the creating function and the variable. The defined destroying function is raw data _ source _ destroy, and the adding process can be destroyed by using the destroying function after the adding of the data resource to be processed is completed. For the audio resource type, a structure pcm _ source with the resource type pcm _ source _ info is defined, and functions (a creation function and a destruction function) and variables under the structure are defined. The defined creating function is pcm _ source _ create, and the creating function and the variable are used for receiving the data resource to be processed; and the defined destroying function pcm _ source _ destroy can destroy the adding process after the adding of the data resource to be processed is completed by using the destroying function.
It should be noted that, after the data input interfaces corresponding to the resource types are constructed, the data input interfaces are required to be registered in the database libobs corresponding to the OBS module, so as to facilitate subsequent calls. Specifically for video data resources, a defined resource type rawdata _ source _ info may be added to the libobs by calling the obs _ register _ source function; for audio data resources, the defined resource type pcm _ source _ info is added to the libobs by calling the obs _ register _ source function.
S203: and acquiring timestamp information corresponding to the data resource to be processed.
In this embodiment, before adding the data resource to be processed to the data resource library, the timestamp information corresponding to the data resource to be processed is first obtained, so as to add the data resource according to the timestamp information, thereby ensuring that the subsequent stream is pushed in time sequence. And the time stamp information is used for indicating the stream pushing time corresponding to the data resource to be processed.
It should be noted that the execution order of step S202 and step S203 is not limited in this embodiment, and in practical application, step S203 may be executed first, and then step S202 may be executed.
S204: and inputting the data resources to be processed into the data resource library by using the data resource input interface according to the timestamp information.
And after the corresponding data resource input interface is determined, inputting the data resource to be processed into the data resource library by using the data resource input interface according to the timestamp information, thereby realizing the addition of the data resource.
During specific implementation, a data file corresponding to the resource type is firstly constructed in a data resource library, and then the data resource to be processed is added to the corresponding data file by using the data resource input interface. When the data resource to be processed needs to be pushed, the client reads the data resource to be processed from the data file, and pushes the data resource to be processed according to the format of the data resource to be processed. The format of the data resource to be processed may include information such as resolution, frame rate, and the like. Specifically, YUV video data resources with a resolution of 640 × 480 and a resolution of 30fps can be read by calling a video _ frame _ YUV function; reading RGB video data resources with the resolution of 320 × 180 and the resolution of 30fps by calling a video _ frame _ RGB function; and calling PcmThread to read the single-channel PCM audio data resource with the adoption rate of 16 kHz.
In practical application, when the data resource to be processed is added to the data resource library, the timestamp information corresponding to the data resource to be processed is also required to be acquired, so that the data resource to be processed is read in sequence according to the timestamp information, and the data resource to be processed is pushed in sequence according to the time sequence.
It should be noted that, when the data resource to be processed is an audio resource, and when stream pushing is performed, the format of the data resource to be processed is first converted into a preset format, where the preset format at least includes a preset sampling rate and a preset number of channels; and pushing the data resources to be processed according to a preset format. That is, when the format of the added audio resource is inconsistent with the preset format, the format of the audio resource needs to be converted into the preset format, and then plug streaming is performed. For example, the obs _ source _ create function is called to set the channel number corresponding to the audio data resource to be processed, so as to perform stream pushing of the audio resource according to the preset channel number.
In addition, after the addition of the resources to be processed is completed, in order to reduce the occupation of the process, the called data input interface can be released through the release instruction, so that the subsequent addition of the resources to be processed is facilitated.
Based on the above description, first, a data resource to be processed is obtained, and a resource type of the data resource to be processed, such as a video resource type, an audio resource type, etc., is determined. And then, calling a corresponding data resource input interface according to the type of the data resource, and simultaneously acquiring the timestamp information corresponding to the data resource to be processed. And inputting the data resource to be processed into a data resource library by using the data resource input interface according to the timestamp information, thereby finishing the addition of the data resource. That is, each to-be-processed data resource is added to the data resource library in the form of a plug-in, and under the condition that the use of the original data resource library is not affected, additional to-be-pushed stream data resources are added, so that different application requirements are met. And when the client needs to push the stream of the data resource to be processed, reading the added data resource to be processed from the data resource library according to the time stamp information sequence to push the stream.
For facilitating understanding of specific implementation of the embodiment of the present application, referring to a frame diagram shown in fig. 3, where software a is any live broadcast software, when software a needs to stream additional raw data, such as video raw data and audio raw data, first determining a resource type of each raw data, and calling a corresponding data resource input interface (audio input interface, video entry interface) according to the resource type, so as to add the raw data to be streamed to the libobs database through the corresponding data resource input interface. When live broadcast or recording is carried out, the OBS module reads original data to be pushed from the libobs database and pushes the stream according to a preset format.
Based on the foregoing method embodiment, an embodiment of the present application further provides a data resource adding apparatus, as shown in fig. 4, the apparatus may include:
a determining unit 401, configured to determine a resource type of a data resource to be processed; the resource types at least comprise a video resource type and an audio resource type;
a calling unit 402, configured to call a corresponding data resource input interface according to the resource type;
an obtaining unit 403, configured to obtain timestamp information corresponding to the to-be-processed data resource, where the timestamp information is used to indicate a stream pushing time corresponding to the to-be-processed data resource;
an input unit 404, configured to input the to-be-processed data resource into a data resource library by using the data resource input interface.
In one possible implementation, the input unit includes:
the construction subunit is used for constructing a data file corresponding to the resource type in the data resource library;
and the adding subunit is used for adding the data resource to be processed to the data file according to the timestamp information by using the data resource input interface.
In one possible implementation, the apparatus further includes:
the reading unit is used for reading the data resource to be processed from the data file according to the timestamp information;
and the stream pushing unit is used for pushing the data resource to be processed according to the format of the data resource to be processed.
In a possible implementation manner, when the data resource to be processed is an audio resource, the stream pushing unit includes:
the conversion subunit is used for converting the format of the data resource to be processed into a preset format; the preset format at least comprises a preset sampling rate and a preset channel number;
and the stream pushing subunit is used for pushing the data resource to be processed according to the preset format.
In one possible implementation, the apparatus further includes:
and the release unit is used for releasing the data input interface after the addition of the data resource to be processed is completed.
In one possible implementation, the apparatus further includes:
and the construction unit is used for constructing the data resource input interfaces corresponding to the resource types in advance.
In a possible implementation manner, the encoding format of the to-be-processed data resource corresponding to the video resource type is YUV or RGB. And the coding format corresponding to the data resource to be processed corresponding to the audio resource type is PCM.
It should be noted that, implementation of each unit in this embodiment may refer to the above method embodiment, and this embodiment is not described herein again.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is caused to execute the data resource adding method.
The embodiment of the application provides a device for realizing data resource addition, which comprises: the data resource adding method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the data resource adding method is realized.
Based on the above description, first, a data resource to be processed is obtained, and a resource type of the data resource to be processed, such as a video resource type, an audio resource type, etc., is determined. And then, calling a corresponding data resource input interface according to the type of the data resource, and simultaneously acquiring the timestamp information corresponding to the data resource to be processed. And inputting the data resource to be processed into a data resource library by using the data resource input interface according to the timestamp information, thereby finishing the addition of the data resource. That is, each data resource to be processed is added to the data resource library in the form of a plug-in, and additional data resources are added without affecting the use of the original data resource library. And when the client needs to push the added data resources, reading the added data resources to be processed from the data resource library according to the time stamp information sequence to push the streams.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method for adding data resources, the method comprising:
determining a resource type of a data resource to be processed, wherein the resource type at least comprises a video resource type and an audio resource type;
calling a corresponding data resource input interface according to the resource type;
acquiring timestamp information corresponding to the data resource to be processed, wherein the timestamp information is used for indicating the stream pushing time corresponding to the data resource to be processed;
inputting the data resource to be processed into a data resource library by using the data resource input interface according to the timestamp information;
the inputting the data resource to be processed into a data resource library by using the data resource input interface according to the timestamp information includes:
constructing a data file corresponding to the resource type in the data resource library;
and adding the data resource to be processed to the data file according to the timestamp information by using the data resource input interface.
2. The method of claim 1, further comprising:
and reading the data resource to be processed from the data file according to the timestamp information, and pushing the data resource to be processed according to the format of the data resource to be processed.
3. The method according to claim 2, wherein when the data resource to be processed is an audio resource, said streaming the data resource to be processed according to the format of the data resource to be processed comprises:
converting the format of the data resource to be processed into a preset format; the preset format at least comprises a preset sampling rate and a preset channel number;
and pushing the data resource to be processed according to the preset format.
4. The method of claim 1, further comprising:
and releasing the data resource input interface after the addition of the data resource to be processed is completed.
5. The method of claim 1, further comprising:
and pre-constructing a data resource input interface corresponding to each resource type.
6. The method of claim 1, wherein the encoding format of the to-be-processed data resource corresponding to the video resource type is YUV or RGB, and the encoding format of the to-be-processed data resource corresponding to the audio resource type is PCM.
7. An apparatus for adding data resources, the apparatus comprising:
the determining unit is used for determining the resource type of the data resource to be processed; the resource types at least comprise a video resource type and an audio resource type;
the calling unit is used for calling the corresponding data resource input interface according to the resource type;
the acquisition unit is used for acquiring timestamp information corresponding to the data resource to be processed, wherein the timestamp information is used for indicating the stream pushing time corresponding to the data resource to be processed;
an input unit, configured to input the data resource to be processed into a data resource library according to the timestamp information by using the data resource input interface, where the data resource to be processed is input into the data resource library according to the timestamp information by using the data resource input interface, includes:
constructing a data file corresponding to the resource type in the data resource library;
and adding the data resource to be processed to the data file according to the timestamp information by using the data resource input interface.
8. A computer-readable storage medium having stored therein instructions that, when run on a terminal device, cause the terminal device to perform the data resource addition method of any one of claims 1-6.
9. An apparatus for implementing data resource addition, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the data resource addition method of any one of claims 1-6 when executing the computer program.
CN202010023724.3A 2020-01-09 2020-01-09 Data resource adding method and device Active CN111263173B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010023724.3A CN111263173B (en) 2020-01-09 2020-01-09 Data resource adding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010023724.3A CN111263173B (en) 2020-01-09 2020-01-09 Data resource adding method and device

Publications (2)

Publication Number Publication Date
CN111263173A CN111263173A (en) 2020-06-09
CN111263173B true CN111263173B (en) 2021-10-19

Family

ID=70953943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010023724.3A Active CN111263173B (en) 2020-01-09 2020-01-09 Data resource adding method and device

Country Status (1)

Country Link
CN (1) CN111263173B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210841A (en) * 2016-07-06 2016-12-07 深圳市矽伟智科技有限公司 A kind of audio video synchronization player method, device
CN106534905A (en) * 2016-12-09 2017-03-22 武汉斗鱼网络科技有限公司 Method and system for intercommunication between video bullet screen live platform and bullet screen of third-party platform
CN108595623A (en) * 2018-04-23 2018-09-28 冼钇冰 A kind of game video method for pushing, device and computer storage media
CN109963191A (en) * 2017-12-14 2019-07-02 中兴通讯股份有限公司 A kind of processing method of video information, device and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100591112C (en) * 2008-11-07 2010-02-17 武汉烽火网络有限责任公司 Multimedia data storage method and precise reproducing position positioning method
US20130215279A1 (en) * 2012-02-17 2013-08-22 Alejandro Rivas-Micoud System and Method for Creating and Displaying Points of Interest in Video Test Results
RU2015111194A (en) * 2012-08-28 2016-10-20 Конинклейке Филипс Н.В. AUDIO TRANSMISSION DEVICE AND RELATED METHOD
US9948994B2 (en) * 2014-07-16 2018-04-17 Crestron Electronics, Inc. Transmission of digital audio signals using an internet protocol
CN110019117A (en) * 2017-09-28 2019-07-16 中国石油化工股份有限公司 A kind of data archiving method and device
CN108600816A (en) * 2018-05-17 2018-09-28 上海七牛信息技术有限公司 A kind of detecting method of media, device and media play system
CN209312253U (en) * 2018-09-14 2019-08-27 北京文香信息技术有限公司 A kind of blackboard and recording and broadcasting system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210841A (en) * 2016-07-06 2016-12-07 深圳市矽伟智科技有限公司 A kind of audio video synchronization player method, device
CN106534905A (en) * 2016-12-09 2017-03-22 武汉斗鱼网络科技有限公司 Method and system for intercommunication between video bullet screen live platform and bullet screen of third-party platform
CN109963191A (en) * 2017-12-14 2019-07-02 中兴通讯股份有限公司 A kind of processing method of video information, device and storage medium
CN108595623A (en) * 2018-04-23 2018-09-28 冼钇冰 A kind of game video method for pushing, device and computer storage media

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Docker的云数据库服务系统的设计与实现;杜宝丽;《中国优秀硕士学位论文全文数据库(电子期刊)》;20170315;全文 *

Also Published As

Publication number Publication date
CN111263173A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN110446072B (en) Video stream switching method, electronic device and storage medium
JP2018513583A (en) Audio video file live streaming method, system and server
CN111010614A (en) Method, device, server and medium for displaying live caption
CN109391585B (en) Video data processing method, device, terminal and computer readable storage medium
JP2009517976A (en) Interactive TV without trigger
KR20140032982A (en) Information processing system, and multimedia information processing method and system
US11863846B2 (en) Multimedia data publishing method and apparatus, and device and medium
CN103517135A (en) Method, system and television capable of playing MP4-format video files continuously
CN111818383B (en) Video data generation method, system, device, electronic equipment and storage medium
WO2021042936A1 (en) Video data processing method, apparatus, electronic device and computer-readable medium
CN110113298B (en) Data transmission method, device, signaling server and computer readable medium
CN111263173B (en) Data resource adding method and device
CN109587517B (en) Multimedia file playing method and device, server and storage medium
CN116546262A (en) Data processing method, device, equipment and storage medium
CN108616760B (en) Live broadcasting method based on browser, server, anchor terminal and user terminal
CN112235592B (en) Live broadcast method, live broadcast processing method, device and computer equipment
WO2020044084A1 (en) Near-field data migration method and apparatus thereof
CN113179261B (en) Video stream processing method and device, storage medium and platform server
CN112203103B (en) Message processing method, device, electronic equipment and computer readable storage medium
CN110855619B (en) Processing method and device for playing audio and video data, storage medium and terminal equipment
CN114040189A (en) Multimedia test method, device, storage medium and electronic equipment
CN113301374A (en) Live broadcast audio and video processing method and device, client and server
CN111131777A (en) Viewing method and device for video network monitoring
CN112291573A (en) Live stream pushing method and device and electronic equipment
CN111800649A (en) Method and device for storing video and method and device for generating video

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