CN109348251A - For the method, apparatus of video playing, computer-readable medium and electronic equipment - Google Patents
For the method, apparatus of video playing, computer-readable medium and electronic equipment Download PDFInfo
- Publication number
- CN109348251A CN109348251A CN201811166174.XA CN201811166174A CN109348251A CN 109348251 A CN109348251 A CN 109348251A CN 201811166174 A CN201811166174 A CN 201811166174A CN 109348251 A CN109348251 A CN 109348251A
- Authority
- CN
- China
- Prior art keywords
- video
- frame
- file
- target
- decoding refresh
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
- H04N21/23418—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234309—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2387—Stream processing in response to a playback request from an end-user, e.g. for trick-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Abstract
The embodiment provides a kind of for the method, apparatus of video playing, computer-readable medium and electronic equipment.The described method includes: obtaining the current dragging location information of video file;The target video segment of the video file is determined according to the current dragging location information;Target instantaneous decoding refresh frame nearest with current dragging positional distance in the target video segment is searched according to the index file of the video file;Wherein, the index file includes the timestamp of the instantaneous decoding refresh frame in the video file in each video clip.The technical solution of the embodiment of the present invention can pass through the index file of the timestamp including the instantaneous decoding refresh frame in each video clip in video file, it finds and currently drags the target instantaneous decoding refresh frame nearest apart from front distance in target video segment, positioning accuracy is improved, video viewing experience is optimized.
Description
Technical field
This application involves field of computer technology, in particular to it is a kind of by the method, apparatus of video playing, based on
Calculation machine readable medium and electronic equipment.
Background technique
Common stream media protocol mainly has HTTP (HyperText Transfer Protocol, Hyper text transfer association
View) progressive download and be based on RTSP (real time streaming transport protocol, Real Time Streaming Protocol)/RTP (Real-
Time Transport Protocol, real-time transport protocol) real-time stream media protocol, it is more convenient and handy at present to be
HTTP progressive download method.HLS (HTTP Live Streaming, the dynamic of Apple company in HTTP progressive download method
Code rate adaptive technique) be representative in terms of this, be mainly used for PC (Personal Computer, personal computer) and
The audio-video service of Apple terminal comprising a m3u8 index file, TS (full name in English is Transport Stream, in
Literary full name is transport stream, and TS is MPEG2 (Moving Picture Experts Group 2, dynamic image expert group 2) agreement
In a sub-protocol) media slicing file and key encrypt string file.
It should be noted that information is only used for reinforcing the reason to background of the invention disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention provide it is a kind of for the method, apparatus of video playing, computer-readable medium and electronic equipment,
It can be improved the positioning accuracy of instantaneous decoding refresh frame.
One side according to an embodiment of the present invention provides a kind of method for video playing, comprising: obtains video text
The current dragging location information of part;The target video segment of the video file is determined according to the current dragging location information;
Target nearest with current dragging positional distance in the target video segment is searched according to the index file of the video file
Instantaneous decoding refresh frame;Wherein, the index file includes the instantaneous decoding refresh in the video file in each video clip
The timestamp of frame.
In a kind of exemplary embodiment of the disclosure, the target is searched according to the index file of the video file and is regarded
The target instantaneous decoding refresh frame nearest with current dragging positional distance in frequency segment, comprising: obtain the current dragging position
Timestamp in the target video segment;According to the timestamp of the instantaneous decoding refresh frame in the target video segment and
Timestamp of the current dragging position in the target video segment determines the target instantaneous decoding refresh frame.
In a kind of exemplary embodiment of the disclosure, the index file further includes each piece of video in the video file
The deviation post of instantaneous decoding refresh frame in section;Wherein, the method also includes: the mesh is obtained according to the index file
Mark the deviation post of instantaneous decoding refresh frame;Video is sent after continued broadcasting according to the deviation post of the target instantaneous decoding refresh frame
Put request;It receives and continues the current video data that playing request returns in response to the video.
In a kind of exemplary embodiment of the disclosure, further includes: decode the current video data;After broadcast decoder
Current video data.
In a kind of exemplary embodiment of the disclosure, further includes: traverse in the video file in each video clip
Video frame obtains frame type, timestamp and the deviation post of each video frame, wherein the frame type includes instantaneous decoding refresh
Frame;The timestamp and deviation post of instantaneous decoding refresh frame in the video file that will acquire in each video clip store to
The index file.
In a kind of exemplary embodiment of the disclosure, the index file further includes the standard label of each video clip;
The timestamp of instantaneous decoding refresh frame in video clip each in the video file and deviation post are stored to the index
File, comprising: be inserted into privately owned label before the standard label of each video clip in the index file;Wherein, the privately owned mark
Label include the timestamp and deviation post of the instantaneous decoding refresh frame in corresponding video segment.
In a kind of exemplary embodiment of the disclosure, the standard label includes the duration of video clip.
In a kind of exemplary embodiment of the disclosure, further includes: send the playing request of the video file;It receives and rings
The index file that playing request described in Ying Yu returns;The index file is parsed, each video clip in the video file is obtained
The timestamp and deviation post of interior instantaneous decoding refresh frame.
According to one aspect of the disclosure, a kind of device for video playing is provided, comprising: dragging acquisition of information mould
Block is configured to obtain the current dragging location information of video file;Video clip determining module is configured to currently be dragged according to described
Dynamic location information determines the target video segment of the video file;Target frame searching module is configured to according to the video text
The index file of part searches target instantaneous decoding refresh frame nearest with current dragging positional distance in the target video segment;
Wherein, the index file includes the timestamp of the instantaneous decoding refresh frame in the video file in each video clip.
In a kind of exemplary embodiment of the disclosure, the target frame searching module includes: that dragging timestamp obtains list
Member is configured to obtain timestamp of the current dragging position in the target video segment;Target frame determination unit, configuration
For according to the timestamp of the instantaneous decoding refresh frame in the target video segment and the current dragging position in the target
Timestamp in video clip determines the target instantaneous decoding refresh frame.
In a kind of exemplary embodiment of the disclosure, the index file further includes each piece of video in the video file
The deviation post of instantaneous decoding refresh frame in section;Wherein, described device further include: deviation post obtains module, is configured to root
The deviation post of the target instantaneous decoding refresh frame is obtained according to the index file;Playing request sending module, is configured to root
Video, which is sent, according to the deviation post of the target instantaneous decoding refresh frame continues playing request;Video data receiving module, configuration
Continue the current video data that playing request returns in response to the video to receive.
In a kind of exemplary embodiment of the disclosure, further includes: decoder module is configured to decode the current video number
According to;Playing module, the current video data after being configured to broadcast decoder.
In a kind of exemplary embodiment of the disclosure, further includes: spider module is configured to traverse in the video file
Video frame in each video clip obtains frame type, timestamp and the deviation post of each video frame, wherein the frame type includes
Instantaneous decoding refresh frame;Frame information memory module is configured to instant in each video clip in the video file that will acquire
The timestamp and deviation post of decoding refresh frame are stored to the index file.
One side according to an embodiment of the present invention provides a kind of computer-readable medium, is stored thereon with computer journey
Sequence realizes such as the above-mentioned method as described in the examples for video playing when described program is executed by processor.
One side according to an embodiment of the present invention, provides a kind of electronic equipment, comprising: one or more processors;It deposits
Storage device is configured to store one or more programs, when one or more of programs are held by one or more of processors
When row, so that one or more of processors realize such as the above-mentioned method as described in the examples for video playing.
In the technical solution provided by some embodiments of the present invention, by including in each video clip in video file
Instantaneous decoding refresh frame timestamp index file, find currently dragged in target video segment it is nearest apart from front distance
Target instantaneous decoding refresh frame, improve positioning accuracy, the video viewing experience of user can be optimized.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 is shown can the method for video playing using the embodiment of the present invention or the device for video playing
Exemplary system architecture schematic diagram;
Fig. 2 shows the structural schematic diagrams of the computer system of the electronic equipment suitable for being used to realize the embodiment of the present invention;
Fig. 3 shows a kind of schematic diagram of the method for video playing in the related technology;
Fig. 4 diagrammatically illustrates the flow chart of the method for video playing of an embodiment according to the present invention;
Fig. 5 shows the treatment process schematic diagram of step S430 shown in Fig. 4 in one embodiment;
Fig. 6 diagrammatically illustrates the flow chart of the method for video playing according to still another embodiment of the invention;
Fig. 7 diagrammatically illustrates the flow chart of the method for video playing of another embodiment according to the present invention;
Fig. 8 diagrammatically illustrates the flow chart of the method for video playing of another embodiment according to the present invention;
Fig. 9 diagrammatically illustrates the block diagram of the device for video playing of an embodiment according to the present invention;
Figure 10 diagrammatically illustrates the interface schematic diagram that user in video display process drags progress bar;
Figure 11, which is diagrammatically illustrated, to be positioned using method shown in Fig. 3 to the interface schematic diagram of target instantaneous decoding refresh frame;
Figure 12, which is diagrammatically illustrated, to be positioned using method shown in Fig. 4 to the interface schematic diagram of target instantaneous decoding refresh frame.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner
In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However,
It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail,
Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side
Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit
These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step,
It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close
And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
Fig. 1 is shown can the method for video playing using the embodiment of the present invention or the device for video playing
Exemplary system architecture 100 schematic diagram.
As shown in Figure 1, system architecture 100 may include one of terminal device 101 or a variety of, network 104 and service
Device 105.Network 104 between terminal device 101 and server 105 to provide the medium of communication link.Network 104 can wrap
Include various connection types, such as wired, wireless communication link or fiber optic cables etc..
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.For example server 105 can be multiple server compositions
Server cluster etc..
User can be used terminal device 101 and be interacted by network 104 with server 105, to receive or send message etc..
Terminal device 101 can be the various electronic equipments with display screen, including but not limited to smart phone, tablet computer, portable
Formula computer and desktop computer, d-cinema projectors etc..Various clients can be installed on terminal device 101, such as
Video playing client.
Server 105 can be to provide the server of various services.Such as user utilizes terminal device 101 to server
105 send video playing request.Server 105 can be based on the relevant information carried in video playing request, in database
In retrieve matched search result, and for example corresponding video information of search result is fed back into terminal device 101, Jin Eryong
It family can be based on the corresponding video of content viewing shown on terminal device 101.
Fig. 2 shows the structural schematic diagrams of the computer system of the electronic equipment suitable for being used to realize the embodiment of the present invention.
It should be noted that Fig. 2 shows the computer system 200 of electronic equipment be only an example, should not be to this hair
The function and use scope of bright embodiment bring any restrictions.
As shown in Fig. 2, computer system 200 includes central processing unit (CPU) 201, it can be read-only according to being stored in
Program in memory (ROM) 202 or be loaded into the program in random access storage device (RAM) 203 from storage section 208 and
Execute various movements appropriate and processing.In RAM 203, it is also stored with various programs and data needed for system operatio.CPU
201, ROM 202 and RAM 203 is connected with each other by bus 204.Input/output (I/O) interface 205 is also connected to bus
204。
I/O interface 205 is connected to lower component: the importation 206 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 207 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 208 including hard disk etc.;
And the communications portion 209 of the network interface card including LAN card, modem etc..Communications portion 209 via such as because
The network of spy's net executes communication process.Driver 210 is also connected to I/O interface 205 as needed.Detachable media 211, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 210, in order to read from thereon
Computer program be mounted into storage section 208 as needed.
Particularly, according to an embodiment of the invention, may be implemented as computer below with reference to the process of flow chart description
Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 209, and/or from detachable media
211 are mounted.When the computer program is executed by central processing unit (CPU) 201, the present processes and/or dress are executed
Set the various functions of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing illustrate method, apparatus and computer journey according to various embodiments of the invention
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in module and/or unit involved in the embodiment of the present invention can be realized by way of software,
It can be realized by way of hardware, described module and/or unit also can be set in the processor.Wherein, these
Module and/or the title of unit do not constitute the restriction to the module and/or unit itself under certain conditions.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs
When standby execution, so that method described in electronic equipment realization as the following examples.For example, the electronic equipment can be real
Now such as each step of Fig. 4 or Fig. 5 or Fig. 6 or Fig. 7 or shown in Fig. 8.
Fig. 3 shows a kind of schematic diagram of the method for video playing in the related technology.
In the related technology, firstly, obtaining the position of user SEEK, finding corresponding SEEK according to HLS protocol specification, (Chinese is translated
To find, the player in the embodiment of the present invention for progress bar dragging triggering is positioned to the operation of target position.General player
The dragging function of general-purpose interface is all to use seekTo as function name) the TS fragment of position.Then, the TS fragment is directly acquired
The every IDR frame of beginning plays out after decoding.
As shown in Figure 3, it is assumed here that video file includes 3 video clips: 1.ts, 2.ts, 3.ts, wherein in 1.ts
It include three in 2.ts assuming that including two IDR (Instantaneous Decoding Refresh, instantaneous decoding refresh) frames
Every IDR frame includes two every IDR frames in 3.ts, and assumes that the duration of this 3 video clips is 10 seconds, and assumes current dragging
(SEEK) position is 15 seconds.
It is assumed that the content of the m3u8 index file of video file is as shown in table 1 below:
Table 1
In the fig. 3 embodiment, play position is initial position, that is, video file 10 of 2.ts file after SEEK decoding
At second position, but the practical position SEEK of user is 15 seconds, and there are 5 seconds between the every IDR frame positioned at this time and the practical position SEEK
Error can only be cannot achieve in TS fragment at SEEK to the beginning of each TS fragment that is, using scheme in the related technology
SEEK, true play position and SEEK position deviation are larger.
Fig. 4 diagrammatically illustrates the flow chart of the method for video playing of an embodiment according to the present invention.This hair
The method and step of bright embodiment can be executed by terminal device, can also be executed by server-side, or by terminal device kimonos
Be engaged in end interaction execute, for example, can by above-mentioned Fig. 1 server 105 or terminal device 101 execute, can also be by the two
It is common to execute, but the present invention is not limited to this.
As shown in figure 4, the method for video playing that embodiment of the present invention provides may comprise steps of.
In step S410, obtain video file it is current dragging (SEEK, refer to user drag video playing progress bar to finger
Positioning is set or target position plays out) location information.
In the embodiment of the present invention, the format of the video file can be HLS format, but the present invention is not limited to this,
It is also possible to any other suitable video format.
In the step s 420, the target video segment of the video file is determined according to the current dragging location information
(TS fragment).
In step S430, according to the index file of the video file search in the target video segment with currently drag
Nearest target instantaneous decoding refresh (IDR) frame of dynamic positional distance.
Wherein, the index file may include the timestamp of the every IDR frame in the video file in each video clip.
It may include I frame (intracoded frame), P frame (forward-predictive-coded frames) in the embodiment of the present invention, in video file
With B frame (bi-directional predicted interpolation coding frame).
Wherein, I frame is a kind of independent frame of included all information, can be independently decoded without reference to other images,
First frame in video sequence is all I frame always.I and every IDR frame are all using intra prediction.In coding and decoding in order to
It is convenient, need to differentiate first I frame and other I frames, first first I frame every IDR frame, thus facilitate control encode with
Decoding process.
The effect of every IDR frame is to refresh at once, propagate mistake will not.Since every IDR frame, a new sequence is calculated again and is opened
Begin coding.And I frame does not have the ability of random access, this function is undertaken by every IDR frame.Every IDR frame will lead to DPB (Decoded
Picture Buffer reference frame lists) it empties, and I frame will not.For every IDR frame, all frames after every IDR frame are not
The content of the frame before any every IDR frame can be quoted, in contrast, for common I frame, B the and P frame after it can
To quote the I frame before being located at common I frame.From random-access video flowing, player can be broadcast forever from an every IDR frame
It puts, because after it without the frame before the reference of any frame.It can however not from any in one the not video of every IDR frame
Point starts to play, because subsequent frame can always quote the frame of front.
It needs to position to every IDR frame in the embodiment of the present invention, when SEEK and is decoded broadcasting.
The method for video playing that embodiment of the present invention provides, by including in each video clip in video file
Every IDR frame timestamp index file, find and currently drag the Target id R nearest apart from front distance in target video segment
Frame improves positioning accuracy, optimizes video viewing experience.
Fig. 5 shows the treatment process schematic diagram of step S430 shown in Fig. 4 in one embodiment.Embodiment party of the present invention
The method and step of formula can be executed by terminal device, can also be executed by server-side, or by terminal device and server-side interaction
Execute, for example, can by above-mentioned Fig. 1 server 105 or terminal device 101 execute, but the present invention is not limited to this.
As shown in figure 5, the step S430 in above-mentioned Fig. 4 illustrated embodiment may further include following steps.
In step S431, timestamp of the current dragging position in the target video segment is obtained.
In step S432, according to the timestamp of the every IDR frame in the target video segment and the current dragging position
Timestamp in the target video segment determines the target every IDR frame.
Fig. 6 diagrammatically illustrates the flow chart of the method for video playing according to still another embodiment of the invention.This
The method and step of invention embodiment can be executed by terminal device, can also be executed by server-side, or by terminal device and
Server-side interaction executes, for example, can by above-mentioned Fig. 1 server 105 or terminal device 101 execute, but the present invention is simultaneously
It is not limited to this.
In the embodiment of the present invention, the index file can also include the IDR in the video file in each video clip
The deviation post of frame.
As shown in fig. 6, compared with above-mentioned Fig. 4 illustrated embodiment, embodiment of the present invention the difference is that, may be used also
To include the following steps.
In step S610, the deviation post of the target every IDR frame is obtained according to the index file.
In step S620, video is sent according to the deviation post of the target every IDR frame and continues playing request.
In step S630, receives and continue the current video data that playing request returns in response to the video.
With continued reference to Fig. 6, the method can further include following steps.
In step S640, the current video data is decoded.
Current video data in step S650, after broadcast decoder.
Fig. 7 diagrammatically illustrates the flow chart of the method for video playing of another embodiment according to the present invention.This
The method and step of invention embodiment can be executed by terminal device, can also be executed by server-side, or by terminal device and
Server-side interaction executes, for example, can by above-mentioned Fig. 1 server 105 or terminal device 101 execute, but the present invention is simultaneously
It is not limited to this.
As shown in fig. 7, the difference of embodiment of the present invention exists compared with above-mentioned Fig. 4 and/or Fig. 6 illustrated embodiment
In can also include the following steps.
In step S710, the video frame in the video file in each video clip is traversed, obtains the frame of each video frame
Type, timestamp and deviation post, wherein the frame type may include instantaneous decoding refresh frame.
It is, for example, possible to use FFmpeg (Fast Forward Mpeg) tools etc. respectively to regard to traverse in the video file
Video frame in frequency segment, obtains frame type, timestamp and the deviation post of each video frame, and record every IDR frame therein when
Between stab and deviation post.
Wherein, FFmpeg be it is a set of can be used to record, converted digital audio, video, and opening for stream can be translated into
Source computer program.It provides recording, conversion and the total solution for fluidizing audio-video.
In the embodiment of the present invention, the frame type of video frame may include I frame, P frame and B frame, and wherein every IDR frame belongs in I frame
A kind of situation.
In step S720, the time of the instantaneous decoding refresh frame in the video file that will acquire in each video clip
Stamp and deviation post are stored to the index file.
In the embodiment of the present invention, the index file can be m3u8 file, but this is not limited by the present invention.Work as video
When the format of file changes, index file can occur to change accordingly.
In the exemplary embodiment, the index file can also include the standard label of each video clip.
In the exemplary embodiment, by the timestamp and bits of offset of the every IDR frame in video clip each in the video file
Set store may include: to the index file be inserted into before the standard label of each video clip in the index file it is privately owned
Label;Wherein, the privately owned label includes the timestamp and deviation post of the every IDR frame in corresponding video segment.
In the exemplary embodiment, the standard label may include the duration of video clip.
It is illustrated below by an actual example.Assuming that on the basis of standard m3u8, each TS fragment
The preceding privately owned label of insertion, as shown in table 2 below.
Table 2
In upper table 2, #EXTM3U, #EXT-X-TARGETDURATION:10, #EXTINF:10.0 etc. are standard label, #
The numerical value 10.0 of EXTINF thereafter represents the when a length of 10s of corresponding TS fragment.
Wherein, #QQ-HLS-PRIVATE is the mark (TAG) of privately owned label, information thereafter be " timestamp of every IDR frame |
Deviation post " can be separated with ", " between each every IDR frame information.
For example, #QQ-HLS-PRIVATE:0.0 | 376,3.0 | 368940,7.0 | 892060 indicate this TS fragment of 1.ts
In include three every IDR frames, and the timestamp of first every IDR frame be 0.0 second, deviation post be 376 bytes;Second every IDR frame
Timestamp is 3.0 seconds, and deviation post is 368940 bytes;The timestamp of third every IDR frame is 7.0 seconds, and deviation post is
892060 bytes.
It should be noted that the timestamp of each every IDR frame refers to the relative time in each TS fragment in the example above, but
In other embodiments, the timestamp of each every IDR frame can also be recorded using absolute time, this is not limited by the present invention.
In the embodiment of the present invention, the deviation post of every IDR frame refers to the offset word of the initial position of relatively entire video file
Section.
It should be noted that being to obtain the index by the change existing m3u8 file of video file in the example above
File, but in other embodiments, it can also be by the timestamp of the every IDR frame in video clip each in the video file and offset
Position is individually recorded as one different from the file of m3u8, this is not limited by the present invention.
In the embodiment of the present invention, if above-mentioned steps S710 and step S720 have background server execution, the method is also
It may include: to be sent to the m3u8 file after the privately owned label of above-mentioned insertion when receiving the playing request of front end player
The front end player.
Fig. 8 diagrammatically illustrates the flow chart of the method for video playing of another embodiment according to the present invention.This
The method and step of invention embodiment can be executed by terminal device, can also be executed by server-side, or by terminal device and
Server-side interaction executes, for example, can be executed by the terminal device 101 in above-mentioned Fig. 1, but the present invention is not limited to this.
In step S810, the playing request of the video file is sent.
For example, front end player sends the playing request of video file to background server.Wherein, the playing request can
To include HLS video playing address.
In step S820, the index file returned in response to the playing request is received.
For example, can be broadcast according to the HLS video in the playing request after background server receives the playing request
Address search is put to corresponding index file, and is back to the front end player.Wherein, the index file returned here can be with
It is the above-mentioned m3u8 file being inserted into standard m3u8 file after privately owned label.
In step S830, the index file is parsed, obtains the every IDR frame in the video file in each video clip
Timestamp and deviation post.
For example, can be parsed after the front end player receives the index file, to obtain the video
The timestamp and deviation post of every IDR frame in file in each video clip, and stored to local.
In the embodiment of the present invention, m3u8 file be can be by row parsing, and current label to be resolved is if standard label
It just parses, is just parsed according to the specification of privately owned label if privately owned label, just if Unknown Label according to the specification of standard label
It can abandon or directly report an error, depend on specific parsing strategy.
In the embodiment of the present invention, the method can also include: that front end player for example can be with standard HLS form support
Start to play the m3u8 file downloaded.
In the embodiment of the present invention, the method can also include: when SEEK occurs for user, according to the position SEEK and each
The duration (duration that the number after #EXTINF label is each TS fragment) of TS fragment (1) can position according to the following formula
To corresponding TS fragment:
Before (N-1) a TS fragment total duration≤position SEEK < top n TS fragment total duration (1)
In above-mentioned formula (1), it is assumed that N is the serial number of target TS fragment, wherein N is the positive integer more than or equal to 1.
For the m3u8 after the privately owned label of insertion in the above table 2, it is again assumed that the position of SEEK is 15s, substitute into above-mentioned
Formula (1) can calculate N=2, then TS fragment locating for the position SEEK is 2.ts.
In the embodiment of the present invention, the method can also include: inquiry and the nearest every IDR frame conduct of the SEEK positional distance
Target every IDR frame.
For example, the method for inquiry can be, it is assumed that the serial number N of TS fragment locating for the position SEEK, then the position SEEK exists
The position timestamp timestamp_offset=SEEK-preceding (N-1) a TS fragment total duration in n-th fragment, in target TS
It is Target id R that every IDR frame of the last one timestamp no more than the timestamp_offset is found in the privately owned label of fragment
Frame, and its available deviation post.
Here for the m3u8 after the privately owned label of insertion or in the above table 2, it is assumed that the position of SEEK is 15 seconds, then
TS fragment locating for the position SEEK is 2.ts, timestamp timestamp_offset=15 of the position SEEK in n-th fragment
- 10 seconds, as 5 seconds second.The every IDR frame list for traversing target TS fragment finds the last one timestamp no more than this
The every IDR frame of timestamp_offset, as 4.6 seconds, corresponding deviation post are 468940.
It should be noted that assuming that currently playing progress is less than the position SEEK, it is assumed for example that current in the example above
Playback progress is 5 seconds, and user dragged progress bar to 15 seconds backward, then used method provided in an embodiment of the present invention, inquires and is somebody's turn to do
The distance of the position SEEK 15 seconds is recently and the every IDR frames before being located at 15 seconds are that timestamp is 4.6 seconds every IDR frames as institute in 2.ts
State target every IDR frame.But the present invention is not limited to this, and in other embodiments, user may also back drag progress bar, that is, works as
Preceding playback progress is likely larger than the position SEEK.In further embodiments, it can also inquire nearest with the SEEK positional distance
And the every IDR frame after the position SEEK is as the target every IDR frame.
In the embodiment of the present invention, the method, which can also include: front end player, sends http request to background server
When, the deviation post of the target every IDR frame on http request headband.Or according to above-mentioned citing, then:
Range:bytes=468940-
Indicate the range that front end player requests 468940 byte of video file later to background server.
In the embodiment of the present invention, the method can also include: that front end player receives background server according to
Http request returns to the video data after the deviation post of the target every IDR frame, the as video data after target every IDR frame, preceding
The end player acquisition video data, which is decoded, to be played out, and quick SEEK in HLS protocol TS fragment is so far realized.
The disclosed method for being used for video playing of embodiment of the present invention, by when generating m3u8, standard m3u8's
On the basis of, toward each TS fragment before stamp privately owned label, the time of all every IDR frames in each TS piece is contained in privately owned label
Stamp and deviation post;Later, according to the position SEEK, the TS fragment of the position SEEK is first positioned, further according to the every IDR frame in privately owned label
Timestamp finds the deviation post for the every IDR frame for needing SEEK to arrive;Then, the content of the deviation post is requested, is carried out after decoding
It plays, on the one hand, SEEK in HLS protocol TS fragment can be fast implemented;On the other hand, true play position and the position SEEK it
Between deviation it is smaller, promoted user video viewing experience.
Fig. 9 diagrammatically illustrates the block diagram of the device according to an embodiment of the present invention for video playing.The present invention is implemented
The device 900 for video playing that mode provides, can be set the terminal device 101 in Fig. 1, also can be set in Fig. 1
In server 105, or can be part of module and be set to terminal device 101, part of module is set to server 105, this
Invention is not construed as limiting this.
As shown in figure 9, the device 900 for video playing that embodiment of the present invention provides may include: dragging information
Obtain module 910, video clip determining module 920 and target frame searching module 930.
Wherein, dragging data obtaining module 910 is configurable to obtain the current dragging location information of video file.
Video clip locating module 920 is configurable to determine the video file according to the current dragging location information
Target video segment.
Target frame searching module 930 is configurable to search the target video according to the index file of the video file
The target instantaneous decoding refresh frame nearest with current dragging positional distance in segment.
Wherein, the index file includes the time of the instantaneous decoding refresh frame in the video file in each video clip
Stamp.
In the exemplary embodiment, the target frame searching module may include dragging timestamp obtaining unit and target frame
Determination unit.
Wherein, the dragging timestamp obtaining unit is configurable to obtain the current dragging position regards in the target
Timestamp in frequency segment.
The target frame determination unit is configurable to according to the instantaneous decoding refresh frame in the target video segment
The timestamp of timestamp and the current dragging position in the target video segment determines the target instantaneous decoding refresh
Frame.
In the exemplary embodiment, the index file can also be including being in each video clip in the video file
When decoding refresh frame deviation post.
It in the exemplary embodiment, can also include that deviation post obtains module, broadcasting for the device of video playing 900
Request sending module and video data receiving module.
Wherein, the deviation post obtains module and is configurable to be solved immediately according to the index file acquisition target
The deviation post of code refresh frame.
The playing request sending module is configurable to be sent out according to the deviation post of the target instantaneous decoding refresh frame
Video is sent to continue playing request.
The video data receiving module, which is configurable to receive, continues working as playing request return in response to the video
Preceding video data.
It in the exemplary embodiment, can also include decoder module and playing module for the device of video playing 900.
Wherein, the decoder module is configurable to decode the current video data.
The playing module is configurable to the current video data after broadcast decoder.
It in the exemplary embodiment, can also include that spider module and frame information store for the device of video playing 900
Module.
Wherein, the spider module is configurable to traverse the video frame in the video file in each video clip, obtains
Frame type, timestamp and the deviation post of each video frame are taken, wherein the frame type includes instantaneous decoding refresh frame.
The frame information memory module is configurable to instant in each video clip in the video file that will acquire
The timestamp and deviation post of decoding refresh frame are stored to the index file.
In the exemplary embodiment, the index file can also include the standard label of each video clip.
In the exemplary embodiment, the frame information memory module may include label insertion unit.
Wherein, the label insertion unit is configurable in the index file before the standard label of each video clip
It is inserted into privately owned label.
Wherein, the privately owned label may include timestamp and the offset of the instantaneous decoding refresh frame in corresponding video segment
Position.
In the exemplary embodiment, the standard label may include the duration of video clip.
In the exemplary embodiment, the playing request sending module is also configured as sending broadcasting for the video file
Put request.
It in the exemplary embodiment, can also include index file receiving module and rope for the device of video playing 900
Quotation part parsing module.
Wherein, the index file receiving module is configurable to receive the index text returned in response to the playing request
Part.
The parsing index file is configurable to obtain the instant solution in the video file in each video clip
The timestamp and deviation post of code refresh frame.
The specific implementation of modules and/or unit in device provided in an embodiment of the present invention for video playing can
With referring to the content in the above-mentioned method for video playing, details are not described herein.
The device for video playing that embodiment of the present invention provides, by including in each video clip in video file
Every IDR frame timestamp index file, find and currently drag the Target id R nearest apart from front distance in target video segment
Frame improves positioning accuracy, optimizes video viewing experience.
Figure 10 diagrammatically illustrates the interface schematic diagram that user in video display process drags progress bar.
As shown in Figure 10,1000 top of display screen of terminal device is divided into the broadcast interface 1010 of player, lower part
1020 can show other pictures or text information, such as some relevant informations of currently playing video file, such as with
The comment information at family, the actor information of the video file or scenario information etc., this is not limited by the present invention.
User can start to play the video file with click play button 1011, show that the total duration of the video file is
44:48 points, user drags progress bar 1012 to current dragging position 1013, it is assumed here that current dragging position is 4:33 points.
Figure 11, which is diagrammatically illustrated, to be positioned using method shown in Fig. 3 to the interface schematic diagram of target instantaneous decoding refresh frame.
As shown in figure 11, according to above-mentioned Figure 10, after user's dragging progress bar divides to 04:33, using side in the related technology
Method, positioning to fragment starting point 04:24 are separately begun to continue to play the video file, be played with target within actual play point 04:24 minutes
04:33 minutes deviation of point is larger.
Figure 12, which is diagrammatically illustrated, to be positioned using method shown in Fig. 4 to the interface schematic diagram of target instantaneous decoding refresh frame.
It as shown in figure 12, is equally after user's dragging progress bar divides to 04:33, using of the invention real according to above-mentioned Figure 10
The method for applying example offer can position according to privately owned label and point open the beginning to 04:30 and continue to play, actual play point 04:30 minute and
Target broadcast point 04:33 divides deviation smaller.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description
Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more
Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould
The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, touch control terminal or network equipment etc.) executes embodiment according to the present invention
Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (15)
1. a kind of method for video playing characterized by comprising
Obtain the current dragging location information of video file;
The target video segment of the video file is determined according to the current dragging location information;
It is searched according to the index file of the video file nearest with current dragging positional distance in the target video segment
Target instantaneous decoding refresh frame;
Wherein, the index file includes the timestamp of the instantaneous decoding refresh frame in the video file in each video clip.
2. the method according to claim 1, wherein searching the mesh according to the index file of the video file
Mark target instantaneous decoding refresh frame nearest with current dragging positional distance in video clip, comprising:
Obtain timestamp of the current dragging position in the target video segment;
According to the timestamp of the instantaneous decoding refresh frame in the target video segment and the current dragging position in the mesh
Timestamp in mark video clip determines the target instantaneous decoding refresh frame.
3. the method according to claim 1, wherein the index file further includes respectively regarding in the video file
The deviation post of instantaneous decoding refresh frame in frequency segment;Wherein, the method also includes:
The deviation post of the target instantaneous decoding refresh frame is obtained according to the index file;
Video, which is sent, according to the deviation post of the target instantaneous decoding refresh frame continues playing request;
It receives and continues the current video data that playing request returns in response to the video.
4. according to the method described in claim 3, it is characterized by further comprising:
Decode the current video data;
Current video data after broadcast decoder.
5. the method according to claim 1, wherein further include:
The video frame in the video file in each video clip is traversed, frame type, timestamp and the offset of each video frame are obtained
Position, wherein the frame type includes instantaneous decoding refresh frame;
The timestamp and deviation post of instantaneous decoding refresh frame in the video file that will acquire in each video clip store
To the index file.
6. according to the method described in claim 5, it is characterized in that, the index file further includes the standard mark of each video clip
Label;The timestamp and deviation post of instantaneous decoding refresh frame in the video file that will acquire in each video clip store to
The index file, comprising:
Privately owned label is inserted into before the standard label of each video clip in the index file;
Wherein, the privately owned label includes the timestamp and deviation post of the instantaneous decoding refresh frame in corresponding video segment.
7. according to the method described in claim 6, it is characterized in that, the standard label includes the duration of video clip.
8. the method according to claim 1, wherein further include:
Send the playing request of the video file;
Receive the index file returned in response to the playing request;
Parse the index file, obtain the instantaneous decoding refresh frame in the video file in each video clip timestamp and
Deviation post.
9. a kind of device for video playing characterized by comprising
Data obtaining module is dragged, is configured to obtain the current dragging location information of video file;
Video clip determining module is configured to determine the target video of the video file according to the current dragging location information
Segment;
Target frame searching module is configured to be searched according to the index file of the video file in the target video segment and works as
The nearest target instantaneous decoding refresh frame of preceding dragging positional distance;
Wherein, the index file includes the timestamp of the instantaneous decoding refresh frame in the video file in each video clip.
10. device according to claim 9, which is characterized in that the target frame searching module includes:
Timestamp obtaining unit is dragged, is configured to obtain time of the current dragging position in the target video segment
Stamp;
Target frame determination unit is configured to according to the timestamp of the instantaneous decoding refresh frame in the target video segment and described
Timestamp of the current dragging position in the target video segment determines the target instantaneous decoding refresh frame.
11. device according to claim 9, which is characterized in that the index file further includes each in the video file
The deviation post of instantaneous decoding refresh frame in video clip;Wherein, described device further include:
Deviation post obtains module, is configured to obtain the bits of offset of the target instantaneous decoding refresh frame according to the index file
It sets;
Playing request sending module is configured to send video after continued broadcasting according to the deviation post of the target instantaneous decoding refresh frame
Put request;
Video data receiving module is configured to receive and continues the current video data that playing request returns in response to the video.
12. device according to claim 11, which is characterized in that further include:
Decoder module is configured to decode the current video data;
Playing module, the current video data after being configured to broadcast decoder.
13. device according to claim 9, which is characterized in that further include:
Spider module is configured to traverse the video frame in the video file in each video clip, obtains the frame class of each video frame
Type, timestamp and deviation post, wherein the frame type includes instantaneous decoding refresh frame;
Frame information memory module is configured to the instantaneous decoding refresh frame in the video file that will acquire in each video clip
Timestamp and deviation post are stored to the index file.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor
Such as method described in any item of the claim 1 to 8 is realized when row.
15. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device is configured to store one or more programs, when one or more of programs are by one or more of places
When managing device execution, so that one or more of processors realize such as method described in any item of the claim 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811166174.XA CN109348251B (en) | 2018-10-08 | 2018-10-08 | Method and device for video playing, computer readable medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811166174.XA CN109348251B (en) | 2018-10-08 | 2018-10-08 | Method and device for video playing, computer readable medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109348251A true CN109348251A (en) | 2019-02-15 |
CN109348251B CN109348251B (en) | 2021-05-11 |
Family
ID=65308670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811166174.XA Active CN109348251B (en) | 2018-10-08 | 2018-10-08 | Method and device for video playing, computer readable medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109348251B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111405354A (en) * | 2020-03-10 | 2020-07-10 | 亦非云互联网技术(上海)有限公司 | Optimization method and system for player channel switching, storage medium and player |
CN111479122A (en) * | 2020-04-13 | 2020-07-31 | 海信视像科技股份有限公司 | Video playing method, device, equipment and storage medium |
CN112329500A (en) * | 2019-08-05 | 2021-02-05 | 北京百度网讯科技有限公司 | Scene segment implementation method and device based on discrete frame and storage medium |
CN112423140A (en) * | 2020-12-16 | 2021-02-26 | 富盛科技股份有限公司 | Video playing method and device, electronic equipment and storage medium |
CN113473235A (en) * | 2021-06-16 | 2021-10-01 | 深圳锐取信息技术股份有限公司 | Method and device for generating 8K recorded and played playback video, storage medium and equipment |
CN113542888A (en) * | 2021-07-09 | 2021-10-22 | 北京百度网讯科技有限公司 | Video processing method and device |
CN113742518A (en) * | 2020-05-28 | 2021-12-03 | 伊姆西Ip控股有限责任公司 | Method, apparatus and computer program product for storing and providing video |
CN114584806A (en) * | 2022-03-07 | 2022-06-03 | 湖南国科微电子股份有限公司 | Video source file processing method, video playing method, device and equipment |
CN115002505A (en) * | 2022-08-02 | 2022-09-02 | 广州市千钧网络科技有限公司 | Time shift control method and device for interrupting reconnected live stream |
WO2024041406A1 (en) * | 2022-08-26 | 2024-02-29 | 广州市百果园信息技术有限公司 | Video target frame determination method, apparatus and device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065966A (en) * | 2013-03-20 | 2014-09-24 | 三星电子(中国)研发中心 | Method and device for extracting thumbnail in H.264 video file |
CN107277563A (en) * | 2017-05-12 | 2017-10-20 | 成都虚拟世界科技有限公司 | A kind of method, server and terminal generated with playing video file |
CN108076377A (en) * | 2017-12-26 | 2018-05-25 | 浙江大华技术股份有限公司 | A kind of storage of video, playback method, device, electronic equipment and storage medium |
-
2018
- 2018-10-08 CN CN201811166174.XA patent/CN109348251B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065966A (en) * | 2013-03-20 | 2014-09-24 | 三星电子(中国)研发中心 | Method and device for extracting thumbnail in H.264 video file |
CN107277563A (en) * | 2017-05-12 | 2017-10-20 | 成都虚拟世界科技有限公司 | A kind of method, server and terminal generated with playing video file |
CN108076377A (en) * | 2017-12-26 | 2018-05-25 | 浙江大华技术股份有限公司 | A kind of storage of video, playback method, device, electronic equipment and storage medium |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112329500A (en) * | 2019-08-05 | 2021-02-05 | 北京百度网讯科技有限公司 | Scene segment implementation method and device based on discrete frame and storage medium |
CN111405354A (en) * | 2020-03-10 | 2020-07-10 | 亦非云互联网技术(上海)有限公司 | Optimization method and system for player channel switching, storage medium and player |
CN111479122A (en) * | 2020-04-13 | 2020-07-31 | 海信视像科技股份有限公司 | Video playing method, device, equipment and storage medium |
CN113742518A (en) * | 2020-05-28 | 2021-12-03 | 伊姆西Ip控股有限责任公司 | Method, apparatus and computer program product for storing and providing video |
CN112423140A (en) * | 2020-12-16 | 2021-02-26 | 富盛科技股份有限公司 | Video playing method and device, electronic equipment and storage medium |
CN113473235A (en) * | 2021-06-16 | 2021-10-01 | 深圳锐取信息技术股份有限公司 | Method and device for generating 8K recorded and played playback video, storage medium and equipment |
CN113542888A (en) * | 2021-07-09 | 2021-10-22 | 北京百度网讯科技有限公司 | Video processing method and device |
CN113542888B (en) * | 2021-07-09 | 2024-04-09 | 北京百度网讯科技有限公司 | Video processing method and device, electronic equipment and storage medium |
CN114584806A (en) * | 2022-03-07 | 2022-06-03 | 湖南国科微电子股份有限公司 | Video source file processing method, video playing method, device and equipment |
CN115002505A (en) * | 2022-08-02 | 2022-09-02 | 广州市千钧网络科技有限公司 | Time shift control method and device for interrupting reconnected live stream |
WO2024041406A1 (en) * | 2022-08-26 | 2024-02-29 | 广州市百果园信息技术有限公司 | Video target frame determination method, apparatus and device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109348251B (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109348251A (en) | For the method, apparatus of video playing, computer-readable medium and electronic equipment | |
US11962835B2 (en) | Synchronizing internet (over the top) video streams for simultaneous feedback | |
US11537562B2 (en) | Auxiliary manifest file to provide timed metadata | |
US9712590B2 (en) | Method and device for transmitting streaming media | |
US11356493B2 (en) | Systems and methods for cloud storage direct streaming | |
US10515476B2 (en) | Image fetching for timeline scrubbing of digital media | |
US9026622B2 (en) | Systems, methods, and computer products for providing podcasts via IPTV | |
CN110149539A (en) | Method for broadcasting multimedia file, device, electronic equipment and storage medium | |
US20150172353A1 (en) | Method and apparatus for interacting with a media presentation description that describes a summary media presentation and an original media presentation | |
US11647252B2 (en) | Identification of elements in a group for dynamic element replacement | |
CN113767639B (en) | Method, apparatus and non-volatile computer readable medium for receiving media data | |
US20190313157A1 (en) | System and Method for a Scalable IPTV Recorder and Cloud DVR | |
CN113141522A (en) | Resource transmission method, device, computer equipment and storage medium | |
US20230217047A1 (en) | Method, system, and computer-readable recording medium for implementing fast-switching mode between channels in multi-live transmission environment | |
US20140136526A1 (en) | Discovery of live and on-demand content using metadata | |
US20230291945A1 (en) | System and method for detecting and reporting concurrent viewership of online audio-video content | |
US20230291942A1 (en) | Methods and systems for trick play using partial video file chunks | |
US20240022792A1 (en) | Method for bandwidth switching by cmaf and dash clients using addressable resource index tracks and events |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |