CN112887774A - Method and device for playing content seamlessly - Google Patents
Method and device for playing content seamlessly Download PDFInfo
- Publication number
- CN112887774A CN112887774A CN202110159844.0A CN202110159844A CN112887774A CN 112887774 A CN112887774 A CN 112887774A CN 202110159844 A CN202110159844 A CN 202110159844A CN 112887774 A CN112887774 A CN 112887774A
- Authority
- CN
- China
- Prior art keywords
- decoding
- module
- file
- data
- display
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000007781 pre-processing Methods 0.000 claims description 3
- 230000001360 synchronised effect Effects 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44004—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a method and a device for playing contents seamlessly, wherein in the seamless playing, a plurality of decoders are adopted for decoding media files with different encoding and decoding types, the data processing of decoding output is focused, the data output by decoding is displayed and cached, clock synchronization and the like, and then the data is output and displayed. The invention can effectively solve the problems of picture flicker, black screen and blockage discontinuity in switching due to different decoders by performing display cache on the decoded data of the media file and performing output display after synchronous processing.
Description
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a method and an apparatus for seamlessly playing content.
Background
At present, seamless playing technology mainly aims at downloading and caching online content, or a plurality of files are cached in a local file in advance, and data processing before a decoder is emphasized; when the coding format of the next media file is switched to be different in the seamless playing process, picture flicker, black screen or unsmooth blocking and the like can occur.
At present, the seamless playing of most multimedia files aims at online on-demand, and the seamless playing is realized by detecting network bandwidth and loading different quality contents from a server in advance according to results; seamless switching is realized by a method of dynamically switching players by creating a plurality of player instances by using single decoder decoding; matching parameter information of a multimedia target file and the next file to meet the preset seamless requirement, caching and storing data information of the multimedia file, and reading the data information from the cache and decoding and playing the data information; the method comprises the steps that header information of segmented multimedia files is processed and synthesized into one piece of header information, a server and a client form are adopted, the server processes and provides synthesized information flow, and the client plays the information; the display caching technology is mainly used for multi-screen display, image splicing, image enhancement, multi-user operation interface display, real-time streaming media operation, subtitle information addition and the like at present.
Disclosure of Invention
The invention aims to provide a method and a device for playing contents seamlessly, which solve the problems that when a user watches a plurality of continuous media files, the pictures are black, twinkle and discontinuous when the files are switched, so that the files can be played continuously without seams, and the watching experience of the user is improved.
The technical scheme adopted by the invention is as follows:
a device for playing contents seamlessly comprises a control module, a receiving module, a reading module, an analyzing module and a display module, wherein the receiving module, the reading module, the analyzing module and the display module are connected with the control module; the output end of the analysis module is connected with a decoding module, the output end of the decoding module is connected with a display cache region, and the display cache region is connected with a display module; the receiving module is used for receiving the instruction of the user and acquiring the path information of the media file; the reading module is used for reading the target media file data and sending the file data to a subsequent module for analysis and decoding; the control module performs logic control and controls loading and reading of file data, decoding of file frame data, updating of display cache and display output control; the analysis module analyzes the format of the media file and acquires file metadata and coding and decoding information; the decoding module is responsible for decoding frame data and caching the data into a display cache region to be displayed; and the display module performs clock synchronization processing and seamless switching control on frame data to be displayed.
Furthermore, as a preferred embodiment, there are more than one decoding modules, the output end of each parsing module is connected to one decoding module, and the output ends of all decoding modules are connected to the display buffer area.
Furthermore, as a preferred embodiment, each functional unit module is integrated in one processing unit; or the unit modules form separate physical entities; or two or more units may be integrated in one processing unit.
Further, as a preferred embodiment, each functional unit module is implemented in a form of hardware, or implemented in a form of software functional unit.
A method of seamlessly playing content, comprising the steps of:
step 1, receiving a request of a user for playing a plurality of media files, and processing target files one by one; firstly, reading a target first file as a current processing file;
step 2, analyzing the current file to obtain the coding and decoding parameter information of the current file; then initializing a decoder, decoding the data frame of the current file, and displaying, caching and playing the output data;
step 3, after the frame data decoding and caching of the current file are finished, judging whether a subsequent file is to be processed; if yes, continuously reading the next file as the current file, preprocessing to obtain the coding and decoding parameter information of the analysis file, judging and processing the coding and decoding parameters, and then executing the step 4; otherwise, executing step 5;
step 4, a new decoder is created according to the coding and decoding information, file frame data decoding is carried out after initialization, clock synchronization processing is carried out on the decoded data and the decoded data are placed into a display cache queue, and step 3 is carried out after the decoded data are played in a seamless connection mode;
and 5, finishing the data processing and waiting for the next process.
Further, as a preferred embodiment, when the codec information of the current file is consistent with the codec information of the previous file in step 4, a new decoder is created or the previous decoder is multiplexed.
By adopting the technical scheme, in seamless playing, the media files of different coding and decoding types are decoded by adopting a plurality of decoders, the data processing of decoding output is focused, the data output by decoding is displayed and cached, clock synchronization and the like, and then the data is output and displayed. The invention can effectively solve the problems of picture flicker, black screen and blockage discontinuity in switching due to different decoders by performing display cache on the decoded data of the media file and performing output display after synchronous processing.
Drawings
The invention is described in further detail below with reference to the accompanying drawings and the detailed description;
FIG. 1 is a schematic diagram of an apparatus for seamlessly playing back content according to the present invention;
fig. 2 is a flowchart illustrating a method for seamlessly playing content according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
As shown in fig. 1, the present invention discloses a device for playing content seamlessly, which comprises a control module, and a receiving module, a reading module, an analyzing module and a display module connected to the control module; the output end of the analysis module is connected with a decoding module, the output end of the decoding module is connected with a display cache region, and the display cache region is connected with a display module; the receiving module is used for receiving the instruction of the user and acquiring the path information of the media file; the reading module is used for reading the target media file data and sending the file data to a subsequent module for analysis and decoding; the control module performs logic control and controls loading and reading of file data, decoding of file frame data, updating of display cache and display output control; the analysis module analyzes the format of the media file and acquires file metadata (meta data) and codec (codec) information; the decoding module is responsible for decoding frame data and caching the data into a display cache region to be displayed; and the display module performs clock synchronization processing and seamless switching control on frame data to be displayed.
Furthermore, as a preferred embodiment, there are more than one decoding modules, the output end of each parsing module is connected to one decoding module, and the output ends of all decoding modules are connected to the display buffer area.
Furthermore, as a preferred embodiment, each functional unit module is integrated in one processing unit; or the unit modules form separate physical entities; or two or more units may be integrated in one processing unit.
Further, as a preferred embodiment, each functional unit module is implemented in a form of hardware, or implemented in a form of software functional unit.
As shown in fig. 2, a method for playing content seamlessly includes the following steps:
step 1, receiving a request of a user for playing a plurality of media files, and processing target files one by one; firstly, reading a target first file as a current processing file;
step 2, analyzing the current file to obtain the coding and decoding parameter information of the current file; then initializing a decoder, decoding the data frame of the current file, and displaying, caching and playing the output data;
step 3, after the frame data decoding and caching of the current file are finished, judging whether a subsequent file is to be processed; if yes, continuously reading the next file as the current file, preprocessing to obtain the coding and decoding parameter information of the analysis file, judging and processing the coding and decoding parameters, and then executing the step 4; otherwise, executing step 5;
step 4, a new decoder is created according to the coding and decoding information, file frame data decoding is carried out after initialization, clock synchronization processing is carried out on the decoded data and the decoded data are placed into a display cache queue, and step 3 is carried out after the decoded data are played in a seamless connection mode;
and 5, finishing the data processing and waiting for the next process.
Further, as a preferred embodiment, when the codec information of the current file is consistent with the codec information of the previous file in step 4, a new decoder is created or the previous decoder is multiplexed.
By adopting the technical scheme, in seamless playing, the media files of different coding and decoding types are decoded by adopting a plurality of decoders, the data processing of decoding output is focused, the data output by decoding is displayed and cached, clock synchronization and the like, and then the data is output and displayed. The invention can effectively solve the problems of picture flicker, black screen and blockage discontinuity in switching due to different decoders by performing display cache on the decoded data of the media file and performing output display after synchronous processing.
It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. The embodiments and features of the embodiments in the present application may be combined with each other without conflict. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the detailed description of the embodiments of the present application is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Claims (6)
1. An apparatus for seamlessly playing back content, comprising: the device comprises a control module, and a receiving module, a reading module, an analyzing module and a display module which are connected with the control module; the output end of the analysis module is connected with a decoding module, the output end of the decoding module is connected with a display cache region, and the display cache region is connected with a display module; the receiving module is used for receiving the instruction of the user and acquiring the path information of the media file; the reading module is used for reading the target media file data and sending the file data to a subsequent module for analysis and decoding; the control module performs logic control and controls loading and reading of file data, decoding of file frame data, updating of display cache and display output control; the analysis module analyzes the format of the media file and acquires file metadata and coding and decoding information; the decoding module is responsible for decoding frame data and caching the data into a display cache region to be displayed; and the display module performs clock synchronization processing and seamless switching control on frame data to be displayed.
2. The apparatus for seamlessly playing back content according to claim 1, wherein: the number of the analysis modules is more than one, the output end of each analysis module is connected with one decoding module, and the output ends of all the decoding modules are connected with the display cache region.
3. The apparatus for seamlessly playing back content according to claim 1, wherein: each functional unit module is integrated in one processing unit; or the unit modules form separate physical entities; or two or more units may be integrated in one processing unit.
4. The apparatus for seamlessly playing back content according to claim 1, wherein: each functional unit module is realized in a form of hardware or in a form of software functional unit.
5. A method for playing back contents seamlessly, which is applied to the apparatus for playing back contents seamlessly claimed in one of claims 1 to 4, characterized in that: the method comprises the following steps:
step 1, receiving a request of a user for playing a plurality of media files, and processing target files one by one; firstly, reading a target first file as a current processing file;
step 2, analyzing the current file to obtain the coding and decoding parameter information of the current file; then initializing a decoder, decoding the data frame of the current file, and displaying, caching and playing the output data;
step 3, after the frame data decoding and caching of the current file are finished, judging whether a subsequent file is to be processed; if yes, continuously reading the next file as the current file, preprocessing to obtain the coding and decoding parameter information of the analysis file, judging and processing the coding and decoding parameters, and then executing the step 4; otherwise, executing step 5;
step 4, a new decoder is created according to the coding and decoding information, file frame data decoding is carried out after initialization, clock synchronization processing is carried out on the decoded data and the decoded data are placed into a display cache queue, and step 3 is carried out after the decoded data are played in a seamless connection mode;
and 5, finishing the data processing and waiting for the next process.
6. The method of claim 5, wherein the method further comprises: and 4, when the coding and decoding information of the current file is consistent with the coding and decoding information of the previous file, creating a new decoder or multiplexing the previous decoder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110159844.0A CN112887774A (en) | 2021-02-05 | 2021-02-05 | Method and device for playing content seamlessly |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110159844.0A CN112887774A (en) | 2021-02-05 | 2021-02-05 | Method and device for playing content seamlessly |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112887774A true CN112887774A (en) | 2021-06-01 |
Family
ID=76057356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110159844.0A Pending CN112887774A (en) | 2021-02-05 | 2021-02-05 | Method and device for playing content seamlessly |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112887774A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101325083A (en) * | 2008-07-28 | 2008-12-17 | 凌阳科技股份有限公司 | Method for playing multimedia file without seam |
US20090262612A1 (en) * | 2006-05-10 | 2009-10-22 | Sony Corporation | Information Processing Apparatus, Information Processing Method, and Computer Program |
CN105657524A (en) * | 2016-01-13 | 2016-06-08 | 上海视云网络科技有限公司 | Seamless video switching method |
CN107071549A (en) * | 2017-05-05 | 2017-08-18 | 深圳Tcl数字技术有限公司 | Many player fast switch over method, device and storage medium under single decoder |
US20170302988A1 (en) * | 2014-09-29 | 2017-10-19 | Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. | Method And System For Realizing Streaming Media Data Seamlessly Connecting In Intelligent Home |
CN108377409A (en) * | 2018-03-05 | 2018-08-07 | 广东欧珀移动通信有限公司 | A kind of seamless play method, terminal device and the storage medium of multimedia file |
CN109587570A (en) * | 2017-09-29 | 2019-04-05 | 腾讯科技(深圳)有限公司 | The playing method and device of video |
-
2021
- 2021-02-05 CN CN202110159844.0A patent/CN112887774A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090262612A1 (en) * | 2006-05-10 | 2009-10-22 | Sony Corporation | Information Processing Apparatus, Information Processing Method, and Computer Program |
CN101325083A (en) * | 2008-07-28 | 2008-12-17 | 凌阳科技股份有限公司 | Method for playing multimedia file without seam |
US20170302988A1 (en) * | 2014-09-29 | 2017-10-19 | Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. | Method And System For Realizing Streaming Media Data Seamlessly Connecting In Intelligent Home |
CN105657524A (en) * | 2016-01-13 | 2016-06-08 | 上海视云网络科技有限公司 | Seamless video switching method |
CN107071549A (en) * | 2017-05-05 | 2017-08-18 | 深圳Tcl数字技术有限公司 | Many player fast switch over method, device and storage medium under single decoder |
CN109587570A (en) * | 2017-09-29 | 2019-04-05 | 腾讯科技(深圳)有限公司 | The playing method and device of video |
CN108377409A (en) * | 2018-03-05 | 2018-08-07 | 广东欧珀移动通信有限公司 | A kind of seamless play method, terminal device and the storage medium of multimedia file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109168078B (en) | Video definition switching method and device | |
US10930318B2 (en) | Gapless video looping | |
US11418832B2 (en) | Video processing method, electronic device and computer-readable storage medium | |
US10225613B2 (en) | Method and apparatus for video playing processing and television | |
US7860996B2 (en) | Media streaming with seamless ad insertion | |
EP2765781A1 (en) | Method for providing targetable content in images of a video sequence and corresponding device | |
US20070217505A1 (en) | Adaptive Decoding Of Video Data | |
CN105187896B (en) | The media file playing method and system more being segmented | |
WO2017084306A1 (en) | Method and apparatus for playing key information of video in browser of mobile device | |
CN111355976A (en) | Video live broadcast method and system based on HEVC standard | |
CN105187897B (en) | The media file span playback method and system more being segmented | |
CN113038222A (en) | Video processing method and device, electronic equipment and storage medium | |
US20190327425A1 (en) | Image processing device, method and program | |
CN115623264A (en) | Live stream subtitle processing method and device and live stream playing method and device | |
US11678019B2 (en) | User interface (UI) engine for cloud UI rendering | |
US20190141366A1 (en) | System and method for insertion of an asset into a source dynamic media | |
CN113691886B (en) | Downloading method and device of streaming media file | |
CN115278307B (en) | Video playing method, device, equipment and medium | |
CN112887774A (en) | Method and device for playing content seamlessly | |
CN115914745A (en) | Video decoding method and device, electronic equipment and computer readable medium | |
CN110677689A (en) | VR video advertisement seamless insertion method based on user view angle | |
CN112437316A (en) | Method and device for synchronously playing instant message and live video stream | |
US20230239328A1 (en) | Computer implemented method for processing streaming requests and responses | |
US11799943B2 (en) | Method and apparatus for supporting preroll and midroll during media streaming and playback | |
EP3823289A1 (en) | Generating media programs configured for seamless playback |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210601 |