Movatterモバイル変換


[0]ホーム

URL:


CN107454447B - Plug-in loading method and device for player and television - Google Patents

Plug-in loading method and device for player and television
Download PDF

Info

Publication number
CN107454447B
CN107454447BCN201710788004.4ACN201710788004ACN107454447BCN 107454447 BCN107454447 BCN 107454447BCN 201710788004 ACN201710788004 ACN 201710788004ACN 107454447 BCN107454447 BCN 107454447B
Authority
CN
China
Prior art keywords
target video
video file
plug
player
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710788004.4A
Other languages
Chinese (zh)
Other versions
CN107454447A (en
Inventor
李斌
周杰
魏勇邦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co LtdfiledCriticalHisense Visual Technology Co Ltd
Priority to CN201710788004.4ApriorityCriticalpatent/CN107454447B/en
Publication of CN107454447ApublicationCriticalpatent/CN107454447A/en
Application grantedgrantedCritical
Publication of CN107454447BpublicationCriticalpatent/CN107454447B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention provides a plug-in loading method and device of a player and a television, and relates to the technical field of video playing. The method and the device are used for solving the problem that the playing speed of the startup video is influenced because the plug-in corresponding to the playing target video file needs to be dynamically judged and emphasized before playing of the existing player. The method comprises the following steps: when a target video file and configuration information corresponding to the target video file are determined to be stored in a set area, reading the target video file and the configuration information from the set area; and analyzing the configuration information to obtain a plug-in corresponding to the target video file, and loading the plug-in to a player so that the player plays the target video file.

Description

Plug-in loading method and device for player and television
Technical Field
The invention relates to the technical field of video playing, in particular to a plug-in loading method and device of a player and a television.
Background
The smart television is the most important entertainment audio and video equipment for the family, and is continuously popularized in recent years by virtue of the advantage of large screen size. In the operating stage after the hardware of the smart television is sold, the value of the user represented by the smart television is rapidly increased, wherein the startup advertisement becomes a high-value operating carrier for television manufacturers. In the advertisement putting form, compared with an embedded advertisement patch of online video content, the startup advertisement has more putting requirements.
At present, the playing of a video mainly depends on a functional module of a player, and the player needs to acquire key information of a target video file before starting playing for a specific video file each time, and loads a functional plug-in corresponding to the target video according to the acquired key information. The key information mainly comprises a packaging format, a video coding format, an audio coding format and the like; and the functional plug-in mainly comprises a decapsulation module, a video decoding decoder, an audio decoding decoder and the like, so that a playing pipeline for playing videos is built, and the playing is finally completed.
In summary, the existing player needs to dynamically determine and load the plug-in corresponding to the playing target video file before actually playing, so as to affect the playing speed of the startup video.
Disclosure of Invention
The embodiment of the invention provides a player plug-in loading method, a player plug-in loading device and a television, which are used for solving the problem that the playing speed of a startup video is influenced because the plug-in corresponding to a playing target video file needs to be dynamically judged and emphasized before playing of the existing player.
The embodiment of the invention provides a plug-in loading method of a player, which comprises the following steps:
when a target video file and configuration information corresponding to the target video file are determined to be stored in a set area, reading the target video file and the configuration information from the set area;
and analyzing the configuration information to obtain a plug-in corresponding to the target video file, and loading the plug-in to a player so that the player plays the target video file.
Preferably, the method further comprises the following steps:
when it is determined that a target video file and configuration information corresponding to the target video file are not stored in a set area, acquiring the target video file from a network end, analyzing a first frame of the target video file through silent playing, acquiring a plug-in for playing the target video file, and establishing a playing channel for playing the target video file;
and generating configuration information of the target video file according to the plug-in, and storing the target video file and the configuration information in the set area.
Preferably, the plug-ins include a decapsulation plug-in, a video decoding plug-in and an audio decoding plug-in;
and loading the plug-in to a player so as to enable the player to play the target video file, wherein the method comprises the following steps:
and loading the decapsulation plug-in, the video decoding plug-in and the audio decoding plug-in to a player, and enabling the player to play the target video file according to a playing channel for playing the target video file.
Preferably, the configuration information includes a package format, a video encoding format, and an audio encoding format;
the reading of the target video file and the configuration information from the set area specifically includes:
and acquiring the packaging format of the target video file corresponding to the target video file, the video coding format of the target video file and the audio coding format of the target video file.
An embodiment of the present invention further provides a plug-in loading device for a player, including:
the reading module is used for reading a target video file and configuration information from a set area when the target video file and the configuration information corresponding to the target video file are determined to be stored in the set area;
and the loading module is used for analyzing the configuration information to obtain a plug-in corresponding to the target video file, and loading the plug-in to a player so that the player plays the target video file.
Preferably, the reading module is further configured to: acquiring the target video file from a network end, analyzing a first frame of the target video file through silent playing, acquiring a plug-in for playing the target video file, and establishing a playing channel for playing the target video file;
and generating configuration information of the target video file according to the plug-in, and storing the target video file and the configuration information in the set area.
Preferably, the plug-ins include a decapsulation plug-in, a video decoding plug-in and an audio decoding plug-in;
the loading module is specifically configured to:
and loading the decapsulation plug-in, the video decoding plug-in and the audio decoding plug-in to a player, and enabling the player to play the target video file according to a playing channel for playing the target video file.
Preferably, the configuration information includes a package format, a video encoding format, and an audio encoding format;
the reading module is specifically configured to:
and acquiring the packaging format of the target video file corresponding to the target video file, the video coding format of the target video file and the audio coding format of the target video file.
The embodiment of the invention also provides a television, which comprises the plug-in loading device of the player.
The embodiment of the invention provides a plug-in loading method and device of a player and a television, wherein the method comprises the following steps: when a target video file and configuration information corresponding to the target video file are determined to be stored in a set area, reading the target video file and the configuration information from the set area; and analyzing the configuration information to obtain a plug-in corresponding to the target video file, and loading the plug-in to a player so that the player plays the target video file. In the method, because the target video file and the configuration information corresponding to the target video file are determined to be stored in the setting area, when the player plays the target video file, only the target video file needs to be read from the setting area, and the plug-in corresponding to the target video file analyzed from the configuration information is loaded on the player, so that the target video file can be played; compared with the prior art that the player needs to dynamically judge before playing the video file and then loads the plug-in used for playing the target video file, the method can directly load the plug-in required for playing the target video file to complete the playing of the target video file, the process that the player needs to dynamically judge the plug-in required before playing the video file is avoided, and therefore the speed of playing the boot video by the player can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a plug-in loading method of a player according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a target video file playing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a plug-in loading device of a player according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
The embodiment of the invention provides a player plug-in loading method, a player plug-in loading device and a television, which are used for reading a target video file and configuration information from a set area when the target video file and the configuration information corresponding to the target video file are determined to be stored in the set area; and analyzing the configuration information to obtain a plug-in corresponding to the target video file, and loading the plug-in to a player so that the player plays the target video file. The player can directly load the plug-in required by the target video file to complete the playing of the target video file, so that the speed of playing the boot video by the player can be increased.
Fig. 1 exemplarily shows a flowchart of a plug-in loading method of a player according to an embodiment of the present invention.
As shown in fig. 1, a plug-in loading method for a player according to an embodiment of the present invention mainly includes the following steps:
step 101, when determining that a target video file and configuration information corresponding to the target video file are stored in a set area, reading the target video file and the configuration information from the set area;
and 102, analyzing the configuration information to obtain a plug-in corresponding to the target video file, and loading the plug-in to a player so that the player plays the target video file.
It should be noted that, when the player plays the target video file, in the embodiment of the present invention, before the target video file and the configuration information corresponding to the target video file are not stored in the setting area, the target video file needs to be downloaded, and a situation of a plug-in required by the player when the target video is played is determined. The method specifically comprises the following steps:
the method comprises the steps of downloading a target video file from a network terminal, and after the target video file is downloaded, judging the condition of a plug-in required by a current player when the target video file is played.
The silent playing refers to that the current player only analyzes the first frame of the video stream of the target video file, but does not output the picture and sound of the target video file, and the determination of the required plug-in when the current player plays the target video file can be completed through the analysis of the first frame of the video stream of the target video file.
It should be noted that the silent play is to output no video and audio, i.e. not render. The last step of audio and video playing is to output the decoded video and audio original data (uncompressed) to corresponding hardware drive, and then the hardware finishes the output playing of pictures and sound. The core of silent play is to acquire the pipeline information assembled for playing the target video file, and the pipeline information is assembled by small plug-ins.
In practical applications, the plug-ins mainly include a decapsulation plug-in, a video decoding plug-in, an audio decoding plug-in, and the like. After the target video file is downloaded and the plug-in required for playing the target video file is determined, the decapsulated plug-in, the video decoding plug-in and the audio decoding plug-in may be loaded onto the player accordingly, and a playing channel for the player to play the target video file is established.
Further, according to the plug-in loaded on the player, the configuration information of the target video file is generated, and the configuration information of the generated target video file and the target video file are stored in the setting area. The configuration information includes a package format, a video encoding format and an audio encoding format.
It should be noted that, in the embodiment of the present invention, the set area is a specified directory in the player, and the specified directory stores the target video file and the configuration information corresponding to the target video file.
For example, for a target video file "haixin a2 mobile phone advertisement 15 seconds ts", after downloading the video to the smart television, by playing the first frame of the advertisement through the player in a silent manner, the functional plug-ins required or relied on by the player to play the target video file "haixin a2 mobile phone advertisement 15 seconds ts" can be determined, and the determined functional plug-ins are stored in the configuration file. The functional plug-ins comprise a decapsulation plug-in mpeg demux, a video decoding plug-in ffdec _ mpeg2video and an audio decoding plug-in avdec _ ac3, and further, according to the plug-ins, configuration information { demux: mpeg demux, video-decoder: ffdec _ mpeg2video, aud-decoder: avdec _ ac3} of the advertisement is generated, and finally, the advertisement and the configuration information are saved as a file boot _ video _ pipeline _ plugins.
Instep 101, when it is determined that the target video file and the configuration information corresponding to the target video file are stored in the setting area, the target video file and the target video file encapsulation format, the video encoding format of the target video, and the audio encoding format of the target video are read from the setting area.
For example, when it is determined that the target video file "haixin a2 mobile phone advertisement 15 seconds. ts" is recently stored in the set area, the target video file "haixin a2 mobile phone advertisement 15 seconds. ts" and the corresponding packaging format, video encoding format and audio encoding format of the target video file "haixin a2 mobile phone advertisement 15 seconds. ts" may be obtained from the set area.
Instep 102, determining a plug-in corresponding to the target video file according to the obtained target video file encapsulation format, the video coding format of the target video and the audio coding format of the target video, loading the decapsulated plug-in, the video decoding plug-in and the audio decoding plug-in onto a player, and playing the target video file by the player according to a playing channel for playing the target video.
For example, after determining the configuration information of the target video file "haixin a2 mobile phone advertisement 15 seconds.ts", the plug-in required for the current player to play the target video file "haixin a2 mobile phone advertisement 15 seconds.ts" may be determined, the decapsulation plug-in, the video decoding plug-in and the audio decoding plug-in are loaded onto the player, and then the target video file "haixin a2 mobile phone advertisement 15 seconds.ts" is played according to the playing channel for playing the target video file "haixin a2 mobile phone advertisement 15 seconds.ts".
In the embodiment of the invention, because the functional plug-in is stored in the configuration file, when the smart television is started next time, the target video file and the configuration information can be directly read, the configuration information is analyzed to obtain the plug-in corresponding to the target video file, and the plug-in is loaded on the player, so that the target video can be quickly played. It should be noted that, because the functional plug-ins are already stored in the configuration file, that is, the functional plug-ins required by the smart television to play the target video corresponding to the configuration information can be analyzed while reading the configuration information, compared with the plug-ins required to dynamically determine and load the plug-ins corresponding to the play target video file in the prior art, the time for determining the plug-ins capable of playing the target video file from the plurality of alternative plug-ins is omitted in the embodiment of the present invention, so that the speed of the player to play the boot video can be increased.
To more clearly describe the plug-in loading method of the player provided by the embodiment of the present invention, the following describes a plug-in loading method of the player provided by the embodiment of the present invention with reference to a flowchart of a target video playing method shown in fig. 2.
As shown in fig. 2, a target video playing method mainly includes the following steps:
step 201, a player prepares to play a target video file;
step 202, judging whether a target video file is stored in the setting area, if the target video file is stored in the setting area, executingstep 207, and if the target video file is not stored in the setting area, executingstep 203;
step 203, downloading a target video file from a network terminal;
step 204, playing the first frame of the target video file in a silent playing mode, and determining a plug-in required by the player to play the target video file according to the first frame of the target video file played in the silent playing mode;
step 205, generating configuration information of a target video file according to a plug-in playing a target video;
step 206, storing the target video file and the corresponding configuration information of the target video file in a set area;
step 207, reading the target video file and the configuration information corresponding to the target video file from the set area;
step 208, analyzing the plug-ins required by the player to play the target video file from the configuration information, and loading the analyzed plug-ins on the player;
step 209, the player plays the target video file.
Based on the same inventive concept, embodiments of the present invention provide a plug-in loading device for a player, and because the principle of the device for solving the technical problem is similar to a plug-in loading method for a player, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 3, the apparatus mainly includes areading module 31 and aloading module 32.
Thereading module 31 is configured to, when it is determined that a target video file and configuration information corresponding to the target video file are stored in a set area, read the target video file and the configuration information from the set area;
and theloading module 32 is configured to analyze the configuration information to obtain a plug-in corresponding to the target video file, and load the plug-in onto a player so that the player plays the target video file.
Preferably, thereading module 31 is further configured to:
acquiring the target video file from a network end, analyzing a first frame of the target video file through silent playing, acquiring a plug-in for playing the target video file, and establishing a playing channel for playing the target video file;
and generating configuration information of the target video file according to the plug-in, and storing the target video file and the configuration information in the set area.
Preferably, the plug-ins include a decapsulation plug-in, a video decoding plug-in and an audio decoding plug-in;
theloading module 32 is specifically configured to:
and loading the decapsulation plug-in, the video decoding plug-in and the audio decoding plug-in to a player, and enabling the player to play the target video file according to a playing channel for playing the target video file.
Preferably, the configuration information includes a package format, a video encoding format, and an audio encoding format;
thereading module 31 is specifically configured to:
and acquiring the packaging format of the target video file corresponding to the target video file, the video coding format of the target video file and the audio coding format of the target video file.
It should be understood that the plug-in loading device of the above player includes only the logical division according to the functions implemented by the apparatus device, and in practical applications, the superposition or the separation of the units may be performed. In addition, functions implemented by the plug-in loading device of the player provided in this embodiment correspond to the plug-in loading method of the player provided in this embodiment one to one, and for a more detailed processing flow implemented by the device, detailed description is already made in the first method embodiment, and detailed description is not given here.
The embodiment of the invention also provides a television, which comprises the plug-in loading device of the player provided in the embodiment. The plug-in loading device of the player can be a player in a television.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

CN201710788004.4A2017-09-042017-09-04Plug-in loading method and device for player and televisionActiveCN107454447B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710788004.4ACN107454447B (en)2017-09-042017-09-04Plug-in loading method and device for player and television

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710788004.4ACN107454447B (en)2017-09-042017-09-04Plug-in loading method and device for player and television

Publications (2)

Publication NumberPublication Date
CN107454447A CN107454447A (en)2017-12-08
CN107454447Btrue CN107454447B (en)2021-03-09

Family

ID=60495255

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710788004.4AActiveCN107454447B (en)2017-09-042017-09-04Plug-in loading method and device for player and television

Country Status (1)

CountryLink
CN (1)CN107454447B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108668162B (en)*2018-03-202021-06-04海信视像科技股份有限公司Video file playing processing method and device and intelligent terminal
CN109862193B (en)*2019-04-122020-10-02珠海天燕科技有限公司Incoming call video control method and device in terminal
CN114116038B (en)*2020-08-312024-07-19华为技术有限公司Media plug-in loading method, electronic equipment and computer readable storage medium
CN112367558B (en)*2020-10-292023-12-05深圳Tcl新技术有限公司Application playing acceleration method, intelligent playing device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101064693B (en)*2006-04-242010-08-11腾讯科技(深圳)有限公司Method for presenting animation synchronously in instant communication
CN102111663B (en)*2009-12-252015-05-20康佳集团股份有限公司Method, device and electronic equipment for playing startup pictures
CN104216697B (en)*2013-06-052020-05-22百度在线网络技术(北京)有限公司Animation playing method and device for mobile terminal and mobile terminal
CN106131646B (en)*2016-07-192021-01-12Tcl科技集团股份有限公司Starting-up video processing method and system based on Android system

Also Published As

Publication numberPublication date
CN107454447A (en)2017-12-08

Similar Documents

PublicationPublication DateTitle
CN107454447B (en)Plug-in loading method and device for player and television
CN109168078B (en)Video definition switching method and device
CN106658133B (en)Audio and video synchronous playing method and terminal
US7860996B2 (en)Media streaming with seamless ad insertion
US20170163992A1 (en)Video compressing and playing method and device
CN108668162B (en)Video file playing processing method and device and intelligent terminal
CN105791938B (en)The joining method and device of multimedia file
US9832493B2 (en)Method and apparatus for processing audio/video file
CN110636284A (en)Decoding capability detection method and device
CN106792152B (en)Video synthesis method and terminal
CN111510756A (en)Audio and video switching method and device, computer equipment and readable storage medium
CN104661079B (en)A kind of multimedia form test method and device
CN112533058A (en)Video processing method, device, equipment and computer readable storage medium
CN112053699B (en)Method and device for processing sound changing of game card
CN109788212A (en)A kind of processing method of segmenting video, device, terminal and storage medium
CN104219555A (en)Video displaying device and method for Android system terminals
CN113873316B (en)Live broadcasting room video playing method and device
CN104954863B (en)Audio and video decoding component selection method and system
CN106470353B (en)Multimedia data processing method and device and electronic equipment
CN112104909A (en)Interactive video playing method and device, computer equipment and readable storage medium
US20170169834A1 (en)Android-based audio content processing method and device
CN105744372A (en)Video-on-demand broadcast method and system, server, and on-demand client
US20160142456A1 (en)Method and Device for Acquiring Media File
KR20090055544A (en) How to Play Flash-based Video Content in Web Browsers of Mobile and Embedded Devices
CN105323652B (en)Method and device for playing multimedia file

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after:Hisense Visual Technology Co., Ltd.

Address before:266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before:QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp