Movatterモバイル変換


[0]ホーム

URL:


CN111107436A - Video-on-demand method and device, terminal equipment and storage medium - Google Patents

Video-on-demand method and device, terminal equipment and storage medium
Download PDF

Info

Publication number
CN111107436A
CN111107436ACN201911293716.4ACN201911293716ACN111107436ACN 111107436 ACN111107436 ACN 111107436ACN 201911293716 ACN201911293716 ACN 201911293716ACN 111107436 ACN111107436 ACN 111107436A
Authority
CN
China
Prior art keywords
video
file
gateway server
terminal
storage gateway
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.)
Pending
Application number
CN201911293716.4A
Other languages
Chinese (zh)
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera 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 Visionvera Information Technology Co LtdfiledCriticalVisionvera Information Technology Co Ltd
Priority to CN201911293716.4ApriorityCriticalpatent/CN111107436A/en
Publication of CN111107436ApublicationCriticalpatent/CN111107436A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention provides a video file on-demand method and a video file on-demand device, wherein the method is applied to a video network and comprises the following steps: the storage gateway server receives an on-demand instruction of a first video file sent by the video networking terminal; the storage gateway server determines a first video file corresponding to first video address information according to a pre-established video list, wherein the pre-established video list at least comprises a terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file; the first video file is sent to the video network terminal corresponding to the terminal number, so that the second video file is cut on the storage gateway server, the video network terminal can acquire the cut video file from the storage gateway server, time consumed by uploading and downloading of the video file is saved in the process of cutting on the video network terminal, and the on-demand efficiency is improved.

Description

