WO2016029804A1 - 一种视频播放方法、媒体设备、播放设备以及多媒体*** - Google Patents

一种视频播放方法、媒体设备、播放设备以及多媒体*** Download PDF

Info

Publication number
WO2016029804A1
WO2016029804A1 PCT/CN2015/087381 CN2015087381W WO2016029804A1 WO 2016029804 A1 WO2016029804 A1 WO 2016029804A1 CN 2015087381 W CN2015087381 W CN 2015087381W WO 2016029804 A1 WO2016029804 A1 WO 2016029804A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
available
video segment
available video
played
Prior art date
Application number
PCT/CN2015/087381
Other languages
English (en)
French (fr)
Inventor
张毅
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016029804A1 publication Critical patent/WO2016029804A1/zh

Links

Images

Classifications

    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • 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/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/102Programmed access in sequence to addressed parts of tracks of operating record carriers
    • 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/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • 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/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/633Control signals issued by server directed to the network components or client
    • H04N21/6332Control signals issued by server directed to the network components or client directed to client
    • H04N21/6336Control signals issued by server directed to the network components or client directed to client directed to decoder
    • 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/8455Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Definitions

  • the present invention relates to the field of communications, and in particular, to a video playing method, a media device, a playing device, and a multimedia system.
  • Video portal websites and clients need to integrate various video media file fragments to achieve seamless playback of video files.
  • HLS Http Live Streaming, Http-based streaming media network transmission
  • TS Transport Stream
  • the media gateway obtains video fragments of each TS format of the video from the media server, and combines the video segments according to different code streams.
  • the address information of each video slice is written into the M3U8 list file.
  • the set-top box can obtain the actual address of each video segment by parsing the M3U8 list, and then read the video segment according to the actual address of each video segment to seamlessly play the video.
  • Embodiments of the present invention provide a video playing method, a media device, a playing device, and a multimedia system, which are capable of playing video composed of video segments of various formats.
  • a video playback method including:
  • the play information includes program information of a video segment
  • the searching for the video segments of the to-be-played video in the at least one media server includes:
  • each video segment that matches the program information of the to-be-played video Searching, in the at least one media server, each video segment that matches the program information of the to-be-played video, and determining each video segment that matches the program information of the to-be-played video as the to-be-played
  • the program information is identification information of the to-be-played video.
  • the playing information further includes a start time and an end time of the video segment.
  • Playlists including:
  • any video segment whose start time is 1s is selected as the first available video segment for continuously playing the to-be-played video;
  • the first available video segment and the second available video segment are generated in the order of the first available video segment and the second available video segment. Playback start position, playback end position, address information, and decoding parameters of available video fragments Put list
  • the end time of the second available video segment is not the end time of the to-be-played video
  • searching for the next available video segment until the next An end time of an available video segment is an end time of the to-be-played video determining a play start position and a play end position of each of the next available video segments, and generating each of the available video segments in an order The play start position, playback end position, address information, and playlist of decoding parameters of the available video fragments.
  • the determining, by the first available video segment, the playing of the second available video segment include:
  • the method before the sending the playlist to the playing device, the method further includes:
  • the play information further includes: duration information of the video segment and the video segment The size of the piece,
  • the playlist includes: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • the size of each available video shard is not limited to: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • a video playing method comprising:
  • Receiving the playlist sent by the media device searching for the available video segments according to the address according to the available video segments of the to-be-played video indicated by the playlist, and decoding and playing the available video segments by using the decoding parameters.
  • the playlist further includes:
  • the program information The identification information of the to-be-played video.
  • the play start position of the available video segment is the start time of the available video segment
  • the decoding by using the decoding parameter, to play the available video segment, specifically includes:
  • Playback starts from the start position indicated by the start time of the available video slice, and ends at the position indicated by the play end position of the available video slice.
  • the first possible implementation manner of the second aspect in a third possible implementation manner of the second aspect, if the available video is available for any available video segment of the to-be-played video The playback start position of the slice is not the start time of the available video slice.
  • the decoding by using the decoding parameter, to play the available video segment, specifically includes:
  • Playback starts from the start position indicated by the play start position of the available video slice, and ends at the position indicated by the play end position of the available video slice.
  • the method before the receiving the playlist sent by the media gateway, the method further includes:
  • a media device comprising:
  • a search unit configured to search for at least one video segment of each video to be played in the at least one media server
  • An acquiring unit configured to separately acquire playing information, address information, and decoding parameters of each video segment
  • a determining unit configured to determine, according to the playing information of each video segment, an available video segment that continuously plays the to-be-played video and an order thereof;
  • a generating unit configured to generate, according to the sequence, a playlist that includes address information and decoding parameters of each available video segment
  • a sending unit configured to send the playlist to the playing device, so that the playing device finds available video segments according to the address information in sequence, and decodes and plays the available video segments by using decoding parameters.
  • the playing information includes program information of a video segment.
  • the search unit is specifically configured to search, in the at least one media server, each video segment that matches the program information of the to-be-played video, and match the program information of the to-be-played video.
  • Each video segment is determined as each video segment of the to-be-played video, where the program information is identification information of the to-be-played video.
  • the playing information further includes a start time and an end time of the video segment.
  • the determining unit is specifically configured to select, in each video segment of the to-be-played video, any video segment whose starting time is the first s as the first available video segment that continuously plays the to-be-played video. And selecting, in each video segment of the to-be-played video, any video segment that includes the next moment of the end time of the first available video segment as the second available to continuously play the to-be-played video.
  • the determining unit is further configured to determine a play start position and a play end position of the first available video segment, the second available video segment;
  • the determining unit is configured to determine whether an end time of the second available video segment is an end time of the to-be-played video
  • the generating unit is specifically configured to determine, at the determining unit, a knot of the second available video segment After the bundle time is the end time of the to-be-played video, the playback start position including the first available video segment and the second available video segment is generated in the order of the first available video segment and the second available video segment. , play end position, address information, playlist of decoding parameters;
  • the determining unit is further configured to: after the determining unit determines that the end time of the second available video segment is not the ending time of the to-be-played video, search for each video segment of the to-be-played video Determining a next available video segment until an end time of the next available video segment is an end time of the to-be-played video; determining a playback start position and a playback end position of each of the next available video segments ;
  • the generating unit is further configured to generate, according to an order of each available video segment, a playlist including a play start position, a play end position, address information, and a decoding parameter of each available video segment.
  • the determining unit is specifically configured to: play a playback start position of the first available video segment Determining, as the start time of the first available video segment, setting a play end position of the first available video segment to a start time of a start time of the second available video segment; The play start position of the video slice is determined as the start time of the second available video slice, and the play end position of the second available video slice is set as the end time of the second available video slice;
  • the receiving unit is configured to receive a playlist request message sent by the playing device.
  • the playing information further includes: duration information of the video segmentation and the video The size of the slice,
  • the playlist includes: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • the size of each available video shard is not limited to: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • a playback device including:
  • a receiving unit configured to receive a playlist sent by the media device
  • the playing unit is configured to: according to the order of the available video segments of the to-be-played video indicated by the playlist, find information according to the address to the available video segment, and decode and play the available video segment by using the decoding parameter.
  • the playlist further includes:
  • the program information The identification information of the to-be-played video.
  • the first possible implementation manner of the fourth aspect in the second possible implementation manner of the fourth aspect, if the available video is available for any available video segment of the to-be-played video
  • the playback start position of the slice is the start time of the available video segmentation.
  • the playing unit is specifically configured to start decoding the available video segment from a position indicated by a start time of the available video segment;
  • Playback starts from the start position indicated by the start time of the available video slice, and ends at the position indicated by the play end position of the available video slice.
  • the first possible implementation manner of the fourth aspect in a third possible implementation manner of the fourth aspect, if the available video is available for any available video segment of the to-be-played video The playback start position of the slice is not the start time of the available video slice.
  • the playing unit is specifically configured to start decoding the available video segment from a position indicated by a start time of the available video segment;
  • Playback starts from the start position indicated by the play start position of the available video slice, and ends at the position indicated by the play end position of the available video slice.
  • the receiving unit is further configured to receive a play request message input by the user;
  • the sending unit is configured to send a playlist request message to the media device, to request a playlist from the media device.
  • a multimedia system which is used for continuous playback of video resources, and is characterized in that: a media device, a playback device, and a media server,
  • the media device is the media device described in the third aspect of the foregoing technical solution.
  • the playback device is the playback device described in the fourth aspect of the foregoing technical solution.
  • the media device searches for a plurality of media servers in advance, searches for video segments of the video to be played, and obtains decoding parameters and playback information of the video segments. And address information. Determining the order of each available video segment of the video to be played, and the starting and ending position of each available video segment, according to the start time and the end time of the video segment included in the playback information. Generating a playlist of playback start and stop positions, decoding parameters, and address information of each available video segment of the video to be played, so that the playback device can obtain the available information according to the address information of each available video segment of the playlist including the video to be played.
  • the video fragment is decoded according to the decoding parameters of the available video fragments, and the available video segments are decoded and played, and then the available video segments of each to-be-played video are continuously played.
  • the existing HLS technology only the continuous playback of the TS format video segmentation can be realized.
  • the present invention can realize the continuous playback of the video to be played.
  • FIG. 1 is a structural diagram of a multimedia system provided by the present invention.
  • FIG. 2 is a schematic flowchart of a video playing method according to Embodiment 1 of the present invention.
  • FIG. 3 is a schematic flowchart of a video playing method according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic diagram of seamless splicing of video segments according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram of a media device according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic structural diagram of a playback device according to Embodiment 3 of the present invention.
  • FIG. 7 is a schematic structural diagram of a media device according to Embodiment 5 of the present invention.
  • FIG. 8 is a schematic structural diagram of a playback device according to Embodiment 5 of the present invention.
  • a multimedia system is composed of a media device, a playback device, and a media server, and uses video resources on the network to implement continuous playback of video segments.
  • the media device is responsible for searching media resources on the Internet, integrating media content, and generating playlists.
  • the playback device is responsible for acquiring and parsing the playlist, downloading the video segmentation, and decoding the display video.
  • the media server is an Internet-based, widely distributed video server or CDN (content delivery network/content distribution network) server.
  • a multimedia system composed of a media gateway, a set-top box, and a media server is taken as an example (of course, the media device is not limited to the media gateway, and the playback device is not limited to the set-top box), and the continuous playback of the video fragments in any format is implemented.
  • the multimedia system provided by the embodiment of the present invention includes a set top box, a media gateway, and at least one media server.
  • each video media file fragment distributed by the Internet is integrated by the HLS technology to achieve seamless playback.
  • the HLS technology only supports video fragmentation in the TS format, and the file format and encoding format cannot be changed midway. Therefore, HLS technology cannot realize continuous playback of video fragments in any format.
  • the embodiment of the present invention provides a video playing method, which is applied to a multimedia system (the multimedia system includes a media gateway, a set top box, and at least one media server), and the execution entity is a media gateway.
  • the method includes the following steps:
  • each video fragment is a video fragment of a different format.
  • the video fragmentation in the embodiment of the present invention is not limited thereto, and each video fragment may also be in the same format (for example, all are TS formats).
  • the embodiments of the present invention are directed to continuous playback of any video segment, and avoid continuous playback of TS-format video segments as in the prior art.
  • the multimedia system provided by the embodiment of the present invention includes a media gateway and a set top box and at least one media server
  • the video fragments searched by the media gateway may be the source.
  • the media gateway searches for at least one video server to match each video segment that matches the program information of the video to be played, and matches the video segments that match the program information of the video to be played. Determine each video segmentation of the video to be played.
  • the program information is identification information of the to-be-played video.
  • the identification information of the video may be the name of the video or the release time of the video, the director information, and the actor information.
  • the identification information of the video is not limited thereto, and may be an identifier uniquely corresponding to the video.
  • the video is segmented, a large number of video segments are obtained, and the video segment is sent to the media server.
  • the media server records the playback information, address information, and decoding parameters of each video segment.
  • the play information includes duration information of the video segment, a start time, an end time, program information, and a size of the video slice.
  • the media gateway can obtain related information of the video segments while searching for the video segments that match the video to be played.
  • the media gateway performs a clip on each video segment that matches the to-be-played video according to the start time and the end time of each video segment, thereby generating a playlist that enables the set-top box to continuously play the to-be-played video.
  • the media gateway selects, in each video segment of the video to be played, any video segment whose starting time is 1s as the first available video segment that continuously plays the to-be-played video.
  • the media gateway selects, in each video segment of the video to be played, any video segment that includes the next moment of the end time of the first available video segment as the second available video segment that continuously plays the to-be-played video.
  • the media gateway determines a first available video segment, a playback start position of the second available video segment, and a playback end location.
  • the first available video segment and the second available video segment are generated in the order of the first available video segment and the second available video segment. Playback position, playback end position, address information, playlist of decoding parameters.
  • the search determines the next available video segment until the next available video segment End time of the slice is the end time of the video to be played; determining each of the next a playback start position and a playback end position of an available video segment, and a playback start including each available video segment is generated in the order of each available video segment (including the first available video segment and the second available video segment) Playlist of position, playback end position, address information, and decoding parameters.
  • the playlist further includes program information, duration information, start time, end time, and size of each available video slice of each available video segment of the video to be played. Other information may also be included, and is not limited thereto.
  • the media gateway may send the generated playlist to the set top box, so that the set top box can find an available video segment according to the address information according to the order of the available video segments according to the to-be-played video in the playlist, and according to the playlist.
  • the decoding parameters of the available video segments are decoded to play the available video segments, thereby implementing continuous playback of each available video segment of the video to be played.
  • the prior art playlist does not contain any parameters related to decoding, or only includes decoding parameters of the TS format, so the existing HLS technology can only implement continuous playback of video files in the TS format.
  • Step 101 of the embodiment of the present invention searches for different media servers, obtains video fragments of different formats, and generates a playlist including decoding parameters of each available video segment of the video to be played, so that the set top box can be generated according to the generated
  • the playlist decodes video segments of different formats to achieve continuous playback of any video segment.
  • the media gateway selects any video segment with a starting time of 1s and a longest duration as the first available video segment for continuously playing the to-be-played video in each video segment of the video to be played.
  • the end time of the first available video segment is 10th
  • there are two video segments A and B including the 11th where A is a 5-20s slice of the video to be played (TS format).
  • B is a 10 to 30 s slice (MP4) of the video to be played. Since the video segment with a longer selection time can reduce the complexity of continuous playback, the video slice B is used as the second available video of the video to be played. Fragmentation.
  • the media gateway selects, in each video segment of the to-be-played video, the next time ending time of the first available video segment, and the video segment with the longest duration as the second available video segment for continuously playing the to-be-played video. sheet.
  • the end time of the first available video segment is not specifically the next second.
  • the timestamp in the code stream Use the most recent timestamp as the next time.
  • the media gateway determines a first available video segment, a playback start position of the second available video segment, and a playback end position.
  • the first available video segment and the second available video segment are sequentially generated according to the first available video segment and the second available video segment.
  • the play start position, playback end position, address information, and playlist of decoding parameters of the video slice are sequentially generated according to the first available video segment and the second available video segment.
  • the search determines the next available video segment until the next one
  • the ending time of the available video fragments is the ending time of the video to be played.
  • the video segment with the longest duration, including the next moment of the end time of the last available video segment is determined to be the determined video to be played. Available video shards.
  • the media gateway selects the video clip of the video clip of the to-be-played video, the video clip that includes the next moment of the end time of the second available video, and the video clip with the largest duration as the third video fragment.
  • the media gateway divides each video segment of the video to be played, and includes the video segment with the largest duration as the fourth available video segment in the video segment including the next moment of the end time of the third available video segment. The above operation is repeated until the end time of the determined last available video segment is the end time of the video to be played.
  • the decoding parameters and the playing information of the determined video segments are written into the playlist, so that the set top box can decode the video segments of the different formats, and then the continuous playing of the video to be played according to the playing information of each video segment. .
  • the video segments A and B of different formats cannot be continuously played, but in step 102 of the embodiment of the present invention, the decoding parameters of each video segment of the video to be played are obtained, and the playlist generated in step 103 includes The decoding parameter of each available video of the video to be played, so the set top box can decode the first available video segment and the first available video segment and the decoding parameter of the second available video segment in the playlist sent by the media gateway. Two available video fragments. And then the set-top box is based on the broadcast. The play start position and the play end position of the first available video segment in the list, the play start position of the second available video segment, and the play end position play the first available video segment and the second available video segment.
  • the media gateway can determine the playback start position and the playback end position of each available video segment in two ways. Including: for two sequentially adjacent available video segments, the media gateway clips the previous available video segment, or clips the latter available video segment.
  • the method includes: determining a playback start position of the previous available video segment as the start time of the previous available video segment, and ending the playback end position of the previous available video segment. Set to the last moment of the start time of the next available video segment; determine the playback start position of the latter available video segment as the start time of the next available video segment, where the next available video segment is
  • the playback end position setting is not limited and can be the end time of the next available video segment. You can also set a new playback end position.
  • the playback start position of the latter available video segment is determined as the next moment of the end time of the previous available video segment, and the playback end position of the latter available video segment is set as the end time of the latter available video segment.
  • the playback start position of the previous video segment and the playback end position of the latter video segment are not limited thereto.
  • the playback start position of the previous video segment may also be the playback start position obtained after the media gateway is clipped, and the playback end position of the latter video segment may also be the playback end position obtained after the media gateway clip.
  • the first available video segment (1st to 20s of the video to be played) and the second available video segment (15s to 40s of the video to be played) are determined.
  • the method of playing the start position and the end position is not a clip for video content, but a new play start position and a play end position generated for continuous play.
  • the next time of the video fragmentation end time is determined as the next second of the video fragmentation end time (again, for the sake of easy understanding, in the embodiment of the present invention, the next moment of the video fragmentation start time is also determined as The last second of the video segmentation start time is explained here. In the actual splicing, the previous time and the next time of the video frequency division are the closest time points to the time, not limited to the last second, the next time. second).
  • the play start position of the first available video is the 1st of the first available video (the start time of the first available video), and the play end position of the first available video is determined to be the 14th of the first available video (the second available video The beginning of the moment is a moment). Determining that the playback start position of the second available video is the 15th of the second available video (the start time of the second available video), and determining that the playback end position of the second available video is the 40th of the second available video (the second available video) End time).
  • the playback start position of the first available video is the first s of the first available video (the start time of the first available video)
  • the playback end position of the first available video is the 20th of the first available video (the end time of the first available video). Determining that the playback start position of the second available video is the 21st of the second available video (the next moment of the end time of the first available video), and determining that the playback end position of the second available video is the 40th of the second available video (No. The end time of the available video).
  • the playback end position of the second available video is not limited to the 40th of the second available video, and there may be other cases, which are not described herein.
  • the duration of the video segmentation is not specified, so that the video segments in the same media server may be the same duration or different durations.
  • video shards in different media servers may be the same length of time or different durations.
  • the media server records the attribute information of each video segment, which part of the video is the video segment. For example, the media server records that a certain video segment is the 20th to 40th in the movie A.
  • the media gateway needs to clip video segments with different durations (media content is not aligned) (not to edit the content of the video segment, but to generate a new playback start position).
  • the first available video segment (TS format) searched by the media gateway is the 1st to 20s of the to-be-played video (for example, movie A)
  • the second available video segment (MP4 format) is the 10th of the movie A. 40s, it is easy to know that the 10th to 20s of the first available video segment and the 10s to 20s of the second available video segment are the 10s to 20s content corresponding to the video to be played, and only the format is different. Therefore, the playback start position of the second available video segment generated by the media gateway should avoid repeating the content of the first available video segment, that is, the playback start position of the second available video segment is the 21st.
  • the method before the media gateway sends the playlist to the playback device, the method further includes:
  • the playback device (which may be a set top box according to an embodiment of the present invention) Playlist request message.
  • the media gateway may generate a playlist in advance, and send the generated playlist to the set top box after the playlist request message sent by the receiver set top box.
  • the media gateway quickly generates a playlist after the playlist request message sent by the receiver set-top box, and then sends the generated playlist to the set-top box.
  • the playing information further includes: duration information of the video fragment and a size of the video fragment.
  • the playlist includes: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • the size of each available video shard is not limited to: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • the method further comprises:
  • the video segments with the same start time and end time are sorted in descending order of definition, so that the set top box plays the video with the same start and end time.
  • the video shard the video shard that matches the current network state.
  • the media gateway may search for the first to 20s slices of the plurality of to-be-played videos, and the first to the 20th segments are all video segments with the same content. However, their resolution may be different.
  • the playback information of the first to the 20th may be included (including address information, duration information, playback start and stop position, The size is written into the playlist and arranged in descending order of video clip resolution. Enables the set-top box to play shards that match the current network conditions based on current network conditions. For example, when the network status is poor, video clips with lower definition are played.
  • the embodiment of the invention further provides a video playing method, which is applied to a multimedia system, and the execution subject is a set top box, and the method includes:
  • the playback device (which may be a set-top box) receives a playlist sent by the media device (which may be a media gateway), and finds information to available video segments according to the address in the order of available video segments of the to-be-played video indicated by the playlist.
  • the available video segments are played back using decoding parameters.
  • Each available video segment of the to-be-played video is a video segment from a different format and originating from the same media server. Or video shards from different media servers in different formats.
  • the video fragmentation in the embodiment of the present invention is not limited thereto, and each video fragment may also be a video fragment that is in the same format (both TS format) and originated from different media servers.
  • each video slice can be in the same format (both TS) Format), video shards from the same media server.
  • embodiments of the present invention are directed to achieving continuous playback of any video slice.
  • the media gateway determines the available video segments of the to-be-played video in the video segment matching the video to be played.
  • a slice may also be a video slice of a different format.
  • the set-top box can obtain each available video segment in sequence according to the address information of each available video segment included in the playlist, and decode and play each available video segment according to the decoding parameter, thereby implementing continuous video segmentation in each format. Playback, which is different from the splicing play in the prior art that the set top box only supports the homologous video segmentation.
  • the HLS only supports continuous playback of video fragments in the TS format
  • the playlist generated by the media gateway does not include any decoding information (or only the decoding parameters of the TS format), and the set top box can only decode and play the video in the TS format. Fragmentation.
  • the playlist generated by the media gateway includes decoding parameters of available video segments in various formats, and the set top box receives the play request of the user to request the playlist from the media gateway, and the set top box receives the playlist delivered by the media gateway.
  • the available video segments of various formats can be decoded according to the decoding parameters included in the playlist, thereby enabling playback of video composed of video segments of various formats.
  • the method before the playing device (which may be a set top box) receives the playlist sent by the media device (which may be a media gateway), the method further includes:
  • the set top box generates a play request message according to a user operation, where the play request message carries program information of the video requested by the user.
  • the program information of the video requested to be played includes at least one of a video release time, director information, and cast information.
  • the playlist further includes:
  • the program information The identification information of the to-be-played video.
  • the play start position of the available video segment is the start time of the available video segment
  • the set top box starts decoding the available video slice from the position indicated by the start time of the available video slice.
  • Playback starts from the starting position indicated by the start time of the available video segment, available at that The playback ends at the position indicated by the playback end position of the video slice.
  • the set top box starts decoding the available video segment from the position indicated by the start time of the available video segment; starting from the starting position indicated by the playback start position of the available video segment, in the available video segmentation
  • the playback ends at the position indicated by the playback end position.
  • the set-top box when the set-top box decodes the video fragment, it must start decoding from the key frame (I frame), but the set-top box does not necessarily start playing from the key frame, but can start from any frame (ie, the playlist). The position indicated by the playback start and stop position information is played.
  • the media device searches for a plurality of media servers in advance, searches for each video segment of the video to be played, and obtains decoding parameters, playback information, and address information of the video segments. Determining the order of each available video segment of the video to be played, and the starting and ending position of each available video segment, according to the start time and the end time of the video segment included in the playback information. Generating a playlist of playback start and stop positions, decoding parameters, and address information of each available video segment of the video to be played, so that the playback device can obtain the available information according to the address information of each available video segment of the playlist including the video to be played.
  • the video fragment is decoded according to the decoding parameters of the available video fragments, and the available video segments are decoded and played, and then the available video segments of each to-be-played video are continuously played.
  • the existing HLS technology only the continuous playback of the TS format video segmentation can be realized.
  • the present invention can realize the continuous playback of the video to be played.
  • the embodiment of the invention provides a video playing method, which is applied to a multimedia system. As shown in FIG. 3, the method includes the following steps:
  • the media gateway searches for at least one video server to match each video segment that matches the program information of the video to be played, and determines each video segment that matches the program information of the video to be played as each video segment of the to-be-played video. . And respectively, the playback information, the address information, and the decoding parameters of each video segment of the video to be played are obtained.
  • the play information of the video segment includes: duration information of the video segment, start time, end time, and program information.
  • Each video slice of the video to be played may be a video slice of a different format.
  • the media server in the multimedia system provided by the embodiment of the present invention is a video server or a CDN server, so the media gateway can search for a large number of video fragments.
  • the decoding parameters of the video fragment such as SPS/PPS (Sequence Parameter Set, PPS Picture Parameter Set) information required for H.264 decoder initialization.
  • SPS/PPS Sequence Parameter Set, PPS Picture Parameter Set
  • Each video segment is a video segment from a different format and originating from the same media server.
  • each video segment is a video segment from a different format and originating from a different media server.
  • the video fragmentation in the embodiment of the present invention is not limited thereto, and each video fragment may also be a video fragment that is in the same format (both TS format) and originated from different media servers.
  • each video slice may also be a video slice from the same media server in the same format (both TS format).
  • embodiments of the present invention are directed to achieving continuous playback of any video slice.
  • the duration of the video segmentation is not specified, so that the video segments in the same media server may be the same duration or different durations.
  • video shards in different media servers may be the same length of time or different durations.
  • the media server records the start time and end time of each video slice, that is, which part of the video the video slice is. For example, the media server records that a certain video segment is the 20th to 40th in the movie A.
  • the program information of the video fragment is the identification information of the video fragment, and may be the name of the video corresponding to the video fragment, or the release time of the video corresponding to the video fragment, the director information, and the like.
  • a video can be uniquely determined according to the program information of the video to be played, and thus a plurality of video segments corresponding to the video can be determined. For example, according to the name "Titanic", a video will be uniquely identified, and a video can be uniquely determined based on the director, the actor, the release time, and the like.
  • the duration of each video segment is not the same, and the format is not the same.
  • video clips that may be 10s, 20s, 35s, etc., may sometimes be in a matching video tile set that matches movie A.
  • the media gateway selects, as the first available video segment of the to-be-played video, the video segment that starts at the first time and has the largest duration as the first available video segment of the video to be played.
  • the start position is set to the start time of the first available video slice
  • the play end position of the first available video slice is set to the end time of the first available video slice.
  • the media gateway does not clip the first available video segment, so the playback end position of the first available video segment is set to the end time of the first available video segment.
  • the first available video segment is intended to continuously play the first video segment in a video segment of a video, and the start time of the first available video segment must be the first second of the video.
  • the video segment with the longest duration is selected in the same starting time (ie, the first s of the video).
  • the starting time ie, the first s of the video.
  • continuous playback of the video can be achieved with fewer video segments, reducing the complexity of continuous playback.
  • the video with the first time is the 1st and the longest duration. Fragmentation is used as the first available video segmentation, reducing the complexity of continuous playback.
  • the video clip matching the movie A is sometimes 10 s long
  • the video score of the first s to the 20s corresponding to the movie A may be 20s.
  • Sheet b Obviously, selecting a video segment b with a longer duration will reduce the complexity of continuous playback.
  • the media gateway may also edit the first available video segment to generate a new playback end position, and only need to set the playback start position of the first available video segment to the start time of the first available video segment, according to The specific case of the next available video segment determines the end of playback of the first available video segment.
  • the media gateway selects, in each video segment of the to-be-played video, the video segment that has the largest duration, including the next time instant of the first available video segment, as the second available video segment;
  • the playback start position of the video slice is set to the next time of the end time of the first available video slice, and the play end position of the second available video slice is set as the end time of the second available video slice.
  • the second available video segment described herein is used to continuously play the second video segment in the available video segment of the to-be-played video, and the start time of the second available video segment is not necessarily
  • the next moment of the end time of the first available video fragmentation only needs to include the next moment of the end time of the first available video fragmentation.
  • the starting moment of the second available video fragmentation is the ending moment of the first available video fragmentation.
  • the next moment will reduce the complexity of continuous playback, and the media gateway does not need to edit the second available video segment. For example, if the end time of the first available video segment is the 20th s of the video, the second available video segment must include the 21st of the video (ie, the next time of the first available video segmentation end time).
  • the video segment with the largest duration is also selected as the second available video segment.
  • the start time of the video segment including the next time of the end time of the first available video segment is not necessarily the next time of the end time of the first available video segment, and may be the first time.
  • the media gateway needs to edit the determined second available video segment to determine the playback start position and the playback end position of the second available video segment. This is because the second available video segment contains the same content as the first available video segment. Therefore, it is necessary to set the playback of the second available video segment according to the next moment of the first available video segmentation end time. Starting position.
  • the end time of the first available video segment is the 20th s of the video to be played
  • the media gateway searches for the video segment that matches the video to be played, and obtains the video segment of the 21s including the video to be played as the video segment.
  • Slice 1 (corresponding to the 21st to 30s of the video to be played), video fragment 2 (corresponding to the 20s to 33s of the video to be played), and video fragment 3 (corresponding to the 10th to 40s of the video to be played),
  • the video clip 3 with the longest duration is determined as the second available video fragment.
  • the 10s to 20s in the video segment 3 ie, the second available video segment in step 203 and the 10s to 20s in the first available video segment are the same content in the to-be-played video.
  • the media gateway sets the playback start position of the second available video segment to the next moment of the end time of the first available video segment, and sets the playback end position of the second available video segment to the second. The end time of the available video shards.
  • the media gateway If the ending time of the second available video segment is the ending time of the to-be-played video, the media gateway generates the play information, the address information, and the decoding of the first available video segment and the second available video segment in the playlist of the to-be-played video. parameter.
  • step 205 is performed.
  • the media gateway searches for the next video segment in each video segment of the to-be-played video, until the end time of the next video segment is the end time of the to-be-played video.
  • the media gateway determines a method for implementing other video segments for continuously playing the to-be-played video, which is the same as the method for determining the second available video segmentation in step 203.
  • each step of determining a video segment needs to follow step 204.
  • the method judges until the end time of the determined video segment is the end time of the video to be played.
  • step 204 it is determined that the end time of the second available video segment is the 40th of the video to be played, and the media gateway searches for the video segment of the 41s of the video to be played in the video segment of the video to be played.
  • Slice get video segment 4 (corresponding to the 41s to 50s of the video to be played), view Frequency segment 5 (corresponding to the 30s to 70s of the video to be played) and video segment 6 (corresponding to the 40s to 50s of the video to be played), the effective duration (ie, subtracting the content from the previous video segment)
  • the length of time The longest video slice 5 is determined to be the third available video slice.
  • the 30s to 40s in the video segment 5 ie, the third available video segment
  • the 30s to 40s in the second available video segment are the same content in the to-be-played video.
  • the media gateway sets the playback start position of the third video segment to the next moment of the end time of the second available video segment (ie, the 41s of the to-be-played video), and plays the third available video segment.
  • the end position is set to the end time of the third available video segment (ie, the 70s of the video to be played).
  • the movie "wind sound” (length 6840s) is taken as an example to introduce the process of the media gateway acquiring the playback start position and the end position of each video segment in the video clip set of each video.
  • the media gateway searches for the video segment named "Wind” in the initial video segment set acquired in step 301, and of course, the search time is 2000 (the release time of the movie "Wind"), and the director is Gao Qunshu ( The film “Director of the Wind", starring in the video segmentation of Zhou Xun and Li Bingbing. That is, a matching video slice set that acquires the movie "Wind”.
  • the media gateway searches for the video slice of the first s in which the start time is the movie "wind” in the matching video slice set of the movie "Wind".
  • the video clip with the longest duration is determined as the first available video segment of the movie "Wind”.
  • the start time of the first available video segment is the first s of the movie "Wind”
  • the ending time is the 10th of the movie "Wind”.
  • the media gateway searches for a video segment including the 11th of the movie “Wind” in the matching video segmentation set of the movie "Wind".
  • the longest video segment is determined as the second available video segment of the movie "Wind”.
  • the start time of the second available video segment is the 8th s of the movie "Wind”
  • the ending time is the 30th of the movie "Wind”.
  • the media gateway searches for a video segment including the 31st of the movie "Wind” in the matching video slice set of the movie "Wind".
  • the longest video segment is determined as the third video segment of the movie "Wind”.
  • the start time of the third video segment is the second s of the movie "wind”
  • the end time is the 70s of the movie "wind”.
  • the media gateway determines other video segments for continuously playing the movie "wind” according to the method of determining the second available video segment and the third video segment of the movie "wind", until the final determined video segmentation The end time is the 6840s of the movie "Wind”. At this point, the media gateway can determine each video segment in the set of play video fragments of the movie "Wind”.
  • the media gateway determines a play start position and a play end position of each video slice in the play video slice set of the movie “Wind Sound”.
  • the media gateway can also determine the playback start position and the playback end position of the video segment after determining a video segment (for continuously playing a video segment of the movie "wind"), as in steps 203 and 204. .
  • the media gateway sets the playback start position of the first available video segment to the first s, and the playback end position to the 10s.
  • the playback start position of the second available video slice is set to the 11th, and the playback end position is set to the 30th.
  • the playback start position of the third video slice is set to the 31st, and the playback end position is set to the 70s.
  • the media gateway generates a playlist, where the playlist includes a play start position, a play end position, address information, duration information, program information, decoding parameters, and each video to be played of each available video segment of the to-be-played play video.
  • the size of an available video shard is a playlist that includes a play start position, a play end position, address information, duration information, program information, decoding parameters, and each video to be played of each available video segment of the to-be-played play video.
  • the media gateway also contains related information of the video clips with the same content, but the video clips with the same content need to be sorted in descending order of sharpness, so that the set top box plays the video scores with the same start and end time.
  • the video fragment that matches the current network state.
  • the video segment X with the definition of super clear the video segment Y with the definition of high definition
  • the video segment Z with the clearness of the ordinary are the first s of the movie "Wind”
  • the ending time is the 10th of the movie "Wind”.
  • the playlist generated by the media gateway will include the playback start position and the playback end position of the video segments X, Y, and Z (for the video segments with the same content, regardless of whether the media gateway performs editing, their play start and stop positions are The same), address information, duration information, program information, decoding parameters, and the size of the video segments X, Y, Z.
  • the resolution of the video segments X, Y, and Z can also be written to the playlist, so that the set top box can play the video segments that match the current network state. For example, when the network status is not good, Z is selected to play lower definition.
  • the generated playlist can be as shown in Table 1.
  • START_SEAMLESS is the header of the playlist, indicating that the list is a seamless playlist.
  • STREAM: 334.00 is the total length of the list.
  • 3500_ASP_350K.mp4 indicates the fragment name and relative path.
  • STREAM: 269.00 indicates the duration of the slice.
  • BYTERANGE: 667588@1346456 is the fragmented payload offset and length.
  • CODECPRIVATEDATA 000000016764001FAC2CA5014016EFFC100010014808080A000007D200017700C100005A648000B4C9FE31C6080002D3240005A64F F18E1DA12251600000000168E9093525 is a decoding parameter.
  • BYTERANGE: 662459 indicates the total length of the shard. The offset defaults from 0. ENDLIST indicates the end of the playlist.
  • the set top box receives a play request message input by the user, and sends a playlist to the media gateway. A request message to request a playlist from the media gateway.
  • the play request message may carry program information of the video requested by the user.
  • the program information of the video segment requested to be played includes: video release time, director information, actor information, and the like.
  • the user operates the set top box to request the media gateway to provide a playlist, so that the program of interest is selected for playing in the playlist provided by the media gateway.
  • a playlist request message of the media gateway receiver top box and send a playlist to the set top box.
  • the media gateway sends the playlist to the set top box so that the set top box continuously plays video segments according to the playlist.
  • the media gateway pre-uses idle time to search for media resources on mainstream and popular media servers, classifies video segments according to program information, and generates playlists. For example, the video segments are classified according to the director information, and the works of the same director are classified, so that the user can select the program of interest to play according to the program information contained in the playlist.
  • the set-top box receives the playlist sent by the media gateway, and according to the order of the available video segments of the to-be-played video indicated by the playlist, finds information according to the address to the available video segment, and decodes and plays the available video segment by using the decoding parameter. sheet.
  • the available video segments of the video to be played include video segments with different formats.
  • the playlist includes: a play start position, a play end position, address information, duration information, program information, and a size of each available video slice of the to-be-played video of the video clip to be played.
  • the program information is identification information of the to-be-played video.
  • the playback start position of the video segment is the start time of the video segment (ie, the media gateway does not edit the video segment),
  • the set top box acquires the video fragment according to the address information of the video fragment, and starts decoding the video fragment from the position indicated by the start time of the video fragment.
  • Playback starts from the start position indicated by the start time of the video slice, and the play ends at the position indicated by the play end position of the video slice.
  • the set top box starts playing from the position indicated by the playback start position of the video slice, and ends playback at the position indicated by the playback end position of the video slice.
  • the decoding parameters of each video segment are written into the playlist, so that the set top box can continuously play video segments of different formats.
  • the actual addresses of the video fragments of different sources are written into the playlist, so that the set top box can obtain video fragments of different sources according to the playlist, so as to achieve continuous playback of video fragments of different sources.
  • the video segment is clipped, and the new play start position and the play end position are written into the playlist, so that the set top box can start playing from the correct position according to the playlist, and end the play at the correct position, thereby achieving no media content.
  • Continuous playback of aligned video slices unlike the prior art, only the continuous playback of the video segment of the TS format is supported.
  • the video playback method provided by the present invention supports continuous playback of video segments of different formats and different sources.
  • the set-top box can implement seamless splicing and continuous playback between video shards with different package formats by loading different package format parsers.
  • the media device searches for a plurality of media servers in advance, searches for each video segment of the video to be played, and obtains decoding parameters, playback information, and address information of the video segments. Determining the order of each available video segment of the video to be played, and the starting and ending position of each available video segment, according to the start time and the end time of the video segment included in the playback information. Generating a playlist of playback start and stop positions, decoding parameters, and address information of each available video segment of the video to be played, so that the playback device can obtain the available information according to the address information of each available video segment of the playlist including the video to be played.
  • the video fragment is decoded according to the decoding parameters of the available video fragments, and the available video segments are decoded and played, and then the available video segments of each to-be-played video are continuously played.
  • the existing HLS technology only the continuous playback of the TS format video segmentation can be realized.
  • the present invention can realize the continuous playback of the video to be played.
  • the latter available video segment is clipped.
  • the playback start position of the first available video segment is set as the start time of the first available video segment
  • the playback end position of the first available video segment is set as the end time of the first available video segment.
  • the playback start position of the second available video segment is set to the next moment of the end time of the first available video segment
  • the playback end position of the second available video segment is set to the end time of the second available video segment.
  • the previous available video segment may also be clipped. That is, the playback start position of the first available video segment is set as the start time of the first available video segment, and the playback end position of the first available video segment is set to the start time of the second available video segment. second.
  • the playback start position of the second available video slice is set to the start time of the second available video slice. At this time, the playback end position of the second available video segment may not be the end time of the second available video segment, but the media gateway needs to be set according to the next available video segment.
  • the restriction on the editing of the media gateway may be that the latter available video segment is edited, or the previous available video segment may be edited, or the stitching may be performed according to the specific situation. limited.
  • the media gateway clips the video segments 2, 3, the video segment 1 is not clipped.
  • the video segment 7 is a video segment searched by the media gateway on the media server A.
  • the video segments 8 and 9 are two video segments (ie, video segment 7 and video segment) searched by the media gateway on the server B.
  • Slices 8, 9 are video files of different sources).
  • the play start and stop position corresponding to the video segment 1 in the playlist generated by the media gateway is the start time of the video segment 7;
  • the playback start position corresponding to the video segment 8 is the a of the icon, and the playback ends.
  • the position is b shown in the figure;
  • the playback start position corresponding to the video slice 9 is c shown in the figure, and the playback end position is d shown in the figure.
  • the PlayItem in the figure defines the starting point and ending point of the actual playing of the video segment, and the media gateway records the PlayItem in the PlayList.
  • the set top box plays the movie according to the start and end position of the video slice, but for each video slice, it needs to start decoding from its key frame (ie, the start time of the video slice). Regardless of whether the playback start position of each video segment in the playlist indicates the start time of the video segment, after the set-top box receives the playlist, it needs to start decoding from the key frame (also called I frame) of each video segment. (E, f, g in the figure), the position indicated by the playback start position of each video segment in the playlist during playback (ie, the position specified by the PlayItem, which is not necessarily the I frame of the video segment) ) Play video shards. Referring to FIG.
  • decoding needs to be started from the illustrated e at the time of decoding, and starts from a' to b' at the time of playback.
  • the formats of the video segment 7, the video segment 8, and the video segment 9 may be different, and the set top box may decode the respective segments according to their respective decoding parameters included in the playlist.
  • the media device searches for a plurality of media servers in advance, searches for each video segment of the video to be played, and obtains decoding parameters, playback information, and address information of the video segments. Determining the order of each available video segment of the video to be played, and the starting and ending position of each available video segment, according to the start time and the end time of the video segment included in the playback information. Generating a playlist of playback start and stop positions, decoding parameters, and address information of each available video segment of the video to be played, so that the playback device can obtain the available information according to the address information of each available video segment of the playlist including the video to be played.
  • the video fragment is decoded according to the decoding parameters of the available video fragments, and the available video segments are decoded and played, and then the available video segments of each to-be-played video are continuously played.
  • the existing HLS technology only the continuous playback of the TS format video segmentation can be realized.
  • the present invention can realize the continuous playback of the video to be played.
  • the embodiment of the present invention provides a media device 3, which is deployed in a multimedia system.
  • the multimedia system includes: a media device, a playback device, and at least one media server.
  • the media device 3 includes: a search unit 301, and an acquisition.
  • the media server in the multimedia system provided by the embodiment of the present invention is a video server or a CDN server, so the media gateway can search for a large number of video fragments.
  • the decoding parameters of the video fragments are obtained, such as SPS/PPS (Sequence Parameter Set, PPS Picture Parameter Set) information required for H.264 decoder initialization.
  • SPS/PPS Sequence Parameter Set, PPS Picture Parameter Set
  • Each video segment is a video segment from a different format and originating from the same media server.
  • each video segment is a video segment from a different format and originating from a different media server.
  • each video fragment may also be a video fragment that is in the same format (both TS format) and originated from different media servers.
  • each video slice may also be a video slice from the same media server in the same format (both TS format).
  • embodiments of the present invention are directed to achieving continuous playback of any video slice.
  • the duration of the video segmentation is not specified, so that the video segments in the same media server may be the same duration or different durations.
  • video shards in different media servers may be the same length of time or different durations.
  • the media server records the start time and end time of each video slice, that is, which part of the video the video slice is. For example, the media server records a video score.
  • the film is the 20th to 40th in the movie A.
  • the searching unit 301 is configured to search for at least one video fragment of each video to be played in the at least one media server.
  • the search unit 301 determines a video slice matching the program information of the video to be played as a video slice of the video to be played.
  • the program information of the video fragment is the identification information of the video fragment, and may be the name of the video corresponding to the video fragment, or the release time of the video corresponding to the video fragment, the director information, and the like.
  • a video can be uniquely determined according to the program information of the video to be played, and thus a plurality of video segments corresponding to the video can be determined. For example, according to the name "Titanic", a video will be uniquely identified, and a video can be uniquely determined based on the director, the actor, the release time, and the like.
  • the duration of each video segment is not the same, and the format is not the same.
  • video clips that may be 10s, 20s, 35s, etc., may sometimes be in a matching video tile set that matches movie A.
  • the obtaining unit 302 is configured to separately acquire playing information, address information, and decoding parameters of the respective video segments.
  • the determining unit 303 is configured to determine, according to the playing information of each video segment, the available video segments that continuously play the to-be-played video and the order thereof.
  • the generating unit 304 is configured to generate, according to the sequence, a playlist that includes address information and decoding parameters of each available video segment.
  • the sending unit 305 is configured to send the playlist to the playing device, so that the playing device finds available video segments according to the address information in sequence, and decodes and plays the available video segments by using decoding parameters.
  • the searching unit 301 is configured to search, in the at least one media server, each video segment that matches the program information of the to-be-played video, Each of the video segments that match the program information of the to-be-played video is determined as each video segment of the to-be-played video, where the program information is identification information of the to-be-played video.
  • the play information further includes a start time and an end time of the video segment.
  • the determining unit 303 is specifically configured to: in each video segment of the to-be-played video, select any video segment whose start time is the first s as the first video that continuously plays the to-be-played video. Video segmentation is performed; in each video segment of the video to be played, any video segment including the next moment of the end time of the first available video segment is selected as the video to be played continuously. The second available video shard.
  • the determining unit 303 is further configured to determine a play start position and a play end position of the first available video segment, the second available video segment.
  • the determining unit is further configured to determine whether an end time of the second available video segment is an end time of the to-be-played video.
  • the generating unit 304 is specifically configured to: after the determining unit determines that the ending time of the second available video segment is the ending time of the to-be-played video, according to the first available video segment and the second available video
  • the sequence of the slices generates a playlist including the first available video segment, the playback start position of the second available video segment, the playback end position, the address information, and the decoding parameters.
  • the determining unit 303 is further configured to: when the determining unit determines that the end time of the second available video segment is not the ending time of the to-be-played video, in each video segment of the to-be-played video, Determining to determine the next available video segment until the end time of the next available video segment is the end time of the to-be-played video; determining the playback start position and end of each of the next available video segments position;
  • the generating unit 304 is further configured to generate, according to the sequence of each available video segment, a playlist including a play start position, a play end position, address information, and a decoding parameter of each available video segment.
  • the determining unit 303 is specifically configured to determine a play start position of the first available video segment as a start time of the first available video segment, and a play end position of the first available video segment Set to a time instant of the start time of the second available video segment; determine a playback start position of the second available video segment as a start time of the second available video segment, and the second The playback end position of the available video segments is set to the end time of the second available video segment.
  • the method further includes a receiving unit, configured to receive a playlist request message sent by the playing device.
  • the play information further includes: duration information of the video segment and a size of the video segment.
  • the playlist includes: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • the size of each available video shard is not limited to: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • the previous available video segment may also be clipped. That is, the playback start position of the first available video segment is set as the start time of the first available video segment, and the playback end position of the first available video segment is set to the start time of the second available video segment. second.
  • the playback start position of the second available video slice is set to the start time of the second available video slice. At this time, the playback end position of the second available video segment may not be the end time of the second available video segment, but the media gateway needs to be set according to the next available video segment.
  • the clipping of the determining unit 303 may be performed by performing the editing on the latter available video segment, or by editing the previous available video segment, or by splicing the clip according to the specific situation. limited.
  • the media device provided by the present invention searches for a plurality of media servers in advance, searches for video segments of the video to be played, and obtains decoding parameters, playback information, and address information of the video segments. Determining the order of each available video segment of the video to be played, and the starting and ending position of each available video segment, according to the start time and the end time of the video segment included in the playback information.
  • a playlist is generated that includes a play start position, a decoding parameter, and address information of each available video slice of the video to be played.
  • the playback device can obtain the available video segment according to the address information of each available video segment of the playlist that contains the video to be played, decode and play the available video segment according to the decoding parameters of the available video segment, and then continuously play each Each available video slice of the video to be played.
  • the present invention can realize the continuous playback of the video to be played.
  • the embodiment of the present invention provides a playback device 4, which is deployed in a multimedia system.
  • the multimedia system includes: a media device, a playback device, and at least one media server.
  • the playback device 4 includes: a receiving unit 401 and a playback device. Unit 402.
  • the receiving unit 401 is configured to receive a playlist sent by the media device.
  • the playing unit 402 is configured to use each available video of the to-be-played video indicated by the playlist.
  • the order of the slices, the information is found according to the address to the available video fragments, and the available video segments are played by decoding using the decoding parameters.
  • the playlist further includes:
  • the program information The identification information of the to-be-played video.
  • the playing unit 402 is specifically configured to start decoding the available video segment from a position indicated by a start time of the available video segment;
  • Playback starts from the start position indicated by the start time of the available video slice, and ends at the position indicated by the play end position of the available video slice.
  • the playing unit 402 is specifically configured to start decoding the available video segment from a position indicated by a start time of the available video segment;
  • Playback starts from the start position indicated by the play start position of the available video slice, and ends at the position indicated by the play end position of the available video slice.
  • the receiving unit 401 is further configured to receive a play request message input by the user;
  • the sending unit is configured to send a playlist request message to the media device, to request a playlist from the media device.
  • the playback device provided by the embodiment of the present invention can obtain the available video segment according to the address information of each available video segment of the playlist, and decode and play the available video segment according to the decoding parameters of the available video segment. And continuously playing each available video segment of each video to be played. Compared with the existing HLS technology, only the continuous playback of the TS format video segmentation can be realized. Compared with the video segmentation of the different formats, the present invention can realize the continuous playback of the video to be played.
  • the embodiment of the invention provides a multimedia system for continuous playing of video resources, which is characterized in that it comprises: a media device, a playing device and a media server.
  • the media device is the media device 3; the playback device is the playback device 4.
  • the media device searches for a plurality of media servers in advance, searches for video segments of the video to be played, and obtains decoding parameters, playback information, and address information of the video segments. Determining the order of each available video segment of the video to be played, and the starting and ending position of each available video segment, according to the start time and the end time of the video segment included in the playback information. Generating a playlist of playback start and stop positions, decoding parameters, and address information of each available video segment of the video to be played, so that the playback device can obtain the available information according to the address information of each available video segment of the playlist including the video to be played.
  • the video fragment is decoded according to the decoding parameters of the available video fragments, and the available video segments are decoded and played, and then the available video segments of each to-be-played video are continuously played.
  • the existing HLS technology only the continuous playback of the TS format video segmentation can be realized.
  • the present invention can realize the continuous playback of the video to be played.
  • the embodiment of the present invention provides a media device 5, which is deployed in a multimedia system, where the multimedia system includes: a media device, a video player, and at least one media server.
  • the media device 5 includes: a transmitting interface 501.
  • Receive interface 502, memory 503, and processor 504 coupled to transmit interface 501, receive interface 502, and memory 503, respectively.
  • the media device 5 may further include a common component such as a baseband processing component, a medium-frequency processing component, and an input/output device.
  • the embodiment of the present invention does not impose any limitation herein.
  • the memory 503 stores a set of program codes
  • the processor 504 is configured to call the program code stored in the memory 503 for performing the following operations:
  • the processor 504 is configured to search, in the at least one media server, each video segment of the video to be played.
  • the processor 504 determines a video slice that matches the program information of the video to be played as a video slice of the video to be played.
  • the program information of the video fragment is the identification information of the video fragment, and may be the name of the video corresponding to the video fragment, or the release time of the video corresponding to the video fragment, the director information, and the like.
  • a video can be uniquely determined according to the program information of the video to be played, and thus a plurality of video segments corresponding to the video can be determined. For example, according to the name "Titanic", a video will be uniquely identified, and a video can be uniquely determined based on the director, the actor, the release time, and the like.
  • the duration of each video segment is not the same, and the format is not the same.
  • video clips that may be 10s, 20s, 35s, etc., may sometimes be in a matching video tile set that matches movie A.
  • the processor 504 is configured to separately acquire playback information, address information, and decoding parameters of the video segments.
  • the processor 504 is configured to determine, according to the playing information of each video segment, the available video segments that continuously play the to-be-played video and the order thereof.
  • the processor 504 is configured to generate, according to the sequence, a playlist that includes address information and decoding parameters of each available video segment.
  • the processor 504 is configured to send the playlist to the playback device through the sending interface 501, so that the playback device finds available video fragments according to the address information in sequence, and decodes and plays the available video fragments by using the decoding parameters.
  • the searching unit 301 is configured to search, in the at least one media server, each video segment that matches the program information of the to-be-played video, Each of the video segments that match the program information of the to-be-played video is determined as each video segment of the to-be-played video, where the program information is identification information of the to-be-played video.
  • the play information further includes a start time and an end time of the video segment.
  • the processor 504 is specifically configured to: in each video segment of the to-be-played video, select any video segment whose start time is the first s as the first available video segment for continuously playing the to-be-played video. And selecting, in each of the video segments of the to-be-played video, a video segment that includes the next moment of the end time of the first available video segment as the second to continuously play the to-be-played video. Available video shards.
  • the processor 504 is further configured to determine a play start position and a play end position of the first available video segment, the second available video segment.
  • the processor 504 is further configured to determine whether an end time of the second available video segment is an end time of the to-be-played video.
  • the processor 504 is specifically configured to: after determining that the end time of the second available video segment is the end time of the to-be-played video, in the order of the first available video segment and the second available video segment A playlist is generated that includes a first available video segment, a playback start position of the second available video segment, a playback end location, address information, and decoding parameters.
  • the processor 504 is further configured to: determine that the end time of the second available video segment is not In the video clips of the to-be-played video, the next available video segment is determined to be determined until the end time of the next available video segment is the video to be played. End time; determining a play start position and a play end position of each of the next available video segments.
  • the processor 504 is further configured to generate, according to an order of each available video segment, a playlist including a play start position, a play end position, address information, and a decoding parameter of each available video segment.
  • the processor 504 is specifically configured to determine a play start position of the first available video segment as a start time of the first available video segment, and a play end position of the first available video segment Set to a time instant of the start time of the second available video segment; determine a playback start position of the second available video segment as a start time of the second available video segment, and the second The playback end position of the available video segments is set to the end time of the second available video segment.
  • the processor 504 is further configured to receive, by the accepting interface 502, a playlist request message sent by the playing device.
  • the play information further includes: duration information of the video segment and a size of the video segment.
  • the playlist includes: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • the size of each available video shard is not limited to: a decoding parameter, an address information, a play start position, a play end position, a duration information, a start time, an end time, and the to-be-played video of each available video segment of the to-be-played video.
  • the previous available video segment may also be clipped. That is, the playback start position of the first available video segment is set as the start time of the first available video segment, and the playback end position of the first available video segment is set to the start time of the second available video segment. second.
  • the playback start position of the second available video slice is set to the start time of the second available video slice. At this time, the playback end position of the second available video segment may not be the end time of the second available video segment, but the media gateway needs to be set according to the next available video segment.
  • the clipping of the processor 504 is not limited, and the latter available video segmentation is performed.
  • the previous available video segments may be edited, or the stitching may be performed according to the specific situation, which is not limited herein.
  • the embodiment of the present invention provides a playback device 6 deployed in a multimedia system, where the multimedia system includes: a media device, a video player, and at least one media server.
  • the playback device 6 includes: a transmission interface 601. And a receiving interface 602, a memory 603, and a processor 604 connected to the transmitting interface 601, the receiving interface 602, and the memory 603, respectively.
  • the media device 5 may further include a common component such as a baseband processing component, a medium-frequency processing component, and an input/output device.
  • the embodiment of the present invention does not impose any limitation herein.
  • the memory 603 stores a set of program codes
  • the processor 604 is configured to call the program code stored in the memory 603 for performing the following operations:
  • the processor 604 is configured to receive a playlist sent by the media device.
  • the processor 604 is configured to: according to the order of the available video segments of the to-be-played video indicated by the playlist, find information to the available video segments according to the address, and decode and play the available video segments by using the decoding parameters.
  • the playlist further includes: a play start position, a play end position, address information, duration information, program information, and each available video segment of the to-be-played video of the available video segments of the to-be-played video.
  • the program information is identification information of the to-be-played video.
  • the processor 604 is specifically configured to start decoding the available video segment from a position indicated by a start time of the available video segment;
  • Playback starts from the start position indicated by the start time of the available video slice, and ends at the position indicated by the play end position of the available video slice.
  • the processor 604 is specifically configured to start decoding the available video segment from a position indicated by a start time of the available video segment;
  • Playback starts from the start position indicated by the play start position of the available video slice, and ends at the position indicated by the play end position of the available video slice.
  • the processor 604 is further configured to receive, by using the receiving interface 602, a play request message input by the user;
  • the processor 604 is further configured to send a playlist request message to the media device by using the transmit interface 601, to request a playlist from the media device.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

