CN105228001B - A kind of method and system that FLV format videos play online - Google Patents

A kind of method and system that FLV format videos play online Download PDF

Info

Publication number
CN105228001B
CN105228001B CN201510624981.1A CN201510624981A CN105228001B CN 105228001 B CN105228001 B CN 105228001B CN 201510624981 A CN201510624981 A CN 201510624981A CN 105228001 B CN105228001 B CN 105228001B
Authority
CN
China
Prior art keywords
file
flv
flv format
files
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510624981.1A
Other languages
Chinese (zh)
Other versions
CN105228001A (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.)
Storm Group Ltd By Share Ltd
Original Assignee
Storm Group Ltd By Share 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 Storm Group Ltd By Share Ltd filed Critical Storm Group Ltd By Share Ltd
Priority to CN201510624981.1A priority Critical patent/CN105228001B/en
Publication of CN105228001A publication Critical patent/CN105228001A/en
Application granted granted Critical
Publication of CN105228001B publication Critical patent/CN105228001B/en
Active 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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/4402Processing 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/440218Processing 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
    • 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

Abstract

This application discloses the methods that FLV format videos play online, including:When server storage FLV format videos, the file header of FLV format video data packets is obtained;Corresponding description fileinfo is generated, and all description fileinfos are put together at before video file and are preserved;Client is received sends the asked FLV format video datas and corresponding description fileinfo that FLV format videos file returns after line playing request to server, and description fileinfo includes:FLV format video files are converted to the required information of TS fragments;Client generates corresponding TS index files according to description fileinfo and is sent to the player of client respectively, generates TS index file lists on a player;Player sends TS fragment playing requests according to TS index files tab sequential to client;Client is converted to TS fragments according to the corresponding FLV format video datas of TS fragment playing requests acquisition and is back to player;Player receives TS fragments and sequentially plays out.

Description

A kind of method and system that FLV format videos play online
Technical field
This application involves video broadcasting fields, specifically, be related to a kind of method that FLV format videos play online and System.
Background technology
Currently, mobile terminal order video from internet multimedia is more and more extensive, and common video has respectively The different format of kind.Video format refers to just organizing video data, audio data and the relevant information data in video Mode.Video data all realized according to certain specific format during store and transmit, different video lattice Formula realization method is also different.Common video format mainly has FLV and HLS etc. at this stage.
FLV is the abbreviation of FLASH VIDEO, and FLV stream media formats are as what the release of Flash MX developed regards Frequency format.Since the file of its formation is minimum, loading velocity is exceedingly fast so that network viewing video file is possibly realized, it goes out After now efficiently solving video file importing Flash, keep derived SWF file sizes huge, it cannot be on network well The problems such as use.
FLV is used by numerous video sharing of new generation websites, is current most fast, the most commonly used video transmission of growth Format.It is that developed on the basis of the compression algorithm of sorenson companies.FLV formats not only can be imported easily In Flash, speed is exceedingly fast, and can play the role of protecting copyright, and can not be broadcast by local Microsoft or REAL It puts device and plays video.
It is not accidental to obtain numerous website supports as a kind of emerging Internet video format by FLV.In addition to FLV is regarded The features such as frequency format occupation rate itself is low, video quality is good, small is suitble to outside network Development, enriches, various resource It is the unified online key factor for playing video format of FLV video formats.From newest transformer to escaping from prison again to each What sports cast, even online friend made shoot the video certainly etc. easy in a network to find.
There is provided FLV videos on the internet has two class websites, and one is the special video sharing website such as U.S. The websites YouTube, six domestic rooms, potato net etc..Another kind is the plate that portal website provides video podcast, is provided The video channel of oneself, such as Sina's video podcast, and the video using FLV formats.In addition, Baidu be also proposed about regarding The function of frequency search, the inside search out the video come and are substantially the FLV formats for using prevalence.
HLS (HTTP Live Streaming), is mainly used for the audio and video service of PC and Apple terminals.Including one The index file of m3u (8), TS media slicings file and key encrypt string file, and index file is for player to TS media slicings File carries out seek operations, and TS media slicing files include the video data of broadcasting.
Common stream media protocol mainly has HTTP progressive downloads and the real-time stream media protocol based on RTSP/RTP, this two The substantially entirely different thing of kind, more convenient and handy at present is to use HTTP progressive download methods.
As an independent FLV file.Although Flash video files are typically the Flash Player being delivered for use Control, FLV files itself are global functions to oneself and can playing or be converted to extended formatting, by being locally stored such as hard disk Or on CD.
There is following benefit using the video processing of FLV formats:
FLV is a kind of completely new streaming media video format, and it is flat that widely used Flash Player on webpage are utilized in it Video is integrated into Flash animations by platform.That is, as long as the visitor of website can see Flash animations, can naturally also see FLV format videos, without additionally installing other video plug-in units again, the use of FLV videos is brought greatly just to video transmission Profit.
Based on above-mentioned benefit, current trend stores the video file of FLV formats on the server, receives regarding for client Broadcasting is distributed after frequency playing request again.Client is first downloaded after receiving the video file that server is sent with FLV files The video information part of head, downloads actual FLV format video datas and plays out again later.
FLV can be played out on multiple platforms as a kind of video file format of prevalence.With network technology Development, online broadcasting video are more and more welcomed by the people.But since the video file of FLV formats on its head contains it The information such as all indexes of audio frequency and video frame so that the video file head of FLV formats is especially big, is carrying out FLV format videos It is especially long in the buffer time of video starting when file plays.If played online to FLV files, i.e., side plays below, The download buffer time of video start file head for needing to grow can be caused very much, and difference is had according to the difference of video footage It is different, it can generally reach 1M, seriously affect the experience that user sees online viewing FLV video files.
Current settling mode is the conversion that FLV format video files are completed by server, in the following manner:
(1) FLV file formats are converted into, local player plays are transmitted further to, utilize the smaller feature in the heads FLV To carry out the mode that video playing starting fast cache plays.
(2) multiple FLV files that FLV format video file divisions are segment video, in this way, the head of each small documents All very littles can also achieve the purpose that quickly to play.
(3) FLV format video files are converted into the video file of multiple TS formats, TS formats is carried out using HLS technologies The broadcasting of video file.
If according to said program, the format conversion process of FLV format videos is entirely to be completed in background server, meeting Bring following problem:
(1) prior art realizes that the video file FLV formats is converted to the video of other formats on the server File, but transformed video file must be transformed to multiple format to adapt to different video playing platforms, in this way, greatly The big amount of storage for increasing service, increases the cost of server.
(2) prior art realizes that the video file FLV formats is converted to the video of other formats on the server File causes same video to store the file of multiple formats on the server, and very hemp is brought to the file management of server It is tired.
(3) prior art realizes that the video file FLV formats is converted to the video of other formats on the server The data transmission of file, the i.e. video file of fragment, multiple small slicing files influences whether the laser propagation effect of file, is unfavorable for visitor The broadcasting of family end video.
(4) prior art realizes that the video file FLV formats is converted to the video of other formats on the server File, the network transmission performance efficiency between the fluidisation module and format converting module of server is low, is terminated so as to cause client Rating frequency file slack problem when playing out.
Invention content
In order to solve the problem in the above prior art, the object of the present invention is to provide a kind of FLV format videos The method and system played online.
The present invention provides a kind of methods that FLV format videos play online, including:
When server storage FLV format videos, the file header of FLV format video data packets is obtained;
Corresponding description fileinfo is generated according to the file header of acquisition, and all description fileinfos are centrally placed It is preserved before video file;
The client is received is asked to what server transmission FLV format videos file returned after line playing request FLV format video datas and corresponding description fileinfo, wherein
The description fileinfo includes:The FLV format videos file is converted to the required information of TS fragments;
The client generates corresponding TS index files according to the description fileinfo and is sent to described respectively The player of client generates TS index file lists on a player;
The player sends TS fragment playing requests according to the TS index files tab sequential to client;
The client obtains corresponding FLV format video datas according to the TS fragments playing request and is converted to TS fragments And it is back to the player;
The player receives the TS fragments and sequentially plays out.
Further, wherein the client is received sends FLV format videos file after line playing request to server The requested FLV format video datas and its corresponding description fileinfo returned, further comprises:
It, will according to the key frame of the FLV format videos source file after the server receives FLV format video source files The file header of the FLV format videos source file is dispersed into respective file header fragment, and is saved in FLV format videos source Corresponding position in file;
Corresponding FLV index files are generated according to the file header fragment, in order by all FLV index files of generation It is stored in before the FLV format video files with file header fragment and forms the description fileinfo.
Further, wherein the description fileinfo further comprises:
The description fileinfo has recorded the key frame information generated needed for the TS index files, wherein
The TS index files are further m3u8 files.
Further, wherein the TS index files have recorded the offset of each key frame in current TS fragment.
Further, wherein the player sends TS fragments according to the TS index files tab sequential to client Playing request further comprises:
The player sends the HTTP request that TS fragments play according to the TS index files, to client.
6, a kind of system that FLV format videos play online, on the client, which includes for the system setting:It connects Module, processing module and player are received,
The receiving module sends what FLV format videos file returned after line playing request for receiving to server Requested FLV format video datas and corresponding description fileinfo, wherein
For the FLV format videos in server storage, the server obtains the file of FLV format video data packets Head;
Corresponding description fileinfo is generated according to the file header of acquisition, and all description fileinfos are centrally placed It is preserved before video file;
The description fileinfo includes:The FLV format videos file is converted to the required information of TS fragments;
The processing module, for generating corresponding TS index files respectively according to the description fileinfo and sending To the player of the client, TS index file lists are generated on a player;
TS fragments are converted to according to the corresponding FLV format video datas of TS fragment playing requests acquisition and are back to described broadcast Put device;
The player, for sending TS fragment playing requests to client according to the TS index files tab sequential; And
It receives the TS fragments and sequentially plays out.
Further, wherein the description fileinfo, further for:
The description fileinfo, after receiving FLV format video source files by the server, according to the FLV formats The file header of the FLV format videos source file is dispersed into respective file header fragment by the key frame of video source file, and is protected It is stored to corresponding position in the FLV format videos source file;
Corresponding FLV index files are generated according to the file header fragment, in order by all FLV index files of generation It is stored in before the FLV format video files with file header fragment and is formed.
Further, wherein the description fileinfo, further for:
The description fileinfo has recorded the key frame information generated needed for the TS index files, wherein
The TS index files are further m3u8 files.
Further, wherein the TS index files have recorded the offset of each key frame in current TS fragment.
Further, wherein the player is further used for:
According to the TS index files, the HTTP request that TS fragments play is sent to client.
Compared with prior art, a kind of method and system that FLV format videos play online described herein, have with Lower advantage:
(1) file header of FLV format video files is distributed to each correspondence by the present invention according to key frame on the server Position increases File header information according to the file header of dispersion on the FLV format video files, and is regarded according to the online of client Frequency playing request returns to this document header, and client first accordingly generates the index file of TS fragments, and according to the index of generation The video file that the FLV video files of download are converted to TS fragments by file is sent to player and plays out, in this way, servicing Shift to an earlier date ready File header information on device only with information such as the Video Key frame positions be converted to needed for TS index files, such as The first buffering that FLV format video files play online is greatly reduced compared to the larger file headers of FLV, the present invention is first downloaded in this Time.
(2) present invention is on the server handled FLV format video files, and is carried out FLV formats in client and regarded The format conversion of frequency file had not only reduced format conversion management on the server, but also reduced in the multiple lattice of server storage The management of formula video file reduces server cost.
(3) present invention is on the server handled FLV format video files, and is carried out FLV formats in client and regarded The format conversion of frequency file, the FLV format video files stored on the server be include the complete of file header and video data Whole video file, influence of the transmission to video file can be reduced by carrying out the transmission of complete video file, ensure that client receives Conversion broadcasting is carried out to complete video file.
(4) present invention is on the server handled FLV format video files, and is carried out FLV formats in client and regarded The format conversion of frequency file, avoid on server carry out video format conversion caused by fluidisation module and format converting module it Between network transmission performance efficiency it is low, receive slack problem when video file plays out so as to cause client.
(5) present invention is on the server handled FLV format video files, and is carried out FLV formats in client and regarded The format conversion of frequency file, what it is in network transmission is single FLV files, can carry out acceleration transmission using P2P technologies.
Certainly, implementing any product of the application must be not necessarily required to reach all the above technique effect simultaneously.
Description of the drawings
Attached drawing described herein is used for providing further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please do not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
Fig. 1 is the method flow schematic diagram that the FLV format videos of the present invention play online;
Fig. 2 is the method flow schematic diagram that the FLV format videos described in the embodiment of the present invention 2 play online;
Fig. 3 is the system structure diagram that the FLV format videos of the present invention play online.
Specific implementation mode
Some vocabulary has such as been used to censure specific components in specification and claim.Those skilled in the art answer It is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with name The difference of title is used as the mode for distinguishing component, but is used as the criterion of differentiation with the difference of component functionally.Such as logical The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit In "." substantially " refer in receivable error range, those skilled in the art can be described within a certain error range solution Technical problem basically reaches the technique effect.In addition, " coupling " word includes any direct and indirect electric property coupling herein Means.Therefore, if it is described herein that a first device is coupled to a second device, then representing the first device can directly electrical coupling It is connected to the second device, or the second device indirectly electrically coupled through other devices or coupling means.Specification Subsequent descriptions be implement the application better embodiment, so it is described description be for the purpose of the rule for illustrating the application, It is not limited to scope of the present application.The protection domain of the application is when subject to appended claims institute defender.
The application is described in further detail below in conjunction with attached drawing, but not as the restriction to the application.
Embodiment 1:
As shown in Figure 1, be a kind of method that FLV format videos play online described in the embodiment of the present invention 1, including:
Step 101, when server storage FLV format videos, the file header of FLV format video data packets is obtained;According to obtaining The file header taken generates corresponding description fileinfo, and all description fileinfos are put together at before video file It preserves;The client is received sends the requested FLV that FLV format videos file returns after line playing request to server Format video data and its corresponding description fileinfo, wherein
The description fileinfo includes:The FLV format videos file is converted to the required information of TS fragments;Its In,
The file header of common FLV format videos file is bigger, not only contains Video Key information, further includes video The coded format of audio and video, the resolution ratio of video, the sample rate of audio/video, sampling precision, channel number, Mei Geyin in file The information such as the timestamp corresponding to the size information of frequently/video bag and each audio/video packet.
When this programme stores FLV format video files on the server, according to the key of the FLV format videos source file The file header of the FLV format videos source file is dispersed into respective file header fragment by frame, and is saved in the FLV formats and is regarded Corresponding position in frequency source file;Increase the description file letter before the file header of the FLV format videos file Breath, this describes the offset information that fileinfo has recorded each key frame in the FLV format video files.
When client plays online, first downloads this and describe fileinfo, accordingly generate the index file of TS fragments, do not need Download the file header of FLV format video source files again when video playing originates.This describes fileinfo and is regarded compared to FLV formats Therefore the information that the file header of frequency source file only needs record to generate needed for TS fragment index files substantially reduces the description The size of fileinfo.
Step 102, it is concurrent according to the description fileinfo to generate corresponding TS index files respectively for the client It send to the player of the client, generates TS index file lists on a player;Wherein,
The TS index files generated have recorded the offset of each key frame in the FLV format video files for needing to convert Information is measured, when player plays out seek operations, TS slicing files can be quickly found.
Step 103, the player sends the broadcasting of TS fragments to client according to the TS index files tab sequential and asks It asks.
Step 104, the client obtains corresponding FLV format video datas according to the TS fragments playing request and converts For TS fragments and it is back to the player;Wherein,
The video file of FLV formats all carries larger file header, is not easy to client fast cache, plays, by its turn Change file header, i.e. TS index files into, the format video of smaller TS fragments can be so that client be quick when play online The first video file of buffering.
Step 105, the player receives the TS fragments and sequentially plays out.
Embodiment 2:
As shown in Fig. 2, on the basis of embodiment 1, a kind of method that FLV format videos play online of the present invention, Including:
Step 201, when server storage FLV format videos, the file header of FLV format video data packets is obtained;According to obtaining The file header taken generates corresponding description fileinfo, and all description fileinfos are put together at before video file It preserves;The client is received sends the requested FLV that FLV format videos file returns after line playing request to server Format video data and its corresponding description fileinfo, wherein
The description fileinfo includes:The FLV format videos file is converted to the required information of TS fragments;
The FLV format videos file is as follows in the preservation process of server:
It, will according to the key frame of the FLV format videos source file after the server receives FLV format video source files The file header of the FLV format videos source file is dispersed into respective file header fragment, and is saved in FLV format videos source Corresponding position in file;
Corresponding FLV index files are generated according to the file header fragment, in order by all FLV index files of generation It is stored in before the FLV format video files with file header fragment and forms the description fileinfo.
Wherein, the information of the number and size with all frames before each key frame in the FLV file headers fragment, In order to facilitate the crucial frame index of increase in the TS index files of generation.
Step 202, it is concurrent according to the description fileinfo to generate corresponding TS index files respectively for the client It send to the player of the client, generates TS index file lists on a player;
It is described description fileinfo have recorded generate TS index files needed for information, wherein the TS index files into One step is m3u8 files;This describe fileinfo be the server preserve the FLV format videos file when according to The file header of FLV format videos generates;
The TS index files have recorded the offset of each key frame in current TS slicing files.
Step 203, the player sends the broadcasting of TS fragments to client according to the TS index files tab sequential and asks It asks;Wherein, the TS fragments playing request is the HTTP request sent by local server, for example, the player with http:// 127.0.0.1/vod.m3u8 is linked to client local server and is asked to play.
Step 204, the client obtains corresponding FLV format video datas according to the TS fragments playing request and converts For TS fragments and it is back to the player.
Step 205, it when the player plays out the video, is carried out according to the TS fragments and sequence that receive It plays.
Embodiment 3:
As shown in figure 3, for a kind of system that FLV format videos play online of the present invention, the system is arranged in client On end, which includes:Receiving module 301, processing module 302 and player 303.
The receiving module 301 connects with 302 phase lotus root of the processing module, is regarded for receiving to server transmission FLV formats The requested FLV format video datas and corresponding description fileinfo that frequency file returns after line playing request, In,
For the FLV format videos in server storage, the server obtains the file of FLV format video data packets Head;
Corresponding description fileinfo is generated according to the file header of acquisition, and all description fileinfos are centrally placed It is preserved before video file;
The description fileinfo includes:The FLV format videos file is converted to the required information of TS fragments.
The processing module 302 connects with the receiving module 301 and 303 phase lotus root of the player respectively, for according to institute It states description fileinfo to generate corresponding TS index files respectively and be sent to the player of the client, on a player Generate TS index file lists;
TS fragments are converted to according to the corresponding FLV format video datas of TS fragment playing requests acquisition and are back to described broadcast Put device.
The player 303 connects with 302 phase lotus root of the processing module, for according to the TS index files tab sequential TS fragment playing requests are sent to client;
And it receives the TS fragments and sequentially plays out.
In the present embodiment, described receive sends what FLV format videos file returned after line playing request to server Requested FLV format video datas and its corresponding description fileinfo, further comprise:
After receiving FLV format video source files, according to the key frame of the FLV format videos source file by the FLV lattice The file header of formula video source file is dispersed into respective file header fragment, and is saved in the FLV format videos source file each Self-corresponding position;
Corresponding FLV index files are generated according to the file header fragment, and by all FLV index files of generation by suitable Sequence is stored in before the FLV format video files with file header fragment and forms the description fileinfo.
The description fileinfo, further for:
The description fileinfo has recorded the key frame information generated needed for the TS index files, wherein
The TS index files are further m3u8 files.
Further, the TS index files have recorded the offset of each key frame in current TS fragment.
The player, is further used for:
According to the TS index files, the HTTP request that TS fragments play is sent to client.
Compared with prior art, a kind of method and system that FLV format videos play online described herein, have with Lower advantage:
(1) file header of FLV format video files is distributed to each correspondence by the present invention according to key frame on the server Position increases File header information according to the file header of dispersion on the FLV format video files, and is regarded according to the online of client Frequency playing request returns to this document header, and client first accordingly generates the index file of TS fragments, and according to the index of generation The video file that the FLV video files of download are converted to TS fragments by file is sent to player and plays out, in this way, servicing Shift to an earlier date ready File header information on device only with information such as the Video Key frame positions be converted to needed for TS index files, such as The first buffering that FLV format video files play online is greatly reduced compared to the larger file headers of FLV, the present invention is first downloaded in this Time.
(2) present invention is on the server handled FLV format video files, and is carried out FLV formats in client and regarded The format conversion of frequency file had not only reduced format conversion management on the server, but also reduced in the multiple lattice of server storage The management of formula video file reduces server cost.
(3) present invention is on the server handled FLV format video files, and is carried out FLV formats in client and regarded The format conversion of frequency file, the FLV format video files stored on the server be include the complete of file header and video data Whole video file, influence of the transmission to video file can be reduced by carrying out the transmission of complete video file, ensure that client receives Conversion broadcasting is carried out to complete video file.
(4) present invention is on the server handled FLV format video files, and is carried out FLV formats in client and regarded The format conversion of frequency file, avoid on server carry out video format conversion caused by fluidisation module and format converting module it Between network transmission performance efficiency it is low, receive slack problem when video file plays out so as to cause client.
(5) present invention is on the server handled FLV format video files, and is carried out FLV formats in client and regarded The format conversion of frequency file, what it is in network transmission is single FLV files, can carry out acceleration transmission using P2P technologies.
Several preferred embodiments of the application have shown and described in above description, but as previously described, it should be understood that the application Be not limited to form disclosed herein, be not to be taken as excluding other embodiments, and can be used for various other combinations, Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through in application contemplated scope described herein It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen It please be in the protection domain of appended claims.

Claims (6)

1. a kind of method that FLV format videos play online, which is characterized in that including:
When server storage FLV format videos, the file header of FLV format video data packets is obtained;
Corresponding description fileinfo is generated according to the file header of acquisition, and all description fileinfos are put together at and are regarded It is preserved before frequency file;
Client receives the asked FLV formats returned after line playing request to server transmission FLV format videos file and regards Frequency evidence and corresponding description fileinfo, wherein
It, will be described according to the key frame of the FLV format videos source file after the server receives FLV format video source files The file header of FLV format video source files is dispersed into respective file header fragment, and is saved in the FLV format videos source file In corresponding position;
Corresponding FLV index files are generated according to the file header fragment, all FLV index files of generation are preserved in order The description fileinfo, the description fileinfo packet are formed before the FLV format video files with file header fragment It includes:The FLV format videos file is converted to the required information of TS fragments;
The client generates corresponding TS index files according to the description fileinfo and is sent to the client respectively The player at end, generates TS index file lists on a player, and the TS index files have recorded each in current TS fragment The offset of key frame;
The player sends TS fragment playing requests according to the TS index files tab sequential to client;
The client is converted to TS fragments according to the corresponding FLV format video datas of TS fragments playing request acquisition and returns It is back to the player;
The player receives the TS fragments and sequentially plays out.
2. the method that FLV format videos according to claim 1 play online, which is characterized in that the description file letter Breath, further comprises:
The description fileinfo has recorded the key frame information generated needed for the TS index files, wherein
The TS index files are further m3u8 files.
3. the method that FLV format videos according to claim 1 play online, which is characterized in that the player according to The TS index files tab sequential sends TS fragment playing requests to client, further comprises:
The player sends the HTTP request that TS fragments play according to the TS index files, to client.
4. a kind of system that FLV format videos play online, which is characterized in that the system is arranged on the client, the system Including:Receiving module, processing module and player,
The receiving module is asked for receiving to what server transmission FLV format videos file returned after line playing request The FLV format video datas and corresponding description fileinfo asked, wherein
For the FLV format videos in server storage, the server obtains the file header of FLV format video data packets;
Corresponding description fileinfo is generated according to the file header of acquisition, and all description fileinfos are put together at and are regarded It is preserved before frequency file;
The description fileinfo, after receiving FLV format video source files by the server, according to the FLV format videos The file header of the FLV format videos source file is dispersed into respective file header fragment by the key frame of source file, and is saved in Corresponding position in the FLV format videos source file;Corresponding FLV indexes text is generated according to the file header fragment All FLV index files of generation are stored in shape before the FLV format video files with file header fragment by part in order At the description fileinfo includes:The FLV format videos file is converted to the required information of TS fragments;
The processing module, for generating corresponding TS index files respectively according to the description fileinfo and being sent to institute The player of client is stated, generates TS index file lists on a player, the TS index files have recorded current TS fragment In each key frame offset;
TS fragments are converted to according to the corresponding FLV format video datas of TS fragment playing requests acquisition and are back to the broadcasting Device;
The player, for sending TS fragment playing requests to client according to the TS index files tab sequential;And
It receives the TS fragments and sequentially plays out.
5. the system that FLV format videos according to claim 4 play online, which is characterized in that the description file letter Breath, further for:
The description fileinfo has recorded the key frame information generated needed for the TS index files, wherein
The TS index files are further m3u8 files.
6. the system that FLV format videos according to claim 4 play online, which is characterized in that the player, into one Step is used for:
According to the TS index files, the HTTP request that TS fragments play is sent to client.
CN201510624981.1A 2015-09-26 2015-09-26 A kind of method and system that FLV format videos play online Active CN105228001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510624981.1A CN105228001B (en) 2015-09-26 2015-09-26 A kind of method and system that FLV format videos play online

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510624981.1A CN105228001B (en) 2015-09-26 2015-09-26 A kind of method and system that FLV format videos play online

Publications (2)

Publication Number Publication Date
CN105228001A CN105228001A (en) 2016-01-06
CN105228001B true CN105228001B (en) 2018-11-06

Family

ID=54996635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510624981.1A Active CN105228001B (en) 2015-09-26 2015-09-26 A kind of method and system that FLV format videos play online

Country Status (1)

Country Link
CN (1) CN105228001B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820124A (en) * 2017-11-10 2018-03-20 暴风集团股份有限公司 Format conversion method, device and server
CN110113655B (en) * 2019-05-05 2021-09-21 北京奇艺世纪科技有限公司 Video playing method and device and user terminal
CN111147947B (en) * 2020-01-10 2021-12-10 深圳市同洲电子股份有限公司 Websocket-based flv video transmission and webpage playing method
CN111866603B (en) * 2020-07-21 2022-04-26 广州市保伦电子有限公司 Video file production method based on SRS, background server and system
CN113038033B (en) * 2021-03-02 2023-07-07 深圳市浩科电子有限公司 Method for acquiring video
CN113079386B (en) * 2021-03-19 2023-01-17 北京百度网讯科技有限公司 Video online playing method and device, electronic equipment and storage medium
CN113242447B (en) * 2021-05-10 2022-05-17 北京奇艺世纪科技有限公司 Video data processing method and device
CN113438505A (en) * 2021-06-02 2021-09-24 曙光网络科技有限公司 Video file restoration method and device, computer equipment and storage medium
CN113395589B (en) * 2021-06-11 2023-02-10 深圳万兴软件有限公司 Video file playing method and device, computer equipment and storage medium
CN114025201A (en) * 2021-10-29 2022-02-08 恒安嘉新(北京)科技股份公司 Video playing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011150644A1 (en) * 2010-12-17 2011-12-08 华为技术有限公司 Method and apparatus for acquiring and transmitting streaming media data in the process of initiation
CN103763637A (en) * 2014-01-21 2014-04-30 北京云视睿博传媒科技有限公司 Stream media broadcasting method and system
CN104349176A (en) * 2013-07-30 2015-02-11 中国电信股份有限公司 Self-adaptive stream media system, downloading method and stream media server, user terminal
CN104661058A (en) * 2013-11-20 2015-05-27 深圳市云帆世纪科技有限公司 MP4 video on demand data stream transmission method, client side and video on demand system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2870770A2 (en) * 2012-07-09 2015-05-13 VID SCALE, Inc. Power aware video decoding and streaming

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011150644A1 (en) * 2010-12-17 2011-12-08 华为技术有限公司 Method and apparatus for acquiring and transmitting streaming media data in the process of initiation
CN104349176A (en) * 2013-07-30 2015-02-11 中国电信股份有限公司 Self-adaptive stream media system, downloading method and stream media server, user terminal
CN104661058A (en) * 2013-11-20 2015-05-27 深圳市云帆世纪科技有限公司 MP4 video on demand data stream transmission method, client side and video on demand system
CN103763637A (en) * 2014-01-21 2014-04-30 北京云视睿博传媒科技有限公司 Stream media broadcasting method and system