Video-on-demand method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a video-on-demand method and apparatus, a terminal device, and a storage medium.
Background
With the rapid development of network technologies, bidirectional communications such as video conferences and video teaching are widely popularized in the aspects of life, work, learning and the like of users.
In the prior art, when a user wants to order a certain section of video in a certain video file, a video network terminal needs to download the video file to be cut from a storage gateway, determine the cutting position on the downloaded video file, and upload the cut video file to the storage gateway, so that the subsequent use is facilitated.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a video file on-demand method, apparatus, terminal device and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides an on-demand method for a video file, where the method is applied in a video network, and the method includes:
a storage gateway server receives a video-on-demand instruction of a video-networking terminal to send a first video file, wherein the video-on-demand instruction of the first video file at least comprises a terminal number of the video-networking terminal and first video address information;
the storage gateway server determines a first video file corresponding to the first video address information according to a pre-established video list, wherein the pre-established video list at least comprises the terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file;
and the storage gateway server sends the first video file to a video networking terminal corresponding to the terminal number.
Optionally, the determining, by the storage gateway server, a first video file corresponding to the first video address information according to a pre-established video list includes:
the storage gateway server receives a cutting instruction sent by the video networking terminal, wherein the cutting instruction comprises a cutting position;
the storage gateway server cuts a second video file according to the cutting position to obtain at least one first video file; and the second video file is played by the video network terminal.
Optionally, the cutting the second video file according to the cutting position by the storage gateway server to obtain at least one first video file includes:
the storage gateway server receives a first cutting instruction sent by the video networking terminal, wherein the first cutting instruction comprises a first cutting position;
the storage gateway server creates a cut video temporary file and writes a video stream corresponding to a first cut position in the second video file into the cut video temporary file;
the storage gateway server receives a second cutting instruction sent by the video networking terminal, wherein the second cutting instruction comprises a second cutting position;
and when the storage gateway server completely writes the video stream between the first clipping position and the second clipping position into the clipping video temporary file, the storage gateway server converts the clipping video temporary file into the first video file.
Optionally, before the storage gateway server receives the clipping instruction sent by the video networking terminal, the method further includes:
the storage gateway server receives a video-on-demand instruction of the second video file sent by the video-on-demand terminal by using video-on-demand software, wherein the video-on-demand instruction of the second video file comprises a terminal number of the video-on-demand terminal and second video address information;
and the storage gateway server determines a second video file corresponding to the second video address information according to the second video address information, and sends the second video file to the video networking terminal corresponding to the terminal number in a video streaming manner, so that the video networking terminal plays the second video file.
Optionally, before the storage gateway server receives an on-demand instruction that the video networking terminal sends the first video file, the method further includes:
the storage gateway server receives an inquiry request sent by the video networking terminal, wherein the inquiry request at least comprises the terminal number;
the storage gateway server determines a file name list of the first video file corresponding to the terminal number according to the terminal number;
and the storage gateway server sends the file name list of the first video file to the video networking terminal corresponding to the terminal number.
Optionally, the determining, by the storage gateway server according to the terminal number, a file name list of the first video file corresponding to the terminal number includes:
and after the video network terminal finishes playing the second video file, the storage gateway server receives the file name of at least one first video file sent by the video network terminal.
In a second aspect, an embodiment of the present invention provides an on-demand device for video files, where the device includes:
the receiving module is used for storing an on-demand instruction of a gateway server receiving a video-on-demand terminal sending a first video file, wherein the on-demand instruction of the first video file at least comprises a terminal number and first video address information of the video-on-demand terminal;
a determining module, configured to determine, by the storage gateway server according to a pre-established video list, a first video file corresponding to the first video address information, where the pre-established video list at least includes the terminal number, the first video file corresponding to the terminal number, and video address information corresponding to the first video file;
and the sending module is used for sending the first video file to the video networking terminal corresponding to the terminal number by the storage gateway server.
Optionally, the apparatus further comprises a cropping module, the cropping module being configured to:
the storage gateway server receives a cutting instruction sent by the video networking terminal, wherein the cutting instruction comprises a cutting position;
the storage gateway server cuts a second video file according to the cutting position to obtain at least one first video file; and the second video file is played by the video network terminal.
Optionally, the cropping module is further configured to:
the storage gateway server receives a first cutting instruction sent by the video networking terminal, wherein the first cutting instruction comprises a first cutting position;
the storage gateway server creates a cut video temporary file and writes a video stream corresponding to a first cut position in the second video file into the cut video temporary file;
the storage gateway server receives a second cutting instruction sent by the video networking terminal, wherein the second cutting instruction comprises a second cutting position;
and when the storage gateway server completely writes the video stream between the first clipping position and the second clipping position into the clipping video temporary file, the storage gateway server converts the clipping video temporary file into the first video file.
Optionally, the sending module is further configured to:
the storage gateway server receives a video-on-demand instruction of the second video file sent by the video-on-demand terminal by using video-on-demand software, wherein the video-on-demand instruction of the second video file comprises a terminal number of the video-on-demand terminal and second video address information;
and the storage gateway server determines a second video file corresponding to the second video address information according to the second video address information, and sends the second video file to the video networking terminal corresponding to the terminal number in a video streaming manner, so that the video networking terminal plays the second video file.
Optionally, the apparatus further comprises a query module, the query module being configured to:
the storage gateway server receives an inquiry request sent by the video networking terminal, wherein the inquiry request at least comprises the terminal number;
the storage gateway server determines a file name list of the first video file corresponding to the terminal number according to the terminal number;
and the storage gateway server sends the file name list of the first video file to the video networking terminal corresponding to the terminal number.
Optionally, the query module is further configured to:
and after the video network terminal finishes playing the second video file, the storage gateway server receives the file name of at least one first video file sent by the video network terminal.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the method provided by the first aspect.
In a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed, implements the method provided in the first aspect.
The embodiment of the invention has the following advantages:
the embodiment of the invention applies the characteristics of the video network, and the storage gateway server receives a video network terminal and sends a video-on-demand instruction of a first video file, wherein the video-on-demand instruction of the first video file at least comprises a terminal number of the video network terminal and first video address information; the storage gateway server determines a first video file corresponding to first video address information according to a pre-established video list, wherein the pre-established video list at least comprises a terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file; and sending the first video file to a video network terminal corresponding to the terminal number. In the embodiment of the invention, the cutting of the second video file is carried out on the storage gateway server, the cut first video file is stored in the local storage gateway server, the video network terminal wants to order the first video file, and the storage gateway server can send the corresponding first video file to the video network terminal only by sending an order instruction to the storage gateway server, so that the time consumed by uploading and downloading the video file in the cutting process on the video network terminal is saved, and the order playing efficiency is improved.
Drawings
FIG. 1 is a flowchart illustrating the steps of an embodiment of a method for on-demand ordering of video files in accordance with the present invention;
FIG. 2 is a flow chart of the steps of one embodiment of a method of video file cropping;
FIG. 3 is a flow chart of steps in another method embodiment of video file cropping according to the present invention;
FIG. 4 is a block diagram of an embodiment of a database query device according to the present invention;
fig. 5 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
Based on the characteristics of the video network, one of the core concepts of the embodiment of the invention is provided, and the storage gateway server receives a video-on-demand instruction sent by a video-on-demand terminal according to a protocol of the video network, wherein the video-on-demand instruction of the first video file at least comprises a terminal number and first video address information of the video-on-demand terminal; the storage gateway server determines a first video file corresponding to first video address information according to a pre-established video list, wherein the pre-established video list at least comprises a terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file; and sending the first video file to a video network terminal corresponding to the terminal number. In the embodiment of the invention, the cutting of the second video file is carried out on the storage gateway server, the cut first video file is stored in the local storage gateway server, the video network terminal wants to order the first video file, and the storage gateway server can send the corresponding first video file to the video network terminal only by sending an order instruction to the storage gateway server, so that the time consumed by uploading and downloading the video file in the cutting process on the video network terminal is saved, and the order playing efficiency is improved.
An embodiment of the present invention provides a video file on-demand method, which is used for on-demand playing of a video file that has been cut on a storage gateway server. The execution subject of the embodiment is a video-on-demand device of the video file, and is arranged on the storage gateway server.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a video-on-demand method for video files according to the present invention is shown, where the method may be applied to a video network, where the video network includes a video network terminal and a storage gateway server, and specifically includes the following steps:
s101, a storage gateway server receives a video-on-demand instruction sent by a video-networking terminal, wherein the video-on-demand instruction of a first video file at least comprises a terminal number and first video address information of the video-networking terminal;
specifically, in the embodiment of the present invention, a difference from the prior art is that the clipping of the video file is performed on the storage gateway server, rather than locally at the video networking terminal, and after the video file is clipped by the storage gateway server, the first clipped video file is saved.
The video network terminal wants to request a first video file, and sends a request instruction of the first video file to the storage gateway server, wherein the request instruction at least comprises a terminal number of the video network terminal and first video address information, and the video network terminal can be a switch, a set-top box and the like.
S102, the storage gateway server determines a first video file corresponding to the first video address information according to a pre-established video list, wherein the pre-established video list at least comprises the terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file;
specifically, in the process of playing the video stream of the second video file by the video network terminal, the user pays more attention to a certain video, the video is to be cut, the user determines the starting position of video cutting and the ending position of video cutting, simultaneously, the video network terminal respectively sends a cutting starting instruction and a cutting ending instruction to the storage gateway server, wherein, the starting clipping instruction comprises the starting position of video clipping, the ending clipping instruction comprises the ending position of video clipping, the storage gateway server clips the second video file according to the clipping instruction to obtain the first video file, and the terminal number of the video network terminal, the first video file and the video address information corresponding to the first video file are stored in a pre-established video list, the first video file is a cut video file, and the second video file is an original video file.
After receiving a video-on-demand instruction of a first video file sent by a video network terminal, the storage gateway server determines the first video file corresponding to the first video address information according to a pre-established video list.
S102, the storage gateway server sends the first video file to a video networking terminal corresponding to the terminal number.
In this step, the storage gateway server sends the determined first video file to the video networking terminal corresponding to the terminal number in the form of a video stream, and the video networking terminal receives the video stream of the first video file sent by the storage gateway server, specifically, the video networking terminal receives the video stream of the first video file, and the video stream is analyzed by the bottom layer system and sent to the application layer for playing.
Specifically, file names of all first video files cut on the terminal are displayed on an interface of on-demand software of the video-on-demand terminal, a user can select the file name of the first video file to be on-demand, the video-on-demand terminal sends an on-demand instruction of the first video file to the storage gateway, wherein the on-demand instruction comprises video address information and a terminal number corresponding to the file name of the first video file, the storage gateway server determines the first video file corresponding to the first video address information according to a pre-established video list, and sends the first video file to the video-on-demand terminal corresponding to the terminal number. The video file on-demand method provided by the embodiment of the invention receives an on-demand instruction of a video network terminal to send a first video file through a storage gateway server, wherein the on-demand instruction of the first video file at least comprises a terminal number and first video address information of the video network terminal; the storage gateway server determines a first video file corresponding to first video address information according to a pre-established video list, wherein the pre-established video list at least comprises a terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file; and sending the first video file to a video network terminal corresponding to the terminal number. In the embodiment of the invention, the cutting of the second video file is carried out on the storage gateway server, the cut first video file is stored in the local storage gateway server, the video network terminal wants to order the first video file, and the storage gateway server can send the corresponding first video file to the video network terminal only by sending an order instruction to the storage gateway server, so that the time consumed by uploading and downloading the video file in the cutting process on the video network terminal is saved, and the order playing efficiency is improved.
The method provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, the determining, by the storage gateway server, a first video file corresponding to the first video address information according to a pre-established video list includes:
the storage gateway server receives a cutting instruction sent by the video networking terminal, wherein the cutting instruction comprises a cutting position;
the storage gateway server cuts a second video file according to the cutting position to obtain at least one first video file; and the second video file is played by the video network terminal.
Specifically, the user determines the starting position of video clipping during the process of playing the second video file by the video network terminal, the video network terminal sends a clipping starting instruction to the storage gateway server, at this time, the storage gateway server starts clipping the second video file, and at the same time, the video network terminal also plays the video stream of the second video file, when the user determines the ending position of video clipping, the video network terminal sends a clipping ending instruction to the storage gateway server, the storage gateway server finishes clipping the second video file after receiving the instruction, and the video network terminal is still playing the video file, during the process, the user can send a clipping starting instruction and a clipping ending instruction for multiple times, the storage gateway server clips the second video file according to the starting position and the ending position of at least one video clipping, and obtaining at least one first video file, generating video address information corresponding to the first video file, and storing the video address information on a storage gateway server.
The storage gateway server stores the terminal number of the video networking terminal, the first video file corresponding to the terminal number and the video address information corresponding to the first video file in a video list form, so that when the video networking terminal carries out on-demand, the first video file is searched according to the terminal number in the on-demand instruction.
Optionally, the cutting the second video file according to the cutting position by the storage gateway server to obtain at least one first video file includes:
the storage gateway server receives a first cutting instruction sent by the video networking terminal, wherein the first cutting instruction comprises a first cutting position;
the storage gateway server creates a cut video temporary file and writes a video stream corresponding to a first cut position in the second video file into the cut video temporary file;
the storage gateway server receives a second cutting instruction sent by the video networking terminal, wherein the second cutting instruction comprises a second cutting position;
when the storage gateway server completely writes the video stream between the first clipping position and the second clipping position into the clipping video temporary file, and when the storage gateway server completely writes the video stream between the first clipping position and the second clipping position into the clipping video temporary file, the storage gateway server converts the clipping video temporary file into the first video file.
Specifically, the video network terminal sends a first clipping instruction to the storage gateway server, wherein the first clipping instruction is a clipping starting instruction, and the clipping starting instruction comprises a video clipping starting position, namely a first clipping position;
the storage gateway server may clip the second video file by using clipping techniques such as ffmpeg (fast Forward mpeg), OpenGL (Open graphics library), MediaCodec (for accessing a low-level multimedia codec interface), and the like, specifically, after receiving a clipping start instruction, create a clipped video temporary file, clip the second video file by using the clipping techniques, and write a video stream corresponding to a video clipping start position in the second video file into the clipped video temporary file;
the video network terminal sends a second cutting instruction, wherein the second cutting instruction is a cutting ending instruction, and the cutting ending instruction comprises a video cutting ending position, namely a second cutting position;
after receiving the cutting ending instruction, the storage gateway server converts the cut video temporary file into a first video file when all video streams between the starting position and the ending position of video cutting are written into the video cutting temporary file, and simultaneously generates video address information corresponding to the first video file.
In the embodiment of the present invention, the number of the second video file to be cut is not specifically limited, and at least one first video file may be cut.
Optionally, before the storage gateway server receives the clipping instruction sent by the video networking terminal, the method further includes:
the storage gateway server receives a video-on-demand instruction of the second video file sent by the video-on-demand terminal by using video-on-demand software, wherein the video-on-demand instruction of the second video file comprises a terminal number of the video-on-demand terminal and second video address information;
the storage gateway server determines the second video file corresponding to the second video address information according to the second video address information;
and the storage gateway server sends the second video file to the video networking terminal corresponding to the terminal number in a video stream mode so that the video networking terminal plays the video stream of the second video file.
Specifically, before the second video is cut, the video network terminal needs to acquire and play the second video file, so that the user can determine the position to be cut in the process of playing the video stream of the second video file.
And the video network terminal adopts video-on-demand software to send a video-on-demand instruction of a second video file, wherein the video-on-demand instruction comprises a terminal number and second video address information, and after receiving the video-on-demand instruction, the storage gateway server determines the second video file corresponding to the second video address information according to the second video address information in the instruction and sends the second video file to the video network terminal corresponding to the terminal number in a video stream mode.
And the video network terminal receives the second video file and plays the second video file in a video stream mode.
Optionally, before the storage gateway server receives an on-demand instruction that the video networking terminal sends the first video file, the method further includes:
the storage gateway server receives an inquiry request sent by the video networking terminal, wherein the inquiry request at least comprises the terminal number;
the storage gateway server determines a file name list of the first video file corresponding to the terminal number according to the terminal number;
and the storage gateway server sends the file name list of the first video file to the video networking terminal corresponding to the terminal number.
Specifically, after the storage gateway server receives the file name of the first video file sent by the video networking terminal, the storage gateway server stores the terminal number of the video networking terminal, the file name of the first video file corresponding to the terminal, the first video address information and the first video file in a video list form on the storage gateway server.
Before the video network terminal sends a first video file ordering instruction to the storage gateway server, the video network terminal sends a query request to the storage gateway server, the query request comprises a terminal number, and the storage gateway server sends all file name lists of first video files corresponding to the terminal number to the corresponding video network terminal according to the terminal number, so that a user can select the first video files to be ordered on the video network terminal.
Optionally, the determining, by the storage gateway server according to the terminal number, a file name list of the first video file corresponding to the terminal number includes:
and after the video network terminal finishes playing the second video file, the storage gateway server receives the file name of at least one first video file sent by the video network terminal.
On the basis of the embodiment, after the second video file played by the video networking terminal is finished, the storage gateway server sends a video on demand finishing instruction to the video networking terminal, and meanwhile, the video networking terminal displays the first video address information of at least one first video file, so that which video is required to be known for subsequent video on demand can be known conveniently, and the file name of the first video file can be set for the first video address information; and sending the first video address information and the file name of the first video file corresponding to the first video address information to a storage gateway server.
Fig. 2 is a flowchart of steps of an embodiment of a method for clipping a video file according to the present invention, as shown in fig. 2, specifically, the method includes:
thevideo networking terminal 204 sends a cutting starting transparent transmission instruction, namely a cutting starting instruction to thestorage gateway 202, thestorage gateway 202 cuts the videooriginal file 201, namely the second video file, and when thestorage gateway server 202 receives the cutting finishing transparent transmission instruction and the cutting finishing instruction sent by thevideo networking terminal 204, the cutting of the videooriginal file 201 is stopped, so that avideo cutting file 203, namely the first video file, is obtained.
Fig. 3 is a flowchart of steps of another embodiment of a method for clipping a video file according to the present invention, and as shown in fig. 3, specifically, steps in a frame corresponding to thestorage gateway 202 in fig. 3 are introduced in fig. 2, and are not described again here. The flow steps of the video-on-demand and cutting between the video-networking terminal 204 and thestorage gateway 202 mainly shown in fig. 3 are specifically the following steps:
1. thevideo networking terminal 204 sends a transparent transmission instruction for starting video on demand to thestorage gateway 202, namely the storage gateway server, wherein the transparent transmission instruction for starting video on demand includes the second video address information.
2. After receiving the transparent transmission instruction for starting video on demand, thestorage gateway 202 queries a corresponding second video file according to the second video address information, and pushes a video stream of the second video file to thevideo networking terminal 204.
3. Thevideo networking terminal 204 receives the video stream of the second video file, performs video parsing 2041 by the underlying system, and sends the video stream to the application layer for playing 2042.
4. When thevideo network terminal 204 plays the video content to be cut, the user operates thevideo network terminal 204 to send a transparent transmission instruction for starting cutting to thestorage gateway 202.
5. After receiving the transparent transmission instruction for starting clipping, thestorage gateway 204 creates a temporary file for clipping the video and writes the temporary file into the video stream.
6. When thevideo network terminal 204 finishes playing the video content to be cut, the user operates the video network terminal to send a transparent transmission instruction for finishing cutting to thestorage gateway 202.
7. After receiving the transparent transmission instruction for finishing the clipping, thestorage gateway 202 synthesizes the clipped video temporary file into a normal video file, i.e., a first video file, and stores the first video file and the corresponding first video address information locally in thestorage gateway 202.
8. When theoriginal video file 201 is played, thestorage gateway 202 sends a transparent transmission instruction for ending the video on demand to thevideo network terminal 204, and thevideo network terminal 204 receives the instruction and ends the video on demand.
In the embodiment of the invention, a user requests a video through a video networking terminal, a storage gateway pushes a video stream to the video networking terminal for playing, the user determines the position to be cut according to the played video content, a cutting transparent transmission instruction is sent to a storage gateway server through the video networking terminal, the video cutting process is carried out at the cloud end of the storage gateway, the cutting of a video file is converted into the cutting of the video stream, the cut video is directly stored at the cloud end of the storage gateway, the video cutting process is changed from the local cutting of the video networking terminal into the cloud end cutting of the storage gateway in the process, the user can finish the cutting by sending the instruction through the video networking terminal, and for the user who uses a remote controller to cut the video networking terminal, a plurality of operation logics are simplified, the use is very convenient, and the space occupied by the storage of the video file at the video networking terminal is also avoided, the uploading and downloading processes of the video files are also omitted, the precious time of the user is saved, and the use experience of the user is optimized.
The embodiment of the invention can also be applied to the sending process of the television mail, wherein the television mail is a mail system transmitted through a video network, the main function of the television mail is similar to that of a daily mail system, and the television mail is characterized in that a video attachment can be added, and the video recorded in the video network is sent to a receiver as the attachment;
specifically, videos recorded through the video networking service can be stored in the storage gateway, the recorded videos can be watched through the video on demand function, and the recorded videos can be sent to other video networking terminals as accessories. However, the recorded video file may contain part of useless content and needs to be removed; also, when sending television mail, it is only desired to send a portion of the recorded video file to other video networking terminals. Under these circumstances, a video clipping function is required to meet the user requirements and enhance the user experience.
The video file on-demand method provided by the embodiment of the invention receives an on-demand instruction of a video network terminal to send a first video file through a storage gateway server, wherein the on-demand instruction of the first video file at least comprises a terminal number and first video address information of the video network terminal; the storage gateway server determines a first video file corresponding to first video address information according to a pre-established video list, wherein the pre-established video list at least comprises a terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file; and sending the first video file to a video network terminal corresponding to the terminal number. In the embodiment of the invention, the cutting of the second video file is carried out on the storage gateway server, the cut first video file is stored in the local storage gateway server, the video network terminal wants to order the first video file, and the storage gateway server can send the corresponding first video file to the video network terminal only by sending an order playing instruction to the storage gateway server, so that the time consumed by uploading and downloading the video file in the cutting process on the video network terminal is saved, and the order playing efficiency is improved.
Another embodiment of the present invention provides an on-demand device for video files, configured to perform the method provided in the foregoing embodiment.
Referring to fig. 4, a block diagram of an embodiment of a database query apparatus of the present invention is shown, which may be applied in a video network, where the video network includes a video network terminal and a storage gateway server, and the storage gateway server includes: a receivingmodule 401, a determiningmodule 402 and a sendingmodule 403, wherein:
the receivingmodule 401 is configured to store a video-on-demand instruction that a gateway server receives a video-on-demand terminal and sends a first video file, where the video-on-demand instruction of the first video file at least includes a terminal number of the video-on-demand terminal and first video address information;
the determiningmodule 402 is configured to determine, by the storage gateway server, a first video file corresponding to the first video address information according to a pre-established video list, where the pre-established video list at least includes the terminal number, the first video file corresponding to the terminal number, and the video address information corresponding to the first video file;
the sendingmodule 403 is configured to send the first video file to the video networking terminal corresponding to the terminal number by the storage gateway server.
The video file on-demand device provided by the embodiment of the invention receives an on-demand instruction of a video network terminal to send a first video file through a storage gateway server, wherein the on-demand instruction of the first video file at least comprises a terminal number and first video address information of the video network terminal; the storage gateway server determines a first video file corresponding to first video address information according to a pre-established video list, wherein the pre-established video list at least comprises a terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file; and sending the first video file to a video network terminal corresponding to the terminal number. In the embodiment of the invention, the cutting of the second video file is carried out on the storage gateway server, the cut first video file is stored in the local storage gateway server, the video network terminal wants to order the first video file, and the storage gateway server can send the corresponding first video file to the video network terminal only by sending an order instruction to the storage gateway server, so that the time consumed by uploading and downloading the video file in the cutting process on the video network terminal is saved, and the order playing efficiency is improved.
The device provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, the apparatus further comprises a cropping module, the cropping module being configured to:
the storage gateway server receives a cutting instruction sent by the video networking terminal, wherein the cutting instruction comprises a cutting position;
the storage gateway server cuts a second video file according to the cutting position to obtain at least one first video file; and the second video file is played by the video network terminal.
Optionally, the cropping module is further configured to:
the storage gateway server receives a first cutting instruction sent by the video networking terminal, wherein the first cutting instruction comprises a first cutting position;
the storage gateway server creates a cut video temporary file and writes a video stream corresponding to a first cut position in the second video file into the cut video temporary file;
the storage gateway server receives a second cutting instruction sent by the video networking terminal, wherein the second cutting instruction comprises a second cutting position;
and when the storage gateway server completely writes the video stream between the first clipping position and the second clipping position into the clipping video temporary file, the storage gateway server converts the clipping video temporary file into the first video file.
Optionally, the sending module is further configured to:
the storage gateway server receives a video-on-demand instruction of the second video file sent by the video-on-demand terminal by using video-on-demand software, wherein the video-on-demand instruction of the second video file comprises a terminal number of the video-on-demand terminal and second video address information;
and the storage gateway server determines a second video file corresponding to the second video address information according to the second video address information, and sends the second video file to the video networking terminal corresponding to the terminal number in a video streaming manner, so that the video networking terminal plays the second video file.
Optionally, the apparatus further comprises a query module, the query module being configured to:
the storage gateway server receives an inquiry request sent by the video networking terminal, wherein the inquiry request at least comprises the terminal number;
the storage gateway server determines a file name list of the first video file corresponding to the terminal number according to the terminal number;
and the storage gateway server sends the file name list of the first video file to the video networking terminal corresponding to the terminal number.
Optionally, the query module is further configured to:
and after the video network terminal finishes playing the second video file, the storage gateway server receives the file name of at least one first video file sent by the video network terminal.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The video file on-demand device provided by the embodiment of the invention receives an on-demand instruction of a video network terminal to send a first video file through a storage gateway server, wherein the on-demand instruction of the first video file at least comprises a terminal number and first video address information of the video network terminal; the storage gateway server determines a first video file corresponding to first video address information according to a pre-established video list, wherein the pre-established video list at least comprises a terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file; and sending the first video file to a video network terminal corresponding to the terminal number. In the embodiment of the invention, the cutting of the second video file is carried out on the storage gateway server, the cut first video file is stored in the local storage gateway server, the video network terminal wants to order the first video file, and the storage gateway server can send the corresponding first video file to the video network terminal only by sending an order playing instruction to the storage gateway server, so that the time consumed by uploading and downloading the video file in the cutting process on the video network terminal is saved, and the order playing efficiency is improved.
Still another embodiment of the present invention provides a terminal device, configured to execute the method provided in the foregoing embodiment.
Fig. 5 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 5, the electronic device includes: at least oneprocessor 501 andmemory 502;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the methods provided by the above-described embodiments.
The terminal device provided by this embodiment receives, through the storage gateway server, an on-demand instruction for sending a first video file by a video networking terminal, where the on-demand instruction for the first video file at least includes a terminal number of the video networking terminal and first video address information; the storage gateway server determines a first video file corresponding to first video address information according to a pre-established video list, wherein the pre-established video list at least comprises a terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file; and sending the first video file to a video network terminal corresponding to the terminal number. In the embodiment of the invention, the cutting of the second video file is carried out on the storage gateway server, the cut first video file is stored in the local storage gateway server, the video network terminal wants to order the first video file, and the storage gateway server can send the corresponding first video file to the video network terminal only by sending an order instruction to the storage gateway server, so that the time consumed by uploading and downloading the video file in the cutting process on the video network terminal is saved, and the order playing efficiency is improved.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program is executed to implement the method provided in any one of the above embodiments.
According to the computer-readable storage medium of the embodiment, a video-on-demand instruction of sending a first video file by a video-networking terminal is received through a storage gateway server, wherein the video-on-demand instruction of the first video file at least comprises a terminal number and first video address information of the video-networking terminal; the storage gateway server determines a first video file corresponding to first video address information according to a pre-established video list, wherein the pre-established video list at least comprises a terminal number, the first video file corresponding to the terminal number and the video address information corresponding to the first video file; and sending the first video file to a video network terminal corresponding to the terminal number. In the embodiment of the invention, the cutting of the second video file is carried out on the storage gateway server, the cut first video file is stored in the local storage gateway server, the video network terminal wants to order the first video file, and the storage gateway server can send the corresponding first video file to the video network terminal only by sending an order instruction to the storage gateway server, so that the time consumed by uploading and downloading the video file in the cutting process on the video network terminal is saved, and the order playing efficiency is improved.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be 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 terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The present invention provides a video-on-demand method and a video-on-demand device, which are introduced in detail above, and specific examples are applied herein to illustrate the principle and implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

CN201911293716.4A2019-12-122019-12-12Video-on-demand method and device, terminal equipment and storage mediumPendingCN111107436A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911293716.4ACN111107436A (en)2019-12-122019-12-12Video-on-demand method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911293716.4ACN111107436A (en)2019-12-122019-12-12Video-on-demand method and device, terminal equipment and storage medium

Publications (1)

Publication NumberPublication Date
CN111107436Atrue CN111107436A (en)2020-05-05

Family

ID=70423520

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911293716.4APendingCN111107436A (en)2019-12-122019-12-12Video-on-demand method and device, terminal equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN111107436A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102387187A (en)*2011-07-282012-03-21中兴通讯股份有限公司Server, client as well as method and system for remotely playing video file by using client
CN104023273A (en)*2014-06-272014-09-03北京奇艺世纪科技有限公司Video-on-demand method and video-on-demand device
CN104244023A (en)*2014-09-032014-12-24无锡天脉聚源传媒科技有限公司Video cloud editing system and method
CN104598597A (en)*2015-01-222015-05-06宁波升维信息技术有限公司Video file generating and managing system
CN105338368A (en)*2015-11-022016-02-17腾讯科技(北京)有限公司Method, device and system for converting live stream of video into on-demand data
CN106803987A (en)*2015-11-262017-06-06腾讯科技(深圳)有限公司The acquisition methods of video data, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102387187A (en)*2011-07-282012-03-21中兴通讯股份有限公司Server, client as well as method and system for remotely playing video file by using client
CN104023273A (en)*2014-06-272014-09-03北京奇艺世纪科技有限公司Video-on-demand method and video-on-demand device
CN104244023A (en)*2014-09-032014-12-24无锡天脉聚源传媒科技有限公司Video cloud editing system and method
CN104598597A (en)*2015-01-222015-05-06宁波升维信息技术有限公司Video file generating and managing system
CN105338368A (en)*2015-11-022016-02-17腾讯科技(北京)有限公司Method, device and system for converting live stream of video into on-demand data
CN106803987A (en)*2015-11-262017-06-06腾讯科技(深圳)有限公司The acquisition methods of video data, device and system