本发明实施例提供了一种视频播放方法、媒体设备、播放设备以及多媒体***,涉及通信领域,用于实现任意格式的视频分片的连续播放。所述方法包括:在至少一个媒体服务器中搜索出待播放视频的各个视频分片;分别获取所述各个视频分片的播放信息、地址信息、解码参数;根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序,并按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表;将所述播放列表发送至播放设备,以便所述播放设备按照顺序根据地址信息找到可用视频分片,利用解码参数解码播放所述可用视频分片。

Description

一种视频播放方法、媒体设备、播放设备以及多媒体***
本申请要求于2014年08月26日提交中国专利局、申请号为201410424543.6,发明名称为“一种视频播放方法、媒体设备、播放设备以及多媒体***”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信领域,尤其涉及一种视频播放方法、媒体设备、播放设备以及多媒体***。
背景技术
目前,互联网上分布着大量的视频媒体文件分片,视频门户网站以及客户端需要整合各个视频媒体文件分片,才能实现视频文件的无缝播放。
现有一种HLS(Http Live Streaming,基于Http协议的流媒体网络传输)技术,能够将采集到的视频资源分割成TS(Transport Stream,传输流)格式的视频分片,并分发到网络中的媒体服务器上。以媒体网关和机顶盒构成的播放端设备为例,在播放某一视频时,媒体网关从媒体服务器上获取到该视频的各个TS格式的视频分片,将视频分片按照不同的码流组合,并将各视频分片的地址信息写入M3U8列表文件中。机顶盒收到M3U8列表后,通过解析M3U8列表可以获取各个视频分片的实际地址,然后根据各个视频分片的实际地址读取视频分片,无缝播放该视频。
可以看出,现有的HLS技术规定视频分片必须为TS格式,且视频分片的编码格式必须为H.264和AAC格式。其他格式的视频分片将无法利用HLS技术,视频分片的连续播放受到了极大的限制。
发明内容
本发明实施例提供一种视频播放方法、媒体设备、播放设备以及多媒体***,能够播放由各种格式的视频分片组成的视频。
为达到上述目的,本发明实施例采用的技术方案是,
第一方面,公开了一种视频播放方法,包括:
在至少一个媒体服务器中搜索出待播放视频的各个视频分片;
分别获取所述各个视频分片的播放信息、地址信息、解码参数;
根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序,并按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表;
将所述播放列表发送至播放设备,以便所述播放设备按照顺序根据地址信息找到可用视频分片,利用解码参数解码播放所述可用视频分片。
结合第一方面,在第一方面的第一种可能的实现方式中,所述播放信息包括视频分片的节目信息,
则,所述在至少一个媒体服务器中搜索出待播放视频的各个视频分片,具体包括:
在所述至少一个媒体服务器中搜索出与所述待播放视频的节目信息匹配的各个视频分片,将所述与所述待播放视频的节目信息匹配的各个视频分片确定为所述待播放视频的各个视频分片,其中,所述节目信息为所述待播放视频的标识信息。
结合第一方面,在第一方面的第二种可能的实现方式中,所述播放信息还包括视频分片的开始时刻、结束时刻,
则,所述根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序,并按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表,具体包括:
在所述待播放视频的各个视频分片中,选择任一开始时刻为第1s的视频分片作为连续播放所述待播放视频的第一可用视频分片;
在所述待播放视频的各个视频分片中,选择任一包含所述第一可用视频分片的结束时刻下一时刻在内的视频分片作为连续播放所述待播放视频的第二可用视频分片;
确定所述第一可用视频分片、所述第二可用视频分片的播放起始位置、播放结束位置;
若所述第二可用视频分片的结束时刻为所述待播放视频的结束时刻,则按照第一可用视频分片、第二可用视频分片的顺序生成包含第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播 放列表;
若确定所述第二可用视频分片的结束时刻不是所述待播放视频的结束时刻,则在所述待播放视频的各个视频分片中,查找确定下一个可用视频分片,直至所述下一个可用视频分片的结束时刻为所述待播放视频的结束时刻;确定每个所述下一个可用视频分片的播放起始位置、播放结束位置,按照各可用视频分片的顺序生成包含各可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
结合第一方面的第三种可能的实现方式,在第一方面的第三种可能的实现方式中,所述确定所述第一可用视频分片、所述第二可用视频分片的播放起始位置、播放结束位置,具体包括:
将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第二可用视频分片的开始时刻上一时刻;将所述第二可用视频分片的播放起始位置确定为所述第二可用视频分片的开始时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻;
或,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第一可用视频分片的结束时刻;将所述第二可用视频分片的播放起始位置确定为所述第一可用视频分片的结束时刻下一时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻。
结合第一方面,在第一方面的第四种可能的实现方式中,所述将所述播放列表发送至播放设备之前,所述方法还包括:
接收所述播放设备发送的播放列表请求消息。
结合第一方面、第一方面的第一至第四种可能的实现方式,在第一方面的第五种可能的实现方式中,所述播放信息还包括:视频分片的时长信息以及视频分片的大小,
则,所述播放列表包括:所述待播放视频的每一个可用视频分片的解码参数、地址信息、播放起始位置、播放结束位置、时长信息、开始时刻、结束时刻以及所述待播放视频的每一个可用视频分片的大小。
第二方面,公开了一种视频播放方法,所述方法包括:
接收媒体设备发送的播放列表,按照所述播放列表指示的待播放视频的各可用视频分片的顺序,根据地址找信息到可用视频分片,利用解码参数解码播放所述可用视频分片。
结合第二方面,在第二方面的第一种可能的实现方式中,所述播放列表还包括:
所述待播放视频的每一个可用视频分片的播放起始位置、播放结束位置、地址信息、时长信息、节目信息以及所述待播放视频的每一个可用视频分片的大小;所述节目信息为所述待播放视频的标识信息。
结合第二方面、第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,其特征在于,针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置为所述可用视频分片的开始时刻,
则,所述利用解码参数解码播放所述可用视频分片,具体包括:
从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
从所述可用视频分片的开始时刻指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
结合第二方面、第二方面的第一种可能的实现方式,在第二方面的第三种可能的实现方式中,针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置不是所述可用视频分片的开始时刻,
则,所述利用解码参数解码播放所述可用视频分片,具体包括:
从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
从所述可用视频分片的播放起始位置指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
结合第二方面,在第二方面的第四种可能的实现方式中,在所述接收所述媒体网关发送的播放列表之前,所述方法还包括:
接收用户输入的播放请求消息;
向所述媒体设备发送播放列表请求消息,用以向所述媒体设备请求播放列表。
第三方面,公开了一种媒体设备,所述媒体设备包括:
搜索单元,用于在至少一个媒体服务器中搜索出待播放视频的各个视频分片;
获取单元,用于分别获取所述各个视频分片的播放信息、地址信息、解码参数;
确定单元,用于根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序;
生成单元,用于按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表;
发送单元,用于将所述播放列表发送至播放设备,以便所述播放设备按照顺序根据地址信息找到可用视频分片,利用解码参数解码播放所述可用视频分片。
结合第三方面,在第三方面的第一种可能的实现方式中,所述播放信息包括视频分片的节目信息,
则,所述搜索单元具体用于,在所述至少一个媒体服务器中搜索出与所述待播放视频的节目信息匹配的各个视频分片,将所述与所述待播放视频的节目信息匹配的各个视频分片确定为所述待播放视频的各个视频分片,其中,所述节目信息为所述待播放视频的标识信息。
结合第三方面,在第三方面的第二种可能的实现方式中,所述播放信息还包括视频分片的开始时刻、结束时刻,
则,所述确定单元具体用于,在所述待播放视频的各个视频分片中,选择任一开始时刻为第1s的视频分片作为连续播放所述待播放视频的第一可用视频分片;在所述待播放视频的各个视频分片中,选择任一包含所述第一可用视频分片的结束时刻下一时刻在内的视频分片作为连续播放所述待播放视频的第二可用视频分片;
所述确定单元还用于,确定所述第一可用视频分片、所述第二可用视频分片的播放起始位置、播放结束位置;
还包括判断单元,
所述判断单元用于,判断所述第二可用视频分片的结束时刻是否为所述待播放视频的结束时刻;
所述生成单元具体用于,在所述判断单元确定所述第二可用视频分片的结 束时刻为所述待播放视频的结束时刻之后,则按照第一可用视频分片、第二可用视频分片的顺序生成包含第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表;
所述确定单元还用于,在所述判断单元确定所述第二可用视频分片的结束时刻不是所述待播放视频的结束时刻,则在所述待播放视频的各个视频分片中,查找确定下一个可用视频分片,直至所述下一个可用视频分片的结束时刻为所述待播放视频的结束时刻;确定每个所述下一个可用视频分片的播放起始位置、播放结束位置;
所述生成单元还用于,按照各可用视频分片的顺序生成包含各可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
结合第三方面的第二种可能的实现方式中,在第三方面的第三种可能的实现方式中,所述确定单元具体用于,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第二可用视频分片的开始时刻上一时刻;将所述第二可用视频分片的播放起始位置确定为所述第二可用视频分片的开始时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻;
或,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第一可用视频分片的结束时刻;将所述第二可用视频分片的播放起始位置确定为所述第一可用视频分片的结束时刻下一时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻。
结合第三方面,在第三方面的第四种可能的实现方式中,还包括接收单元,
所述接收单元用于,接收所述播放设备发送的播放列表请求消息。
结合第三方面,第三方面的第一至第四种可能的实现方式中,在第三方面的第五种可能的实现方式中,所述播放信息还包括:视频分片的时长信息以及视频分片的大小,
则,所述播放列表包括:所述待播放视频的每一个可用视频分片的解码参数、地址信息、播放起始位置、播放结束位置、时长信息、开始时刻、结束时刻以及所述待播放视频的每一个可用视频分片的大小。
第四方面,公开了一种播放设备,包括:
接收单元,用于接收媒体设备发送的播放列表;
播放单元,用于按照所述播放列表指示的待播放视频的各可用视频分片的顺序,根据地址找信息到可用视频分片,利用解码参数解码播放所述可用视频分片。
结合第四方面,在第四方面的第一种可能的实现方式中,所述播放列表还包括:
所述待播放视频的每一个可用视频分片的播放起始位置、播放结束位置、地址信息、时长信息、节目信息以及所述待播放视频的每一个可用视频分片的大小;所述节目信息为所述待播放视频的标识信息。
结合第四方面、第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置为所述可用视频分片的开始时刻,
则,所述播放单元具体用于,从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
从所述可用视频分片的开始时刻指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
结合第四方面、第四方面的第一种可能的实现方式,在第四方面的第三种可能的实现方式中,针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置不是所述可用视频分片的开始时刻,
则,所述播放单元具体用于,从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
从所述可用视频分片的播放起始位置指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
结合第四方面,在第四方面的第四种可能的实现方式中,还包括发送单元,
所述接收单元还用于,接收用户输入的播放请求消息;
所述发送单元用于,向所述媒体设备发送播放列表请求消息,用以向所述媒体设备请求播放列表。
第五方面,公开了一种多媒体***,用于视频资源的连续播放,其特征在于,包括:媒体设备、播放设备以及媒体服务器,
所述媒体设备为上述技术方案第三方面所述的媒体设备;
所述播放设备为上述技术方案第四方面所述的播放设备。
本发明提供的视频播放方法、媒体设备、播放设备以及多媒体***,媒体设备预先查找多个媒体服务器,从中搜索出待播放视频的各个视频分片,并获取这些视频分片的解码参数、播放信息以及地址信息。根据播放信息中包括的视频分片的开始时刻、结束时刻,确定待所述播放视频的每一个可用视频分片的顺序,以及每一个可用视频分片的播放起止位置。生成包含待播放视频的每一个可用视频分片的播放起止位置、解码参数、地址信息的播放列表,以便播放设备能够根据播放列表包含待播放视频的每一个可用视频分片的地址信息获取该可用视频分片,根据该可用视频分片的解码参数,解码播放该可用视频分片,进而连续播放各待播放视频的各个可用视频分片。相比现有HLS技术仅能实现TS格式视频分片的连续播放相比,本发明可以利用不同格式的视频分片实现待播放视频的连续播放。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明提供的多媒体***架构图;
图2为本发明实施例1提供的一种视频播放方法的流程示意图;
图3为本发明实施例2提供的一种视频播放方法的流程示意图;
图4为本发明实施例2提供的视频分片的无缝拼接的示意图;
图5为本发明实施例3提供的一种媒体设备的结构示意图;
图6为本发明实施例3提供的播放设备的结构示意图;
图7为本发明实施例5提供的媒体设备的结构示意图;
图8为本发明实施例5提供的播放设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是 全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
通常,多媒体***由媒体设备、播放设备以及媒体服务器组成,利用网络上的视频资源,实现视频分片的连续播放。其中,媒体设备负责搜索因特网上的媒体资源,整合媒体内容,生成播放列表。播放设备负责获取、解析播放列表,下载视频分片之后并解码显示视频。媒体服务器为基于互联网,广泛分布地视频服务器或CDN(content delivery network/content distribution network,内容分发网络)服务器。
本发明实施例,以媒体网关、机顶盒、媒体服务器组成的多媒体***为例(当然,媒体设备不仅限于媒体网关,播放设备不仅限于机顶盒),实现任意格式的视频分片的连续播放。如图1所示,本发明实施例提供的多媒体***包括一个机顶盒、一个媒体网关以及至少一个媒体服务器。
现有技术中,通过HLS技术整合互联网分布的各视频媒体文件分片,实现无缝播放。但HLS技术只支持TS格式的视频分片,并且文件格式和编码格式中途不能改变。因此HLS技术,无法实现任意格式的视频分片的连续播放。
实施例1:
本发明实施例提供一种视频播放方法,应用于多媒体***(该多媒体***包含媒体网关、机顶盒以及至少一个媒体服务器),执行主体为媒体网关,如图2所示,所述方法包括以下步骤:
101、在至少一个媒体服务器中搜索出待播放视频的各个视频分片。
这里,各视频分片为不同格式的视频分片,当然本发明实施例对视频分片不局限于此,各视频分片也可是格式相同(例如:均为TS格式)。总之,本发明实施例旨在实现任意视频分片的连续播放,避免像现有技术那样只能实现TS格式视频分片的连续播放。
由于本发明实施例提供的多媒体***包括一个媒体网关与一个机顶盒以及至少一个媒体服务器,因此当***包含两个(或两个以上)媒体服务器时,媒体网关搜索到的视频分片就可能是源自不同的媒体服务器、不同格式的视频分片。当然,各视频分片的时长也可能不尽相同。
具体实现中,媒体网关在至少一个媒体服务器中搜索出与待播放视频的节目信息匹配的各个视频分片,将这些与待播放视频的节目信息匹配的视频分片 确定为待播放视频的各个视频分片。其中,所述节目信息为所述待播放视频的标识信息。视频的标识信息可以是视频的名称或者是视频的上映时间、导演信息以及演员信息,当然视频的标识信息不局限于此,也可以是与视频唯一对应的标识。
102、分别获取所述各个视频分片的播放信息、地址信息、解码参数。
在现有标准中,对视频进行分割,获得大量的视频分片,在将视频分片下发至媒体服务器。媒体服务器会记录各视频分片的播放信息、地址信息以及解码参数。其中,播放信息包括视频分片的时长信息、开始时刻、结束时刻、节目信息以及视频分片的大小。
因此,媒体网关就可以在搜索出与待播放视频匹配的各个视频分片的同时,获取到这些视频分片的相关信息。
103、根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序,并按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表。
媒体网关根据每个视频分片的开始时刻、结束时刻,对与待播放视频匹配的各个视频分片进行剪辑拼,进而生成使得机顶盒能够连续播放该待播放视频的播放列表。
具体地,媒体网关在待播放视频的各个视频分片中,选择任一开始时刻为第1s的视频分片作为连续播放所述待播放视频的第一可用视频分片。
媒体网关在待播放视频的各个视频分片中,选择任一包含第一可用视频分片的结束时刻下一时刻在内的视频分片作为连续播放待播放视频的第二可用视频分片。
媒体网关确定第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置。
若第二可用视频分片的结束时刻为待播放视频的结束时刻,则按照第一可用视频分片、第二可用视频分片的顺序生成包含第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
若确定第二可用视频分片的结束时刻不是所述待播放视频的结束时刻,则在待播放视频的各个视频分片中,查找确定下一个可用视频分片,直至所述下一个可用视频分片的结束时刻为所述待播放视频的结束时刻;确定每个所述下 一个可用视频分片的播放起始位置、播放结束位置,按照各可用视频分片(包括第一可用视频分片、第二可用视频分片)的顺序生成包含各可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
当然,该播放列表还包括待播放视频的各可用视频分片的节目信息、时长信息、开始时刻、结束时刻以及各可用视频分片的大小。也可以包括其他信息,再此不做限定。
104、将所述播放列表发送至播放设备,以便所述播放设备按照顺序根据地址信息找到可用视频分片,利用解码参数解码播放所述可用视频分片。
示例地,媒体网关可以将生成的播放列表下发给机顶盒,以便机顶盒可以根据按照播放列表中待播放视频的可用视频分片的顺序,根据地址信息找到一个可用视频分片,并根据播放列表中该可用视频分片的解码参数解码播放该可用视频分片,进而实现待播放视频的各个可用视频分片的连续播放。
现有技术的播放列表不包含任何与解码有关的参数,或者仅包含TS格式的解码参数,因此现有HLS技术仅能实现TS格式的视频文件的连续播放。而本发明实施例步骤101在不同的媒体服务器搜索,获得不同格式的视频分片,生成包含待播放视频的每一个可用视频分片的解码参数在内的播放列表,就可使得机顶盒根据生成的播放列表对不同格式的视频分片进行解码,进而实现任意视频分片的连续播放。
优选地,在本发明的优选实施例中,
1)、媒体网关在待播放视频的各个视频分片中,选择任一开始时刻为第1s,时长最长的视频分片作为连续播放待播放视频的第一可用视频分片。
示例地,如果第一可用视频分片的结束时刻为第10s,包含第11s在内的有两个视频分片A、B,其中,A为待播放视频的5~20s分片(TS格式),B为待播放视频的10~30s分片(MP4),由于选择时长更长的视频分片能够降低连续播放的复杂度,因此在此将视频分片B作为待播放视频的第二可用视频分片。
2)、媒体网关在待播放视频的各个视频分片中,选择包含第一可用视频分片的结束时刻下一时刻,时长最长的视频分片作为连续播放待播放视频的第二可用视频分片。
一般情况下,两帧间隔为几十毫秒,两秒间包含很多帧。因此,第一可用视频分片的结束时刻并不特定地为下一秒。具体实现中,依据码流中的时间戳, 以最近时时间戳作为下一时刻。
3)、媒体网关确定第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置。
4)、若第二可用视频分片的结束时刻为待播放视频的结束时刻,则按照第一可用视频分片、第二可用视频分片的顺序生成包含第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
5)、若确定第二可用视频分片的结束时刻不是所述待播放视频的结束时刻,则在待播放视频的各个视频分片中,查找确定下一个可用视频分片,直至所述下一个可用视频分片的结束时刻为待播放视频的结束时刻。这里,在确定每一个所述下一个可用视频分片时,将包含上一个可用视频分片的结束时刻下一时刻在内,时长最长的视频分片确定为本次确定的待播放视频的可用视频分片。
示例地,媒体网关将待播放视频的匹配视频分片集合中,包含第二可用视频的结束时刻下一时刻在内的视频分片中,时长最大的视频分片作为第三视频分片。媒体网关将待播放视频的各个视频分片,包含第三可用视频分片的结束时刻下一时刻在内的视频分片中,时长最大的视频分片作为第四可用视频分片。重复上述操作,直至确定的最后一个可用视频分片的结束时刻为待播放视频的结束时刻。这样,将确定的这些视频分片的解码参数、播放信息写入播放列表,就使得机顶盒可以解码这些不同格式的视频分片,进而在根据各视频分片的播放信息实现对待播放视频的连续播放。
6)、确定每个所述下一个可用视频分片的播放起始位置、播放结束位置,按照各可用视频分片(包括第一可用视频分片、第二可用视频分片)的顺序生成包含各可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
另外,现有技术是不能将格式不同的视频分片A、B连续播放,而本发明实施例步骤102就获取了待播放视频的每一个视频分片的解码参数,步骤103生成的播放列表包含了待播放视频的每一个可用视频的解码参数,因此机顶盒可以根据媒体网关发送的播放列表中第一可用视频分片、第二可用视频分片的解码参数,解码第一可用视频分片和第二可用视频分片。进而机顶盒再根据播 放列表中第一可用视频分片的播放开始位置、播放结束位置,第二可用视频分片的播放开始位置、播放结束位置播放第一可用视频分片、第二可用视频分片。
需要说明的,媒体网关可以通过两种方式确定每一个可用视频分片的播放起始位置、播放结束位置。包括:针对两个顺序相邻的可用视频分片,媒体网关对前一个可用视频分片进行剪辑,或者对后一个可用视频分片进行剪辑。
针对两个顺序相邻的可用视频分片,具体包括:将前一个可用视频分片的播放起始位置确定为前一个可用视频分片的开始时刻,将前一个可用视频分片的播放结束位置设置为后一个可用视频分片的开始时刻上一时刻;将后一个可用视频分片的播放起始位置确定为后一个可用视频分片的开始时刻,在此,对后一个可用视频分片的播放结束位置设置不做限定,可以为后一个可用视频分片的结束时刻。也可以设置新的播放结束位置。
或,将所述前一个可用视频分片的播放起始位置确定为前一个可用视频分片的开始时刻,将前一个可用视频分片的播放结束位置设置为前一个视频分片的结束时刻;将后一个可用视频分片的播放起始位置确定为前一个可用视频分片的结束时刻下一时刻,将后一个可用视频分片的播放结束位置设置为后一个可用视频分片的结束时刻。
需要说明的是,这里前一个视频分片的播放开始位置、后一个视频分片的播放结束位置并不局限于此。前一个视频分片的播放开始位置也可以媒体网关剪辑后获得的播放起始位置,后一个视频分片的播放结束位置同样可以是媒体网关剪辑后获得的播放结束位置。
这里,以第一可用视频分片(待播放视频的第1s~第20s),第二可用视频分片(待播放视频的第15s~第40s)为例,介绍两种确定可用视频分片的播放起始位置、播放结束位置的方法。需要说明的是,本发明实施例所述“剪辑”并不是对视频内容的剪辑,而是为了实现连续播放生成的新的播放起始位置、播放结束位置。另外,为方便理解,将视频分片结束时刻下一时刻定为视频分片结束时刻的下一秒(同样,为方便理解,本发明实施例中还将视频分片开始时刻下一时刻定为视频分片开始时刻的上一秒,在此作出说明。实际拼接时,视频分频的上一时刻、下一时刻均为距离该时刻最近的时间点,并不局限于上一秒、下一秒)。
第一种,若对第一可用视频(即上述前一个可用视频)进行剪辑,则确定 第一可用视频的播放起始位置为第一可用视频的第1s(第一可用视频的开始时刻),确定第一可用视频的播放结束位置为第一可用视频的第14s(第二可用视频的开始时刻上一时刻)。确定第二可用视频的播放起始位置为第二可用视频的第15s(第二可用视频的开始时刻),确定第二可用视频的播放结束位置为第二可用视频的第40s(第二可用视频的结束时刻)。
第二种,若对第二可用视频(即上述后一个可用视频)进行剪辑,则确定第一可用视频的播放起始位置为第一可用视频的第1s(第一可用视频的开始时刻),确定第一可用视频的播放结束位置为第一可用视频的第20s(第一可用视频的结束时刻)。确定第二可用视频的播放起始位置为第二可用视频的第21s(第一可用视频的结束时刻下一时刻),确定第二可用视频的播放结束位置为第二可用视频的第40s(第二可用视频的结束时刻)。当然,第二可用视频的播放结束位置不局限于第二可用视频的第40s,还可能有其他情况,在此不赘述。
需要说明的,在对视频资源进行分割获得视频分片时,不会规定视频分片的时长,这样,同一媒体服务器中的视频分片可能是相同时长,也可能是不同时长的。同样的,不同媒体服务器中的视频分片也可能是相同时长,也可能是不同时长的。而媒体服务器会记录有每个视频分片的属性信息,即该视频分片是哪个视频的哪一部分。例如,媒体服务器记录有某视频分片是电影A中的第20s~第40s。
这样,为了避免内容重复,媒体网关就需要对时长不相同(媒体内容不对齐)的视频分片进行剪辑(并不是对视频分片的内容进行剪辑,而是生成新的播放起始位置)。例如,媒体网关搜索到的第一可用视频分片(TS格式)为待播放视频(例如电影A)的第1s~第20s,第二可用视频分片(MP4格式)为电影A的第10s~40s,易知第一可用视频分片的第10s~第20s、第二可用视频分片的第10s~第20s均为待播放视频对应的第10s~第20s内容,仅格式不同。因此,媒体网关生成的第二可用视频分片的播放开始位置就应该避免重复第一可用视频分片的内容,即第二可用视频分片的播放开始位置为其第21s。
优选地,在本发明的优选实施例中,媒体网关将所述播放列表发送至播放设备之前,所述方法还包括:
媒体网关接收所述播放设备(可以是本发明实施例所述的机顶盒)发送的 播放列表请求消息。
这里,并不做限定,可以是媒体网关预先生成播放列表,在接收机顶盒发送的播放列表请求消息之后,将生成的播放列表下发给机顶盒。
也可以是,媒体网关在接收机顶盒发送的播放列表请求消息之后,快速生成播放列表,再将生成的播放列表下发给机顶盒。
优选地,在本发明的优选实施例中,所述播放信息还包括:视频分片的时长信息以及视频分片的大小,
则,所述播放列表包括:所述待播放视频的每一个可用视频分片的解码参数、地址信息、播放起始位置、播放结束位置、时长信息、开始时刻、结束时刻以及所述待播放视频的每一个可用视频分片的大小。
优选地,在本发明的优选实施例中,所述方法还包括:
所述媒体网关将与待播放视频的节目信息匹配的视频分片中,开始时刻、结束时刻均相同的视频分片按清晰度的降序顺序排序,以便所述机顶盒播放所述起止时刻相同的视频分片中,与当前网络状态匹配的视频分片。
示例地,媒体网关可能会搜索到多个待播放视频中的第1s~第20s分片,这些第1s~第20s的分片均为内容相同的视频分片。但是它们的清晰度可能不尽相同,媒体网关在生成待播放视频对应在播放列表中的相关信息时,可以将这些第1s~第20s的播放信息(包括地址信息、时长信息、播放起止位置、大小)均写入播放列表中,并按照各视频分片清晰度降序顺序排列。使得机顶盒可以依据当前网络状况播放与当前网络状况匹配的分片。例如,网络状态差的时候播放清晰度较低的视频分片。
本发明实施例还提供一种视频播放方法,应用于多媒体***,执行主体为机顶盒,所述方法包括:
播放设备(可以是机顶盒)接收媒体设备(可以是媒体网关)发送的播放列表,按照所述播放列表指示的待播放视频的各可用视频分片的顺序,根据地址找信息到可用视频分片,利用解码参数解码播放所述可用视频分片。
其中,待播放视频的各可用视频分片为不同格式、源自同一媒体服务器的视频分片。或不同格式、源自不同媒体服务器的视频分片。当然,本发明实施例对视频分片不局限于此,各视频分片也可是格式相同(均为TS格式)、源自不同媒体服务器的视频分片。或者,各视频分片也可是格式相同(均为TS 格式)、源自同一媒体服务器的视频分片。总之,本发明实施例旨在实现任意视频分片的连续播放。
这里,由于媒体网关预先搜索到的与待播放视频匹配的视频分片的格式可能不尽相同,因此媒体网关在与待播放视频匹配的视频分片中,确定的待播放视频的各可用视频分片也可能是格式不同的视频分片。机顶盒可以根据播放列表中包含的各可用视频分片的地址信息,按顺序获取每个可用视频分片,根据解码参数解码播放每一个可用视频分片,进而实现各个格式的可用视频分片的连续播放,这与现有技术中机顶盒仅支持同源视频分片的拼接播放是不同的。
现有技术中,HLS只支持TS格式的视频分片的连续播放,媒体网关生成的播放列表不包含任何解码信息(或只包含TS格式的解码参数),机顶盒也只能解码播放TS格式的视频分片。本发明提供的方法,媒体网关生成的播放列表包含各种格式的可用视频分片的解码参数,机顶盒接收用户的播放请求向媒体网关请求播放列表,机顶盒接收媒体网关下发的播放列表后也就能够根据播放列表包含的解码参数解码各种格式的可用视频分片,进而能够播放由各种格式的视频分片组成的视频。
在本发明的优选实施例中,在播放设备(可以是机顶盒)接收媒体设备(可以是媒体网关)发送的播放列表之前,所述方法还包括:
接收用户输入的播放请求消息,并向媒体设备(可以是媒体网关)发送播放列表请求消息,用以向所述媒体设备(可以是媒体网关)求播放列表。
具体地,机顶盒根据用户操作生成播放请求消息,该播放请求消息携带用户请求播放的视频的节目信息。这里,请求播放的视频的节目信息包括:视频上映时间、导演信息、演员信息中的至少一项。
优选地,在本发明的优选实施中,所述播放列表还包括:
所述待播放视频的每一个可用视频分片的播放起始位置、播放结束位置、地址信息、时长信息、节目信息以及所述待播放视频的每一个可用视频分片的大小;所述节目信息为所述待播放视频的标识信息。
优选地,在本发明的优选实施中,针对待播放视频的任一可用视频分片,若该可用视频分片的播放起始位置为该可用视频分片的开始时刻,
则,机顶盒从该可用视频分片的开始时刻指示的位置处开始解码该可用视频分片。从该可用视频分片的开始时刻指示的起始位置处开始播放,在该可用 视频分片的播放结束位置指示的位置处结束播放。
若该可用视频分片的播放起始位置不是该可用视频分片的开始时刻,
则,机顶盒从该可用视频分片的开始时刻指示的位置处开始解码该可用视频分片;从该可用视频分片的播放起始位置指示的起始位置处开始播放,在该可用视频分片的播放结束位置指示的位置处结束播放。
需要说明的是,机顶盒解码视频分片时必须要从关键帧(I帧)开始解码,但机顶盒要做到无缝播放,就不一定从关键帧开始播放,可以从任意帧开始(即播放列表中的播放起止位置信息指示的位置)播放。
本发明提供的视频播放方法,媒体设备预先查找多个媒体服务器,从中搜索出待播放视频的各个视频分片,并获取这些视频分片的解码参数、播放信息以及地址信息。根据播放信息中包括的视频分片的开始时刻、结束时刻,确定待所述播放视频的每一个可用视频分片的顺序,以及每一个可用视频分片的播放起止位置。生成包含待播放视频的每一个可用视频分片的播放起止位置、解码参数、地址信息的播放列表,以便播放设备能够根据播放列表包含待播放视频的每一个可用视频分片的地址信息获取该可用视频分片,根据该可用视频分片的解码参数,解码播放该可用视频分片,进而连续播放各待播放视频的各个可用视频分片。相比现有HLS技术仅能实现TS格式视频分片的连续播放相比,本发明可以利用不同格式的视频分片实现待播放视频的连续播放。
实施例2:
本发明实施例提供一种视频播放方法,应用于多媒体***,如图3所示,所述方法包括以下步骤:
201、媒体网关在至少一个媒体服务器中搜索出与待播放视频的节目信息匹配的各个视频分片,将与待播放视频的节目信息匹配的各个视频分片确定为待播放视频的各个视频分片。并分别获取待播放视频的各个视频分片的播放信息、地址信息、解码参数。
其中,视频分片的播放信息包括:视频分片的时长信息、开始时刻、结束时刻、节目信息。待播放视频的各个视频分片可以是格式不同的视频分片。
本发明实施例提供的多媒体***中的媒体服务器为视频服务器或CDN服务器,因此媒体网关可以通过搜索到大量的视频分片。具体实现中,获取这些 视频分片的解码参数,如H.264解码器初始化需要的SPS/PPS(Sequence Parameter Set,序列参数集/PPS Picture Parameter Set,图像参数集)信息。其中,各视频分片为不同格式、源自同一媒体服务器的视频分片。或,各视频分片为不同格式、源自不同媒体服务器的视频分片。当然,本发明实施例对视频分片不局限于此,各视频分片也可是格式相同(均为TS格式)、源自不同媒体服务器的视频分片。或者,各视频分片也可是格式相同(均为TS格式)、源自同一媒体服务器的视频分片。总之,本发明实施例旨在实现任意视频分片的连续播放。
另外现有的标准中,在对视频资源进行分割获得视频分片时,不会规定视频分片的时长,这样,同一媒体服务器中的视频分片可能是相同时长,也可能是不同时长的。同样的,不同媒体服务器中的视频分片也可能是相同时长,也可能是不同时长的。而媒体服务器会记录有每个视频分片的开始时刻、结束时刻,即该视频分片是哪个视频的哪一部分。例如,媒体服务器记录有某视频分片是电影A中的第20s~第40s。
视频分片的节目信息为视频分片的标识信息,可以是视频分片对应的视频的名称,也可以是视频分片对应的视频的上映时间、导演信息等。总之,根据待播放视频的节目信息可以唯一确定一个视频,进而可以确定与该视频对应的多个视频分片。例如根据名称“泰坦尼克号”会唯一确定一个视频,也可以根据导演、演员、上映时间等唯一确定一个视频。
这里,获取的与待播放视频的节目信息匹配的视频分片中,各视频分片的时长不尽相同,格式也不尽相同。示例的,与电影A匹配的匹配视频分片集合中可能有时长10s、20s、35s等的视频分片。
202、媒体网关在待播放视频的各个视频分片中,选择开始时刻为第1s且时长最大的视频分片作为待播放视频的第一可用视频分片,将第一可用视频分片的播放起始位置设置为第一可用视频分片的开始时刻,将第一可用视频分片的播放结束位置设置为第一可用视频分片的结束时刻。
需要说明的是,这里媒体网关不对第一可用视频分片进行剪辑,因此将第一可用视频分片的播放结束位置设置为第一可用视频分片的结束时刻。所述的第一可用视频分片意为用以连续播放某视频的视频分片中的第一个视频分片,第一可用视频分片的开始时刻必须为该视频的第一秒。
确定用以连续播放待播放视频的第一个可用视频分片时,在开始时刻相同(即均为该视频的第1s)中选择时长最长的那个视频分片。这样就可以用较少的视频分片实现该视频的连续播放,降低连续播放的复杂度。例如,对于时长100s的视频而言,选择5个时长为20s的视频分片实现连续播放,显然比选择10个时长为10s的视频分片简单,因此,开始时刻为第1s且时长最大的视频分片作为第一可用视频分片,降低连续播放的复杂度。
示例地,若与电影A匹配的视频分片中有时长为10s、对应电影A的第1s~第10s的视频分片a;有时长为20s、对应电影A的第1s~第20s的视频分片b。显然,选择时长更长的视频分片b会降低连续播放的复杂度。
另外,媒体网关也可以对第一可用视频分片进行剪辑,生成新的播放结束位置,只需要将第一可用视频分片的播放起始位置设置为第一可用视频分片的开始时刻,根据下一个可用视频分片的具体情况确定第一可用视频分片的播放结束位置。
203、媒体网关在待播放视频的各个视频分片中,选择包含第一可用视频分片的结束时刻下一时刻在内,时长最大的视频分片作为第二可用视频分片;将第二可用视频分片的播放起始位置设置为第一可用视频分片的结束时刻下一时刻,将第二可用视频分片的播放结束位置设置为第二可用视频分片的结束时刻。
需要说明的是,这里所述的第二可用视频分片意为用以连续播放待播放视频的可用视频分片中的第二个视频分片,第二可用视频分片的开始时刻不一定为第一可用视频分片结束时刻的下一时刻,只需要包含第一可用视频分片结束时刻的下一时刻就可以,当然第二可用视频分片的开始时刻为第一可用视频分片结束时刻的下一时刻会降低连续播放的复杂度,媒体网关不需要对第二可用视频分片进行剪辑。例如,第一可用视频分片的结束时刻为该视频的第20s,则第二可用视频分片就必须包含该视频的第21s(即第一可用视频分片结束时刻的下一时刻)。
同步骤202中所述,在包含第一可用视频分片的结束时刻下一时刻在内的视频分片中,也需要选择时长最大的视频分片作为第二可用视频分片。这里需要注意的是,包含第一可用视频分片结束时刻的下一时刻在内的视频分片的开始时刻,不一定是第一可用视频分片结束时刻的下一时刻,也可能是第一可用 视频分片结束时刻的下一时刻之前的时刻,这就需要媒体网关对确定的第二可用视频分片进行剪辑,确定第二可用视频分片的播放起始位置、播放结束位置。这是由于第二可用视频分片中包含与第一可用视频分片相同的内容,因此,就需要根据第一可用视频分片结束时刻的下一时刻,设置第二可用视频分片的播放起始位置。
示例地,第一可用视频分片的结束时刻为待播放视频的第20s,媒体网关在与待播放视频匹配的视频分片中查找,获取包含待播放视频的第21s的视频分片为视频分片1(对应待播放视频的第21s~第30s)、视频分片2(对应待播放视频的第20s~第33s)、视频分片3(对应待播放视频的第10s~第40s),将时长最长的视频分片3确定为第二可用视频分片。
另外,由于视频分片3(即步骤203所述第二可用视频分片)中第10s~第20s,与第一可用视频分片中的第10s~第20s均为待播放视频中的相同内容,为避免重复播放,媒体网关将第二可用视频分片的播放起始位置设置为第一可用视频分片的结束时刻下一时刻,将第二可用视频分片的播放结束位置设置为第二可用视频分片的结束时刻。
204、判断第二可用视频分片的结束时刻是否为待播放视频的结束时刻。
若第二可用视频分片的结束时刻为待播放视频的结束时刻,媒体网关生成待播放视频的播放列表中包含第一可用视频分片和第二可用视频分片的播放信息、地址信息、解码参数。
若第二可用视频分片的结束时刻不是待播放视频的结束时刻,则进行步骤205。
205、媒体网关在待播放视频的各个视频分片中,查找确定下一个视频分片,直至所述下一个视频分片的结束时刻为所述待播放视频的结束时刻。
这里,媒体网关确定用以实现连续播放待播放视频的其他视频分片的方法,与步骤203中确定第二可用视频分片的方法相同,当然每确定一个视频分片后也需要按照步骤204的方法进行判断,直至确定的视频分片的结束时刻为待播放视频的结束时刻。
示例地,在步骤204中确定第二可用视频分片的结束时刻为待播放视频的第40s,媒体网关在待播放视频的各视频分片中查找开始时刻包含待播放视频的第41s的视频分片,获得视频分片4(对应待播放视频的第41s~第50s)、视 频分片5(对应待播放视频的第30s~第70s)、视频分片6(对应待播放视频的第40s~第50s),将有效时长(即减去与上一视频分片重复内容后的时长)最长的视频分片5确定为第三可用视频分片。
另外,由于视频分片5(即所述第三可用视频分片)中第30s~第40s,与第二可用视频分片中的第30s~第40s均为待播放视频中的相同内容,为避免重复播放,媒体网关将第三视频分片的播放起始位置设置为第二可用视频分片的结束时刻下一时刻(即待播放视频的第41s),将第三可用视频分片的播放结束位置设置为第三可用视频分片的结束时刻(即待播放视频的第70s)。
为方便理解,在此以电影“风声”(片长6840s)为例,介绍媒体网关获取每个视频的播放视频分片集合中每一个视频分片的播放起始位置、播放结束位置的流程。
1)、媒体网关在步骤301获取的初始视频分片集合中搜索名称为“风声”的视频分片,当然也可以搜索上映时间为2000年(电影“风声”的上映时间),导演为高群书(电影“风声”的导演),主演为周迅、李冰冰的视频分片。也就是获取电影“风声”的匹配视频分片集合。
2)、媒体网关在电影“风声”的匹配视频分片集合中,查找获取开始时刻为电影“风声”的第1s的视频分片。并将这些开始时刻为电影“风声”的第1s的视频分片中,时长最长的视频分片确定为电影“风声”的第一可用视频分片。其中,第一可用视频分片的开始时刻为电影“风声”的第1s,结束时刻为电影“风声”的第10s。
3)、媒体网关在电影“风声”的匹配视频分片集合中,查找获取包含电影“风声”的第11s在内的视频分片。并将包含电影“风声”的第11s在内的视频分片中,时长最长的视频分片确定为电影“风声”的第二可用视频分片。其中,第二可用视频分片的开始时刻为电影“风声”的第8s,结束时刻为电影“风声”的第30s。
4)、媒体网关在电影“风声”的匹配视频分片集合中,查找获取包含电影“风声”的第31s在内的视频分片。并将包含电影“风声”的第31s在内的视频分片中,时长最长的视频分片确定为电影“风声”的第三视频分片。其中,第三视频分片的开始时刻为电影“风声”的第2s,结束时刻为电影“风声”的第70s。
5)、媒体网关按照确定电影“风声”的第二可用视频分片、第三视频分片的方法,确定用以连续播放电影“风声”的其他视频分分片,直至最后确定的视频分片的结束时刻为电影“风声”的第6840s。到此,媒体网关就可以确定电影“风声”的播放视频分片集合中的每一个视频分片。
6)、媒体网关确定电影“风声”的播放视频分片集合中的每一个视频分片的播放起始位置、播放结束位置。
当然,媒体网关也可以像步骤203、204那样,每确定一个视频分片(用以连续播放电影“风声”的视频分片)后,就确定该视频分片的播放起始位置、播放结束位置。具体地,媒体网关在确定电影“风声”的第一可用视频分片后,将第一可用视频分片的播放起始位置设置为第1s,播放结束位置设置为第10s。将第二可用视频分片的播放起始位置设置为第11s,播放结束位置设置为第30s。将第三视频分片的播放起始位置设置为第31s,播放结束位置设置为第70s。
206、媒体网关生成播放列表,该播放列表包含待播放播放视频的每一个可用视频分片的播放起始位置、播放结束位置、地址信息、时长信息、节目信息、解码参数以及待播放视频的每一个可用视频分片的大小。
需要说明的,对于内容相同的视频分片(即开始时刻、结束时刻相同且对应同一视频的视频分片),若这些内容相同的视频分片均能够用以实现该视频的连续播放,媒体网关生成的播放列表中也会包含这些内容相同的视频分片的相关信息,但需要将这些内容相同的视频分片按清晰度的降序顺序排序,以便所述机顶盒播放所述起止时刻相同的视频分片中,与当前网络状态匹配的视频分片。示例地,若上述流程中确定电影“风声”的第一可用视频分片有清晰度为超清的视频分片X、清晰度为高清的视频分片Y、清晰度为普通的视频分片Z,当然视频分片X、Y、Z的开始时刻均为电影“风声”的第1s,结束时刻均为电影“风声”的第10s。则,媒体网关生成的播放列表中会包含视频分片X、Y、Z的播放起始位置、播放结束位置(对于内容相同的视频分片,不论媒体网关是否进行剪辑,它们的播放起止位置是相同的)、地址信息、时长信息、节目信息、解码参数以及视频分片X、Y、Z的大小。当然,也可以将视频分片X、Y、Z的清晰度写入播放列表,使得机顶盒可以播放与当前网络状态匹配的视频分片。示例地,网络状态不好时,选择播放清晰度较低的Z。
生成的播放列表可以如表1所示。
Figure PCTCN2015087381-appb-000001
表1
其中,START_SEAMLESS为播放列表的表头,表示该列表是无缝播放列表。STREAM:334.00为列表的总时长。3500_ASP_350K.mp4表示分片名称以及相对路径。STREAM:269.00表示分片时长。BYTERANGE:667588@1346456为分片有效内容偏移和长度。CODECPRIVATEDATA:000000016764001FAC2CA5014016EFFC100010014808080A000007D200017700C100005A648000B4C9FE31C6080002D3240005A64F F18E1DA12251600000000168E9093525为解码参数。BYTERANGE:662459表示分片的总长度,偏移默认从0开始。ENDLIST表示播放列表结束。
207、机顶盒接收用户输入的播放请求消息,并向媒体网关发送播放列表 请求消息,用以向媒体网关请求播放列表。
其中,播放请求消息可以携带用户请求播放的视频的节目信息。请求播放的视频分片的节目信息包括:视频上映时间、导演信息、演员信息等。
具体实现中,用户操作机顶盒请求媒体网关提供播放列表,以便在媒体网关提供的播放列表中选择感兴趣的节目进行播放。
208、媒体网关接收机顶盒的播放列表请求消息,并向机顶盒发送播放列表。
媒体网关向所述机顶盒发送所述播放列表以便所述机顶盒根据所述播放列表连续播放视频分片。
媒体网关预先利用空闲时间在主流、热门媒体服务器上搜索媒体资源,根据节目信息将视频分片分类,并生成播放列表。例如按照导演信息将视频分片分类,即将同一个导演的作品归类,以便用户可以根据播放列表中包含的节目信息选择感兴趣的节目播放。
209、机顶盒接收媒体网关发送的播放列表,按照所述播放列表指示的待播放视频的各可用视频分片的顺序,根据地址找信息到可用视频分片,利用解码参数解码播放所述可用视频分片。
其中,待播放视频的各可用视频分片中包括格式不同的视频分片。播放列表包含:待播放视频的每一个可用视频分片的播放起始位置、播放结束位置、地址信息、时长信息、节目信息以及所述待播放视频的每一个可用视频分片的大小。节目信息为所述待播放视频的标识信息。
以一个视频(例如电影A)为例,针对该视频的播放视频分片集合中的任一视频分片:
若所述视频分片的播放起始位置为该视频分片的开始时刻(即媒体网关未对该视频分片进行剪辑),
则,机顶盒根据该视频分片的地址信息获取该视频分片,从该视频分片的开始时刻指示的位置处开始解码视频分片。
从该视频分片的开始时刻指示的起始位置处开始播放,在该视频分片的播放结束位置指示的位置处结束播放。
若所述视频分片的播放起始位置不是所述视频分片的开始时刻,
则,机顶盒获取该视频分片后从该视频分片的开始时刻指示的位置处开始 解码该视频分片。
机顶盒从该视频分片的播放起始位置指示的位置处开始播放,在该视频分片的播放结束位置指示的位置处结束播放。
这样,利用本发明提供的方法,将各视频分片的解码参数写入播放列表,使得机顶盒可以对不同格式的视频分片连续播放。将不同源(源自不同媒体服务器源)的视频分片的实际地址写入播放列表,使得机顶盒可以根据该播放列表获取不同源的视频分片,实现对不同源的视频分片的连续播放。对视频分片进行剪辑,将新的播放起始位置以及播放结束位置写入播放列表,使得机顶盒可以根据该播放列表获取从正确的位置开始播放,在正确的位置结束播放,实现对媒体内容不对齐的视频分片的连续播放。综上,不同于现有技术仅支持TS格式的视频分片的连续播放,本发明提供的视频播放方法,支持不同格式、不同源的视频分片连续播放。
另外,对于封装格式不同的视频分片,机顶盒通过加载不同的封装格式解析器来实现封装格式不同的视频分片间的无缝拼接以及连续播放。
本发明提供的视频播放方法,媒体设备预先查找多个媒体服务器,从中搜索出待播放视频的各个视频分片,并获取这些视频分片的解码参数、播放信息以及地址信息。根据播放信息中包括的视频分片的开始时刻、结束时刻,确定待所述播放视频的每一个可用视频分片的顺序,以及每一个可用视频分片的播放起止位置。生成包含待播放视频的每一个可用视频分片的播放起止位置、解码参数、地址信息的播放列表,以便播放设备能够根据播放列表包含待播放视频的每一个可用视频分片的地址信息获取该可用视频分片,根据该可用视频分片的解码参数,解码播放该可用视频分片,进而连续播放各待播放视频的各个可用视频分片。相比现有HLS技术仅能实现TS格式视频分片的连续播放相比,本发明可以利用不同格式的视频分片实现待播放视频的连续播放。
实施例2中,确定待播放视频的各可用视频分片的播放起始位置、播放结束位置时,均对后一个可用视频分片进行剪辑。例如:将第一可用视频分片的播放起始位置设置为第一可用视频分片的开始时刻,将第一可用视频分片的播放结束位置设置为第一可用视频分片的结束时刻。将第二可用视频分片的播放起始位置设置为第一可用视频分片的结束时刻下一时刻,将第二可用视频分片的播放结束位置设置为第二可用视频分片的结束时刻。
媒体网关确定待播放视频的各可用视频分片的播放起始位置、播放结束位置时,也可以对前一个可用视频分片进行剪辑。即,将第一可用视频分片的播放起始位置设置为第一可用视频分片的开始时刻,将第一可用视频分片的播放结束位置设置为第二可用视频分片的开始时刻前一秒。将第二可用视频分片的播放起始位置设置为第二可用视频分片的开始时刻。这时,第二可用视频分片的播放结束位置就可能不是第二可用视频分片的结束时刻,而需要媒体网关根据下一个可用视频分片来设置。
总之,对媒体网关的剪辑不做限制可以是均对后一个可用视频分片进行剪辑,也可以是均对前一个可用视频分片进行剪辑,也可以是根据具体情况进行拼接剪辑,在此不作限定。
示例地,如图4所示,若媒体网关对视频分片2、3进行了剪辑,并未对视频分片1进行剪辑。
视频分片7是媒体网关在媒体服务器A上搜索到的一个视频分片,视频分片8、9是媒体网关在服务器B上搜索到的两个视频分片(即视频分片7和视频分片8、9为不同源的视频文件)。根据媒体网关的剪辑动作,媒体网关生成的播放列表中视频分片1对应的播放起止位置为视频分片7的开始时刻;视频分片8对应的播放起始位置为图示的a,播放结束位置为图示的b;视频分片9对应的播放起始位置为图示的c,播放结束位置为图示的d。具体地,图中的PlayItem(播放条目)定义了该视频分片的实际播放的起始点和结束点,媒体网关会将PlayItem记录在PlayList(播放列表)中。
总之,机顶盒根据视频分片的播放起止位置播放影片,但对于每个视频分片都需要从其关键帧(即该视频分片的开始时刻)开始解码。不管播放列表中各视频分片的播放起始位置是否指示的是该视频分片的开始时刻,机顶盒接收播放列表之后,都需要从各视频分片的关键帧(也可以叫做I帧)开始解码(图示的e、f、g三处),播放时按照播放列表中各视频分片的播放起始位置指示的位置(即PlayItem指定的位置,该位置不一定是视频分片的I帧开始)播放视频分片。结合图4,对视频分片2而言,解码时需要从图示的e处开始解码,播放时从a′处开始到b′结束。当然,视频分片7、视频分片8、视频分片9的格式可以各不相同,机顶盒可以根据播放列表包含的它们各自对应的解码参数对它们进行解码。
本发明提供的视频播放方法,媒体设备预先查找多个媒体服务器,从中搜索出待播放视频的各个视频分片,并获取这些视频分片的解码参数、播放信息以及地址信息。根据播放信息中包括的视频分片的开始时刻、结束时刻,确定待所述播放视频的每一个可用视频分片的顺序,以及每一个可用视频分片的播放起止位置。生成包含待播放视频的每一个可用视频分片的播放起止位置、解码参数、地址信息的播放列表,以便播放设备能够根据播放列表包含待播放视频的每一个可用视频分片的地址信息获取该可用视频分片,根据该可用视频分片的解码参数,解码播放该可用视频分片,进而连续播放各待播放视频的各个可用视频分片。相比现有HLS技术仅能实现TS格式视频分片的连续播放相比,本发明可以利用不同格式的视频分片实现待播放视频的连续播放。
实施例3:
本发明实施例提供一种媒体设备3,部署在多媒体***中,所述多媒体***包括:媒体设备、播放设备以及至少一个媒体服务器,如图5所示,媒体设备3包括:搜索单元301、获取单元302、确定单元303、生成单元304以及发送单元305。
本发明实施例提供的多媒体***中的媒体服务器为视频服务器或CDN服务器,因此媒体网关可以通过搜索到大量的视频分片。具体实现中,获取这些视频分片的解码参数,如H.264解码器初始化需要的SPS/PPS(Sequence Parameter Set,序列参数集/PPS Picture Parameter Set,图像参数集)信息。其中,各视频分片为不同格式、源自同一媒体服务器的视频分片。或,各视频分片为不同格式、源自不同媒体服务器的视频分片。当然,本发明实施例对视频分片不局限于此,各视频分片也可是格式相同(均为TS格式)、源自不同媒体服务器的视频分片。或者,各视频分片也可是格式相同(均为TS格式)、源自同一媒体服务器的视频分片。总之,本发明实施例旨在实现任意视频分片的连续播放。
另外现有的标准中,在对视频资源进行分割获得视频分片时,不会规定视频分片的时长,这样,同一媒体服务器中的视频分片可能是相同时长,也可能是不同时长的。同样的,不同媒体服务器中的视频分片也可能是相同时长,也可能是不同时长的。而媒体服务器会记录有每个视频分片的开始时刻、结束时刻,即该视频分片是哪个视频的哪一部分。例如,媒体服务器记录有某视频分 片是电影A中的第20s~第40s。
搜索单元301,用于在至少一个媒体服务器中搜索出待播放视频的各个视频分片。
搜索单元301将与待播放视频的节目信息匹配的视频分片确定为待播放视频的视频分片。视频分片的节目信息为视频分片的标识信息,可以是视频分片对应的视频的名称,也可以是视频分片对应的视频的上映时间、导演信息等。总之,根据待播放视频的节目信息可以唯一确定一个视频,进而可以确定与该视频对应的多个视频分片。例如根据名称“泰坦尼克号”会唯一确定一个视频,也可以根据导演、演员、上映时间等唯一确定一个视频。
这里,获取的与待播放视频的节目信息匹配的视频分片中,各视频分片的时长不尽相同,格式也不尽相同。示例的,与电影A匹配的匹配视频分片集合中可能有时长10s、20s、35s等的视频分片。
获取单元302,用于分别获取所述各个视频分片的播放信息、地址信息、解码参数。
确定单元303,用于根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序。
生成单元304,用于按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表。
发送单元305,用于将所述播放列表发送至播放设备,以便所述播放设备按照顺序根据地址信息找到可用视频分片,利用解码参数解码播放所述可用视频分片。
结所述播放信息包括视频分片的节目信息,则,所述搜索单元301具体用于,在所述至少一个媒体服务器中搜索出与所述待播放视频的节目信息匹配的各个视频分片,将所述与所述待播放视频的节目信息匹配的各个视频分片确定为所述待播放视频的各个视频分片,其中,所述节目信息为所述待播放视频的标识信息。
所述播放信息还包括视频分片的开始时刻、结束时刻,
则,所述确定单元303具体用于,在所述待播放视频的各个视频分片中,选择任一开始时刻为第1s的视频分片作为连续播放所述待播放视频的第一可 用视频分片;在所述待播放视频的各个视频分片中,选择任一包含所述第一可用视频分片的结束时刻下一时刻在内的视频分片作为连续播放所述待播放视频的第二可用视频分片。
所述确定单元303还用于,确定所述第一可用视频分片、所述第二可用视频分片的播放起始位置、播放结束位置。
还包括判断单元,所述判断单元用于,判断所述第二可用视频分片的结束时刻是否为所述待播放视频的结束时刻。
所述生成单元304具体用于,在所述判断单元确定所述第二可用视频分片的结束时刻为所述待播放视频的结束时刻之后,则按照第一可用视频分片、第二可用视频分片的顺序生成包含第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
所述确定单元303还用于,在所述判断单元确定所述第二可用视频分片的结束时刻不是所述待播放视频的结束时刻,则在所述待播放视频的各个视频分片中,查找确定下一个可用视频分片,直至所述下一个可用视频分片的结束时刻为所述待播放视频的结束时刻;确定每个所述下一个可用视频分片的播放起始位置、播放结束位置;
所述生成单元304还用于,按照各可用视频分片的顺序生成包含各可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
所述确定单元303具体用于,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第二可用视频分片的开始时刻上一时刻;将所述第二可用视频分片的播放起始位置确定为所述第二可用视频分片的开始时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻。或,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第一可用视频分片的结束时刻;将所述第二可用视频分片的播放起始位置确定为所述第一可用视频分片的结束时刻下一时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻。
还包括接收单元,所述接收单元用于,接收所述播放设备发送的播放列表请求消息。
所述播放信息还包括:视频分片的时长信息以及视频分片的大小,
则,所述播放列表包括:所述待播放视频的每一个可用视频分片的解码参数、地址信息、播放起始位置、播放结束位置、时长信息、开始时刻、结束时刻以及所述待播放视频的每一个可用视频分片的大小。
确定单元303确定待播放视频的各可用视频分片的播放起始位置、播放结束位置时,也可以对前一个可用视频分片进行剪辑。即,将第一可用视频分片的播放起始位置设置为第一可用视频分片的开始时刻,将第一可用视频分片的播放结束位置设置为第二可用视频分片的开始时刻前一秒。将第二可用视频分片的播放起始位置设置为第二可用视频分片的开始时刻。这时,第二可用视频分片的播放结束位置就可能不是第二可用视频分片的结束时刻,而需要媒体网关根据下一个可用视频分片来设置。
总之,确定单元303的剪辑不做限制可以是均对后一个可用视频分片进行剪辑,也可以是均对前一个可用视频分片进行剪辑,也可以是根据具体情况进行拼接剪辑,在此不作限定。
本发明提供的媒体设备预先查找多个媒体服务器,从中搜索出待播放视频的各个视频分片,并获取这些视频分片的解码参数、播放信息以及地址信息。根据播放信息中包括的视频分片的开始时刻、结束时刻,确定待所述播放视频的每一个可用视频分片的顺序,以及每一个可用视频分片的播放起止位置。生成包含待播放视频的每一个可用视频分片的播放起止位置、解码参数、地址信息的播放列表。以便播放设备能够根据播放列表包含待播放视频的每一个可用视频分片的地址信息获取该可用视频分片,根据该可用视频分片的解码参数,解码播放该可用视频分片,进而连续播放各待播放视频的各个可用视频分片。相比现有HLS技术仅能实现TS格式视频分片的连续播放相比,本发明可以利用不同格式的视频分片实现待播放视频的连续播放。
本发明实施例提供一种播放设备4,部署在多媒体***中,所述多媒体***包括:媒体设备、播放设备以及至少一个媒体服务器,如图6所示,播放设备4包括:接收单元401以及播放单元402。
接收单元401,用于接收媒体设备发送的播放列表;
播放单元402,用于按照所述播放列表指示的待播放视频的各可用视频分 片的顺序,根据地址找信息到可用视频分片,利用解码参数解码播放所述可用视频分片。
所述播放列表还包括:
所述待播放视频的每一个可用视频分片的播放起始位置、播放结束位置、地址信息、时长信息、节目信息以及所述待播放视频的每一个可用视频分片的大小;所述节目信息为所述待播放视频的标识信息。
针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置为所述可用视频分片的开始时刻,
则,所述播放单元402具体用于,从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
从所述可用视频分片的开始时刻指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置不是所述可用视频分片的开始时刻,
则,所述播放单元402具体用于,从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
从所述可用视频分片的播放起始位置指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
还包括发送单元,
所述接收单元401还用于,接收用户输入的播放请求消息;
所述发送单元用于,向所述媒体设备发送播放列表请求消息,用以向所述媒体设备请求播放列表。
本发明实施例提供的播放设备能够根据播放列表包含待播放视频的每一个可用视频分片的地址信息获取该可用视频分片,根据该可用视频分片的解码参数,解码播放该可用视频分片,进而连续播放各待播放视频的各个可用视频分片。相比现有HLS技术仅能实现TS格式视频分片的连续播放相比,本发明可以利用不同格式的视频分片实现待播放视频的连续播放。
实施例4:
本发明实施例提供了一种多媒体***,用于视频资源的连续播放,其特征在于,包括:媒体设备、播放设备以及媒体服务器。
所述媒体设备为上述媒体设备3;所述播放设备为上述播放设备4。
本发明提供的多媒体***,媒体设备预先查找多个媒体服务器,从中搜索出待播放视频的各个视频分片,并获取这些视频分片的解码参数、播放信息以及地址信息。根据播放信息中包括的视频分片的开始时刻、结束时刻,确定待所述播放视频的每一个可用视频分片的顺序,以及每一个可用视频分片的播放起止位置。生成包含待播放视频的每一个可用视频分片的播放起止位置、解码参数、地址信息的播放列表,以便播放设备能够根据播放列表包含待播放视频的每一个可用视频分片的地址信息获取该可用视频分片,根据该可用视频分片的解码参数,解码播放该可用视频分片,进而连续播放各待播放视频的各个可用视频分片。相比现有HLS技术仅能实现TS格式视频分片的连续播放相比,本发明可以利用不同格式的视频分片实现待播放视频的连续播放。
实施例5:
本发明实施例提供一种媒体设备5,部署在多媒体***中,所述多媒体***包括:媒体设备、视频播放以及至少一个媒体服务器,如图7所示,所述媒体设备5包括:发射接口501、接收接口502、存储器503以及分别与发射接口501、接收接口502和存储器503连接的处理器504。当然,媒体设备5还可以包括基带处理部件、中射频处理部件、输入输出装置等通用部件,本发明实施例在此不做任何限制。其中,存储器503中存储一组程序代码,且处理器504用于调用存储器503中存储的程序代码,用于执行以下操作:
处理器504,用于在至少一个媒体服务器中搜索出待播放视频的各个视频分片。
处理器504将与待播放视频的节目信息匹配的视频分片确定为待播放视频的视频分片。视频分片的节目信息为视频分片的标识信息,可以是视频分片对应的视频的名称,也可以是视频分片对应的视频的上映时间、导演信息等。总之,根据待播放视频的节目信息可以唯一确定一个视频,进而可以确定与该视频对应的多个视频分片。例如根据名称“泰坦尼克号”会唯一确定一个视频,也可以根据导演、演员、上映时间等唯一确定一个视频。
这里,获取的与待播放视频的节目信息匹配的视频分片中,各视频分片的时长不尽相同,格式也不尽相同。示例的,与电影A匹配的匹配视频分片集合中可能有时长10s、20s、35s等的视频分片。
处理器504,用于分别获取所述各个视频分片的播放信息、地址信息、解码参数。
处理器504,用于根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序。
处理器504,用于按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表。
处理器504用于通过发送接口501,将所述播放列表发送至播放设备,以便所述播放设备按照顺序根据地址信息找到可用视频分片,利用解码参数解码播放所述可用视频分片。
结所述播放信息包括视频分片的节目信息,则,所述搜索单元301具体用于,在所述至少一个媒体服务器中搜索出与所述待播放视频的节目信息匹配的各个视频分片,将所述与所述待播放视频的节目信息匹配的各个视频分片确定为所述待播放视频的各个视频分片,其中,所述节目信息为所述待播放视频的标识信息。
所述播放信息还包括视频分片的开始时刻、结束时刻,
则,所述处理器504具体用于,在所述待播放视频的各个视频分片中,选择任一开始时刻为第1s的视频分片作为连续播放所述待播放视频的第一可用视频分片;在所述待播放视频的各个视频分片中,选择任一包含所述第一可用视频分片的结束时刻下一时刻在内的视频分片作为连续播放所述待播放视频的第二可用视频分片。
所述处理器504还用于,确定所述第一可用视频分片、所述第二可用视频分片的播放起始位置、播放结束位置。
处理器504还用于,判断所述第二可用视频分片的结束时刻是否为所述待播放视频的结束时刻。
所述处理器504具体用于,在确定所述第二可用视频分片的结束时刻为所述待播放视频的结束时刻之后,则按照第一可用视频分片、第二可用视频分片的顺序生成包含第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
所述处理器504还用于,在确定所述第二可用视频分片的结束时刻不是所 述待播放视频的结束时刻,则在所述待播放视频的各个视频分片中,查找确定下一个可用视频分片,直至所述下一个可用视频分片的结束时刻为所述待播放视频的结束时刻;确定每个所述下一个可用视频分片的播放起始位置、播放结束位置。
所述处理器504还用于,按照各可用视频分片的顺序生成包含各可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
所述处理器504具体用于,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第二可用视频分片的开始时刻上一时刻;将所述第二可用视频分片的播放起始位置确定为所述第二可用视频分片的开始时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻。或,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第一可用视频分片的结束时刻;将所述第二可用视频分片的播放起始位置确定为所述第一可用视频分片的结束时刻下一时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻。
处理器504还用于,通过接受接口502接收所述播放设备发送的播放列表请求消息。
所述播放信息还包括:视频分片的时长信息以及视频分片的大小,
则,所述播放列表包括:所述待播放视频的每一个可用视频分片的解码参数、地址信息、播放起始位置、播放结束位置、时长信息、开始时刻、结束时刻以及所述待播放视频的每一个可用视频分片的大小。
处理器504确定待播放视频的各可用视频分片的播放起始位置、播放结束位置时,也可以对前一个可用视频分片进行剪辑。即,将第一可用视频分片的播放起始位置设置为第一可用视频分片的开始时刻,将第一可用视频分片的播放结束位置设置为第二可用视频分片的开始时刻前一秒。将第二可用视频分片的播放起始位置设置为第二可用视频分片的开始时刻。这时,第二可用视频分片的播放结束位置就可能不是第二可用视频分片的结束时刻,而需要媒体网关根据下一个可用视频分片来设置。
总之,处理器504的剪辑不做限制可以是均对后一个可用视频分片进行剪 辑,也可以是均对前一个可用视频分片进行剪辑,也可以是根据具体情况进行拼接剪辑,在此不作限定。
本发明实施例提供一种播放设备6,部署在多媒体***中,所述多媒体***包括:媒体设备、视频播放以及至少一个媒体服务器,如图8所示,所述播放设备6包括:发射接口601、接收接口602、存储器603以及分别与发射接口601、接收接口602和存储器603连接的处理器604。当然,媒体设备5还可以包括基带处理部件、中射频处理部件、输入输出装置等通用部件,本发明实施例在此不做任何限制。其中,存储器603中存储一组程序代码,且处理器604用于调用存储器603中存储的程序代码,用于执行以下操作:
处理器604,用于接收媒体设备发送的播放列表。
处理器604,用于按照所述播放列表指示的待播放视频的各可用视频分片的顺序,根据地址找信息到可用视频分片,利用解码参数解码播放所述可用视频分片。
所述播放列表还包括:所述待播放视频的每一个可用视频分片的播放起始位置、播放结束位置、地址信息、时长信息、节目信息以及所述待播放视频的每一个可用视频分片的大小;所述节目信息为所述待播放视频的标识信息。
针对所述待播放视频的任一可用视频分片:
1)、若所述可用视频分片的播放起始位置为所述可用视频分片的开始时刻,
则,所述处理器604具体用于,从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
从所述可用视频分片的开始时刻指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
2)、若所述可用视频分片的播放起始位置不是所述可用视频分片的开始时刻,
则,所述处理器604具体用于,从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
从所述可用视频分片的播放起始位置指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
处理器604还用于,通过接收接口602接收用户输入的播放请求消息;
处理器604还用于,通过发射接口601向所述媒体设备发送播放列表请求消息,用以向所述媒体设备请求播放列表。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (23)

  1. 一种视频播放方法,其特征在于,包括:
    在至少一个媒体服务器中搜索出待播放视频的各个视频分片;
    分别获取所述各个视频分片的播放信息、地址信息、解码参数;
    根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序,并按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表;
    将所述播放列表发送至播放设备,以便所述播放设备按照顺序根据地址信息找到可用视频分片,利用解码参数解码播放所述可用视频分片。
  2. 根据权利要求1所述的方法,其特征在于,所述播放信息包括视频分片的节目信息,
    则,所述在至少一个媒体服务器中搜索出待播放视频的各个视频分片,具体包括:
    在所述至少一个媒体服务器中搜索出与所述待播放视频的节目信息匹配的各个视频分片,将所述与所述待播放视频的节目信息匹配的各个视频分片确定为所述待播放视频的各个视频分片,其中,所述节目信息为所述待播放视频的标识信息。
  3. 根据权利要求1所述的方法,其特征在于,所述播放信息还包括视频分片的开始时刻、结束时刻,
    则,所述根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序,并按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表,具体包括:
    在所述待播放视频的各个视频分片中,选择任一开始时刻为第1s的视频分片作为连续播放所述待播放视频的第一可用视频分片;
    在所述待播放视频的各个视频分片中,选择任一包含所述第一可用视频分片的结束时刻下一时刻在内的视频分片作为连续播放所述待播放视频的第二可用视频分片;
    确定所述第一可用视频分片、所述第二可用视频分片的播放起始位置、播放结束位置;
    若所述第二可用视频分片的结束时刻为所述待播放视频的结束时刻,则按 照第一可用视频分片、第二可用视频分片的顺序生成包含第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表;
    若确定所述第二可用视频分片的结束时刻不是所述待播放视频的结束时刻,则在所述待播放视频的各个视频分片中,查找确定下一个可用视频分片,直至所述下一个可用视频分片的结束时刻为所述待播放视频的结束时刻;确定每个所述下一个可用视频分片的播放起始位置、播放结束位置,按照各可用视频分片的顺序生成包含各可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
  4. 根据权利要求3所述的方法,其特征在于,所述确定所述第一可用视频分片、所述第二可用视频分片的播放起始位置、播放结束位置,具体包括:
    将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第二可用视频分片的开始时刻上一时刻;将所述第二可用视频分片的播放起始位置确定为所述第二可用视频分片的开始时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻;
    或,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第一可用视频分片的结束时刻;将所述第二可用视频分片的播放起始位置确定为所述第一可用视频分片的结束时刻下一时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻。
  5. 根据权利要求1所述的方法,其特征在于,所述将所述播放列表发送至播放设备之前,所述方法还包括:
    接收所述播放设备发送的播放列表请求消息。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述播放信息还包括:视频分片的时长信息以及视频分片的大小,
    则,所述播放列表包括:所述待播放视频的每一个可用视频分片的解码参数、地址信息、播放起始位置、播放结束位置、时长信息、开始时刻、结束时刻以及所述待播放视频的每一个可用视频分片的大小。
  7. 一种视频播放方法,其特征在于,所述方法包括:
    接收媒体设备发送的播放列表,按照所述播放列表指示的待播放视频的各可用视频分片的顺序,根据地址找信息到可用视频分片,利用解码参数解码播放所述可用视频分片。
  8. 根据权利要求7所述的方法,其特征在于,所述播放列表还包括:
    所述待播放视频的每一个可用视频分片的播放起始位置、播放结束位置、地址信息、时长信息、节目信息以及所述待播放视频的每一个可用视频分片的大小;所述节目信息为所述待播放视频的标识信息。
  9. 根据权利要求7或8所述的方法,其特征在于,针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置为所述可用视频分片的开始时刻,
    则,所述利用解码参数解码播放所述可用视频分片,具体包括:
    从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
    从所述可用视频分片的开始时刻指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
  10. 根据权利要求7或8所述的方法,其特征在于,针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置不是所述可用视频分片的开始时刻,
    则,所述利用解码参数解码播放所述可用视频分片,具体包括:
    从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
    从所述可用视频分片的播放起始位置指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
  11. 根据权利要求7所述的方法,其特征在于,在所述接收所述媒体网关发送的播放列表之前,所述方法还包括:
    接收用户输入的播放请求消息;
    向所述媒体设备发送播放列表请求消息,用以向所述媒体设备请求播放列表。
  12. 一种媒体设备,其特征在于,所述媒体设备包括:
    搜索单元,用于在至少一个媒体服务器中搜索出待播放视频的各个视频分 片;
    获取单元,用于分别获取所述各个视频分片的播放信息、地址信息、解码参数;
    确定单元,用于根据各个视频分片的播放信息确定出连续播放所述待播放视频的可用视频分片及其顺序;
    生成单元,用于按照所述顺序生成包含每个可用视频分片的地址信息、解码参数的播放列表;
    发送单元,用于将所述播放列表发送至播放设备,以便所述播放设备按照顺序根据地址信息找到可用视频分片,利用解码参数解码播放所述可用视频分片。
  13. 根据权利要求12所述的媒体设备,其特征在于,所述播放信息包括视频分片的节目信息,
    则,所述搜索单元具体用于,在所述至少一个媒体服务器中搜索出与所述待播放视频的节目信息匹配的各个视频分片,将所述与所述待播放视频的节目信息匹配的各个视频分片确定为所述待播放视频的各个视频分片,其中,所述节目信息为所述待播放视频的标识信息。
  14. 根据权利要求12所述的媒体设备,其特征在于,所述播放信息还包括视频分片的开始时刻、结束时刻,
    则,所述确定单元具体用于,在所述待播放视频的各个视频分片中,选择任一开始时刻为第1s的视频分片作为连续播放所述待播放视频的第一可用视频分片;在所述待播放视频的各个视频分片中,选择任一包含所述第一可用视频分片的结束时刻下一时刻在内的视频分片作为连续播放所述待播放视频的第二可用视频分片;
    所述确定单元还用于,确定所述第一可用视频分片、所述第二可用视频分片的播放起始位置、播放结束位置;
    还包括判断单元,
    所述判断单元用于,判断所述第二可用视频分片的结束时刻是否为所述待播放视频的结束时刻;
    所述生成单元具体用于,在所述判断单元确定所述第二可用视频分片的结束时刻为所述待播放视频的结束时刻之后,则按照第一可用视频分片、第二可 用视频分片的顺序生成包含第一可用视频分片、第二可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表;
    所述确定单元还用于,在所述判断单元确定所述第二可用视频分片的结束时刻不是所述待播放视频的结束时刻,则在所述待播放视频的各个视频分片中,查找确定下一个可用视频分片,直至所述下一个可用视频分片的结束时刻为所述待播放视频的结束时刻;确定每个所述下一个可用视频分片的播放起始位置、播放结束位置;
    所述生成单元还用于,按照各可用视频分片的顺序生成包含各可用视频分片的播放起始位置、播放结束位置、地址信息、解码参数的播放列表。
  15. 根据权利要求14所述的媒体设备,其特征在于,所述确定单元具体用于,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第二可用视频分片的开始时刻上一时刻;将所述第二可用视频分片的播放起始位置确定为所述第二可用视频分片的开始时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻;
    或,将所述第一可用视频分片的播放起始位置确定为所述第一可用视频分片的开始时刻,将所述第一可用视频分片的播放结束位置设置为所述第一可用视频分片的结束时刻;将所述第二可用视频分片的播放起始位置确定为所述第一可用视频分片的结束时刻下一时刻,将所述第二可用视频分片的播放结束位置设置为所述第二可用视频分片的结束时刻。
  16. 根据权利要求12所述的媒体设备,其特征在于,还包括接收单元,
    所述接收单元用于,接收所述播放设备发送的播放列表请求消息。
  17. 根据权利要求12-16任一项所述的媒体设备,其特征在于,所述播放信息还包括:视频分片的时长信息以及视频分片的大小,
    则,所述播放列表包括:所述待播放视频的每一个可用视频分片的解码参数、地址信息、播放起始位置、播放结束位置、时长信息、开始时刻、结束时刻以及所述待播放视频的每一个可用视频分片的大小。
  18. 一种播放设备,其特征在于,包括:
    接收单元,用于接收媒体设备发送的播放列表;
    播放单元,用于按照所述播放列表指示的待播放视频的各可用视频分片的 顺序,根据地址找信息到可用视频分片,利用解码参数解码播放所述可用视频分片。
  19. 根据权利要求18所述的播放设备,其特征在于,所述播放列表还包括:
    所述待播放视频的每一个可用视频分片的播放起始位置、播放结束位置、地址信息、时长信息、节目信息以及所述待播放视频的每一个可用视频分片的大小;所述节目信息为所述待播放视频的标识信息。
  20. 根据权利要求18或19所述的播放设备,其特征在于,针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置为所述可用视频分片的开始时刻,
    则,所述播放单元具体用于,从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
    从所述可用视频分片的开始时刻指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
  21. 根据权利要求18或19所述的播放设备,其特征在于,针对所述待播放视频的任一可用视频分片,若所述可用视频分片的播放起始位置不是所述可用视频分片的开始时刻,
    则,所述播放单元具体用于,从所述可用视频分片的开始时刻指示的位置处开始解码所述可用视频分片;
    从所述可用视频分片的播放起始位置指示的起始位置处开始播放,在所述可用视频分片的播放结束位置指示的位置处结束播放。
  22. 根据权利要求18所述的播放设备,其特征在于,还包括发送单元,
    所述接收单元还用于,接收用户输入的播放请求消息;
    所述发送单元用于,向所述媒体设备发送播放列表请求消息,用以向所述媒体设备请求播放列表。
  23. 一种多媒体***,用于视频资源的连续播放,其特征在于,包括:媒体设备、播放设备以及媒体服务器,
    所述媒体设备为权利要求12-17任一项所述的媒体设备;
    所述播放设备为权利要求18-22任一项所述的播放设备。
PCT/CN2015/087381 2014-08-26 2015-08-18 一种视频播放方法、媒体设备、播放设备以及多媒体*** WO2016029804A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410424543.6 2014-08-26
CN201410424543.6A CN105376612A (zh) 2014-08-26 2014-08-26 一种视频播放方法、媒体设备、播放设备以及多媒体***

Publications (1)

Publication Number Publication Date
WO2016029804A1 true WO2016029804A1 (zh) 2016-03-03

Family

ID=54011601

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087381 WO2016029804A1 (zh) 2014-08-26 2015-08-18 一种视频播放方法、媒体设备、播放设备以及多媒体***

Country Status (4)

Country Link
US (1) US20160066007A1 (zh)
EP (1) EP2991341A1 (zh)
CN (1) CN105376612A (zh)
WO (1) WO2016029804A1 (zh)

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9936214B2 (en) * 2015-02-14 2018-04-03 Remote Geosystems, Inc. Geospatial media recording system
US10516893B2 (en) 2015-02-14 2019-12-24 Remote Geosystems, Inc. Geospatial media referencing system
WO2016134415A1 (en) * 2015-02-23 2016-09-01 Zuma Beach Ip Pty Ltd Generation of combined videos
US20170272498A1 (en) * 2016-03-21 2017-09-21 Le Holdings (Beijing) Co., Ltd. Streaming media file distribution method and system
CN106131125A (zh) * 2016-06-22 2016-11-16 姜孝顺 一种图片处理***
CN106231344A (zh) * 2016-07-21 2016-12-14 青岛海信电器股份有限公司 一种视频断点续播方法及显示设备
KR101770070B1 (ko) * 2016-08-16 2017-08-21 라인 가부시키가이샤 비디오 컨퍼런스를 위한 비디오 스트림 제공 방법 및 시스템
CN106657218A (zh) * 2016-09-20 2017-05-10 山东浪潮商用***有限公司 一种流媒体文件处理***及方法
CN106507126A (zh) * 2016-11-28 2017-03-15 青岛海信电器股份有限公司 轮播业务处理方法、客户端设备及服务器
US10469884B2 (en) 2016-12-12 2019-11-05 The Directv Group, Inc. Devices for presenting video program segments in accordance with definition documents
EP3605345A4 (en) * 2017-03-28 2020-04-01 Panasonic Intellectual Property Management Co., Ltd. CONTENT DELIVERY SYSTEM, PLAYBACK DEVICE, AND CONTENT DELIVERY METHOD
CN106993231B (zh) * 2017-04-01 2020-02-18 锐达互动科技股份有限公司 一种视频选段播放的方法以及***
CN107241398B (zh) * 2017-05-24 2019-09-03 中广热点云科技有限公司 一种基于内容分发网络的视频下载方法
CN109286856A (zh) * 2017-07-21 2019-01-29 上海云熵网络科技有限公司 加速启播的p2p直播***及方法
CN107231578A (zh) * 2017-08-04 2017-10-03 四川长虹电器股份有限公司 视频文件快速播放的***及方法
CN109547864B (zh) * 2017-09-21 2021-05-07 腾讯科技(深圳)有限公司 媒体数据处理方法和装置
CN109587570B (zh) * 2017-09-29 2022-02-22 腾讯科技(深圳)有限公司 视频的播放方法和装置
CN108366271B (zh) * 2018-02-09 2020-12-01 腾讯音乐娱乐科技(深圳)有限公司 一种多媒体文件的播放方法、装置及存储介质
US10397636B1 (en) * 2018-07-20 2019-08-27 Facebook, Inc. Methods and systems for synchronizing data streams across multiple client devices
CN110876078B (zh) * 2018-08-30 2022-07-19 阿里巴巴集团控股有限公司 动画图片的处理方法、装置、存储介质和处理器
US11653072B2 (en) 2018-09-12 2023-05-16 Zuma Beach Ip Pty Ltd Method and system for generating interactive media content
CN110971857B (zh) * 2018-09-28 2021-04-27 杭州海康威视***技术有限公司 录像回放方法及装置、计算机可读存储介质
CN110166846B (zh) * 2019-05-31 2021-05-18 成都东方盛行电子有限责任公司 一种基于4k码率代理编辑的缓存方法
CN110324670B (zh) * 2019-07-30 2021-08-06 北京奇艺世纪科技有限公司 一种视频的传输方法、装置及服务器
CN111182328B (zh) * 2020-02-12 2022-03-25 北京达佳互联信息技术有限公司 一种视频剪辑方法、装置、服务器、终端及存储介质
CN111935500B (zh) * 2020-09-22 2021-08-10 腾讯科技(深圳)有限公司 视频解码方法、装置及电子设备
CN112788353B (zh) * 2020-12-28 2022-06-14 未来电视有限公司 直播时移处理方法、装置、电子设备和可读存储介质
US11758206B1 (en) * 2021-03-12 2023-09-12 Amazon Technologies, Inc. Encoding media content for playback compatibility

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132292A (zh) * 2006-08-22 2008-02-27 华为技术有限公司 一种传输电子节目指南的方法及***
CN101282453A (zh) * 2007-04-03 2008-10-08 华为技术有限公司 更新电子业务指南的方法、服务器、终端及***
CN101727460A (zh) * 2008-10-31 2010-06-09 中兴通讯股份有限公司 一种内容分片定位方法和***
CN103051931A (zh) * 2011-10-11 2013-04-17 中兴通讯股份有限公司 回看节目录制、播放方法、服务器、客户端及***
US20130198335A1 (en) * 2011-11-30 2013-08-01 Adobe Systems Incorporated Just In Time Construct HLS Stream from HDS Live Stream

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350214B (zh) * 2002-06-24 2015-07-01 Lg电子株式会社 记录和再现用于视频数据的再现的数据结构的方法及装置
US8156089B2 (en) * 2008-12-31 2012-04-10 Apple, Inc. Real-time or near real-time streaming with compressed playlists
EP2604031B1 (en) * 2010-08-10 2017-03-08 Google Technology Holdings LLC Method and apparatus for streaming media content using variable duration media segments
US9591361B2 (en) * 2011-09-07 2017-03-07 Qualcomm Incorporated Streaming of multimedia data from multiple sources
US20130084053A1 (en) * 2011-10-04 2013-04-04 Utc Fire & Security Corporation System to merge multiple recorded video timelines
CN103517154A (zh) * 2012-06-26 2014-01-15 深圳中兴网信科技有限公司 一种视频文件预加载方法及***
US20140025710A1 (en) * 2012-07-23 2014-01-23 Espial Group Inc. Storage Optimizations for Multi-File Adaptive Bitrate Assets
CN103475932B (zh) * 2013-09-05 2017-07-25 深圳Tcl新技术有限公司 网络视频的无缝在线播放方法及装置、网络电视***
CN103702171B (zh) * 2013-12-12 2017-02-08 乐视网信息技术(北京)股份有限公司 一种视频流下载方法及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132292A (zh) * 2006-08-22 2008-02-27 华为技术有限公司 一种传输电子节目指南的方法及***
CN101282453A (zh) * 2007-04-03 2008-10-08 华为技术有限公司 更新电子业务指南的方法、服务器、终端及***
CN101727460A (zh) * 2008-10-31 2010-06-09 中兴通讯股份有限公司 一种内容分片定位方法和***
CN103051931A (zh) * 2011-10-11 2013-04-17 中兴通讯股份有限公司 回看节目录制、播放方法、服务器、客户端及***
US20130198335A1 (en) * 2011-11-30 2013-08-01 Adobe Systems Incorporated Just In Time Construct HLS Stream from HDS Live Stream

Also Published As

Publication number Publication date
US20160066007A1 (en) 2016-03-03
CN105376612A (zh) 2016-03-02
EP2991341A1 (en) 2016-03-02

Similar Documents

Publication Publication Date Title
WO2016029804A1 (zh) 一种视频播放方法、媒体设备、播放设备以及多媒体***
TWI519147B (zh) 提供與傳送複合濃縮串流之方法以及系統
US9961398B2 (en) Method and device for switching video streams
TWI623226B (zh) 用於儲存媒體片段之基於目錄限制之系統及方法
ES2528406T3 (es) Método, terminal y servidor para realizar una reproducción rápida denominada trickplay
CN106412677B (zh) 一种回放视频文件的生成方法和装置
WO2012096372A1 (ja) コンテンツ再生装置、コンテンツ再生方法、配信システム、コンテンツ再生プログラム、記録媒体、およびデータ構造
US20160080470A1 (en) Server-side playlist stitching
EP2938091B1 (en) Method and device for receiving and sending media file and system
WO2018014691A1 (zh) 一种媒体数据的获取方法和装置
WO2017092327A1 (zh) 一种播放方法及装置
KR102499231B1 (ko) 수신 장치, 송신 장치 및 데이터 처리 방법
WO2018103696A1 (zh) 媒体文件的播放方法、服务端、客户端及***
WO2018028547A1 (zh) 频道切换的方法及装置
CN113141522B (zh) 资源传输方法、装置、计算机设备及存储介质
WO2017185601A1 (zh) 一种提供、下载视频的方法及设备
WO2012071931A1 (zh) 一种分段节目中动态插播节目的方法及***
EP2453652B1 (en) Transmission method, receiving method and device for scalable video coding files
CN106331763B (zh) 无缝播放分片媒体文件的方法及实现该方法的装置
CN105992022A (zh) 一种在线录制下载方法及***
WO2015081893A1 (zh) 一种轮播媒体分片的方法、客户端及***
WO2017075906A1 (zh) 一种实现回看处理的方法及装置
WO2017092433A1 (zh) 视频实时播放方法及装置
CN102594773B (zh) 一种实现数据获取的方法和***
WO2016090916A1 (zh) 码流传输方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15835103

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15835103

Country of ref document: EP

Kind code of ref document: A1