Also Published As

Publication number Publication date
CN105228001A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN105228001B (en) A kind of method and system that FLV format videos play online
US11917323B2 (en) System and method for modifying media streams using metadata
Erman et al. Over the top video: The gorilla in cellular networks
US8843596B2 (en) Conversion between streaming media communication protocols
CN105208440B (en) A kind of method and system that MP4 format video plays online
CN109348251B (en) Method and device for video playing, computer readable medium and electronic equipment
CN105611395B (en) A kind of method and system that MP4 format video plays online
KR20170012471A (en) Enhanced streaming media playback
US10033788B2 (en) Method and a system for smooth streaming of media content in a distributed content delivery network
CN109587514B (en) Video playing method, medium and related device
JP6338709B2 (en) Streaming apparatus and method thereof, streaming service system using the same, and computer-readable recording medium (streaming apparatus and method thereof, streaming service system using the streaming medium and computer readable)
CN104661058A (en) MP4 video on demand data stream transmission method, client side and video on demand system
CN108156478A (en) Mp4 formatted files turn the video on-demand system and method for hls forms
CN104125229A (en) Streaming media playing method and streaming media playing device
WO2017185601A1 (en) Method and device for providing and downloading video
CN103024604A (en) Device and method used for realizing seamless connection of ts files
CN109842804A (en) Processing method and server, the computer storage medium of audio, video data
CN108174284B (en) Android system-based video decoding method
CN105992022A (en) On-line recording and downloading method and system
CN105592369B (en) A kind of video frequency abstract processing method and processing device
CN113923502B (en) Live video playing method and device
Van Deursen et al. On media delivery protocols in the web
US9060044B2 (en) System and method to actively transfer video content across device during video playback (active playback)
EP2378441A1 (en) Method and system for comparing media assets
US9237178B2 (en) Combined binary string for signaling byte range of media fragments in adaptive streaming

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100191 Beijing, Xueyuan Road No. 51, the first to enjoy the science and technology building, floor 6,

Applicant after: Storm group Limited by Share Ltd

Address before: 100191 Beijing, Xueyuan Road No. 51, the first to enjoy the science and technology building, floor 6,

Applicant before: Beijing Baofeng Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20190705

Granted publication date: 20181106