Similar Documents

PublicationPublication DateTitle
JP5728736B2 (en) Audio splitting at codec applicable frame size
US20090097815A1 (en)System and method for distributed and parallel video editing, tagging, and indexing
CN102547478B (en)Triggered slice on-demand system and method of streaming media based on CDN (Content Distribution Network)
US9615119B2 (en)Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
US20090049491A1 (en)Resolution Video File Retrieval
US11128897B2 (en)Method for initiating a transmission of a streaming content delivered to a client device and access point for implementing this method
WO2014193996A2 (en)Network video streaming with trick play based on separate trick play files
JP2016519895A (en) Media file reception and media file transmission method, apparatus, and system
CN109756749A (en)Video data handling procedure, device, server and storage medium
CN101848367B (en)File-based video live webcasting method
CN107690093A (en)A kind of video broadcasting method and device
CN101803379A (en)Video on demand service method, video on demand receiver, and video on demand server
CN114025201A (en)Video playing method, device, equipment and storage medium
JP2009194767A (en) Video evaluation apparatus and method, and video providing apparatus
KR20180058219A (en) Transmitting apparatus, receiving apparatus, and data processing method
CN114025199A (en)Live video editing method, device and system
JP2004040502A (en)Information-reproducing apparatus, information-reproducing method, and information reproducing system
CN111107436A (en)Video-on-demand method and device, terminal equipment and storage medium
CN108156490B (en)Method, system and storage medium for playing back live television by using mobile terminal
CN112243136A (en)Content playing method, video storage method and equipment
JP5243871B2 (en) Video playback device
CN103888788A (en)Virtual tourism service system based on bidirectional set top box and realization method thereof
US20130036204A1 (en)Reception of a digital content in trick mode
CN101917327A (en)Streaming media recording method and player
KR20090040107A (en) Real time private broadcast method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20200505


[8]ページ先頭

©2009-2025 Movatter.jp