CN104363511A - Method and system for online playing F4v videos on mobile device - Google Patents

Method and system for online playing F4v videos on mobile device Download PDF

Info

Publication number
CN104363511A
CN104363511A CN201410710425.1A CN201410710425A CN104363511A CN 104363511 A CN104363511 A CN 104363511A CN 201410710425 A CN201410710425 A CN 201410710425A CN 104363511 A CN104363511 A CN 104363511A
Authority
CN
China
Prior art keywords
video
file
request
video file
segmenting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410710425.1A
Other languages
Chinese (zh)
Other versions
CN104363511B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410710425.1A priority Critical patent/CN104363511B/en
Publication of CN104363511A publication Critical patent/CN104363511A/en
Application granted granted Critical
Publication of CN104363511B publication Critical patent/CN104363511B/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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. 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/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection

Landscapes

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

Abstract

The embodiment of the invention provides a method and system for online playing F4v videos on a mobile device. A video resource server is requested for an F4v video file and matched MP4 header data, and the received MP4 header data, an F4v metadata file in the received F4v video file, and an audio and video stream file in segmented videos in the received F4v video file are sequentially transmitted to a video player one after another. Due to the fact that the data transmitted to the video player meet the packaging format of MP4 videos, video format conversion is not needed, and the video player can call a video card to decode and play the videos in a decoding mode for the MP4 videos. According to the method and system, decoding efficiency can be effectively improved, the operating burden on a CPU is relieved, and consumption of the operational capacity of the CPU is avoided.

Description

