CN104581434A - Video-on-demand method and device - Google Patents

Video-on-demand method and device Download PDF

Info

Publication number
CN104581434A
CN104581434A CN201510012483.1A CN201510012483A CN104581434A CN 104581434 A CN104581434 A CN 104581434A CN 201510012483 A CN201510012483 A CN 201510012483A CN 104581434 A CN104581434 A CN 104581434A
Authority
CN
China
Prior art keywords
video
video segment
filename
uploaded
server
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.)
Granted
Application number
CN201510012483.1A
Other languages
Chinese (zh)
Other versions
CN104581434B (en
Inventor
宋烨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xiaoyi Technology Co Ltd
Original Assignee
Shanghai Xiaoyi 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 Shanghai Xiaoyi Technology Co Ltd filed Critical Shanghai Xiaoyi Technology Co Ltd
Priority to CN201510012483.1A priority Critical patent/CN104581434B/en
Publication of CN104581434A publication Critical patent/CN104581434A/en
Application granted granted Critical
Publication of CN104581434B publication Critical patent/CN104581434B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to a video-on-demand method and device. By means of the video-on-demand method, a video-on-demand terminal can complete downloading without frequently inquiring a file name. The method specifically includes the steps that a video file is cut into video clips according to the time sequence, and the video clips are named according to the file name which is generated according to a preset rule of a server; when the notice sent by the server for uploading the video file is received, the video clips are uploaded to the server according to a playing sequence, and the server is informed of file names of the video clips which are newly uploaded to the server according to the preset notice strategy. According to the technical scheme, a video-on-demand side does not need to send requests for inquiring the files names to the server for the file names of all the video clips, the information interaction with the server is reduced, and network resources are saved.

Description

VOD method and device
Technical field
The present invention relates to video playback field, particularly relate to VOD method and device.
Background technology
In prior art, HTTP Live Streaming (HLS) is the Streaming transfer protocol based on HTTP, can realize the live of Streaming Media and program request, for terminal equipment provides audio frequency and video live and demand scheme.In general direct seeding technique, whole file download complete ability playing audio-video document must be waited for, and in HLS technology, Web server such as Cloud Server provides close to real-time audio/video flow to terminal equipment.Use HLS technology, program request and live just can be directly provided on the terminal device.Media file can be divided into the file of a lot of ts by this technology.Cutting procedure is temporally cut mostly.
Maximum different of the live and common direct seeding technique of HLS are, live client gets, and are not a complete data flow.Live data streams is stored as continuous print, media file (MPEG-TS form) long very in short-term at server end by HLS protocol, client is then constantly downloaded and is play these small documents, because up-to-date live data always can be generated new small documents by server end, as long as such client ceaselessly plays the file got from server in order, just achieve live.As can be seen here, HLS is live to realize with the technical approach of program request.
In prior art, when user side has a broadcasting demand, need to server active request file.If but user side does not know filename, just cannot download file, therefore need to inquire what the up-to-date file of server end is, the filename of latest document is sent to user side by server end, and user side asks this file again.Owing to not being live TV stream, so user side does not know filename, server end must be inquired at every turn.Each small documents will through said process, and process is more loaded down with trivial details.If but user does not inquire service end, then user side does not know filename, also just cannot download.In addition, traditional server stores information with multimedia data stream, and publicly-owned Cloud Server stores information in the form of a file, and this storage mode causes user and do not know which kind of form is the data flow in file be actually, also cannot download.
Summary of the invention
For overcoming problems of the prior art, the embodiment of the present invention provides VOD method and device, makes video request program end also can complete download without the need to frequent inquiry file name.
According to the first aspect of the embodiment of the present invention, provide a kind of VOD method, for video source, comprising:
Video file is cut into video segment in chronological order, and according to the filename that server generates according to preset rules, described video segment is named;
When receive server send upload the notice of described video file time, described video segment is uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
In one embodiment, described default notification strategy can comprise:
Every predetermined amount of time, the up-to-date filename being uploaded to the video segment of server is informed to server; Or
After often uploading N number of video segment, the up-to-date filename being uploaded to the video segment of server is informed to server, and described N is greater than 1.
In one embodiment, described video source can be web camera.
In one embodiment, described method also can comprise:
When M video segment cannot be uploaded, detect the reason that described M video segment cannot be uploaded;
When described M video segment cannot be uploaded because of network failure, continue to upload described M video segment at interval of predetermined amount of time, until successfully upload described M video segment;
When described M video segment cannot be uploaded because of described M video segment self reason, skip described M video segment, upload M+1 video segment.
According to the second aspect of the embodiment of the present invention, provide a kind of VOD method, for server, comprising:
First request of the order video file that receiver, video program request side sends;
Send the notice uploading described video file to video source, and send the filename of the video segment of the described video file generated according to preset rules to video source;
The described video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, described in the filename of video segment uploaded be carried out naming according to the filename that preset rules generates according to server by video source;
To the filename of the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded.
In one embodiment, described to video source send according to preset rules generate video segment filename before, also comprise:
According to the filename of preset rules generating video fragment;
In one embodiment, after the described filename to the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded, described method also comprises:
Second request of the order video file that receiver, video program request side sends;
Estimate the filename of the current up-to-date video segment uploaded of video source according to described default notification strategy, and the filename of current for the video source of the estimation up-to-date video segment uploaded is sent to video request program side.
In one embodiment, described server is Cloud Server.
According to the third aspect of the embodiment of the present invention, provide a kind of video on demand device, for video source, comprising:
Name module, for video file is cut into video segment in chronological order, and names described video segment according to the filename that server generates according to preset rules;
Upload and notification module, for when receive server send upload the notice of described video file time, described video segment is uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
In one embodiment, described device also can comprise:
Detection module, for when M video segment cannot be uploaded, detects the reason that described M video segment cannot be uploaded;
Transmission module on first, for when uploading described M video segment because of network failure, continues to upload described M video segment at interval of predetermined amount of time, until successfully upload described M video segment;
Transmission module on second, for when uploading described M video segment because of described M video segment self reason, skips described M video segment, uploads M+1 video segment.
According to the fourth aspect of the embodiment of the present invention, provide a kind of video on demand device, for server, comprising:
Request receiving module, for the first request of the order video file that receiver, video program request side sends;
First sending module, for sending the notice uploading described video file to video source, and sends the filename of the video segment of the described video file generated according to preset rules to video source;
First receiver module, for the described video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, described in the filename of video segment uploaded be carried out naming according to the filename that preset rules generates according to server by video source;
Second sending module, for the filename of the video segment after the filename and the up-to-date video segment uploaded of the up-to-date video segment uploaded of video request program side's transmission video source.
In one embodiment, described device also comprises:
Filename generation module, for the filename according to preset rules generating video fragment;
In one embodiment, described device also comprises:
Second receiver module, for the second request of the order video file that receiver, video program request side sends;
Filename is estimated and sending module, for estimating the filename of the current up-to-date video segment uploaded of video source according to described default notification strategy, and the filename of current for the video source of the estimation up-to-date video segment uploaded is sent to video request program side.
According to the 5th aspect of the embodiment of the present invention, a kind of video on demand device is provided, for video source, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Video file is cut into video segment in chronological order, and according to the filename that server generates according to preset rules, described video segment is named;
When receive server send upload the notice of described video file time, described video segment is uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
According to the 6th aspect of the embodiment of the present invention, a kind of video on demand device is provided, for server, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
First request of the order video file that receiver, video program request side sends;
Send the notice uploading described video file to video source, and send the filename of the video segment of the described video file generated according to preset rules to video source;
The described video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, described in the filename of video segment uploaded be carried out naming according to the filename that preset rules generates according to server by video source;
To the filename of the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded.
The technical scheme that embodiments of the invention provide can comprise following beneficial effect:
The technique scheme that the embodiment of the present invention provides, by the filename of server by up-to-date for the video source video segment uploaded, video request program side is sent to the filename of the video segment after the up-to-date video segment uploaded, because the name of the filename because of video segment meets preset rules, there is certain regularity, as long as therefore know the filename of the current video segment uploaded, just the filename of the video segment after this video segment can be known, therefore during video request program direction server lookup current video segment filename, the video clip files name after current video segment filename can be obtained simultaneously, therefore video request program side sends the request of inquiry file name to server without the need to each video clip files name, decrease the information interaction with server, Internet resources are saved.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the present invention.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the flow chart of a kind of VOD method according to an exemplary embodiment.
Fig. 2 is the flow chart of another VOD method according to an exemplary embodiment.
Fig. 3 is the flow chart of another VOD method according to an exemplary embodiment.
Fig. 4 is the flow chart of another VOD method according to an exemplary embodiment.
Fig. 5 is the schematic diagram that the VOD method provided according to disclosure embodiment carries out data interaction.
Fig. 6 is the flow chart of a kind of VOD method according to an exemplary embodiment one.
Fig. 7 is the block diagram of a kind of video on demand device according to an exemplary embodiment.
Fig. 8 is the block diagram of another video on demand device according to an exemplary embodiment.
Fig. 9 is the block diagram of another video on demand device according to an exemplary embodiment.
Figure 10 is the block diagram of another video on demand device according to an exemplary embodiment.
Figure 11 is the block diagram of another video on demand device according to an exemplary embodiment.
Figure 12 is a kind of block diagram being applicable to video on demand device according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Embodiments provide VOD method, the method relates to video source, server, video request program side, and triplicity completes the process of video request program.Illustrate respectively in the process completing video request program below, the operating process that video source, server, video request program side are respective.
Video source:
Fig. 1 is a kind of VOD method that the embodiment of the present invention provides, for video source, i.e. and video provider, as shown in Figure 1, the method comprising the steps of S101-S102:
In step S101, video file is cut into video segment in chronological order, and according to the filename that server generates according to preset rules, video segment is named.
In one embodiment, video file is cut into the small documents of multiple 10S, and each small documents is a video segment, and server is that video source generates a series of filename meeting preset rules, and video source is named video segment according to this filename.Such as, be video segment name according to Native digits number order, 00001.mp4,00002.mp4,00003.mp4,00004.mp4,00005.mp4,00006.mp4 etc.
In step s 102, when receiving the notice of the uploaded videos file that server sends, video segment being uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
In one embodiment, when video request program side has program request to need, order request is sent to server, after server receives order request, notice video source starts uploaded videos file, video segment uploads onto the server according to the time sequencing play by video source, and the up-to-date filename being uploaded to the video segment of server is informed to server.
In one embodiment, default notification strategy can comprise:
Every predetermined amount of time, the up-to-date filename being uploaded to the video segment of server is informed to server; The i.e. filename of the current up-to-date video segment uploaded of video source Periodic Notice server, such as, informed to server every one minute by the filename of the current up-to-date video segment uploaded.
Or default notification strategy also can comprise: after often uploading N number of video segment, the up-to-date filename being uploaded to the video segment of server is informed to server, and N is greater than 1.Such as, often upload 5 video segments, the filename of the current up-to-date video segment uploaded is informed to server by video source.
In one embodiment, the VOD method of the embodiment of the present invention can be applicable in IP camera (web camera), and namely IP camera is video source, for Cloud Server provides audio frequency and video.Due to Cloud Server store video files in the form of a file, such IP camera does not know which kind of form is the data flow in file be actually, adopt the VOD method of the embodiment of the present invention, because video file is cut into video segment in chronological order, and according to the filename that Cloud Server generates according to preset rules, video segment is named, video segment is uploaded onto the server according to playing sequence.Even if therefore IP camera does not know which kind of form is the data flow in file be actually, also video segment can be uploaded onto the server.
In one embodiment, said method also comprises steps A 1-A3,
Steps A 1, when M video segment cannot be uploaded, detects the reason that M video segment cannot be uploaded;
Steps A 2, when uploading M video segment because of network failure, continues to upload M video segment at interval of predetermined amount of time, until successfully upload M video segment;
Steps A, 3, when M video segment cannot be uploaded because of M video segment self reason, skip M video segment, upload M+1 video segment.
Illustrate, video source uploads video segment 000001.mp4-000009.mp4, now, cannot uploaded videos fragment 0000010.mp4, video source can continue to attempt uploaded videos fragment 0000010.mp4, if or cannot upload, then judge the reason broken down, when causing the reason that cannot continue to upload to be network failure, then reattempt uploaded videos fragment 0000010.mp4 at regular intervals, until successful uploaded videos fragment 0000010.mp4; When causing the reason that cannot continue to upload problem for this video segment 0000010.mp4 own, then skip this video segment 0000010.mp4, continue uploaded videos fragment 0000011.mp4.Above-mentioned two situations are applicable to video request program side too, such as when cannot foradownloaded video fragment 0000010.mp4 time, first the reason cannot downloading this video segment is searched, when causing the reason that cannot continue to download to be network failure, then reattempt foradownloaded video fragment 0000010.mp4 at regular intervals, until successful foradownloaded video fragment 0000010.mp4; When causing the reason that cannot continue to download for the problem of this video segment 0000010.mp4 own, then skip this video segment 0000010.mp4, continue foradownloaded video fragment 0000011.mp4.
Server side:
Corresponding to the method for aforementioned video source, Figure 2 shows that the another kind of VOD method that the embodiment of the present invention provides, for server, as shown in Figure 2, the method comprises the steps S201-S204:
In step s 201, the first request of the order video file of receiver, video program request side transmission.
In one embodiment, the first request can be when there is needing of order video video request program side, to the order request that server sends, and the first request of the order video file that server receiver, video program request side sends.
In step S202, send the notice of uploaded videos file to video source, and send the filename of the video segment of the video file generated according to preset rules to video source.
In one embodiment, after server receives the first request, the notice of uploaded videos file is sent to video source, server is that the video segment of video source cutting generates a series of filename meeting certain rule, a series of video segment uploads onto the server according to playing sequence after naming video segment according to the filename that server provides by video source.
In step S203, the video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, the filename of the video segment uploaded is carried out naming according to the filename that preset rules generates according to server by video source.
In one embodiment, the up-to-date filename being uploaded to the video segment of server notified according to default notification strategy is uploaded to server by video source, mention above, default notification strategy can be at interval of predetermined time section or upload once the filename of up-to-date video file at interval of N number of video segment to server.
In step S204, to the filename of the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded.
In one embodiment, the filename of the video segment after the filename of the up-to-date video segment uploaded and the up-to-date video segment uploaded is sent to video request program side.Because the name of the filename of video segment meets preset rules, therefore, when server receives the filename of the up-to-date video segment uploaded that video source sends, the filename of a series of video segments after the up-to-date video segment uploaded can just be drawn according to preset rules.
Visible, the said method that the embodiment of the present invention provides, by the filename of server by up-to-date for the video source video segment uploaded, video request program side is sent to the filename of the video segment after the up-to-date video segment uploaded, because the name of the filename because of video segment meets preset rules, there is certain regularity, as long as therefore know the filename of the current video segment uploaded, just the filename of the video segment after this video segment can be known, therefore during video request program direction server lookup current video segment filename, the video clip files name after current video segment filename can be obtained simultaneously, therefore video request program side sends the request of inquiry file name to server without the need to each video clip files name, decrease the information interaction with server, Internet resources are saved.
In one embodiment, as shown in Figure 3, before step S202, said method also can comprise step S205:
In step S205, according to the filename of preset rules generating video fragment.
In one embodiment, as shown in Figure 4, after step s 204, said method also can comprise step S206-S207:
In step S206, the second request of the order video file that receiver, video program request side sends.
In one embodiment, the second request can be the request of the filename of the current up-to-date video segment uploaded of video request program direction server request inquiry.
In step S207, estimate the filename of the current up-to-date video segment uploaded of video source according to default notification strategy, and the filename of current for the video source of the estimation up-to-date video segment uploaded is sent to video request program side.
In one embodiment, in order to reduce interacting message further, video source does not need often to upload a video segment and just the filename of this video segment is informed to server, but batch notice can be carried out, such as every 10 video segment announcement servers once, when the filename of video request program direction server request inquiry video segment, the filename of the time that server reports according to the last video source and video segment, estimates the filename of current uploaded videos fragment.
Illustrate, before 30s, the filename of the up-to-date video segment that video source reports is 00005.mp4, and because each video segment duration is 10s, then the file of current uploaded videos fragment is called 00008.mp4.
Video request program side:
When there is needing of order video video request program side, the first request is sent to server, after server receives the first request, notice video source starts uploaded videos, server be video source generate a series of, meet preset rules video file name, video source is named video segment according to this filename, and is uploaded onto the server by playing sequence by the video segment after name, and regularly uploads the filename of current uploaded videos fragment.Video request program end is to the filename of the up-to-date video segment of server lookup, the filename of the current video segment uploaded and follow-up a series of filenames are passed to program request end by server in the form of a list, such as: the filename of current up-to-date uploaded videos fragment is 000009.mp4, so server sends the list of video request program end to and is: 000009.mp4, 000010.mp4, 000011.mp4 etc., wherein 000009.mp4 is necessary being, but below be all non-existent, but will exist in following a period of time, therefore, video request program end is without the need to again sending inquiry 000010.mp4 to server, the request of the filenames such as 000011.mp4, decrease the interacting message quantity with server.
Figure 5 shows that the VOD method utilizing disclosure embodiment to provide carries out the schematic diagram of data interaction, video source comprises video camera 1, computer 2; Server is Cloud Server 3; Video request program side is mobile phone 4, panel computer 5 etc.When mobile phone 4 or panel computer 5 have needing of order video, send the first request to Cloud Server 3, after Cloud Server 3 receives the first request, notice video camera 1 or computer 2 start uploaded videos.
With specific embodiment, the technique scheme that disclosure embodiment provides is described below.
Embodiment one
The VOD method that embodiment one utilizes disclosure embodiment to provide, for video request program side provides order program service.In this embodiment, video provider and the video side of uploading are IP camera, and server is Baidu's cloud or iclould, and video request program side i.e. video download side is mobile phone.As shown in Figure 6, the present embodiment comprises the steps:
In step s 601, mobile phone sends order request to Baidu's cloud;
In step S602, after Baidu's cloud receives the order request of mobile phone transmission, notice IP camera starts uploaded videos;
In step S603, Baidu's cloud is that IP camera generates a series of video file name meeting Native digits number order;
In step s 604, IP camera names video segment according to above-mentioned video file name, and the video segment after name is uploaded to Baidu's cloud by playing sequence, and regularly uploads the filename of current uploaded videos fragment;
In step s 605, the filename of up-to-date video segment inquired about by mobile phone to Baidu's cloud;
In step S606, the filename of the current video segment uploaded and follow-up a series of filenames are passed to mobile phone by Baidu's cloud in the form of a list.
The present embodiment one, by the filename of Baidu's cloud by up-to-date for the IP camera video segment uploaded, mobile phone is sent to the filename of the video segment after the up-to-date video segment uploaded, because the filename of video segment is regular, as long as therefore know the filename of the current video segment uploaded, just the filename of the video segment after this video segment can be known, therefore when mobile phone is to Baidu's cloud inquiry current video segment filename, the video clip files name after current video segment filename can be obtained simultaneously, therefore mobile phone sends the request of inquiry file name to Baidu's cloud without the need to each video clip files name, decrease the information interaction with Baidu's cloud, Internet resources are saved.
Fig. 7 is the block diagram of a kind of video on demand device according to an exemplary embodiment, and for video source, as shown in Figure 7, this video on demand device comprises:
Name module 71, for video file is cut into video segment in chronological order, and names video segment according to the filename that server generates according to preset rules;
Upload and notification module 72, for when receiving the notice of the uploaded videos file that server sends, video segment is uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
In one embodiment, as shown in Figure 8, said apparatus also can comprise:
Detection module 73, for when M video segment cannot be uploaded, detects the reason that M video segment cannot be uploaded;
Transmission module 74 on first, for when uploading M video segment because of network failure, continues to upload M video segment at interval of predetermined amount of time, until successfully upload M video segment;
Transmission module 75 on second, for when uploading M video segment because of M video segment self reason, skips M video segment, uploads M+1 video segment.
Fig. 9 is the block diagram of a kind of video on demand device according to an exemplary embodiment, and for server, as shown in Figure 9, this video on demand device comprises:
Request receiving module 91, for the first request of the order video file that receiver, video program request side sends;
First sending module 92, for sending the notice of uploaded videos file to video source, and sends the filename of the video segment of the video file generated according to preset rules to video source;
First receiver module 93, for the video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, the filename of the video segment uploaded is carried out naming according to the filename that preset rules generates according to server by video source;
Second sending module 94, for the filename of the video segment after the filename and the up-to-date video segment uploaded of the up-to-date video segment uploaded of video request program side's transmission video source.
In one embodiment, as shown in Figure 10, said apparatus also can comprise:
Filename generation module 95, for the filename according to preset rules generating video fragment;
In one embodiment, as shown in figure 11, said apparatus also can comprise:
Second receiver module 96, for the second request of the order video file that receiver, video program request side sends;
Filename is estimated and sending module 97, for estimating the filename of the current up-to-date video segment uploaded of video source according to default notification strategy, and the filename of current for the video source of the estimation up-to-date video segment uploaded is sent to video request program side.
Visible, the said apparatus that the embodiment of the present invention provides, by the filename of server by up-to-date for the video source video segment uploaded, video request program side is sent to the filename of the video segment after the up-to-date video segment uploaded, because the name of the filename because of video segment meets preset rules, there is certain regularity, as long as therefore know the filename of the current video segment uploaded, just the filename of the video segment after this video segment can be known, therefore during video request program direction server lookup current video segment filename, the video clip files name after current video segment filename can be obtained simultaneously, therefore video request program side sends the request of inquiry file name to server without the need to each video clip files name, decrease the information interaction with server, Internet resources are saved.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 12 is a kind of block diagram for video on demand device 1200 according to an exemplary embodiment, and this device is applicable to terminal equipment.Such as, device 1200 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 12, device 1200 can comprise following one or more assembly: processing components 1202, memory 1204, power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of I/O (I/O), sensor cluster 1214, and communications component 1216.
The integrated operation of the usual control device 1200 of processing components 1202, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 1202 can comprise one or more processor 1220 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1202 can comprise one or more module, and what be convenient between processing components 1202 and other assemblies is mutual.Such as, processing unit 1202 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1208 and processing components 1202.
Memory 1204 is configured to store various types of data to be supported in the operation of equipment 1200.The example of these data comprises for any application program of operation on device 1200 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1204 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 1206 is device 1200 provide electric power.Electric power assembly 1206 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1200 and be associated.
Multimedia groupware 1208 is included in the screen providing an output interface between described device 1200 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and put and pressure.In certain embodiments, multimedia groupware 1208 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1200 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1210 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1210 comprises a microphone (MIC), and when device 1200 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1204 further or be sent via communications component 1216.In certain embodiments, audio-frequency assembly 1210 also comprises a loud speaker, for output audio signal.
I/O interface 1212 is for providing interface between processing components 1202 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1214 comprises one or more transducer, for providing the state estimation of various aspects for device 1200.Such as, sensor cluster 1214 can detect the opening/closing state of equipment 1200, the relative positioning of assembly, such as described assembly is display and the keypad of device 1200, the position of all right checkout gear 1200 of sensor cluster 1214 or device 1200 assemblies changes, the presence or absence that user contacts with device 1200, the variations in temperature of device 1200 orientation or acceleration/deceleration and device 1200.Sensor cluster 1214 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1214 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1214 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1216 is configured to the communication being convenient to wired or wireless mode between device 1200 and other-end.Device 1200 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1216 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 1216 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1200 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 1204 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 1200.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of video on demand device, for video source, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Video file is cut into video segment in chronological order, and according to the filename that server generates according to preset rules, described video segment is named;
When receive server send upload the notice of described video file time, described video segment is uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
Described processor is also configured to: described default notification strategy can comprise:
Every predetermined amount of time, the up-to-date filename being uploaded to the video segment of server is informed to server; Or
After often uploading N number of video segment, the up-to-date filename being uploaded to the video segment of server is informed to server, and described N is greater than 1.
A kind of video on demand device, for server, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
First request of the order video file that receiver, video program request side sends;
Send the notice uploading described video file to video source, and send the filename of the video segment of the described video file generated according to preset rules to video source;
The described video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, described in the filename of video segment uploaded be carried out naming according to the filename that preset rules generates according to server by video source;
To the filename of the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded.
Described processor is also configured to: described to video source send according to preset rules generate video segment filename before, also comprise:
According to the filename of preset rules generating video fragment;
Described processor is also configured to: after the described filename to the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded, described method also comprises:
Second request of the order video file that receiver, video program request side sends;
Estimate the filename of the current up-to-date video segment uploaded of video source according to described default notification strategy, and the filename of current for the video source of the estimation up-to-date video segment uploaded is sent to video request program side.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of VOD method, described method comprises:
Video file is cut into video segment in chronological order, and according to the filename that server generates according to preset rules, described video segment is named;
When receive server send upload the notice of described video file time, described video segment is uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
In one embodiment, described default notification strategy can comprise:
Every predetermined amount of time, the up-to-date filename being uploaded to the video segment of server is informed to server; Or
After often uploading N number of video segment, the up-to-date filename being uploaded to the video segment of server is informed to server, and described N is greater than 1.
In one embodiment, described video source is web camera.
In one embodiment, described method also can comprise:
When M video segment cannot be uploaded, detect the reason that described M video segment cannot be uploaded;
When described M video segment cannot be uploaded because of network failure, continue to upload described M video segment at interval of predetermined amount of time, until successfully upload described M video segment;
When described M video segment cannot be uploaded because of described M video segment self reason, skip described M video segment, upload M+1 video segment.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of VOD method, described method comprises:
First request of the order video file that receiver, video program request side sends;
Send the notice uploading described video file to video source, and send the filename of the video segment of the described video file generated according to preset rules to video source;
The described video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, described in the filename of video segment uploaded be carried out naming according to the filename that preset rules generates according to server by video source;
To the filename of the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded.
In one embodiment, described to video source send according to preset rules generate video segment filename before, also comprise:
According to the filename of preset rules generating video fragment;
In one embodiment, after the described filename to the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded, described method also comprises:
Second request of the order video file that receiver, video program request side sends;
Estimate the filename of the current up-to-date video segment uploaded of video source according to described default notification strategy, and the filename of current for the video source of the estimation up-to-date video segment uploaded is sent to video request program side.
In one embodiment, described server is Cloud Server.
Those skilled in the art, at consideration specification and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the present invention or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (15)

1. a VOD method, for video source, is characterized in that, comprising:
Video file is cut into video segment in chronological order, and according to the filename that server preset rules generates, described video segment is named;
When receive server send upload the notice of described video file time, described video segment is uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
2. the method for claim 1, is characterized in that, described default notification strategy comprises:
Every predetermined amount of time, the up-to-date filename being uploaded to the video segment of server is informed to server; Or
After often uploading N number of video segment, the up-to-date filename being uploaded to the video segment of server is informed to server, and described N is greater than 1.
3. the method for claim 1, is characterized in that, described video source is web camera.
4. the method for claim 1, is characterized in that, described method also comprises:
When M video segment cannot be uploaded, detect the reason that described M video segment cannot be uploaded;
When described M video segment cannot be uploaded because of network failure, continue to upload described M video segment at interval of predetermined amount of time, until successfully upload described M video segment;
When described M video segment cannot be uploaded because of described M video segment self reason, skip described M video segment, upload M+1 video segment.
5. a VOD method, for server, is characterized in that, comprising:
First request of the order video file that receiver, video program request side sends;
Send the notice uploading described video file to video source, and send the filename of the video segment of the described video file generated according to preset rules to video source;
The described video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, described in the filename of video segment uploaded be carried out naming according to the filename that server preset rules generates by video source;
To the filename of the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded.
6. method as claimed in claim 5, is characterized in that, described send the filename of the video segment generated according to preset rules to video source before, also comprise:
According to the filename of preset rules generating video fragment.
7. method as claimed in claim 5, is characterized in that, after the described filename to the video segment after video request program side sends the filename of the up-to-date video segment uploaded of video source and the up-to-date video segment uploaded, described method also comprises:
Second request of the order video file that receiver, video program request side sends;
Estimate the filename of the current up-to-date video segment uploaded of video source according to described default notification strategy, and the filename of current for the video source of the estimation up-to-date video segment uploaded is sent to video request program side.
8. method as claimed in claim 5, it is characterized in that, described server is Cloud Server.
9. a video on demand device, for video source, is characterized in that, comprising:
Name module, for video file is cut into video segment in chronological order, and names described video segment according to the filename that server preset rules generates;
Upload and notification module, for when receive server send upload the notice of described video file time, described video segment is uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
10. device as claimed in claim 9, it is characterized in that, described device also comprises:
Detection module, for when M video segment cannot be uploaded, detects the reason that described M video segment cannot be uploaded;
Transmission module on first, for when uploading described M video segment because of network failure, continues to upload described M video segment at interval of predetermined amount of time, until successfully upload described M video segment;
Transmission module on second, for when uploading described M video segment because of described M video segment self reason, skips described M video segment, uploads M+1 video segment.
11. 1 kinds of video on demand devices, for server, is characterized in that, comprising:
Request receiving module, for the first request of the order video file that receiver, video program request side sends;
First sending module, for sending the notice uploading described video file to video source, and sends the filename of the video segment of the described video file generated according to preset rules to video source;
First receiver module, for the described video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, described in the filename of video segment uploaded be carried out naming according to the filename that preset rules generates according to server by video source;
Second sending module, for the filename of the video segment after the filename and the up-to-date video segment uploaded of the up-to-date video segment uploaded of video request program side's transmission video source.
12. devices as claimed in claim 11, it is characterized in that, described device also comprises:
Filename generation module, for the filename according to preset rules generating video fragment.
13. devices as claimed in claim 11, it is characterized in that, described device also comprises:
Second receiver module, for the second request of the order video file that receiver, video program request side sends;
Filename is estimated and sending module, for estimating the filename of the current up-to-date video segment uploaded of video source according to described default notification strategy, and the filename of current for the video source of the estimation up-to-date video segment uploaded is sent to video request program side.
14. 1 kinds of video on demand devices, for video source, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Video file is cut into video segment in chronological order, and according to the filename that server generates according to preset rules, described video segment is named;
When receive server send upload the notice of described video file time, described video segment is uploaded onto the server according to playing sequence, and according to default notification strategy, the up-to-date filename being uploaded to the video segment of server is informed to server.
15. 1 kinds of video on demand devices, for server, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
First request of the order video file that receiver, video program request side sends;
Send the notice uploading described video file to video source, and send the filename of the video segment of the described video file generated according to preset rules to video source;
The described video segment that receiver, video source is uploaded according to playing sequence, and the up-to-date filename being uploaded to the video segment of server that receiver, video source notifies according to default notification strategy, described in the filename of video segment uploaded be carried out naming according to the filename that preset rules generates according to server by video source;
To the filename of the video segment after video request program side sends the filename of the video source up-to-date video segment uploaded and the up-to-date video segment uploaded.
CN201510012483.1A 2015-01-09 2015-01-09 VOD method and device Expired - Fee Related CN104581434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510012483.1A CN104581434B (en) 2015-01-09 2015-01-09 VOD method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510012483.1A CN104581434B (en) 2015-01-09 2015-01-09 VOD method and device

Publications (2)

Publication Number Publication Date
CN104581434A true CN104581434A (en) 2015-04-29
CN104581434B CN104581434B (en) 2018-06-08

Family

ID=53096470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510012483.1A Expired - Fee Related CN104581434B (en) 2015-01-09 2015-01-09 VOD method and device

Country Status (1)

Country Link
CN (1) CN104581434B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819309A (en) * 2017-11-21 2019-05-28 中国电信股份有限公司 Cloud storage platform, method and video-on-demand platform, method and audio/video player system
CN111369990A (en) * 2020-02-13 2020-07-03 北京达佳互联信息技术有限公司 Audio playing method, device, terminal, server and storage medium
CN111385329A (en) * 2018-12-29 2020-07-07 卓望数码技术(深圳)有限公司 Office data publishing system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282348A (en) * 2007-04-06 2008-10-08 上海晨兴电子科技有限公司 Method for implementing flow medium function using HTTP protocol
CN102004760A (en) * 2010-11-03 2011-04-06 深圳市同洲电子股份有限公司 Multimedia file storing and applying method, related device and system
EP2720436A1 (en) * 2012-10-11 2014-04-16 Wistron Corporation Streaming data downloading method and computer readable recording medium thereof
CN104244079A (en) * 2013-06-07 2014-12-24 腾讯科技(深圳)有限公司 Video download method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282348A (en) * 2007-04-06 2008-10-08 上海晨兴电子科技有限公司 Method for implementing flow medium function using HTTP protocol
CN102004760A (en) * 2010-11-03 2011-04-06 深圳市同洲电子股份有限公司 Multimedia file storing and applying method, related device and system
EP2720436A1 (en) * 2012-10-11 2014-04-16 Wistron Corporation Streaming data downloading method and computer readable recording medium thereof
CN104244079A (en) * 2013-06-07 2014-12-24 腾讯科技(深圳)有限公司 Video download method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819309A (en) * 2017-11-21 2019-05-28 中国电信股份有限公司 Cloud storage platform, method and video-on-demand platform, method and audio/video player system
CN109819309B (en) * 2017-11-21 2021-12-14 中国电信股份有限公司 Cloud storage platform and method, video on demand platform and method and video playing system
CN111385329A (en) * 2018-12-29 2020-07-07 卓望数码技术(深圳)有限公司 Office data publishing system and method
CN111369990A (en) * 2020-02-13 2020-07-03 北京达佳互联信息技术有限公司 Audio playing method, device, terminal, server and storage medium

Also Published As

Publication number Publication date
CN104581434B (en) 2018-06-08

Similar Documents

Publication Publication Date Title
CN108966025B (en) Video playing method and device and computer readable storage medium
US9736518B2 (en) Content streaming and broadcasting
CN105430487A (en) Multimedia data playing method, device and system
WO2015176485A1 (en) Video selection providing method and device
CN105208110A (en) Resource control method and device
CN105100829A (en) Method and device for intercepting video content
US9756373B2 (en) Content streaming and broadcasting
CN105243318A (en) User equipment control right determining method and apparatus and terminal device
CN105337747A (en) Group historical message processing method and device
CN104618218A (en) Information reminding method and device
CN105049213A (en) File signature method and device
CN107122430B (en) Search result display method and device
CN105159523A (en) Target function enabling method, apparatus and system
CN105337800A (en) Polling frequency adjustment method and polling frequency adjustment device
CN104092749A (en) Method and device for synchronizing photos
CN105100074A (en) Data operation processing method, device and terminal equipment
CN104601675A (en) Server load balancing method and device
CN105554064A (en) Method and device for setting head portrait
CN104639972A (en) Content sharing method, device and equipment
CN104079964A (en) Method and device for transmitting video information
CN105138564A (en) Data file reading method and apparatus
CN112218165B (en) Video playing control method and device, electronic equipment and storage medium
CN104539662A (en) Information transmission method and device
CN111182328B (en) Video editing method, device, server, terminal and storage medium
CN105095235A (en) Application program recommendation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180608

Termination date: 20210109