CN105208440B - A kind of method and system that MP4 format video plays online - Google Patents

A kind of method and system that MP4 format video plays online Download PDF

Info

Publication number
CN105208440B
CN105208440B CN201510609838.5A CN201510609838A CN105208440B CN 105208440 B CN105208440 B CN 105208440B CN 201510609838 A CN201510609838 A CN 201510609838A CN 105208440 B CN105208440 B CN 105208440B
Authority
CN
China
Prior art keywords
file
format video
fragment
format
information
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
CN201510609838.5A
Other languages
Chinese (zh)
Other versions
CN105208440A (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 CN201510609838.5A priority Critical patent/CN105208440B/en
Publication of CN105208440A publication Critical patent/CN105208440A/en
Application granted granted Critical
Publication of CN105208440B publication Critical patent/CN105208440B/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/84Generation or processing of descriptive data, e.g. content descriptors
    • 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
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

This application discloses a kind of methods that MP4 format video plays online, it include: that client receives the requested MP4 format video data returned after line playing request to server transmission MP4 format video file and corresponding description the file information, wherein, description the file information includes: that MP4 format video file is converted to information required for TS fragment;Client generates corresponding TS index file according to description the file information respectively and is sent to the player of client, generates the list of TS index file on a player;Player sends TS fragment playing request to client according to TS index file tab sequential;Client is converted to TS fragment according to the corresponding MP4 format video data of TS fragment playing request acquisition and is back to player;Player receives TS fragment and sequentially plays out.The first buffer time that MP4 format video file plays online is greatly reduced in the present invention.

Description

A kind of method and system that MP4 format video plays online
Technical field
This application involves video broadcasting fields, specifically, be related to a kind of method that MP4 format video plays online and System.
Background technique
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, which just refers to, organizes video data, audio data and the relevant information data in video Mode.Video data is all to realize during storing and transmitting according to certain specific format, different video lattice Formula implementation is also different.Common video format mainly has FLV, MP4 and HLS etc. at this stage.
MP4, full name MPEG-4Part 14, are a kind of multimedia computer File Formats using MPEG-4, and secondary shelves are entitled MP4, based on the digital message of storage and digital video signal.MP4 is a set of compression and coding standard for audio, video information, by " dynamic image expert group " (Moving Picture of International Organization for standardization (ISO) and International Electrotechnical Commission (IEC) subordinate Experts Group, i.e. MPEG) it formulates.
MP4 file format is an open video format, can almost be used to describe all media structures, MP4 Media description in file is to separate, and the tissue of media data is also very free, does not need according to the time with media data Sequence arrangement or even media data can directly quote alternative document.Meanwhile MP4 also supports Streaming Media, MP4 extensive at present It is the representative of HD video for encapsulating h.264 video and AAC audio.
General MP4 file most importantly two parts, one is the video information part with MP4 file header, here What side saved is Video Key information, including the coded format of audio-video, the resolution ratio of video, audio/video in video file Sample rate, sampling precision, channel number, corresponding to the size information of each audio/video packet and each audio/video packet The information such as timestamp, another part are actual MP4 format video datas.The player of mobile terminal is playing MP4 format view When frequency, the video information part for having MP4 file header can be first requested.
HLS (HTTP Live Streaming), is mainly used for the audio-video service of PC and Apple terminal.Including one The index file of m3u (8), TS media slicing file and key encrypt string file, and index file is for player to TS media slicing File carries out seek operation, and TS media slicing file includes the video data of broadcasting.
Common stream media protocol mainly has HTTP progressive download 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 with HTTP progressive download method.
There is following benefit using the video processing of MP4 format:
(1) different encryption algorithms different audio/video objects can be used, to improve the pressure of audio/video Contracting efficiency;
(2) respectively relatively independent between audio/video object, improve the reusability of multi-medium data;
(3) allow user to operate single audio/video object, facilitate the interactive experience of user;
(4) allow the flexible allocation code rate between different audio/video objects, may be implemented to be distributed according to significance level How much is byte: can distribute important object more byte, less byte can be distributed secondary object, so as to low Preferable effect is obtained under code rate.
(5) naturetone/the video object and synthesis audio video object are integrated with can be convenient.
Based on above-mentioned benefit, current trend stores the video file of MP4 format on the server, receives the view of client Broadcasting is distributed after frequency playing request again.First downloading has MP4 file after client receives the video file that server is sent The video information part of head, downloads actual MP4 format video data again later and plays out.
A kind of video file format of the MP4 as prevalence, can play out on multiple platforms.With network technology Development, online broadcasting video are more and more welcomed by the people.But since the video file of MP4 format on its head contains it The information such as all indexes of audio frequency and video frame are carrying out MP4 format video so that the video file head of MP4 format is especially big It is especially long in the buffer time of video starting when file plays.If played online to MP4 file, i.e., side plays below, It will cause the downloading buffer time for the video start file head for needing to grow very much, and difference had according to the difference of video footage It is different, it generally can achieve 1M, seriously affected the experience that user sees online viewing MP4 video file.
Current settling mode is the conversion that MP4 format video file is completed by server, in the following manner:
(1) it is converted into FLV file format, is transmitted further to local player plays, utilizes the lesser feature in the head FLV To carry out the mode that video playing starting fast cache plays.
It (2) is multiple MP4 files of segment video MP4 format video file division, in this way, the head of each small documents All very littles also can achieve the purpose quickly played.
(3) MP4 format video file is converted into the video file of multiple TS formats, carries out TS format using HLS technology The broadcasting of video file.
If the format conversion process of MP4 format video is entirely to complete in background server, meeting according to above scheme Bring following problem:
(1) prior art realizes that the video file MP4 format is converted to the video of other formats on the server File, but the video file after conversion must be transformed to multiple format to adapt to different video playing platforms, in this way, greatly The amount of storage for increasing service greatly, increases the cost of server.
(2) prior art realizes that the video file MP4 format 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, brings very hemp to the file management of server It is tired.
(3) prior art realizes that the video file MP4 format is converted to the video of other formats on the server File, the i.e. video file of fragment, the data transmission of multiple small slicing files influence whether the laser propagation effect of file, are unfavorable for visitor The broadcasting of family end video.
(4) prior art realizes that the video file MP4 format is converted to the video of other formats on the server File, the network transmission performance low efficiency between the fluidisation module and format converting module of server, so as to cause client's termination Rating frequency file slack problem when playing out.
Summary of the invention
In order to solve the problem in the above prior art, the object of the present invention is to provide a kind of MP4 format videos The method and system played online.
The present invention provides a kind of methods that MP4 format video plays online, comprising:
The client is received is requested to what server transmission MP4 format video file returned after line playing request MP4 format video data and corresponding description the file information, wherein
The description the file information includes: that the MP4 format video file is converted to information required for TS fragment;
The client generates corresponding TS index file according to the description the file information respectively and is sent to described The player of client generates the list of TS index file on a player;
The player sends TS fragment playing request to client according to the TS index file tab sequential;
The client obtains corresponding MP4 format video data according to the TS fragment playing request and is converted to TS fragment And it is back to the player;
The player receives the TS fragment and sequentially plays out.
Further, wherein the client, which is received, sends MP4 format video file after line playing request to server The requested MP4 format video data returned and its corresponding description the file information further comprise:
It, will according to the key frame of the MP4 format video source file after the server receives MP4 format video source file The file header of the MP4 format video source file is dispersed into respective file header fragment, and is saved in MP4 format video source Corresponding position in file;
Corresponding MP4 index file is generated according to the file header fragment, in order by all MP4 index files of generation It is stored in front of the MP4 format video file with file header fragment and forms the description the file information.
Further, wherein the description the file information further comprises:
Key frame information needed for the description the file information has recorded the generation TS index file, wherein
The TS index file is further m3u8 file.
Further, wherein the TS index file has recorded the offset of each key frame in current TS fragment.
Further, wherein the player sends TS fragment to client according to the TS index file tab sequential Playing request further comprises:
The player sends the HTTP request that TS fragment plays according to the TS index file, to client.
A kind of system that MP4 format video plays online, on the client, which includes: to receive for the system setting Module, processing module and player,
The receiving module sends what MP4 format video file returned after line playing request for receiving to server Requested MP4 format video data and corresponding description the file information, wherein
The description the file information includes: that the MP4 format video file is converted to information required for TS fragment;
The processing module, for generating corresponding TS index file respectively according to the description the file information and sending To the player of the client, the list of TS index file is generated on a player;
TS fragment is converted to according to the corresponding MP4 format video data of TS fragment playing request acquisition and is back to described broadcast Put device;
The player, for sending TS fragment playing request to client according to the TS index file tab sequential; And
It receives the TS fragment and sequentially plays out.
Further, wherein in, the description the file information, further are as follows:
The description the file information, after receiving MP4 format video source file by the server, according to the MP4 format The file header of the MP4 format video 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 MP4 format video source file;
Corresponding MP4 index file is generated according to the file header fragment, in order by all MP4 index files of generation It is stored in front of the MP4 format video file with file header fragment and is formed.
Further, wherein the description the file information, further are as follows:
Key frame information needed for the description the file information has recorded the generation TS index file, wherein
The TS index file is further m3u8 file.
Further, wherein the TS index file has recorded the offset of each key frame in current TS fragment.
Further, wherein the player is further used for:
According to the TS index file, the HTTP request that TS fragment plays is sent to client.
Compared with prior art, a kind of method and system that MP4 format video plays online described herein, have with Lower advantage:
(1) file header of MP4 format video file is distributed to each correspondence according to key frame on the server by the present invention Position increases File header information according to the file header of dispersion on the MP4 format video file, and according to the online view of client Frequency playing request returns to this document head information, and client first accordingly generates the index file of TS fragment, and according to the index of generation The video file that the MP4 video file of downloading is converted to TS fragment is sent to player and played out by file, in this way, servicing Shift to an earlier date on device ready File header information only have be converted to TS index file needed for the information such as Video Key frame position, such as The first buffering that MP4 format video file plays online is greatly reduced compared to the biggish file header of MP4, the present invention is first downloaded in this Time.
(2) present invention is on the server handled MP4 format video file, and carries out MP4 format view in client The format of frequency file is converted, and format management conversion on the server had not only been reduced, but also is reduced and stored multiple lattice in server The management of formula video file reduces server cost.
(3) present invention is on the server handled MP4 format video file, and carries out MP4 format view in client The format of frequency file is converted, and the MP4 format video file stored on the server is include file header and video data complete Whole video file, the transmission for carrying out complete video file can reduce the influence transmitted to video file, guarantee that client receives Conversion broadcasting is carried out to complete video file.
(4) present invention is on the server handled MP4 format video file, and carries out MP4 format view in client The format of frequency file is converted, avoid carried out on server fluidisation module and format converting module caused by video format conversion it Between network transmission performance low efficiency, receive slack problem when video file plays out so as to cause client.
(5) present invention is on the server handled MP4 format video file, and carries out MP4 format view in client The format of frequency file is converted, and what it is in network transmission is single MP4 file, and P2P technology can be used and carry out acceleration transmission.
Certainly, any product for implementing the application must be not necessarily required to reach all the above technical effect simultaneously.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the method flow schematic diagram that MP4 format video of the invention plays online;
Fig. 2 is the method flow schematic diagram that MP4 format video plays online described in the embodiment of the present invention 2;
Fig. 3 is the system structure diagram that MP4 format video of the invention plays online.
Specific embodiment
As used some vocabulary to censure specific components in the specification and claims.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 as the mode for distinguishing component, but with the difference of component functionally as the criterion of differentiation.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 within the acceptable error range, those skilled in the art can within a certain error range solve described in Technical problem basically reaches the technical 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 intended to limit the scope of the present application.The protection scope of the application is as defined by the appended claims.
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, being a kind of method that MP4 format video plays online described in the embodiment of the present invention 1, comprising:
Step 101, the client, which is received, sends what MP4 format video file returned after line playing request to server Requested MP4 format video data and its corresponding description the file information, wherein
The description the file information includes: that the MP4 format video file is converted to information required for TS fragment;Its In,
The file header of common MP4 format video file is bigger, not only contains Video Key information, further includes video The coded format of audio-video, the resolution ratio of video, the sample rate of audio/video, sampling precision, channel number, Mei Geyin in file The information such as timestamp corresponding to frequently/video bag size information and each audio/video packet.
When this programme stores MP4 format video file on the server, according to the key of the MP4 format video source file The file header of the MP4 format video source file is dispersed into respective file header fragment by frame, and is saved in the MP4 format view Corresponding position in frequency source file;Increase the description file letter before the file header of the MP4 format video file Breath, this describes the offset information that the file information has recorded each key frame in the MP4 format video file.
When client plays online, first downloads this and describe the file information, accordingly generate the index file of TS fragment, do not need Download the file header of MP4 format video source file again in video playing starting.This describes the file information and regards compared to MP4 format Therefore information needed for the file header of frequency source file only needs to record generation TS fragment index file substantially reduces the description The size of the file information.
Step 102, it is concurrent according to the description the file information to generate corresponding TS index file respectively for the client It send to the player of the client, generates the list of TS index file on a player;Wherein,
The TS index file generated has recorded the offset of each key frame in the MP4 format video file for needing to convert Information is measured, when player plays out seek operation, TS slicing files can be quickly found.
Step 103, the player sends the broadcasting of TS fragment to client according to the TS index file tab sequential and asks It asks.
Step 104, the client obtains corresponding MP4 format video data according to the TS fragment playing request and converts For TS fragment and it is back to the player;Wherein,
The video file of MP4 format all has biggish file header, is not easy to client fast cache, plays, by its turn Change file header, i.e. TS index file into, the format video of lesser TS fragment is quick when can client be played online Buffer first video file.
Step 105, the player receives the TS fragment and sequentially plays out.
Embodiment 2:
As shown in Fig. 2, on the basis of embodiment 1, a kind of method that MP4 format video plays online of the invention, Include:
Step 201, the client, which is received, sends what MP4 format video file returned after line playing request to server Requested MP4 format video data and its corresponding description the file information, wherein
The description the file information includes: that the MP4 format video file is converted to information required for TS fragment;
The MP4 format video file is as follows in the preservation process of server:
It, will according to the key frame of the MP4 format video source file after the server receives MP4 format video source file The file header of the MP4 format video source file is dispersed into respective file header fragment, and is saved in MP4 format video source Corresponding position in file;
Corresponding MP4 index file is generated according to the file header fragment, in order by all MP4 index files of generation It is stored in front of the MP4 format video file with file header fragment and forms the description the file information.
Wherein, the information of the number with all frames before each key frame in the MP4 file header fragment and size, In order to facilitate the crucial frame index of increase in the TS index file of generation.
Step 202, it is concurrent according to the description the file information to generate corresponding TS index file respectively for the client It send to the player of the client, generates the list of TS index file on a player;
The description the file information have recorded generate TS index file needed for information, wherein the TS index file into One step is m3u8 file;This describe the file information be the server save the MP4 format video file when according to The file header of MP4 format video generates;
The TS index file has recorded the offset of each key frame in current TS slicing files.
Step 203, the player sends the broadcasting of TS fragment to client according to the TS index file tab sequential and asks It asks;Wherein, the TS fragment playing request is the HTTP request sent by local server, for example, the player with Http: // 127.0.0.1/vod.m3u8 links to the request broadcasting of client local server.
Step 204, the client obtains corresponding MP4 format video data according to the TS fragment playing request and converts For TS fragment and it is back to the player.
Step 205, it when the player plays out the video, is carried out according to the TS fragment and sequence that receive It plays.
Embodiment 3:
As shown in figure 3, being a kind of system that MP4 format video plays online of the 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 the 302 phase lotus root of processing module, sends MP4 format view for receiving to server The requested MP4 format video data and corresponding description the file information that frequency file returns after line playing request, In,
The description the file information includes: that the MP4 format video file is converted to information required for TS fragment.
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 the file information to generate corresponding TS index file respectively and be sent to the player of the client, on a player Generate the list of TS index file;
TS fragment is converted to according to the corresponding MP4 format video data of TS fragment playing request acquisition and is back to described broadcast Put device.
The player 303 connects with the 302 phase lotus root of processing module, for according to the TS index file tab sequential TS fragment playing request is sent to client;
And it receives the TS fragment and sequentially plays out.
In the present embodiment, described receive sends what MP4 format video file returned after line playing request to server Requested MP4 format video data and its corresponding description the file information further comprise:
After receiving MP4 format video source file, according to the key frame of the MP4 format video source file by the MP4 lattice The file header of formula video source file is dispersed into respective file header fragment, and is saved in the MP4 format video source file each Self-corresponding position;
Corresponding MP4 index file is generated according to the file header fragment, and by all MP4 index files of generation by suitable Sequence is stored in front of the MP4 format video file with file header fragment and forms the description the file information.
The description the file information, further are as follows:
Key frame information needed for the description the file information has recorded the generation TS index file, wherein
The TS index file is further m3u8 file.
Further, the TS index file has recorded the offset of each key frame in current TS fragment.
The player, is further used for:
According to the TS index file, the HTTP request that TS fragment plays is sent to client.
Compared with prior art, a kind of method and system that MP4 format video plays online described herein, have with Lower advantage:
(1) file header of MP4 format video file is distributed to each correspondence according to key frame on the server by the present invention Position increases File header information according to the file header of dispersion on the MP4 format video file, and according to the online view of client Frequency playing request returns to this document head information, and client first accordingly generates the index file of TS fragment, and according to the index of generation The video file that the MP4 video file of downloading is converted to TS fragment is sent to player and played out by file, in this way, servicing Shift to an earlier date on device ready File header information only have be converted to TS index file needed for the information such as Video Key frame position, such as The first buffering that MP4 format video file plays online is greatly reduced compared to the biggish file header of MP4, the present invention is first downloaded in this Time.
(2) present invention is on the server handled MP4 format video file, and carries out MP4 format view in client The format of frequency file is converted, and format management conversion on the server had not only been reduced, but also is reduced and stored multiple lattice in server The management of formula video file reduces server cost.
(3) present invention is on the server handled MP4 format video file, and carries out MP4 format view in client The format of frequency file is converted, and the MP4 format video file stored on the server is include file header and video data complete Whole video file, the transmission for carrying out complete video file can reduce the influence transmitted to video file, guarantee that client receives Conversion broadcasting is carried out to complete video file.
(4) present invention is on the server handled MP4 format video file, and carries out MP4 format view in client The format of frequency file is converted, avoid carried out on server fluidisation module and format converting module caused by video format conversion it Between network transmission performance low efficiency, receive slack problem when video file plays out so as to cause client.
(5) present invention is on the server handled MP4 format video file, and carries out MP4 format view in client The format of frequency file is converted, and what it is in network transmission is single MP4 file, and P2P technology can be used and carry out acceleration transmission.
Above description shows and describes several preferred embodiments of the present application, but as previously described, it should be understood that the application Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, 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 scope of appended claims.

Claims (8)

1. a kind of method that MP4 format video plays online characterized by comprising
When storing MP4 format video file on the server, according to the key frame of MP4 format video source file by the MP4 lattice The file header of formula video source file is dispersed into respective file header fragment, and is saved in the MP4 format video source file each Self-corresponding position;Increase description the file information before the file header of the MP4 format video file, this describes the file information Have recorded the offset information of each key frame in the MP4 format video file;
Client, which is received, sends the requested MP4 format view that MP4 format video file returns after line playing request to server Frequency evidence and corresponding description the file information, wherein
The description the file information includes: that the MP4 format video file is converted to information required for TS fragment;
It, will be described according to the key frame of the MP4 format video source file after the server receives MP4 format video source file The file header of MP4 format video source file is dispersed into respective file header fragment, and is saved in the MP4 format video source file In corresponding position;
Corresponding MP4 index file is generated according to the file header fragment, all MP4 index files of generation are saved in order The description the file information is formed before the MP4 format video file with file header fragment
The client generates corresponding TS index file according to the description the file information respectively and is sent to the client The player at end generates the list of TS index file on a player;
The player sends TS fragment playing request to client according to the TS index file tab sequential;
The client is converted to TS fragment according to the corresponding MP4 format video data of TS fragment playing request acquisition and returns It is back to the player;
The player receives the TS fragment and sequentially plays out.
2. the method that MP4 format video according to claim 1 plays online, which is characterized in that the description file letter Breath further comprises:
Key frame information needed for the description the file information has recorded the generation TS index file, wherein
The TS index file is further m3u8 file.
3. the method that MP4 format video according to claim 2 plays online, which is characterized in that the TS index file Have recorded the offset of each key frame in current TS fragment.
4. the method that MP4 format video according to claim 1 plays online, which is characterized in that the player according to The TS index file tab sequential sends TS fragment playing request to client, further comprises:
The player sends the HTTP request that TS fragment plays according to the TS index file, to client.
5. a kind of system that MP4 format video plays online, which is characterized in that the system is arranged on the client, with service Device interaction, which includes: receiving module, processing module and player,
When storing MP4 format video file on the server, according to the key frame of MP4 format video source file by the MP4 lattice The file header of formula video source file is dispersed into respective file header fragment, and is saved in the MP4 format video source file each Self-corresponding position;Increase description the file information before the file header of the MP4 format video file, this describes the file information Have recorded the offset information of each key frame in the MP4 format video file;
The receiving module is asked for receiving to what server transmission MP4 format video file returned after line playing request The MP4 format video data asked and corresponding description the file information, wherein
The description the file information includes: that the MP4 format video file is converted to information required for TS fragment;
The description the file information, after receiving MP4 format video source file by the server, according to the MP4 format video The file header of the MP4 format video source file is dispersed into respective file header fragment by the key frame of source file, and is saved in Corresponding position in the MP4 format video source file;Corresponding MP4 index text is generated according to the file header fragment All MP4 index files of generation are stored in front of the MP4 format video file with file header fragment in order and are formed by part
The processing module, for generating corresponding TS index file respectively according to the description the file information and being sent to institute The player of client is stated, generates the list of TS index file on a player;
TS fragment is converted to according to the corresponding MP4 format video data of TS fragment playing request acquisition and is back to the broadcasting Device;
The player, for sending TS fragment playing request to client according to the TS index file tab sequential;And
It receives the TS fragment and sequentially plays out.
6. the system that MP4 format video according to claim 5 plays online, which is characterized in that the description file letter Breath, further are as follows:
Key frame information needed for the description the file information has recorded the generation TS index file, wherein
The TS index file is further m3u8 file.
7. the system that MP4 format video according to claim 6 plays online, which is characterized in that the TS index file Have recorded the offset of each key frame in current TS fragment.
8. the system that MP4 format video according to claim 5 plays online, which is characterized in that the player, into one Step is used for:
According to the TS index file, the HTTP request that TS fragment plays is sent to client.
CN201510609838.5A 2015-09-22 2015-09-22 A kind of method and system that MP4 format video plays online Active CN105208440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510609838.5A CN105208440B (en) 2015-09-22 2015-09-22 A kind of method and system that MP4 format video plays online

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510609838.5A CN105208440B (en) 2015-09-22 2015-09-22 A kind of method and system that MP4 format video plays online

Publications (2)

Publication Number Publication Date
CN105208440A CN105208440A (en) 2015-12-30
CN105208440B true CN105208440B (en) 2019-03-12

Family

ID=54955819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510609838.5A Active CN105208440B (en) 2015-09-22 2015-09-22 A kind of method and system that MP4 format video plays online

Country Status (1)

Country Link
CN (1) CN105208440B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704581A (en) * 2016-01-25 2016-06-22 互联天下科技发展(深圳)有限公司 HTTP real-time video transmission method based on MP4 file format
CN108124169A (en) * 2016-11-29 2018-06-05 中国科学院声学研究所 A kind of P2P Video service accelerated methods of household radio router
CN110545459A (en) * 2018-05-29 2019-12-06 武汉斗鱼网络科技有限公司 method for caching video and related equipment
CN110113655B (en) * 2019-05-05 2021-09-21 北京奇艺世纪科技有限公司 Video playing method and device and user terminal
CN111083410B (en) * 2019-12-30 2022-02-25 珠海全志科技股份有限公司 Audio and video stream processing method and device for DVR
CN111356028A (en) * 2020-03-16 2020-06-30 南京巨鲨显示科技有限公司 Method and device for realizing file sequence on demand by streaming media service
CN113079386B (en) * 2021-03-19 2023-01-17 北京百度网讯科技有限公司 Video online playing method and device, electronic equipment and storage medium
CN114173074B (en) * 2021-10-22 2023-11-03 广州市奥威亚电子科技有限公司 Recording and storing method for video format conversion and format conversion method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348899A (en) * 2014-06-25 2015-02-11 深圳市天朗时代科技有限公司 Client and server multimedia content sharing method and sharing system
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102656857B (en) * 2010-12-17 2015-01-07 华为技术有限公司 Method and apparatus for acquiring and transmitting streaming media data in the process of initiation
EP2870770A2 (en) * 2012-07-09 2015-05-13 VID SCALE, Inc. Power aware video decoding and streaming
CN104349176B (en) * 2013-07-30 2017-11-10 中国电信股份有限公司 Adaptive stream media system, method for down loading and streaming media server, user terminal
CN103763637A (en) * 2014-01-21 2014-04-30 北京云视睿博传媒科技有限公司 Stream media broadcasting method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661058A (en) * 2013-11-20 2015-05-27 深圳市云帆世纪科技有限公司 MP4 video on demand data stream transmission method, client side and video on demand system
CN104348899A (en) * 2014-06-25 2015-02-11 深圳市天朗时代科技有限公司 Client and server multimedia content sharing method and sharing system

Also Published As

Publication number Publication date
CN105208440A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN105208440B (en) A kind of method and system that MP4 format video plays online
CN105611395B (en) A kind of method and system that MP4 format video plays online
US20220248108A1 (en) Apparatus and methods for thumbnail generation
CN105228001B (en) A kind of method and system that FLV format videos play online
US9462307B2 (en) ABR live to VOD system and method
US9167302B2 (en) Playlist bookmarking
CN102118428B (en) Method and system for playing streaming media
US9027062B2 (en) Gateway apparatus and methods for digital content delivery in a network
US20180063213A1 (en) Hypermedia Apparatus and Method
US11616855B2 (en) Fragmenting media content
CN104661058A (en) MP4 video on demand data stream transmission method, client side and video on demand system
EP2822274A1 (en) Method for converting online media data or playing video and apparatus thereof
CN112752115B (en) Live broadcast data transmission method, device, equipment and medium
US11438396B2 (en) Packaging content for delivery
CN105049931B (en) The method and system that the video of format non-supporting in mobile terminal is converted
CN105142020A (en) Method and system for converting video in unsupported format in mobile terminal
CN105430510A (en) Video on demand method, gateway, smart terminal and video on demand system
EP2673958A1 (en) A method for optimizing a video stream
CN114207606A (en) Source classification using HDMI audio metadata
KR20160036924A (en) System for device independent live streaming
KR20090116613A (en) Streaming method to use key frame and apparatus thereof

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

Effective date of registration: 20190705

Granted publication date: 20190312

PP01 Preservation of patent right