A kind of method and system playing F4v video in a mobile device online
Technical field
The present invention relates to mobile device video display arts field, particularly relate to a kind of method and system playing F4v video in a mobile device online.
Background technology
F4V video format adopts H264 high definition coding, and compared to traditional FLV video format, it can realize higher resolution under the prerequisite of equal volume, and can support more high bit rate.Along with improving constantly of the network bandwidth, the requirement that people are more and more higher to video definition, therefore F4V video format will become network flow-medium main flow form gradually.
Because mobile device is easy to carry, therefore user watches Internet video often through mobile device.Existing mobile device is mostly with video card GPU, for MP4 format video, video player in mobile device directly can call the video of video card to multiple format and decode to play MP4 format video, also namely plays MP4 format video by hard decoder mode.But the video player of mobile device does not support the broadcasting of F4v form, directly cannot call video card to decode to F4v format video, first the form of video player support can only be converted into by CPU, then call video card to decode to it, also namely play F4v format video by soft decoding process.
But soft decoding is for hard decoder, and decoding efficiency is lower, and the conversion of video format can increase the operation burden of CPU, consumes the operational capability of CPU greatly.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of method and system playing F4v video in a mobile device online, to realize the object playing F4v video based on hard decoder mode in a mobile device.
For achieving the above object, the embodiment of the invention discloses a kind of method playing F4v video in a mobile device online, be applied in mobile device, described mobile device is connected with video resource server communication, the MP4 head data storing F4v video file in described video resource server and mate with F4v video file, F4v meta data file and multiple segmenting video is included in described F4v video file, include in each segmenting video: segmenting video meta data file and audio/video flow file, described method comprises:
Monitor the HTTP request that F4v video file is play in request that the video player in described mobile device sends online;
After listening to described HTTP request, resolve the header of described HTTP request, obtain the mark of the F4v video file that request that described header carries is play online;
The F4v video file having described mark to described video resource server request and the MP4 head data of mating with F4v video file, receive the MP4 head data of mating with F4v video file and F4v video file that described video resource server returns;
Successively the audio/video flow file in segmenting video in the F4v meta data file in received MP4 head data, the F4v video file that receives, the F4v video file that receives is sent in described video player according to sequencing, calls video card to received decoding data and displaying video to make described video player.
Optionally, also comprise:
Monitor the primary importance that request that the video player in described mobile device sends jumps to F4v video file and carry out the online HTTP request play;
The header of this HTTP request is resolved, obtains described primary importance;
Determine the segmenting video at described primary importance place;
To the determined segmenting video of described video resource server request;
Receive segmenting video that described video resource server returns according to this request and the audio/video flow file in received segmenting video is sent in described video player.
Optionally, the described segmenting video determining described primary importance place, comprising:
Obtain the data volume of each segmenting video and the sequencing of each segmenting video in F4v video file;
The segmenting video at described primary importance place is determined according to the data volume of obtained each segmenting video and the sequencing of each segmenting video.
Optionally, after the mark obtaining the F4v video file that the request of carrying of described header is play online, described method also comprises:
Judge whether the F4v video file with described mark is present in described video resource server, if so, then returns http response to described video player.
Optionally, described video resource server comprises master server and mirror image server, the MP4 head data all storing F4v video file and mate with F4v video file in described master server and described mirror image server,
The described F4v video file that there is described mark to described video resource server request and the MP4 head data of mating with F4v video file, receive the MP4 head data of mating with F4v video file and F4v video file that described video resource server returns, comprising:
The F4v video file that there is described mark to described master server request and the MP4 head data of mating with F4v video file;
If described master server returns the MP4 head data and F4v video file of mating with F4v video file in preset time period, then receive the MP4 head data of mating with F4v video file and F4v video file that described master server returns;
If described master server does not return the MP4 head data and F4v video file of mating with F4v video file in preset time period, then the F4v video file that there is described mark to described mirror image server request and the MP4 head data of mating with F4v video file;
Receive the MP4 head data of mating with F4v video file and F4v video file that described mirror image server returns.
A kind of system playing F4v video in a mobile device online, be applied in mobile device, described mobile device is connected with video resource server communication, the MP4 head data storing F4v video file in described video resource server and mate with F4v video file, F4v meta data file and multiple segmenting video is included in described F4v video file, include in each segmenting video: segmenting video meta data file and audio/video flow file, described system comprises: playing request monitors module, first header parsing module, first video request module and the first video sending module,
Described playing request monitors module, and the HTTP request of F4v video file is play in the request that the video player for monitoring in described mobile device sends online;
Described first header parsing module, for after listening to described HTTP request, resolves the header of described HTTP request, obtains the mark of the F4v video file that request that described header carries is play online;
Described first video request module, for the F4v video file to described video resource server request with described mark and the MP4 head data of mating with F4v video file, receive the MP4 head data of mating with F4v video file and F4v video file that described video resource server returns;
Described first video sending module, for being sent in described video player by the audio/video flow file in segmenting video in the F4v meta data file in received MP4 head data, the F4v video file that receives, the F4v video file that receives successively according to sequencing, call video card to received decoding data and displaying video to make described video player.
Optionally, also comprise: jump request monitors module, Secondary Report header parsing module, video determination module, the second video request module and the second video sending module,
Described jump request monitors module, and the primary importance that the request that the video player for monitoring in described mobile device sends jumps to F4v video file carries out the online HTTP request play;
Described Secondary Report header parsing module, for resolving the header of this HTTP request, obtains described primary importance;
Described video determination module, for determining the segmenting video at described primary importance place;
Described second video request module, for the determined segmenting video of described video resource server request;
Described second video sending module, for receiving segmenting video that described video resource server returns according to this request and being sent in described video player by the audio/video flow file in received segmenting video.
Optionally, described video determination module comprises: segment video information obtains submodule and segmenting video determination submodule,
Described segment video information obtains submodule, for the sequencing of the data volume and each segmenting video that obtain each segmenting video in F4v video file;
Described segmenting video determination submodule, for determining the segmenting video at described primary importance place according to the data volume of obtained each segmenting video and the sequencing of each segmenting video.
Optionally, also comprise: video judge module and respond module,
Described video judge module, after the mark of the F4v video file that the request of carrying for obtaining described header at described first header parsing module is play online, judge whether the F4v video file with described mark is present in described video resource server, if so, then described respond module is triggered;
Described respond module, for returning http response to described video player.
Optionally, described video resource server comprises master server and mirror image server, the MP4 head data all storing F4v video file and mate with F4v video file in described master server and described mirror image server,
Described first video request module, comprising: the first request submodule, first receives submodule, the second request submodule and second receives submodule,
Described first request submodule, for the F4v video file to described master server request with described mark and the MP4 head data of mating with F4v video file;
Described first receives submodule, when returning the MP4 head data and F4v video file of mating with F4v video file for master server described in preset time period, receive the MP4 head data of mating with F4v video file and F4v video file that described master server returns;
Described second request submodule, when not returning the MP4 head data and F4v video file of mating with F4v video file for master server described in preset time period, the F4v video file that there is described mark to described mirror image server request and the MP4 head data of mating with F4v video file;
Described second receives submodule, for receiving the MP4 head data of mating with F4v video file and F4v video file that described mirror image server returns.
A kind of method and system playing F4v video in a mobile device online that the embodiment of the present invention provides, can to the MP4 head data of video resource server request F4v video file and coupling, and successively the audio/video flow file in segmenting video in the F4v meta data file in received MP4 head data, the F4v video file that receives, the F4v video file that receives is sent in video player according to sequencing.Due to the encapsulation format of the data fit MP4 video that the present invention sends to video player, therefore without the need to carrying out video format conversion, video player can be decoded according to calling video card to the decoding process of MP4 to it and to play.Because mobile device all supports the hard decoder to MP4 video, and F4v video format and MP4 video format all adopt H264 to encode, therefore the present invention can make video player use hard decoder mode to decode to F4v video file, then plays F4v video file.The present invention effectively can improve decoding efficiency, reduces the operation burden of CPU, avoids the consumption of CPU operational capability.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of flow chart playing the method for F4v video in a mobile device online that Fig. 1 provides for the embodiment of the present invention;
The another kind that Fig. 2 provides for the embodiment of the present invention plays the flow chart of the method for F4v video in a mobile device online;
The another kind that Fig. 3 provides for the embodiment of the present invention plays the flow chart of the method for F4v video in a mobile device online;
A kind of structural representation playing the system of F4v video in a mobile device online that Fig. 4 provides for the embodiment of the present invention;
The another kind that Fig. 5 provides for the embodiment of the present invention plays the structural representation of the system of F4v video in a mobile device online;
The another kind that Fig. 6 provides for the embodiment of the present invention plays the structural representation of the system of F4v video in a mobile device online.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, a kind of method playing F4v video in a mobile device online that the embodiment of the present invention provides, be applied in mobile device, described mobile device is connected with video resource server communication, the MP4 head data storing F4v video file in described video resource server and mate with F4v video file, F4v meta data file and multiple segmenting video is included in described F4v video file, include in each segmenting video: segmenting video meta data file and audio/video flow file, the method can comprise:
S100, monitor the HTTP request that F4v video file is play in request that the video player in described mobile device sends online;
Optionally, the local web-server in order to analog video Resource Server in mobile device, can be provided with, a kind of method playing F4v video in a mobile device online provided by this local web-server execution embodiment of the present invention.
Concrete, can carry out analog local network network server by server socket, the HTTP request sent with receiver, video player also returns http response to video player.Local web-server is the network environment gone out according to http standard traffic formatted analog, and at video player, local web-server is exactly a real video resource server.Therefore local web-server can monitor the HTTP request that video player sends.Concrete, local web-server can monitor the HTTP request that video player sends by the particular port (as port 2048) in monitoring mobile device.Concrete, can ask the video resource of broadcasting to be combined into a standard http resource address (as http: // 127.0.0.1:2048/id.111, wherein 2048 is the port numbers of specifying, and id is the identifier of request resource) according to specific format; Then this http resource address is assigned to video player, video player will send the HTTP request of reference format to this address.
Socket, usually also referred to as " socket ", is made up of service end and client, for describing IP address and port, is the handle of a communication chain.Main frame on internet has generally run multiple service software, provides several service simultaneously.A Socket is all opened in often kind of service, and is tied on a port, and different ports corresponds to different services.HTTP is also a kind of Socket service, it just uses 80 ports from the date of birth, all HTTP serve can give tacit consent to and are tied on 80 ports, and the present invention then employs other port and provides a kind of service following HTTP standard, thus the function of simulation HTTP and service.
S200, after listening to described HTTP request, resolve the header of described HTTP request, obtain the mark of the F4v video file that request that described header carries is play online;
Wherein, described mark can be the title, the network address, numbering etc. of F4v video file.
The mark of the online F4v video file play of the request that carries in the header of HTTP request, can obtain entrained mark after resolving to it.Such as, the header of the HTTP request after a kind of parsing can be:
GET/id.111 HTTP/1.1
Cache-Control:no-cache
Connection:Keep-Alive
Pragma:getIfoFileURI.dlna.org
Accept:*/*
User-Agent:NSPlayer/12.00.9200.16409 WMFSDK/12.00.9200.16409
GetContentFeatures.DLNA.ORG:1
Host:127.0.0.1:2048
Wherein, id.111 is the mark of video file.
Wherein, obtain the mark of the F4v video file that request that described header carries is play online at S200 after, method shown in Fig. 1 can also comprise:
Judge whether the F4v video file with described mark is present in described video resource server, if so, then returns http response to described video player.
Wherein, video can be carried in the http response returned and there are comformed information, Video type information, the video data volume information etc.By http response, the present invention can inform the information of its video of asking of video player, makes video player be that receiving video data, decoding and broadcasting are ready.
Certainly, when the F4v video file with described mark is not present in described video resource server, also to video player return messages, as 404 message, can inform that user cannot find associated video to make video player by respective interface.
S300, the F4v video file to described video resource server request with described mark and the MP4 head data of mating with F4v video file, receive the MP4 head data of mating with F4v video file and F4v video file that described video resource server returns;
Be understandable that, video resource server, when being put in storage by video compressing tablet, will extract video information, generates MP4 head data according to video information.
S400, successively the audio/video flow file in segmenting video in the F4v meta data file in received MP4 head data, the F4v video file that receives, the F4v video file that receives is sent in described video player according to sequencing, calls video card to received decoding data and displaying video to make described video player.
As previously mentioned, include F4v meta data file and multiple segmenting video in F4v video file, include in each segmenting video: segmenting video meta data file and audio/video flow file.
For simplicity, use Metadata to represent F4v meta data file below, use DataF4v to represent segmenting video, use meta to represent segmenting video meta data file, use data represents the audio/video flow file in segmenting video.Wherein, all key frames of whole video and the information such as audio frequency, video length description of each segmenting video is recorded in F4v meta data file.The key frame of segmenting video meta data file minute book segmenting video describes.
F4V video file comprises: Metadata+DataF4v1+DataF4v2+DataF4v3+DataF4v4+......+Data F4vN, and wherein, N is segmenting video number;
Each DataF4v includes: meta+data, and also namely DataF4v1 comprises: meta1+data1, DataF4v2 comprise: meta2+data2, by that analogy.
And MP4 video file comprises: MP4Header+MetadataMP4+DataMP4, wherein, MP4Header is MP4 head data, and MetadataMP4 is MP4 meta data file, and DataMP4 is the audio/video flow file in MP4.
The video card of mobile device generally all supports MP4 form, and also namely mobile device can carry out hard decoder to the video of MP4 form.F4v and MP4 belongs to ISMAMP4 container and all adopts H264 coding, and therefore the video card of mobile device can be decoded to the meta data file in F4v video file and audio/video flow file.Can be found out by the content in contrast F4v video file and MP4 video file, MP4 video file adds MP4Header relative to F4v video file, and in MP4 video file, there is no segmenting video meta data file meta, therefore, can by Metadata, data1, the data2 in MP4Header and F4V video file ... dataN is as a MP4 file.
Therefore, when sending data to video player, first MP4 head data are sent, then send the F4v meta data file in the F4v video file received, finally send the audio/video flow file in the F4v video file received in segmenting video, like this, at video player, what it received is exactly a MP4 video file, can carry out hard decoder by video card, without the need to carrying out video format conversion.All belong to ISMAMP4 container due to F4v and MP4 and all adopt H264 coding, therefore the video card of mobile device can be decoded to the meta data file in F4v video file and audio/video flow file.Like this, the present invention just achieves based on the broadcasting of hard decoder mode to F4v video file.
A kind of method playing F4v video in a mobile device online that the embodiment of the present invention provides, can to the MP4 head data of video resource server request F4v video file and coupling, and successively the audio/video flow file in segmenting video in the F4v meta data file in received MP4 head data, the F4v video file that receives, the F4v video file that receives is sent in video player according to sequencing.Due to the encapsulation format of the data fit MP4 video that the present invention sends to video player, therefore without the need to carrying out video format conversion, video player can be decoded according to calling video card to the decoding process of MP4 to it and to play.Because mobile device all supports the hard decoder to MP4 video, and F4v video format and MP4 video format all adopt H264 to encode, therefore the present invention can make video player use hard decoder mode to decode to F4v video file, then plays F4v video file.The present invention effectively can improve decoding efficiency, reduces the operation burden of CPU, avoids the consumption of CPU operational capability.
As shown in Figure 2, the another kind that the embodiment of the present invention provides plays the method for F4v video in a mobile device online, can also comprise:
S500, monitor the primary importance that request that the video player in described mobile device sends jumps to F4v video file and carry out the online HTTP request play;
S600, the header of this HTTP request to be resolved, obtain described primary importance;
Such as: the header of this HTTP request can be:
GET/id.111 HTTP/1.1
Cache-Control:no-cache
Connection:Keep-Alive
Pragma:getIfoFileURI.dlna.org
Accept:*/*
Range:bytes=43171840-176705438
User-Agent:NSPlayer/12.00.9200.16409 WMFSDK/12.00.9200.16409
GetContentFeatures.DLNA.ORG:1
Host:127.0.0.1:2048
Wherein, 43171840 be ask the primary importance adjusted to.
S700, determine the segmenting video at described primary importance place;
Concrete, S700 can comprise:
Obtain the data volume of each segmenting video and the sequencing of each segmenting video in F4v video file;
The segmenting video at described primary importance place is determined according to the data volume of obtained each segmenting video and the sequencing of each segmenting video.
Such as: have three segmenting video, be respectively segmentation 1, segmentation 2 and segmentation 3 according to sequencing, wherein, segmentation 1 is 20000000 bytes, and segmentation 2 is 20000000 bytes, and segmentation 3 is 136705438 bytes.Then can determine that primary importance 43171840 is arranged in segmentation 3.
S800, to the determined segmenting video of described video resource server request;
S900, receive segmenting video that described video resource server returns according to this request and the audio/video flow file in received segmenting video is sent in described video player.
Like this, video player just can play from certain position before primary importance or primary importance received by segmenting video.
Therefore, method shown in Fig. 2 can also realize F.F. to F4v video file or rewind based on hard decoder mode.
On basis embodiment illustrated in fig. 1, as shown in Figure 3, the another kind that the embodiment of the present invention provides is play in the method for F4v video in a mobile device online, video resource server can comprise master server and mirror image server, the MP4 head data all storing F4v video file and mate with F4v video file in described master server and described mirror image server, S300 in embodiment illustrated in fig. 1, can comprise:
S310, the F4v video file to described master server request with described mark and the MP4 head data of mating with F4v video file;
S320, judge whether described master server returns the MP4 head data and F4v video file of mating with F4v video file in preset time period, if so, then performs S330, otherwise perform S340;
S330, receive the MP4 head data of mating with F4v video file and F4v video file that described master server returns;
S340, the F4v video file to described mirror image server request with described mark and the MP4 head data of mating with F4v video file;
S350, receive the MP4 head data of mating with F4v video file and F4v video file that described mirror image server returns.
Be understandable that, because video file data volume is comparatively large, therefore can take network for a long time, easily by the impact of network instability.The present invention when master server returns video file time-out from trend mirror image server request video file, effectively can improve the validity of video reception, avoid the impact by network instability.
Corresponding with said method embodiment, present invention also offers a kind of system playing F4v video in a mobile device online.
As shown in Figure 4, a kind of system playing F4v video in a mobile device online that the embodiment of the present invention provides, this system is applied in mobile device, described mobile device is connected with video resource server communication, the MP4 head data storing F4v video file in described video resource server and mate with F4v video file, F4v meta data file and multiple segmenting video is included in described F4v video file, include in each segmenting video: segmenting video meta data file and audio/video flow file, this system can comprise: playing request monitors module 100, first header parsing module 200, first video request module 300 and the first video sending module 400,
Playing request monitors module 100, and the HTTP request of F4v video file is play in the request that the video player for monitoring in described mobile device sends online;
Optionally, can be provided with the local web-server in order to analog video Resource Server in mobile device, the system playing F4v video in a mobile device online that the embodiment of the present invention provides can be applied in this local web-server.
Concrete, can carry out analog local network network server by server socket, the HTTP request sent with receiver, video player also returns http response to video player.Local web-server is the network environment gone out according to http standard traffic formatted analog, and at video player, local web-server is exactly a real video resource server.Therefore local web-server can monitor the HTTP request that video player sends.Concrete, local web-server can monitor the HTTP request that video player sends by the particular port (as port 2048) in monitoring mobile device.Concrete, can ask the video resource of broadcasting to be combined into a standard http resource address (as http: // 127.0.0.1:2048/id.111, wherein 2048 is the port numbers of specifying, and id is the identifier of request resource) according to specific format; Then this http resource address is assigned to video player, video player will send the HTTP request of reference format to this address.
First header parsing module 200, for after listening to described HTTP request, resolves the header of described HTTP request, obtains the mark of the F4v video file that request that described header carries is play online;
Wherein, described mark can be the title, the network address, numbering etc. of F4v video file.
The mark of the online F4v video file play of the request that carries in the header of HTTP request, can obtain entrained mark after resolving to it.
First video request module 300, for the F4v video file to described video resource server request with described mark and the MP4 head data of mating with F4v video file, receive the MP4 head data of mating with F4v video file and F4v video file that described video resource server returns;
First video sending module 400, for being sent in described video player by the audio/video flow file in segmenting video in the F4v meta data file in received MP4 head data, the F4v video file that receives, the F4v video file that receives successively according to sequencing, call video card to received decoding data and displaying video to make described video player.
The present invention can when sending data to video player, first MP4 head data are sent, then the F4v meta data file in the F4v video file received is sent, finally send the audio/video flow file in the F4v video file received in segmenting video, like this, at video player, what it received is exactly a MP4 video file, hard decoder can be carried out, without the need to carrying out video format conversion by video card.All belong to ISMAMP4 container due to F4v and MP4 and all adopt H264 coding, therefore the video card of mobile device can be decoded to the meta data file in F4v video file and audio/video flow file.Like this, the present invention just achieves based on the broadcasting of hard decoder mode to F4v video file.
A kind of system playing F4v video in a mobile device online that the embodiment of the present invention provides, can to the MP4 head data of video resource server request F4v video file and coupling, and successively the audio/video flow file in segmenting video in the F4v meta data file in received MP4 head data, the F4v video file that receives, the F4v video file that receives is sent in video player according to sequencing.Due to the encapsulation format of the data fit MP4 video that the present invention sends to video player, therefore without the need to carrying out video format conversion, video player can be decoded according to calling video card to the decoding process of MP4 to it and to play.Because mobile device all supports the hard decoder to MP4 video, and F4v video format and MP4 video format all adopt H264 to encode, therefore the present invention can make video player use hard decoder mode to decode to F4v video file, then plays F4v video file.The present invention effectively can improve decoding efficiency, reduces the operation burden of CPU, avoids the consumption of CPU operational capability.
As shown in Figure 5, the another kind that the embodiment of the present invention provides plays the system of F4v video in a mobile device online, can also comprise: jump request monitors module 500, Secondary Report header parsing module 600, video determination module 700, second video request module 800 and the second video sending module 900
Described jump request monitors module 500, and the primary importance that the request that the video player for monitoring in described mobile device sends jumps to F4v video file carries out the online HTTP request play;
Described Secondary Report header parsing module 600, for resolving the header of this HTTP request, obtains described primary importance;
Described video determination module 700, for determining the segmenting video at described primary importance place;
Wherein, video determination module 700 can comprise: segment video information obtains submodule and segmenting video determination submodule,
Described segment video information obtains submodule, for the sequencing of the data volume and each segmenting video that obtain each segmenting video in F4v video file;
Described segmenting video determination submodule, for determining the segmenting video at described primary importance place according to the data volume of obtained each segmenting video and the sequencing of each segmenting video.
Described second video request module 800, for the determined segmenting video of described video resource server request;
Described second video sending module 900, for receiving segmenting video that described video resource server returns according to this request and being sent in described video player by the audio/video flow file in received segmenting video.
Like this, video player just can play from certain position before primary importance or primary importance received by segmenting video.
Therefore, system shown in Figure 5 can also realize F.F. to F4v video file or rewind based on hard decoder mode.
On system shown in Figure 4 basis, the another kind that the embodiment of the present invention provides is play in the system of F4v video in a mobile device online, can also comprise: video judge module and respond module,
Described video judge module, after the mark of the F4v video file that the request of carrying for obtaining described header at described first header parsing module is play online, judge whether the F4v video file with described mark is present in described video resource server, if so, then described respond module is triggered;
Described respond module, for returning http response to described video player.
Wherein, video can be carried in the http response returned and there are comformed information, Video type information, the video data volume information etc.By http response, the present invention can inform the information of its video of asking of video player, makes video player be that receiving video data, decoding and broadcasting are ready.
Certainly, when the F4v video file with described mark is not present in described video resource server, also to video player return messages, as 404 message, can inform that user cannot find associated video to make video player by respective interface.
On system shown in Figure 4 basis, the another kind that the embodiment of the present invention provides is play in the system of F4v video in a mobile device online, described video resource server comprises master server and mirror image server, the MP4 head data all storing F4v video file and mate with F4v video file in described master server and described mirror image server
As shown in Figure 6, the first video request module 300 in embodiment illustrated in fig. 4, can comprise: the first request submodule 310, first receives submodule 320, second asks submodule 330 and second to receive submodule 340,
Described first request submodule 310, for the F4v video file to described master server request with described mark and the MP4 head data of mating with F4v video file;
Described first receives submodule 320, when returning the MP4 head data and F4v video file of mating with F4v video file for master server described in preset time period, receive the MP4 head data of mating with F4v video file and F4v video file that described master server returns;
Described second request submodule 330, when not returning the MP4 head data and F4v video file of mating with F4v video file for master server described in preset time period, the F4v video file that there is described mark to described mirror image server request and the MP4 head data of mating with F4v video file;
Described second receives submodule 340, for receiving the MP4 head data of mating with F4v video file and F4v video file that described mirror image server returns.
Be understandable that, because video file data volume is comparatively large, therefore can take network for a long time, easily by the impact of network instability.The present invention when master server returns video file time-out from trend mirror image server request video file, effectively can improve the validity of video reception, avoid the impact by network instability.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. play the method for F4v video in a mobile device online for one kind, it is characterized in that, be applied in mobile device, described mobile device is connected with video resource server communication, the MP4 head data storing F4v video file in described video resource server and mate with F4v video file, include F4v meta data file and multiple segmenting video in described F4v video file, include in each segmenting video: segmenting video meta data file and audio/video flow file, described method comprises:
Monitor the HTTP request that F4v video file is play in request that the video player in described mobile device sends online;
After listening to described HTTP request, resolve the header of described HTTP request, obtain the mark of the F4v video file that request that described header carries is play online;
The F4v video file having described mark to described video resource server request and the MP4 head data of mating with F4v video file, receive the MP4 head data of mating with F4v video file and F4v video file that described video resource server returns;
Successively the audio/video flow file in segmenting video in the F4v meta data file in received MP4 head data, the F4v video file that receives, the F4v video file that receives is sent in described video player according to sequencing, calls video card to received decoding data and displaying video to make described video player.
2. method according to claim 1, is characterized in that, also comprises:
Monitor the primary importance that request that the video player in described mobile device sends jumps to F4v video file and carry out the online HTTP request play;
The header of this HTTP request is resolved, obtains described primary importance;
Determine the segmenting video at described primary importance place;
To the determined segmenting video of described video resource server request;
Receive segmenting video that described video resource server returns according to this request and the audio/video flow file in received segmenting video is sent in described video player.
3. method according to claim 2, is characterized in that, the described segmenting video determining described primary importance place, comprising:
Obtain the data volume of each segmenting video and the sequencing of each segmenting video in F4v video file;
The segmenting video at described primary importance place is determined according to the data volume of obtained each segmenting video and the sequencing of each segmenting video.
4. method according to claim 1, is characterized in that, after the mark obtaining the F4v video file that the request of carrying of described header is play online, described method also comprises:
Judge whether the F4v video file with described mark is present in described video resource server, if so, then returns http response to described video player.
5. method according to any one of claim 1 to 4, it is characterized in that, described video resource server comprises master server and mirror image server, the MP4 head data all storing F4v video file and mate with F4v video file in described master server and described mirror image server
The described F4v video file that there is described mark to described video resource server request and the MP4 head data of mating with F4v video file, receive the MP4 head data of mating with F4v video file and F4v video file that described video resource server returns, comprising:
The F4v video file that there is described mark to described master server request and the MP4 head data of mating with F4v video file;
If described master server returns the MP4 head data and F4v video file of mating with F4v video file in preset time period, then receive the MP4 head data of mating with F4v video file and F4v video file that described master server returns;
If described master server does not return the MP4 head data and F4v video file of mating with F4v video file in preset time period, then the F4v video file that there is described mark to described mirror image server request and the MP4 head data of mating with F4v video file;
Receive the MP4 head data of mating with F4v video file and F4v video file that described mirror image server returns.
6. play the system of F4v video in a mobile device online for one kind, it is characterized in that, be applied in mobile device, described mobile device is connected with video resource server communication, the MP4 head data storing F4v video file in described video resource server and mate with F4v video file, F4v meta data file and multiple segmenting video is included in described F4v video file, include in each segmenting video: segmenting video meta data file and audio/video flow file, described system comprises: playing request monitors module, first header parsing module, first video request module and the first video sending module,
Described playing request monitors module, and the HTTP request of F4v video file is play in the request that the video player for monitoring in described mobile device sends online;
Described first header parsing module, for after listening to described HTTP request, resolves the header of described HTTP request, obtains the mark of the F4v video file that request that described header carries is play online;
Described first video request module, for the F4v video file to described video resource server request with described mark and the MP4 head data of mating with F4v video file, receive the MP4 head data of mating with F4v video file and F4v video file that described video resource server returns;
Described first video sending module, for being sent in described video player by the audio/video flow file in segmenting video in the F4v meta data file in received MP4 head data, the F4v video file that receives, the F4v video file that receives successively according to sequencing, call video card to received decoding data and displaying video to make described video player.
7. system according to claim 6, is characterized in that, also comprises: jump request monitors module, Secondary Report header parsing module, video determination module, the second video request module and the second video sending module,
Described jump request monitors module, and the primary importance that the request that the video player for monitoring in described mobile device sends jumps to F4v video file carries out the online HTTP request play;
Described Secondary Report header parsing module, for resolving the header of this HTTP request, obtains described primary importance;
Described video determination module, for determining the segmenting video at described primary importance place;
Described second video request module, for the determined segmenting video of described video resource server request;
Described second video sending module, for receiving segmenting video that described video resource server returns according to this request and being sent in described video player by the audio/video flow file in received segmenting video.
8. system according to claim 7, is characterized in that, described video determination module comprises: segment video information obtains submodule and segmenting video determination submodule,
Described segment video information obtains submodule, for the sequencing of the data volume and each segmenting video that obtain each segmenting video in F4v video file;
Described segmenting video determination submodule, for determining the segmenting video at described primary importance place according to the data volume of obtained each segmenting video and the sequencing of each segmenting video.
9. system according to claim 6, is characterized in that, also comprises: video judge module and respond module,
Described video judge module, after the mark of the F4v video file that the request of carrying for obtaining described header at described first header parsing module is play online, judge whether the F4v video file with described mark is present in described video resource server, if so, then described respond module is triggered;
Described respond module, for returning http response to described video player.
10. the system according to any one of claim 6 to 9, it is characterized in that, described video resource server comprises master server and mirror image server, the MP4 head data all storing F4v video file and mate with F4v video file in described master server and described mirror image server
Described first video request module, comprising: the first request submodule, first receives submodule, the second request submodule and second receives submodule,
Described first request submodule, for the F4v video file to described master server request with described mark and the MP4 head data of mating with F4v video file;
Described first receives submodule, when returning the MP4 head data and F4v video file of mating with F4v video file for master server described in preset time period, receive the MP4 head data of mating with F4v video file and F4v video file that described master server returns;
Described second request submodule, when not returning the MP4 head data and F4v video file of mating with F4v video file for master server described in preset time period, the F4v video file that there is described mark to described mirror image server request and the MP4 head data of mating with F4v video file;
Described second receives submodule, for receiving the MP4 head data of mating with F4v video file and F4v video file that described mirror image server returns.
CN201410710425.1A 2014-11-28 2014-11-28 A kind of method and system of broadcasting F4v videos online in a mobile device Active CN104363511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410710425.1A CN104363511B (en) 2014-11-28 2014-11-28 A kind of method and system of broadcasting F4v videos online in a mobile device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410710425.1A CN104363511B (en) 2014-11-28 2014-11-28 A kind of method and system of broadcasting F4v videos online in a mobile device

Publications (2)

Publication Number Publication Date
CN104363511A true CN104363511A (en) 2015-02-18
CN104363511B CN104363511B (en) 2017-06-23

Family

ID=52530727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410710425.1A Active CN104363511B (en) 2014-11-28 2014-11-28 A kind of method and system of broadcasting F4v videos online in a mobile device

Country Status (1)

Country Link
CN (1) CN104363511B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848060A (en) * 2018-05-17 2018-11-20 上海哔哩哔哩科技有限公司 A kind of multimedia file processing method, processing system and computer readable storage medium
WO2019227750A1 (en) * 2018-05-29 2019-12-05 北京字节跳动网络技术有限公司 Media file playback method, device and storage medium based on web page
CN110545469A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Webpage playing method, device and storage medium of non-streaming media file
CN112422693A (en) * 2020-12-02 2021-02-26 深圳市前海手绘科技文化有限公司 User online short video draft queue exporting method
CN113079386A (en) * 2021-03-19 2021-07-06 北京百度网讯科技有限公司 Video online playing method and device, electronic equipment and storage medium
CN113365140A (en) * 2021-06-21 2021-09-07 北京百度网讯科技有限公司 MP4 online playing method, device, equipment, storage medium and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118428A (en) * 2010-12-29 2011-07-06 天脉聚源(北京)传媒科技有限公司 Method and system for playing streaming media
CN102196268A (en) * 2011-05-06 2011-09-21 成都市华为赛门铁克科技有限公司 Method, device and system for processing multimedia data
CN102792291A (en) * 2009-08-17 2012-11-21 阿卡麦科技公司 Method and system for HTTP-based stream delivery
CN103036888A (en) * 2012-12-19 2013-04-10 南京视海网络科技有限公司 Self-adapting stream-media play method and self-adapting play unit
CN103051941A (en) * 2013-01-28 2013-04-17 北京暴风科技股份有限公司 Method and system for playing local video on mobile platform
WO2014072844A1 (en) * 2012-11-09 2014-05-15 Idealounge (Pty) Ltd Audiovisual recordings

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102792291A (en) * 2009-08-17 2012-11-21 阿卡麦科技公司 Method and system for HTTP-based stream delivery
CN102118428A (en) * 2010-12-29 2011-07-06 天脉聚源(北京)传媒科技有限公司 Method and system for playing streaming media
CN102196268A (en) * 2011-05-06 2011-09-21 成都市华为赛门铁克科技有限公司 Method, device and system for processing multimedia data
WO2014072844A1 (en) * 2012-11-09 2014-05-15 Idealounge (Pty) Ltd Audiovisual recordings
CN103036888A (en) * 2012-12-19 2013-04-10 南京视海网络科技有限公司 Self-adapting stream-media play method and self-adapting play unit
CN103051941A (en) * 2013-01-28 2013-04-17 北京暴风科技股份有限公司 Method and system for playing local video on mobile platform

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848060A (en) * 2018-05-17 2018-11-20 上海哔哩哔哩科技有限公司 A kind of multimedia file processing method, processing system and computer readable storage medium
CN108848060B (en) * 2018-05-17 2021-08-24 上海哔哩哔哩科技有限公司 Multimedia file processing method, processing system and computer readable storage medium
US11374995B2 (en) 2018-05-17 2022-06-28 Shanghai Bilibili Technology Co., Ltd. Multimedia file processing
US11178452B2 (en) 2018-05-29 2021-11-16 Beijing Bytedance Network Technology Co., Ltd. Playing method, device and storage medium of webpage-based media file
WO2019227750A1 (en) * 2018-05-29 2019-12-05 北京字节跳动网络技术有限公司 Media file playback method, device and storage medium based on web page
CN110545466A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Webpage-based media file playing method and device and storage medium
CN110545469A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Webpage playing method, device and storage medium of non-streaming media file
CN110545466B (en) * 2018-05-29 2021-07-06 北京字节跳动网络技术有限公司 Webpage-based media file playing method and device and storage medium
CN110545469B (en) * 2018-05-29 2021-07-06 北京字节跳动网络技术有限公司 Webpage playing method, device and storage medium of non-streaming media file
CN112422693A (en) * 2020-12-02 2021-02-26 深圳市前海手绘科技文化有限公司 User online short video draft queue exporting method
CN113079386A (en) * 2021-03-19 2021-07-06 北京百度网讯科技有限公司 Video online playing method and device, electronic equipment and storage medium
CN113079386B (en) * 2021-03-19 2023-01-17 北京百度网讯科技有限公司 Video online playing method and device, electronic equipment and storage medium
CN113365140A (en) * 2021-06-21 2021-09-07 北京百度网讯科技有限公司 MP4 online playing method, device, equipment, storage medium and program product
US11683557B2 (en) 2021-06-21 2023-06-20 Beijing Baidu Netcom Science Technology Co., Ltd. Method for playing MP4 online, device, and storage medium

Also Published As

Publication number Publication date
CN104363511B (en) 2017-06-23

Similar Documents

Publication Publication Date Title
CN104363511A (en) Method and system for online playing F4v videos on mobile device
CN102752667B (en) Multi-stream media live broadcast interaction system and live broadcast interaction method
CN103188522B (en) Method and system for providing and delivering a composite condensed stream
US20160337424A1 (en) Transferring media data using a websocket subprotocol
WO2016138844A1 (en) Multimedia file live broadcast method, system and server
WO2017101369A1 (en) Live video transcoding method and apparatus
CN105025327A (en) Method and system for live broadcast of mobile terminal
WO2016049987A1 (en) Data processing method and apparatus, and related servers
KR102076064B1 (en) Robust live operation of dash
JP2015501090A (en) Signaling segment characteristics for streaming media data over a network
CN102202210B (en) Method for mobile phone to play real-time monitoring video and mobile phone to play real-time monitoring video
CN103329521A (en) Methods, apparatuses and computer program products for pausing video streaming content
CN101282454A (en) Video communication system based on IP set-top box
CN101945096A (en) Video live broadcast system facing to set-top box and PC of mobile phone and working method thereof
CN101895750A (en) Set-top box and PC-oriented real-time streaming media server and working method
CN101009824A (en) A network transfer method for audio/video data
JP2001204001A (en) Moving picture distribution system, reproduction terminal and distributor
CN102131114A (en) Method and system for providing playlist
CN108282685A (en) A kind of method and monitoring system of audio-visual synchronization
KR20230030589A (en) Streaming of Media Data Containing an Addressable Resource Index Track with Switching Sets
WO2015085873A1 (en) Video code stream obtaining method and apparatus
CN103561013A (en) Streaming media data distributing system
CN116260929A (en) Audio and video call and recording method and system based on WebRTC
CN113141352B (en) Multimedia data transmission method and device, computer equipment and storage medium
US8407312B2 (en) Data delivery apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant