CN110290396B - Video processing method, device, system, equipment and storage medium - Google Patents
Video processing method, device, system, equipment and storage medium Download PDFInfo
- Publication number
- CN110290396B CN110290396B CN201910726139.7A CN201910726139A CN110290396B CN 110290396 B CN110290396 B CN 110290396B CN 201910726139 A CN201910726139 A CN 201910726139A CN 110290396 B CN110290396 B CN 110290396B
- Authority
- CN
- China
- Prior art keywords
- video file
- client
- target video
- metadata
- file
- 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
Links
- 238000003672 processing method Methods 0.000 title abstract description 14
- 238000012545 processing Methods 0.000 claims abstract description 39
- 238000000034 method Methods 0.000 claims abstract description 35
- 238000004590 computer program Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 230000003993 interaction Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a video processing method, a video processing device, a video processing system, video processing equipment and a video processing storage medium. Wherein the method comprises the following steps: according to the downloading and online playing request of the client to the target video file, sending the storage address of the target video file and the position of the metadata in the target video file to the client; metadata of the target video file is sent to the client, and the remainder of the target video file is sent to the client. According to the technical scheme provided by the embodiment of the invention, the metadata in the target video file and the rest part of the target video file are respectively sent to the client directly according to the storage address of the target video file and the position of the metadata in the target video file, so that the time consumed by the client for downloading the video files sequentially is reduced, and the online playing speed during video downloading is improved on the basis of not increasing the additional storage of the server.
Description
Technical Field
The embodiment of the invention relates to the field of audio and video processing, in particular to a method, a device, a system, equipment and a storage medium for video processing.
Background
With the development of internet and communication technology, more and more users select a network disk to store video files, and then download the video files from the network disk to the local as required, and because the memory occupation of the video files is large, a certain time is required to be consumed when the video files are downloaded from the network disk, the users hope to directly play the video locally while downloading the video files from the network disk, and the video files can be played without waiting for the successful downloading of the video files; when playing video, the player is usually required to read the metadata of the video file first, acquire the specific video according to the attribute information such as the video coding format, the file duration, the storage position and the like recorded in the metadata, and decode and play the specific video.
When a current player plays a video file stored on a server on line, the server can repackage the uploaded video in advance by adopting a file format with better compatibility (such as packaging metadata at the head part of the video file) when the video file is uploaded to the server, so that a user terminal can firstly acquire the metadata only by downloading the video file in sequence through a hypertext transfer protocol (Hyper Text Transport Protocol, HTTP) and then play the video while downloading, or establish a video index table, and execute video skip operation in the video playing process; however, the basic service provided by the network disk is mainly file storage and reading, and in order to ensure the consistency of files during uploading and downloading, the network disk does not support the repackaging of the uploaded video by adopting a file format with better compatibility in advance when the video file is uploaded to a server, so that the video files in the network disk are all original video files, wherein a large number of video files have poorer compatibility for online playing, such as video files with metadata packaged at the tail.
Currently, when downloading and playing video online, the following two modes are generally adopted:
1. when uploading video files, the server side stores the original video files, and additionally generates a backup video file which has the same content as the original video files and better compatibility, so that the backup video files can be played on line when the original video files are downloaded later, and double storage cost can be brought to the server side in the mode;
2. in the process of sequentially caching video files from a server, the user terminal judges whether all metadata are cached in real time or not, or judges whether the position of the metadata can be estimated according to the cached video files, and further requests the server to jump to the position to continue caching, at the moment, the user terminal and the server are required to interact for a plurality of times, and further online video playing is started after all metadata are cached, so that the playing speed is reduced.
Disclosure of Invention
The embodiment of the invention provides a video processing method, a device, a system, equipment and a storage medium, which can improve the online playing speed when downloading video on the basis of not increasing the additional storage of a server.
In a first aspect, an embodiment of the present invention provides a method for video processing, including:
according to the downloading and online playing request of the client to the target video file, sending the storage address of the target video file and the position of the metadata in the target video file to the client;
metadata of the target video file is sent to the client, and the rest of the target video file is sent to the client.
In a second aspect, an embodiment of the present invention provides an apparatus for video processing, including:
the storage address determining module is used for sending the storage address of the target video file and the position of the metadata in the target video file to the client according to the downloading and online playing request of the client to the target video file;
and the video file sending module is used for sending the metadata of the target video file to the client and sending the rest part of the target video file to the client.
In a third aspect, an embodiment of the present invention provides a video server system, including: a management server and a storage server;
the management server sends a target video file storage address and the position of metadata in the target video file to the client according to the downloading and online playing request of the client to the target video file;
and the storage server sends the metadata of the target video file to the client according to the storage address of the target video file and the position of the metadata in the target video file, which are reported by the client, and sends the rest of the target video file to the client.
In a fourth aspect, an embodiment of the present invention provides a system for video processing, including: a client and a video server system as described in the third aspect;
the client side sends a downloading and online playing request for a target video file to the video server system, downloads the target video file from the video server system, and plays videos in the target video file online according to metadata of the target video file.
In a fifth aspect, an embodiment of the present invention provides an apparatus, including:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods of video processing described in any of the embodiments of the present invention.
In a sixth aspect, an embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of video processing described in any embodiment of the present invention.
The embodiment of the invention provides a video processing method, a device, a system, equipment and a storage medium, which can send a storage address of a target video file and a position of metadata in the target video file to a client when receiving a request of the client for downloading and online playing of the target video file, further respectively send the metadata in the target video file and the rest of the target video file to the client according to the storage address of the target video file and the position of the metadata in the target video file, so that the client directly plays the video in the target video file according to the received metadata while downloading the target video file, and does not need to additionally store a backup video file with better compatibility when storing the video file, thereby reducing the additional storage pressure of a server; meanwhile, the client can directly receive the metadata in the target video file, multiple interactions with the server in the sequential downloading process are not needed, and the position of the metadata is estimated.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
fig. 1A is a flowchart of a method for video processing according to a first embodiment of the present invention;
fig. 1B is a schematic diagram of a video processing procedure according to a first embodiment of the present invention;
fig. 2A is a flowchart of a method for video processing according to a second embodiment of the present invention;
fig. 2B is a schematic diagram of a video processing procedure according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a video processing apparatus according to a third embodiment of the present invention;
fig. 4A is a schematic block diagram of a video server system according to a fourth embodiment of the present invention;
fig. 4B is a flowchart of a method for performing video processing by a video server system according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method for performing video uploading by a video server system according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a video processing system according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.
Example 1
Fig. 1A is a flowchart of a video processing method according to an embodiment of the present invention, which can be applied to a situation of video downloading and online playing on any client. The video processing method provided in the embodiment of the present invention may be implemented by a video processing apparatus provided in the embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and integrated in a device that performs the method, where the device may be a server corresponding to any client and storing a video file.
Specifically, referring to fig. 1A, the method may include the steps of:
s110, according to the downloading and online playing request of the client to the target video file, the storage address of the target video file and the position of the metadata in the target video file are sent to the client.
Specifically, in order to ensure consistency of the video files before and after uploading from the client to the server, the server in this embodiment sequentially stores each uploaded video file, and does not support any additional operations on the uploaded video file; at this time, the video file includes, in addition to the video data, metadata for describing attribute information of the video data, where the metadata may include video basic information such as an encoding format of the video data, a file duration, and a file size, and at present, when playing the video online, the metadata of the video file is generally read in advance, so that specific video data is read for playing.
At present, when a client downloads or plays videos online, and needs to read metadata in video files from a server, the video files stored on the server are generally read sequentially, but the server does not support repackaging of the uploaded video files by adopting a file format with better compatibility in advance, at this time, metadata in the video files may be located at any position such as the head, the middle or the tail of the video files, so if the metadata is located at the middle or the tail of the video files, the client does not directly acquire the metadata of the video files when sequentially reading the video files, and needs to analyze the possible positions of the metadata for multiple times according to the cached video files, and then interact with the server for multiple times to jump to the position to continue reading the video files until all the metadata are read, so that the reading speed of the metadata is greatly reduced, and the interaction frequency of the client and the server is increased; in order to solve the above-mentioned problem, the server side of this embodiment records the position of the metadata in the video file in advance before downloading or playing the video online, so as to directly send the metadata to the client side according to the position of the metadata in the video file, and then play the video file as soon as possible.
Optionally, when the user needs to download and play the target video file at the client, the target video file is the video file to be downloaded and played online at this time selected by the user, and at this time, the client will generate a request for downloading and playing online the target video file first and send the request to the server; as shown in fig. 1B, according to a received request for downloading and online playing a target video file from a client, a server searches a pre-recorded actual storage address of the target video file and a position of metadata in the target video file, and sends the actual storage address and the position of metadata in the target video file to the client, so that the client releases the storage position of the target video file in advance, and receives the target video file sent by the server to the client according to a storage format in the server. Wherein the location of the metadata in the target video file may be an offset of the metadata in the target video file and a size of the metadata.
S120, sending metadata of the target video file to the client, and sending the rest of the target video file to the client.
Optionally, when the server side finds the pre-recorded storage address of the target video file and the position of the metadata in the target video file, the server side can determine the storage address of the metadata, further send the metadata in the target video file directly to the client side according to the storage address of the metadata, and send the rest of the target video file to the client side according to the storage address of the target video file at the same time, at this time, the client side can obtain the metadata of the target video file in advance, and further start a local player of the client side as soon as possible through the metadata, so as to play the target video file online. Specifically, in this embodiment, the target video file is sent to the client in parallel through two channel streams, so that the client is not required to acquire the target video file sequentially, the metadata acquisition time is reduced, the playing speed of the video file is improved, and meanwhile, the server is not required to store an additional backup video file with the same content as the original video file but better compatibility while storing the original video file, so that subsequent online playing is realized, and the storage pressure of the server is reduced. Meanwhile, as shown in fig. 1B, the client may preset a storage format of the target video file downloaded at this time on the client according to the storage address of the target video file and the position of the metadata in the target video file, which are issued by the server, and further store the metadata and the rest of the metadata in the target video file at the corresponding positions according to the storage format.
In addition, the service end in the embodiment can be functionally divided into two types, namely a management service end and a storage service end; the management server is used for distributing corresponding storage addresses for uploaded video files, recording the storage addresses of the video files, the positions of metadata in the video files and various file attribute function information such as whether the video files support an online playing function or not, and the storage server is used for storing all video files uploaded by the client on the corresponding storage addresses and analyzing the positions of the metadata in the video files after the uploading is successful; at this time, specific operations performed by the management server and the storage server in the video processing method provided in this embodiment are described in detail in the following description of the video server system provided in the embodiment of the present invention, which is not described in detail in this embodiment.
According to the technical scheme provided by the embodiment, when the downloading and online playing request of the client side to the target video file is received, the storage address of the target video file and the position of the metadata in the target video file can be sent to the client side, and then the metadata in the target video file and the rest of the target video file are respectively sent to the client side according to the storage address of the target video file and the position of the metadata in the target video file, so that the client side can directly online play the video in the target video file according to the received metadata while downloading the target video file, a backup video file with better compatibility is not required to be additionally stored when the video file is stored, and the additional storage pressure of the server side is reduced; meanwhile, the client can directly receive the metadata in the target video file, multiple interactions with the server in the sequential downloading process are not needed, and the position of the metadata is estimated.
Example two
Fig. 2A is a flowchart of a video processing method according to a second embodiment of the present invention, and fig. 2B is a schematic diagram of a video processing process according to a second embodiment of the present invention. The present embodiment is optimized based on the above embodiment, and the present embodiment mainly explains in detail other operations existing in the video processing process.
Optionally, as shown in fig. 2A, the present embodiment may include the following steps:
s210, receiving the video file uploaded by the client according to the file uploading request of the client.
Specifically, before downloading and online playing the target video file, the client uploads a plurality of video files including the target video file to the server, and at this time, as shown in fig. 2B, the client generates a corresponding file upload request according to the upload operation of the video file by the user, and sends the file upload request to the server, and the server allocates a corresponding storage address for the video file to be uploaded in advance according to the file upload request of the client, further receives the video file uploaded by the client, and stores the video file at the allocated storage address.
S220, analyzing and recording the position of the metadata in the video file.
Optionally, after the video file is successfully uploaded, the server side analyzes the video file uploaded this time to obtain the position of metadata in the video file, that is, the offset and the metadata size of the metadata in the video file, and records the position of the metadata in the uploaded video file at the same time, so that the metadata in the video file can be obtained in advance when the video file is downloaded and played on line by the client side later, and then the local player of the client side can be started to play the video file quickly according to the metadata.
In addition, when the video file is uploaded, the management server and the storage server can cooperatively execute the video file, and specific operations respectively executed by the management server and the storage server are described in detail in the following video server system.
And S230, according to the file request of the client, sending a video file list uploaded by the client to the client.
Optionally, before the client downloads and plays the target video file online, the client first checks the uploaded video file, and at this time, the client generates a corresponding file request, where the file request is used to instruct the server to provide each uploaded video file to the client, so that the user can select the target video file that is requested to be downloaded and played online. Specifically, the server side obtains the uploaded video file information according to the file request of the client side, and generates a corresponding uploaded video file list, wherein the video file list comprises a plurality of identifications of the uploaded video files and online playing enabling states of the video files; the online play time state is used for indicating whether the video file supports online play of the client side currently; and then the server sends the video file list uploaded by the client to the client, as shown in fig. 2B, the client pops up a corresponding interface to display the video file list, so that the user selects the target video file which is requested to be downloaded and played online in the video file list. At this time, each video file in the video file list is correspondingly displayed with an online playing enabling state to indicate whether the video file supports online playing; when the user chooses to download only the video file, the existing hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) is adopted for downloading; when the user selects to download and online play the video file, the scheme in the embodiment is adopted to download the video file and pop up a playing interface at the same time to online play the selected video file.
S240, according to the downloading and online playing request of the client to the target video file, the storage address of the target video file and the position of the metadata in the target video file are sent to the client.
S250, metadata of the target video file is sent to the client, and the rest of the target video file is sent to the client.
According to the technical scheme provided by the embodiment, after the server side successfully receives the video file uploaded by the client side, the position of the metadata in the video file is analyzed and recorded, so that when the client side subsequently requests to download and online play the video file, the server side can directly send the metadata to the client side according to the position of the metadata in the video file, the client side can directly obtain the metadata in advance in personal play, online play the video in the target video file, the time consumed by the client side for sequentially downloading the video file is reduced, and the online play speed during video downloading is improved on the basis of not increasing the additional storage of the server side.
Example III
Fig. 3 is a schematic structural diagram of a video processing apparatus according to a third embodiment of the present invention, and specifically, as shown in fig. 3, the apparatus may include:
the storage address determining module 310 is configured to send, to the client, a storage address of the target video file and a location of metadata in the target video file according to a request for downloading and online playing the target video file by the client;
the video file sending module 320 is configured to send metadata of the target video file to the client, and send the rest of the target video file to the client.
According to the technical scheme provided by the embodiment, when the downloading and online playing request of the client side to the target video file is received, the storage address of the target video file and the position of the metadata in the target video file can be sent to the client side, and then the metadata in the target video file and the rest of the target video file are respectively sent to the client side according to the storage address of the target video file and the position of the metadata in the target video file, so that the client side can directly online play the video in the target video file according to the received metadata while downloading the target video file, a backup video file with better compatibility is not required to be additionally stored when the video file is stored, and the additional storage pressure of the server side is reduced; meanwhile, the client can directly receive the metadata in the target video file, multiple interactions with the server in the sequential downloading process are not needed, and the position of the metadata is estimated.
Further, the apparatus for video processing may further include:
and the list sending module is used for sending a video file list uploaded by the client to the client according to the file request of the client, wherein the video file list comprises an online playing enabling state of the video file.
Further, the apparatus for video processing may further include:
the video file uploading module is used for receiving the video file uploaded by the client according to the file uploading request of the client;
and the metadata position determining module is used for analyzing and recording the position of the metadata in the video file.
The video processing device provided in this embodiment is applicable to the video processing method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
Example IV
Fig. 4A is a schematic block diagram of a video server system according to a fourth embodiment of the present invention, and fig. 4B is a flowchart of a method for executing video processing by the video server system according to the fourth embodiment of the present invention. Referring to fig. 4A, the video server system in the present embodiment may include: a management server 41 and a storage server 42.
The management server 41 is configured to allocate a corresponding storage address to each video file uploaded by the client, and record the uploaded video file storage address, the position of metadata in the video file, and whether the video file supports various file attribute function information such as an online playing function; the storage server 42 is configured to store the video file uploaded by the client at the storage address allocated by the management server 41, and parse the location of the metadata in the video file after the uploading is successful.
Specifically, the embodiment further explains a specific interaction process of requesting downloading and online playing of the target video file among the client, the management server and the storage server; optionally, as shown in fig. 4B, the present embodiment may include the following steps:
s401, the client sends a file request to the management server.
S402, the management server determines a video file list uploaded by the client according to the file request of the client.
S403, the management server sends the uploaded video file list to the client.
S404, the client determines a target video file selected by the user from the uploaded video file list.
S405, the client sends a download and online play request for the target video file to the management server.
S406, the management server determines the storage address of the target video file and the position of the metadata in the target video file according to the downloading and online playing request.
S407, the management server sends the target video file storage address and the location of the metadata in the target video file to the client.
S408, the client forwards the storage address of the target video file and the position of the metadata in the target video file to the storage server.
S409, the storage server sends the metadata of the target video file to the client according to the position of the metadata in the target video file.
S410, the storage server sends the rest part of the target video file to the client according to the storage address of the target video file.
S411, the client plays the target video file online according to the metadata of the target video file.
According to the technical scheme provided by the embodiment, the management server and the storage server respectively process the downloading and online playing requests of the client to the target video file, the management server searches the storage address of the target video file and the position of metadata in the target video file, and the storage server respectively sends the metadata and the rest of the metadata in the target video file to the client according to the storage address of the target video file and the position of the metadata in the target video file, so that the client can acquire the metadata in the target video file as soon as possible, and online plays the target video file according to the metadata, the time consumed by the client for downloading the video files sequentially is reduced, and the online playing speed during video downloading is improved on the basis of not increasing the additional storage of the server.
Example five
Fig. 5 is a flowchart of a method for performing video uploading by a video server system according to a fifth embodiment of the present invention. The embodiment is optimized based on the above embodiment, and specifically, because the client first needs to upload the corresponding video file to the video server system before the client requests to download and online play the target video file to the video server system, the embodiment is mainly specifically explained for a specific interaction process of uploading the video file among the client, the management server and the storage server; optionally, as shown in fig. 5, the present embodiment may include the following steps:
s501, the client sends a first file uploading request to the management server.
S502, the management server allocates a storage address for the video file to be uploaded by the client according to the first file uploading request of the client.
S503, the management server sends the storage address allocated for the video file to be uploaded to the client.
S504, the client sends a second file uploading request carrying the storage address to the storage server.
S505, the storage server sends an uploading acceptance instruction to the client.
S506, the client side sequentially uploads the video files to the storage server.
S507, the storage server receives the video files sequentially uploaded by the client on the storage addresses allocated for the video files to be uploaded.
S508, the storage server analyzes the position of the metadata in the video file uploaded at this time.
S509, the storage server sends the metadata position in the video file uploaded this time to the management server.
S510, the management server records the storage address allocated for the video file uploaded at the time and the position of the metadata in the video file uploaded at the time.
According to the technical scheme provided by the embodiment, the management server and the storage server are used for respectively processing the video files uploaded by the client, the management server is used for distributing corresponding storage addresses for the video files uploaded at the time, the storage server is used for receiving the video files uploaded by the client on the distributed storage addresses, analyzing the positions of metadata in the video files and sending the positions to the management server for recording, so that the follow-up management server and the storage server can respectively send the metadata in the target video files and the rest part to the client as soon as possible according to the storage addresses of the video files and the positions of the metadata in the target video files, the client can acquire the metadata in the target video files as soon as possible, and play the target video files on line according to the metadata, so that the time consumed by downloading the video files sequentially by the client is reduced, and the speed of on-line playing during video downloading is improved on the basis that the additional storage of the server is not increased.
Example six
Fig. 6 is a schematic structural diagram of a video processing system according to a sixth embodiment of the present invention. Referring to fig. 6, the video processing system includes: client 610 and video server system 620 provided by any embodiment of the present invention.
Specifically, the client 610 sends a request for downloading and online playing of the target video file to the video server system 620, downloads the target video file from the video server system 620, and plays the target video file online according to metadata of the target video file; the video server system 620 includes a management server 621 and a storage server 622, and the functions of the management server 621 and the storage server 622 are specifically described in the video server system provided in the above embodiment of the present invention, which is not described in detail herein, and the video server system in the video processing system provided in the present embodiment is applicable to the video processing method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
Example seven
Fig. 7 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention, and as shown in fig. 7, the apparatus includes a processor 70, a storage device 71, and a communication device 72; the number of processors 70 in the device may be one or more, one processor 70 being taken as an example in fig. 7; the processor 70, the storage 71 and the communication means 72 in the device may be connected by a bus or other means, in fig. 7 by way of example.
The storage device 71 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to the video processing method provided in the embodiment of the present invention. The processor 70 executes various functional applications of the apparatus and data processing, i.e., a method of implementing the video processing described above, by running software programs, instructions, and modules stored in the storage 71.
The storage device 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, the storage 71 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, the storage 71 may further include memory remotely located with respect to the processor 70, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication means 72 may be used to enable a network connection or a mobile data connection between devices.
The device provided by the embodiment can be used for executing the video processing method provided by any embodiment, and has corresponding functions and beneficial effects.
Example eight
An eighth embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of video processing in any of the above embodiments. The method specifically comprises the following steps:
according to the downloading and online playing request of the client to the target video file, sending the storage address of the target video file and the position of the metadata in the target video file to the client;
metadata of the target video file is sent to the client, and the remainder of the target video file is sent to the client.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the video processing method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the video processing apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, and various modifications and variations may be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A method of network disk video processing, comprising:
according to the downloading and online playing request of the client to the target video file, sending the storage address of the target video file and the position of the metadata in the target video file to the client;
transmitting metadata of the target video file to the client, and simultaneously transmitting the rest of the target video file to the client, wherein the metadata comprises an encoding format, a file duration and a file size of the video data; the metadata is located at any position in the head, middle or tail of the target video file;
the sending metadata of the target video file to the client and simultaneously sending the rest of the target video file to the client includes:
transmitting metadata of the target video file to the client side in parallel through two channel streams, and simultaneously transmitting the rest of the target video file to the client side;
the sending, according to a request for downloading and online playing a target video file by a client, a storage address of the target video file and a position of metadata in the target video file to the client includes:
searching the pre-recorded actual storage address of the target video file and the position of metadata in the target video file according to the downloading and online playing request of the client to the target video file;
sending a target video file storage address and the position of metadata in a target video file to the client;
before sending the storage address of the target video file and the position of the metadata in the target video file to the client, the method further comprises:
receiving a video file uploaded by the client according to the file uploading request of the client;
and analyzing and recording the position of the metadata in the video file.
2. The method of claim 1, further comprising, prior to the downloading and online playing of the target video file in response to the client request:
and sending a video file list uploaded by the client to the client according to the file request of the client, wherein the video file list comprises an online playing enabling state of the video file.
3. An apparatus for video processing of a network disk, comprising:
the storage address determining module is used for sending the storage address of the target video file and the position of the metadata in the target video file to the client according to the downloading and online playing request of the client to the target video file;
the video file sending module is used for sending metadata of the target video file to the client and sending the rest part of the target video file to the client at the same time, wherein the metadata comprises an encoding format, a file duration and a file size of the video data; the metadata is located at any position in the head, middle or tail of the target video file;
the video file sending module is specifically configured to:
transmitting metadata of the target video file to the client side in parallel through two channel streams, and simultaneously transmitting the rest of the target video file to the client side;
the sending, according to a request for downloading and online playing a target video file by a client, a storage address of the target video file and a position of metadata in the target video file to the client includes:
searching the pre-recorded actual storage address of the target video file and the position of metadata in the target video file according to the downloading and online playing request of the client to the target video file;
sending a target video file storage address and the position of metadata in a target video file to the client;
the video file uploading module is used for receiving the video file uploaded by the client according to the file uploading request of the client;
and the metadata position determining module is used for analyzing and recording the position of the metadata in the video file.
4. A network disk video server system, comprising: a management server and a storage server;
the management server sends a target video file storage address and the position of metadata in the target video file to the client according to the downloading and online playing request of the client to the target video file;
the storage server sends metadata of the target video file to the client according to the storage address of the target video file and the position of the metadata in the target video file, which are reported by the client, and simultaneously sends the rest of the target video file to the client, wherein the metadata comprise the coding format, the file duration and the file size of the video data; the metadata is located at any position in the head, middle or tail of the target video file;
the sending, according to a request for downloading and online playing a target video file by a client, a storage address of the target video file and a position of metadata in the target video file to the client includes:
searching the pre-recorded actual storage address of the target video file and the position of metadata in the target video file according to the downloading and online playing request of the client to the target video file;
sending a target video file storage address and the position of metadata in a target video file to the client;
the storage server is further configured to: transmitting metadata of the target video file to the client side in parallel through two channel streams, and simultaneously transmitting the rest of the target video file to the client side;
the management server is further configured to: according to the first file uploading request of the client, a storage address is allocated for the video file to be uploaded by the client and is issued to the client;
the storage server is further configured to: receiving video files uploaded by the client in sequence on a storage address allocated for the video files to be uploaded according to the second file uploading request of the client, analyzing the positions of metadata in the video files uploaded at the time and sending the positions to the management server;
the management server is further configured to: and recording the storage address allocated for the video file uploaded at the time and the position of the metadata analyzed by the storage server in the video file uploaded at the time.
5. The video server system of claim 4, wherein the management server is further configured to: and sending a video file list uploaded by the client to the client according to the file request of the client, wherein the video file list comprises an online playing enabling state of the video file.
6. A system for video processing, comprising: a client and a video server system as claimed in any one of claims 4-5;
and the client sends a downloading and online playing request for the target video file to the video server system, downloads the target video file from the video server system, and plays the target video file online according to metadata of the target video file.
7. An electronic device, the device comprising:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of network disk video processing of any of claims 1-2.
8. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of network disk video processing according to any of claims 1-2.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910472728 | 2019-05-31 | ||
CN2019104727287 | 2019-05-31 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110290396A CN110290396A (en) | 2019-09-27 |
CN110290396B true CN110290396B (en) | 2024-04-09 |
Family
ID=68025064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910726139.7A Active CN110290396B (en) | 2019-05-31 | 2019-08-07 | Video processing method, device, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110290396B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113079386B (en) * | 2021-03-19 | 2023-01-17 | 北京百度网讯科技有限公司 | Video online playing method and device, electronic equipment and storage medium |
CN113784150A (en) * | 2021-09-14 | 2021-12-10 | 广州市网星信息技术有限公司 | Video data distribution method and device, electronic equipment and storage medium |
CN115396692A (en) * | 2021-11-04 | 2022-11-25 | 深圳点猫科技有限公司 | Video file playing method, device, equipment and storage medium |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1788787A1 (en) * | 2005-11-22 | 2007-05-23 | Samsung Electronics Co., Ltd. | Compatible progressive download method and system |
CN101155296A (en) * | 2006-09-29 | 2008-04-02 | 中国科学技术大学 | Method for transmitting data |
CN101447994A (en) * | 2008-12-30 | 2009-06-03 | 深圳市迅雷网络技术有限公司 | Method for downloading and playing multimedia file and equipment thereof |
CN101577627A (en) * | 2009-06-17 | 2009-11-11 | 腾讯科技(深圳)有限公司 | System and method for downloading and playing multimedia file |
WO2012037671A1 (en) * | 2010-09-01 | 2012-03-29 | Jigsee Inc. | Systems and methods for client-side media chunking |
CN102510519A (en) * | 2011-10-11 | 2012-06-20 | 成都市华为赛门铁克科技有限公司 | Streaming media data processing method, playing method and device |
CN104602115A (en) * | 2015-01-13 | 2015-05-06 | 青岛海信宽带多媒体技术有限公司 | Method and system for switching of network television channels |
CN105611395A (en) * | 2015-09-22 | 2016-05-25 | 北京暴风科技股份有限公司 | MP4 format video online play method and system thereof |
CN105812850A (en) * | 2014-12-31 | 2016-07-27 | 乐视网信息技术(北京)股份有限公司 | Video file playing method and system thereof |
CN105828105A (en) * | 2015-12-10 | 2016-08-03 | 广东亿迅科技有限公司 | Distributed environment-based video transcoding system and video transcoding method |
WO2017113717A1 (en) * | 2015-12-30 | 2017-07-06 | 乐视控股(北京)有限公司 | Video playing method, video player, and electronic device |
CN107277081A (en) * | 2016-04-06 | 2017-10-20 | 北京优朋普乐科技有限公司 | Section method for down loading and device, the stream media system of stream medium data |
CN108124169A (en) * | 2016-11-29 | 2018-06-05 | 中国科学院声学研究所 | A kind of P2P Video service accelerated methods of household radio router |
CN108848060A (en) * | 2018-05-17 | 2018-11-20 | 上海哔哩哔哩科技有限公司 | A kind of multimedia file processing method, processing system and computer readable storage medium |
CN109474854A (en) * | 2018-11-29 | 2019-03-15 | 广州市百果园信息技术有限公司 | Video broadcasting method, the generation method of playlist and relevant device |
CN109672893A (en) * | 2018-11-30 | 2019-04-23 | 广州市百果园信息技术有限公司 | A kind of video encoding/decoding method, device, equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012150602A1 (en) * | 2011-05-03 | 2012-11-08 | Yogesh Chunilal Rathod | A system and method for dynamically monitoring, recording, processing, attaching dynamic, contextual & accessible active links & presenting of physical or digital activities, actions, locations, logs, life stream, behavior & status |
-
2019
- 2019-08-07 CN CN201910726139.7A patent/CN110290396B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1972193A (en) * | 2005-11-22 | 2007-05-30 | 三星电子株式会社 | Compatible-progressive download method and the system thereof |
EP1788787A1 (en) * | 2005-11-22 | 2007-05-23 | Samsung Electronics Co., Ltd. | Compatible progressive download method and system |
CN101155296A (en) * | 2006-09-29 | 2008-04-02 | 中国科学技术大学 | Method for transmitting data |
CN101447994A (en) * | 2008-12-30 | 2009-06-03 | 深圳市迅雷网络技术有限公司 | Method for downloading and playing multimedia file and equipment thereof |
CN101577627A (en) * | 2009-06-17 | 2009-11-11 | 腾讯科技(深圳)有限公司 | System and method for downloading and playing multimedia file |
WO2012037671A1 (en) * | 2010-09-01 | 2012-03-29 | Jigsee Inc. | Systems and methods for client-side media chunking |
CN102510519A (en) * | 2011-10-11 | 2012-06-20 | 成都市华为赛门铁克科技有限公司 | Streaming media data processing method, playing method and device |
CN105812850A (en) * | 2014-12-31 | 2016-07-27 | 乐视网信息技术(北京)股份有限公司 | Video file playing method and system thereof |
CN104602115A (en) * | 2015-01-13 | 2015-05-06 | 青岛海信宽带多媒体技术有限公司 | Method and system for switching of network television channels |
CN105611395A (en) * | 2015-09-22 | 2016-05-25 | 北京暴风科技股份有限公司 | MP4 format video online play method and system thereof |
CN105828105A (en) * | 2015-12-10 | 2016-08-03 | 广东亿迅科技有限公司 | Distributed environment-based video transcoding system and video transcoding method |
WO2017113717A1 (en) * | 2015-12-30 | 2017-07-06 | 乐视控股(北京)有限公司 | Video playing method, video player, and electronic device |
CN107277081A (en) * | 2016-04-06 | 2017-10-20 | 北京优朋普乐科技有限公司 | Section method for down loading and device, the stream media system of stream medium data |
CN108124169A (en) * | 2016-11-29 | 2018-06-05 | 中国科学院声学研究所 | A kind of P2P Video service accelerated methods of household radio router |
CN108848060A (en) * | 2018-05-17 | 2018-11-20 | 上海哔哩哔哩科技有限公司 | A kind of multimedia file processing method, processing system and computer readable storage medium |
CN109474854A (en) * | 2018-11-29 | 2019-03-15 | 广州市百果园信息技术有限公司 | Video broadcasting method, the generation method of playlist and relevant device |
CN109672893A (en) * | 2018-11-30 | 2019-04-23 | 广州市百果园信息技术有限公司 | A kind of video encoding/decoding method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110290396A (en) | 2019-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110290396B (en) | Video processing method, device, system, equipment and storage medium | |
US10116572B2 (en) | Method, device, and system for acquiring streaming media data | |
CN111277869B (en) | Video playing method, device, equipment and storage medium | |
WO2015035942A1 (en) | Method for playing back live video and device | |
US9871843B2 (en) | Method and system for downloading and playing media file, client, server, and storage medium | |
CN107277081A (en) | Section method for down loading and device, the stream media system of stream medium data | |
CN110247985B (en) | Resource downloading method and device, electronic equipment and medium | |
CN104219286B (en) | streaming media processing method, device, client, CDN node server and terminal | |
CN110557689B (en) | Video playing method and device | |
EP3902266A1 (en) | Processing method for dragging video data and proxy server | |
CN107333148B (en) | Method for processing video frequency and device, computer storage medium and equipment | |
JP6314252B2 (en) | Network video playback method and apparatus | |
CN113115120B (en) | Video slicing method and device, electronic equipment and storage medium | |
CN109525622B (en) | Fragment resource ID generation method, resource sharing method, device and electronic equipment | |
CN106817388B (en) | Method and device for acquiring data by virtual machine and host machine and system for accessing data | |
CN110401858B (en) | Video playing method and device, electronic equipment and storage medium | |
CN109089174B (en) | Multimedia data stream processing method and device and computer storage medium | |
CN105323597A (en) | MP4 file playing method, MP4 file processing method, MP4 file playing device, MP4 file processing device and MP4 file playing system | |
CN106657182B (en) | Cloud file processing method and device | |
CN112287127B (en) | Multimedia file storage and reading method | |
CN102006500B (en) | Video dragging method and device applied to cache server | |
JP7217181B2 (en) | WEARABLE DEVICE, INFORMATION PROCESSING METHOD, APPARATUS AND SYSTEM | |
CN111346377A (en) | Recording and playback method and device for online game, server and terminal | |
CN111031117B (en) | Multimedia file downloading method and related device | |
JP6305738B2 (en) | Media playback control device, media playback control method, and program |
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 |