WO2017097039A1 - 一种视频可播放性的检测方法和装置 - Google Patents
一种视频可播放性的检测方法和装置 Download PDFInfo
- Publication number
- WO2017097039A1 WO2017097039A1 PCT/CN2016/102606 CN2016102606W WO2017097039A1 WO 2017097039 A1 WO2017097039 A1 WO 2017097039A1 CN 2016102606 W CN2016102606 W CN 2016102606W WO 2017097039 A1 WO2017097039 A1 WO 2017097039A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video
- source address
- video source
- stream
- video stream
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000002776 aggregation Effects 0.000 claims abstract description 73
- 238000004220 aggregation Methods 0.000 claims abstract description 73
- 238000001514 detection method Methods 0.000 description 9
- 238000006116 polymerization reaction Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
- 230000009193 crawling Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04H—BROADCAST COMMUNICATION
- H04H20/00—Arrangements for broadcast or for distribution combined with broadcast
- H04H20/53—Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers
- H04H20/57—Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers for mobile receivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04H—BROADCAST COMMUNICATION
- H04H40/00—Arrangements specially adapted for receiving broadcast information
- H04H40/18—Arrangements characterised by circuits or components specially adapted for receiving
- H04H40/27—Arrangements characterised by circuits or components specially adapted for receiving specially adapted for broadcast systems covered by groups H04H20/53 - H04H20/95
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/91—Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/226—Characteristics of the server or Internal components of the server
- H04N21/2265—Server identification by a unique number or address, e.g. serial number
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23418—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2383—Channel coding or modulation of digital bit-stream, e.g. QPSK modulation
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
-
- 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/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4622—Retrieving content or additional data from different sources, e.g. from a broadcast channel and the Internet
-
- 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/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4782—Web browsing, e.g. WebTV
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/84—Generation or processing of descriptive data, e.g. content descriptors
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
-
- 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/41—Structure of client; Structure of client peripherals
- H04N21/414—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
- H04N21/41407—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
-
- 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/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
- H04N21/4382—Demodulation or channel decoding, e.g. QPSK demodulation
Definitions
- the present invention relates to the field of network video technologies, and in particular, to a method and apparatus for detecting video playability.
- the implementation of the video aggregation application mainly includes: using a video source address of a third-party video website in a video aggregation application to implement video playback, specifically, first searching for a video source on the network, and then sniffing the extracted video source address.
- video playback specifically, first searching for a video source on the network, and then sniffing the extracted video source address.
- the content update is also very fast, but the play address of the third-party video source used in the video application may be invalid at any time, resulting in the stability of video playback. low.
- the current video aggregation application since the video source address of the third-party video website is used in the current video aggregation application, and the video source address of the third-party video website is invalid at any time, the current video aggregation application has a low stability of video playback. problem.
- Embodiments of the present invention provide a method and a device for detecting video playability, which can solve the existing view.
- Frequency aggregation applications have technical problems with low stability of video playback.
- An embodiment of the present invention provides a method for detecting video playability, including:
- the embodiment of the invention further provides a device for detecting video playability, comprising:
- An address obtaining module configured to obtain a video source address
- a video stream obtaining module configured to acquire a first video stream according to the video source address, where the first video stream is a part of the video stream in the second video stream corresponding to the video source address;
- the determining module is configured to determine whether the header information of the second video stream can be parsed from the first video stream; if yes, determine that the video corresponding to the video source address is playable, and if not, determine The video corresponding to the video source address is not playable.
- the method for detecting the video playability of the embodiment of the present invention is to obtain a video source address, and then obtain a first video stream according to the video source address, where the first video stream is a part of the video in the second video stream corresponding to the video source address. Flow, determining whether the header information of the second video stream can be parsed from the first video stream, and if yes, determining that the video corresponding to the video source address is playable, and if not, determining that the video corresponding to the video source address is not playable
- the solution can detect the broadcastability of the video corresponding to the video source address by using the parsing result of the video stream header information. Therefore, the scheme can perform the playability of the video source in the third-party video website used in the video aggregation application. The detection can prevent the video aggregation application from using the video source address corresponding to the unplayable video, which improves the stability of video playback of the video aggregation application.
- FIG. 1 is a schematic flowchart of a method for detecting video playability according to Embodiment 1 of the present invention
- FIG. 2 is a schematic flowchart of a method for detecting video playability according to Embodiment 2 of the present invention
- FIG. 3 is a schematic flowchart of a method for detecting video playability according to Embodiment 3 of the present invention.
- FIG. 4 is a schematic structural diagram of a first video playability detecting apparatus according to Embodiment 4 of the present invention.
- FIG. 5 is a schematic structural diagram of a second video playability detecting apparatus according to Embodiment 4 of the present disclosure.
- FIG. 6 is a schematic structural diagram of a third video playability detecting apparatus according to Embodiment 4 of the present invention.
- Embodiments of the present invention provide a method and an apparatus for detecting video playability. The details will be described separately below.
- Embodiment 1 is a diagrammatic representation of Embodiment 1:
- This embodiment provides a method for detecting video playability, which may be implemented by a video playability detecting device, where the detecting device may be integrated in a server, such as a background server of a video aggregation application, as shown in the figure.
- the detection method can include:
- Step 101 Acquire a video source address.
- the server obtains a video source address
- the video source address may be a url (Uniform Resource Locator) of the network video.
- a video network can be obtained from a network.
- the page is then parsed to obtain the video source address corresponding to the video network.
- the detection method in this embodiment can be applied to the video aggregation application to add the video source address, and used to add the newly added video source address.
- the background server of the video aggregation application can crawl the video webpage from the network, and then parse the video webpage to obtain the corresponding video source address, for example, the background server continuously crawls from the network through the webpage crawler. Climb the video web page, and then parse the crawled video web page to obtain the corresponding video source address.
- the step of “parsing the video webpage to obtain the video source address corresponding to the video webpage” may specifically include:
- the step of “acquiring the video source address corresponding to the video webpage according to the video label” may include: processing the video label by executing a js script of the video webpage, and acquiring the video source address from the processed video label; for example, the background server may pass The browser kernel service parses the video webpage to obtain the video tag, and then the background server can execute the js script of the video webpage through the browser content service to process the video tag, and finally extract the video url from the processed video tag.
- the method for obtaining the video source address in this embodiment may also obtain the video source address existing in the video aggregation application, and specifically, obtain the video source address saved by the background server of the video aggregation application.
- the embodiment detection method is set to detect video playability of a video source address in a video aggregation application.
- Step 102 Acquire a first video stream according to the video source address, where the first video stream is a part of the video stream in the second video stream corresponding to the video source address.
- the first video stream is downloaded from the network according to the video source address, where the first video stream is the entire video stream corresponding to the video source address, that is, part of the video stream in the second video stream, and preferably, the first video stream is The video stream of the second video stream header.
- the background server of the video aggregation application downloads part of the video stream from the video server according to the video source address and caches it.
- Step 103 Determine whether the header information of the second video stream can be parsed from the first video stream. If yes, execute step 104. If no, execute step 105.
- the background server parses the first video stream to obtain the header information of the second video stream. If the parsing succeeds, the background server may parse the header information from the first video stream, and if the parsing fails, Indicates that the background server cannot parse the header information from the first video stream.
- the header information of the second video stream includes: video length information, video encoding format information, video frame rate information, and the like.
- Step 104 Determine that the video corresponding to the video source address is playable.
- the background server determines that the header information can be parsed from the first video stream, it indicates that the video source address is valid. At this time, it can be determined that the video corresponding to the video source address can be played.
- Step 105 Determine that the video corresponding to the video source address is not playable.
- the background server determines that the header information cannot be parsed from the first video stream, it indicates that the video source address is invalid. At this time, it may be determined that the video corresponding to the video source address is not playable.
- the detecting method in this embodiment may further include: adding the video source address to the video.
- the video source address is stored in a background server of the video aggregation application, and then video information (such as a video webpage, etc.) is generated according to the video source address.
- video information such as a video webpage, etc.
- the video information may be sent to the user terminal.
- the user terminal sends a video information request to the background server, and the background server sends the video information to the terminal.
- the background server adds the video source address to the video aggregation application
- the background server sends the video information generated according to the video source address.
- the background server detects that the video of a video source address is playable
- the background server adds the video source address to the video aggregation application.
- the background server then generates video information according to the video source address.
- the background server sends the video information to the browser display of the terminal for the user to select to view the video.
- the detection method in this embodiment is used to detect the playability of the video of the existing video source address in the video aggregation application, that is, when the step 101 includes: acquiring the video to be detected in the video aggregation application.
- the source address is deleted from the video aggregation application.
- the video source address is deleted from the video aggregation application.
- the deletion in the storage for example, deleting the video source address from the database of the video aggregation application, and further deleting the existing video information corresponding to the video source address to update the video information in the video aggregation application.
- the embodiment of the present invention obtains a video source address, and then obtains a first video stream according to the video source address, where the first video stream is a part of the video stream in the second video stream corresponding to the video source address, and is determined. Whether the header information of the second video stream can be parsed from the first video stream, and if yes, determining that the video corresponding to the video source address is playable, and if not, determining that the video corresponding to the video source address is not playable; The broadcastability of the video corresponding to the video source address can be detected by the parsing result of the video stream header information.
- the scheme can detect the playability of the video source in the third-party video website used in the video aggregation application,
- the video aggregation application is configured to use the video source address corresponding to the unplayable video, which improves the stability of the video playback of the video aggregation application and improves the user experience.
- the embodiment of the present invention can also add a valid video source address to the video aggregation application. Delete the video source address that is invalid in the video aggregation application, and you can timely apply the video to the video aggregation application. Update;
- embodiments of the present embodiment can also reduce the operational costs polymerization video applications, speed of updating the video content.
- the detecting device may be specifically integrated into a background server of the video aggregation application, and the detecting device applies a scenario in which the video source address of the video aggregation application is added as an example for description.
- the detection device may be integrated into the background server.
- the method may be integrated into the background server in the form of software or hardware. The specific form may be determined according to the requirements of the actual application, and details are not described herein.
- this embodiment provides a method for detecting video playability, and the specific process may be as follows:
- step 201 the background server crawls the video webpage from the network.
- the background server continuously crawls the video network from the network by installing a web crawler.
- a page such as a web crawler that crawls a video page of an online website.
- Step 202 The background server parses the video webpage to obtain a corresponding video tag.
- the background server may parse the crawled video webpage by using a browser kernel service to obtain a video tag, where the video tag includes: video title information, video source address information, and the like.
- Step 203 The background server processes the video tag to obtain a corresponding video source address.
- the video source address information in the video tag is incomplete or a part of the video source address is hidden. Therefore, the video tag needs to be processed to obtain the complete video source address.
- the background server may use the browser kernel service to execute the js script in the video webpage to process the video source address information in the video tag and pretend to obtain the video source address.
- Step 204 The background server downloads the first video stream from the network according to the video source address, where the first video stream is a partial video stream of the second video stream corresponding to the video source address.
- the background server may send a video stream obtaining request to the corresponding video server according to the video source address, and then receive a part of the video stream returned by the video server according to the video stream obtaining request, where the part of the video stream is a video server corresponding to the video source address. Part of the video stream of the entire video stream.
- the background server can also cache the first video stream.
- Step 205 The background server determines whether the header information of the second video stream can be parsed from the first video stream. If yes, step 206 is performed, and if no, step 207 is performed.
- the background server first parses the header information of the first video stream, and if the parsing is successful, it is considered that the header information of the second video stream can be parsed from the first video stream.
- the header information of the second video stream is parsed in the first video stream.
- the background server parses the header information of the first video stream in the cache.
- Step 206 The background server determines that the video corresponding to the video source address is playable, and adds the video source address to the video aggregation application.
- the background server adds the video source address to the video aggregation application database, and generates corresponding video information, such as a video web page, according to the video source address.
- Step 207 The background server determines whether the video webpage crawling is completed. If not, step 208 is performed, and if yes, the process ends.
- the background server determines that the header information cannot be parsed, the video source address can be discarded, and then Then perform the step of determining whether the video web crawler is completed.
- Step 208 the background server crawls the next video webpage from the network, and proceeds to step 202.
- the video webpage is crawled from the network, and then the video webpage is parsed to obtain a video source address, and the first video stream is obtained according to the video source address, where the first video stream is a video source address. And determining, according to the partial video stream in the second video stream, whether the header information of the second video stream can be parsed from the first video stream, and if yes, determining that the video corresponding to the video source address is playable, and the video is played The source address is added to the video aggregation application.
- the solution can detect the video corresponding to the video source address by using the parsing result of the video stream header information.
- the broadcast source address is added, and the video source address that can be played by the video is added, and the video source address that cannot be played by the video is not added; therefore, the solution can prevent the video aggregation application from using the video source address corresponding to the unplayable video.
- the stability of the video playback of the video aggregation application improves the user experience; in addition, the embodiment of the present invention May be added to the active video source address of the polymerization video applications, video polymerization timely application to update the video content; In addition, embodiments of the present embodiment can also reduce the operational costs polymerization video applications, speed of updating the video content.
- the detecting device may be specifically integrated into the background server of the video aggregation application, and the detecting device is applied to the video source address added for detection in the video aggregation application as an example for description.
- the detection device may be integrated into the background server.
- the method may be integrated into the background server in the form of software or hardware. The specific form may be determined according to the requirements of the actual application, and details are not described herein.
- this embodiment provides a method for detecting video playability, and the specific process is as follows:
- Step 301 The background server acquires a video source address to be detected in the video aggregation application.
- the background server may extract the video source addresses to be detected in the video aggregation application one by one in a predetermined order.
- Step 302 The background server downloads the first video stream from the network according to the video source address, where the first video stream is a partial video stream of the second video stream corresponding to the video source address.
- the background server may send a video stream obtaining request to the corresponding video server according to the video source address, and then receive a part of the video stream returned by the video server according to the video stream obtaining request, where the part of the video stream is a video server corresponding to the video source address. Part of the video stream of the entire video stream.
- the background server can also cache the first video stream.
- Step 303 The background server determines whether the header information of the second video stream can be parsed from the first video stream. If not, step 304 is performed, and if yes, step 305 is performed.
- the background server first parses the header information of the first video stream, and if the parsing is successful, it is considered that the header information of the second video stream can be parsed from the first video stream.
- the header information of the second video stream is parsed in the first video stream.
- the background server parses the header information of the first video stream in the cache.
- Step 304 The background server determines that the video corresponding to the video source address is unplayable, and deletes the video source address from the video aggregation application.
- the background server deletes the video source address from the video aggregation application database.
- Step 305 The background server determines whether all video source addresses in the video aggregation application are detected. If not, step 306 is performed, and if yes, the process ends.
- Step 306 The background server obtains the next video source address to be detected in the video aggregation application, and proceeds to step 302.
- the embodiment of the present invention obtains a video source address in a video aggregation application, and then acquires a first video stream according to the video source address, where the first video stream is in a second video stream corresponding to the video source address. a part of the video stream, determining whether the header information of the second video stream can be parsed from the first video stream, and if so, determining that the video corresponding to the video source address is playable, and if not, determining that the video source address corresponds to The video is not playable, and the video source address is deleted.
- the solution can detect the broadcastability of the video corresponding to the video source address in the video aggregation application by using the parsing result of the video stream header information, and then, the video source that is not playable to the video. The address is deleted. Therefore, the solution can prevent the video from being unplayable due to the invalid video source address of the video aggregation application, improve the video playback stability of the video aggregation application, and improve the user experience.
- the embodiment of the present invention further provides a device for detecting video playability.
- the detecting device may include: an address obtaining module 401, a video stream acquiring module 402, and a determining module 403. ;
- the address obtaining module 401 is configured to acquire a video source address.
- the video stream obtaining module 402 is configured to acquire a first video stream according to the video source address, where the first video stream is a part of the video stream in the second video stream corresponding to the video source address;
- the determining module 403 is configured to determine whether the header information of the second video stream can be parsed from the first video stream; if yes, determine that the video corresponding to the video source address is playable, and if not, It is determined that the video corresponding to the video source address is not playable.
- the header information includes: video length information, video encoding format information, video frame rate information, and the like.
- the address obtaining module 401 is specifically configured to:
- the address obtaining module 401 is specifically configured to:
- the detecting apparatus of this embodiment may further include an adding module 404, configured to: after the determining module 403 determines that the video corresponding to the video source address is playable, Add the video source address to the video aggregation application.
- an adding module 404 configured to: after the determining module 403 determines that the video corresponding to the video source address is playable, Add the video source address to the video aggregation application.
- the address obtaining module 401 may be specifically configured to obtain a video source address to be detected in the video aggregation application.
- the detecting apparatus of this embodiment may further include a deleting module 405, the deleting The module 405 is configured to delete the video source address from the video aggregation application after the determining module 403 determines that the video corresponding to the video source address is not playable.
- each of the above modules may be implemented as an independent entity, or may be any combination, and implemented as one or several entities.
- the specific implementation of the above modules refer to the foregoing. Method embodiments are not described herein again.
- the address acquisition module 401 of the video playability detecting device obtains the video source address, and then the video stream obtaining module 402 obtains the first video stream according to the video source address, the first video.
- the stream is a partial video stream in the second video stream corresponding to the video source address, and the determining module 403 determines whether the header information of the second video stream can be parsed from the first video stream, and if yes, determines the video source address.
- the corresponding video can be played, if not, it is determined that the video corresponding to the video source address is not playable; the scheme can detect the broadcastability of the video corresponding to the video source address by using the parsing result of the video stream header information, therefore, the scheme
- the playability of the video source in the third-party video website used in the video aggregation application can be detected, which can prevent the video aggregation application from using the video source address corresponding to the unplayable video, thereby improving the stability of the video playback application and improving the video playback performance.
- User experience in addition, the embodiment of the present invention can also add a valid video source address to the video aggregation application. Failure to remove a video application polymerization video source address, the video polymerization timely application to update the video content; In addition, embodiments of the present embodiment can also reduce the operational costs polymerization video applications, speed of updating the video content.
- Embodiments of the present invention also provide a server, which may be any one of a group of computer terminals.
- the foregoing server may include one or more processors, a memory, and a transmission device.
- the memory can be used to store software programs and modules.
- the processor executes various functional applications and data processing by running software programs and modules stored in the memory, that is, the above-described method for detecting video playability.
- the memory may include a high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
- the memory can further include memory remotely located relative to the processor, which can be connected to the server over a network.
- the foregoing processor may execute program code of the following steps in the method for detecting video playability:
- Step S1 acquiring a video source address
- Step S2 Acquire a first video stream according to the video source address, where the first video stream is a part of the video stream in the second video stream corresponding to the video source address;
- Step S3 determining whether the header information of the second video stream can be parsed from the first video stream; if yes, determining that the video corresponding to the video source address is playable; if not, determining the video The video corresponding to the source address cannot be played.
- the processor may further execute the program code of the following steps in the method for detecting video playability: acquiring a video webpage from the network; parsing the video webpage to obtain a video source address corresponding to the video webpage. .
- the processor may further execute the program code of the following steps in the method for detecting video playability: parsing the video webpage to obtain a video label corresponding to the video webpage; and acquiring the video label according to the video label The video source address corresponding to the video web page.
- the foregoing processor may further execute program code of the following steps in the method for detecting video playability: after determining that the video corresponding to the video source address is playable, adding the video source address to the video aggregation application .
- the foregoing processor may further execute the program code of the following steps in the method for detecting video playability: acquiring a video source address to be detected in the video aggregation application.
- the foregoing processor may further execute program code of the following steps in the method for detecting video playability: after determining that the video corresponding to the video source address is not playable, the video source address is used from the video aggregation application. Deleted.
- the server can also be a smart device (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a mobile Internet device (MID), a PAD, and the like.
- a smart device such as an Android phone, an iOS phone, etc.
- a tablet computer such as a Samsung Galaxy Tab, etc.
- a palm computer such as a Samsung Galaxy Tab, etc.
- MID mobile Internet device
- Embodiments of the present application also provide a storage medium.
- the foregoing storage medium may be used to save the program code executed by the method for detecting video playability provided by the first embodiment.
- the foregoing storage medium may be located in any one of the server groups in the computer network, or in any one of the mobile terminal groups.
- the storage medium is arranged to store program code for performing the following steps:
- Step S4 acquiring a video source address
- Step S5 Acquire a first video stream according to the video source address, where the first video stream is a part of the video stream in the second video stream corresponding to the video source address;
- Step S6 determining whether the header information of the second video stream can be parsed from the first video stream; if yes, determining that the video corresponding to the video source address is playable; if not, determining the video The video corresponding to the source address cannot be played.
- the storage medium is configured to store program code for performing the following steps: acquiring a video webpage from the network; parsing the video webpage to obtain a video source corresponding to the video webpage. address.
- the storage medium is configured to store program code for performing the following steps: parsing the video webpage to obtain a video label corresponding to the video webpage; acquiring according to the video label The video source address corresponding to the video webpage.
- the storage medium is configured to store program code for performing the following steps: adding the video source address to the video aggregation application after determining that the video corresponding to the video source address is playable in.
- the storage medium is configured to store program code for performing the following steps: acquiring a video source address to be detected in the video aggregation application.
- the storage medium is configured to store program code for performing the following steps: after determining that the video corresponding to the video source address is not playable, the video source address is aggregated from the video Remove from the app.
- the program can be executed by instructing related hardware, and the program can be stored in a computer readable storage medium, and the storage medium can include: read only memory (ROM), random access memory (RAM, Random Access Memory), disk or disc.
- ROM read only memory
- RAM random access memory
- RAM Random Access Memory
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明实施例公开了一种视频可播放性的检测方法和装置;本发明实施例的视频可播放性的检测方法采用获取视频源地址,然后,根据该视频源地址获取第一视频流,该第一视频流为与视频源地址对应的第二视频流中的部分视频流,判断是否能从该第一视频流中解析出该第二视频流的头部信息,若是,判定视频源地址对应的视频可播放,若否,则判定该视频源地址对应的视频不可播放;该方案可以对视频聚合应用中使用的第三方视频网站中视频源的可播放性进行检测,可以避免视频聚合应用使用不可播放视频对应的视频源地址,提升了视频聚合应用的视频播放的稳定性。
Description
本申请要求于2015年12月10日提交中国专利局、申请号为2015109094808、发明名称“一种视频可播放性的检测方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及网络视频技术领域,具体涉及一种视频可播放性的检测方法和装置。
随着网络环境的不断升级、移动设备性能的持续提高,在移动设备上观看视频,成为越来越多用户的首选。
过去PC(personal computer,个人电脑)端时代,视频网站的主要流量来源依赖于搜索引擎,但是在移动互联网时代,视频客户端本身就是一个流量入口,为了争夺视频用户,各大视频网站都争相推出了自己的视频客户端。而这些客户端的视频内容不同,如果用户希望观看不同的视频内容,就需要安装多种视频客户端;而无形中就给用户增加了管理这些视频客户端的麻烦。因此,用户就迫切需要一种能够包括网络上各种视频源的视频聚合应用。
目前视频聚合应用的实现方案主要包括:在视频聚合应用中使用第三方视频网站的视频源地址,来实现视频播放,具体地,首先在网络上搜索视频源,然后嗅探抽取出的视频源地址,直接在视频应用中供用户选择观看;这种方案下,虽然运营成本非常低,内容更新也很快,但是视频应用中使用的第三方视频源的播放地址可能随时失效导致视频播放的稳定性低。
由上可知,由于目前视频聚合应用中使用第三方视频网站的视频源地址,且该第三方视频网站的视频源地址随时失效,因此会导致目前视频聚合应用存在视频播放的稳定性较低的技术问题。
发明内容
本发明实施例提供一种视频可播放性的检测方法和装置,可以解决现有视
频聚合应用存在视频播放的稳定性较低的技术问题。
本发明实施例提供一种视频可播放性的检测方法,包括:
获取视频源地址;
根据所述视频源地址获取第一视频流,所述第一视频流为与所述视频源地址对应的第二视频流中的部分视频流;
判断是否能从所述第一视频流中解析出所述第二视频流的头部信息;
若是,则判定所述视频源地址对应的视频可播放;
若否,则判定所述视频源地址对应的视频不可播放。
相应地,本发明实施例还提供了一种视频可播放性的检测装置,包括:
地址获取模块,被设置为获取视频源地址;
视频流获取模块,被设置为根据所述视频源地址获取第一视频流,所述第一视频流为与所述视频源地址对应的第二视频流中的部分视频流;
判断模块,被设置为判断是否能从所述第一视频流中解析出所述第二视频流的头部信息;若是,则判定所述视频源地址对应的视频可播放,若否,则判定所述视频源地址对应的视频不可播放。
本发明实施例视频可播放性的检测方法采用获取视频源地址,然后,根据该视频源地址获取第一视频流,该第一视频流为与视频源地址对应的第二视频流中的部分视频流,判断是否能从该第一视频流中解析出该第二视频流的头部信息,若是,判定视频源地址对应的视频可播放,若否,则判定该视频源地址对应的视频不可播放;该方案可以通过视频流头部信息的解析结果来检测视频源地址对应的视频的可播性,因此,该方案可以对视频聚合应用中使用的第三方视频网站中视频源的可播放性进行检测,可以避免视频聚合应用使用不可播放视频对应的视频源地址,提升了视频聚合应用的视频播放的稳定性。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例一提供的一种视频可播放性的检测方法的流程示意图;
图2为本发明实施例二提供的一种视频可播放性的检测方法的流程示意图;
图3为本发明实施例三提供的一种视频可播放性的检测方法的流程示意图;
图4为本发明实施例四提供的第一种视频可播放性的检测装置的结构示意图;
图5为本法明实施例四提供的第二种视频可播放性的检测装置的结构示意图;
图6为本发明实施例四提供的第三种视频可播放性的检测装置的结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供一种视频可播放性的检测方法和装置。以下将分别进行详细说明。
实施例一:
本实施例提供了一种视频可播放性的检测方法,该检测方法可以由视频可播放性的检测装置实施,其中,该检测装置可以集成在服务器,例如视频聚合应用的后台服务器中,如图1所示,该检测方法可以包括:
步骤101,获取视频源地址。
具体地,服务器获取视频源地址,该视频源地址可以为网络视频的url(Uniform Resource Locator,统一资源定位符)等。
本实施例中获取视频源地址的方式有多种,比如可以从网络上获取视频网
页,然后对该视频网页进行解析,以得到视频网络对应的视频源地址,此时本实施例检测方法可应用在视频聚合应用添加视频源地址的过程中,用于对新添加的视频源地址的视频可播放性检测;在实际应用中,视频聚合应用的后台服务器可以从网络上爬取视频网页,然后对该视频网页进行解析获取对应的视频源地址,比如后台服务器通过网页爬虫不断从网络中爬取视频网页,然后对爬取的视频网页进行解析获取对应的视频源地址。
优选地,步骤“对视频网页进行解析,以得到视频网页对应的视频源地址”可以具体包括:
对视频网页进行解析,以得到该视频网页对应的视频标签;
根据该视频标签获取视频网页对应的视频源地址。
上述步骤“根据该视频标签获取视频网页对应的视频源地址”可以包括:通过执行视频网页的js脚本对视频标签进行处理,从处理后的视频标签中获取视频源地址;例如,后台服务器可以通过浏览器内核服务对视频网页进行解析,获取视频标签,然后,后台服务器可以通过浏览器内容服务执行视频网页的js脚本以对视频标签进行处理,最后从处理后的视频标签中提取视频url。
本实施例中获取视频源地址的方式除了上述介绍的方式,还可以获取视频聚合应用中已有的视频源地址,具体地,获取视频聚合应用的后台服务器保存的视频源地址,此时,本实施例检测方法被设置为对视频聚合应用中的视频源地址的视频可播放性检测。
步骤102,根据该视频源地址获取第一视频流,该第一视频流为与该视频源地址对应的第二视频流中的部分视频流。
具体地,根据该视频源地址从网络下载第一视频流,其中该第一视频流为视频源地址对应的整个视频流即第二视频流中部分视频流,优选地,第一视频流为第二视频流头部分的视频流。
例如,视频聚合应用的后台服务器根据该视频源地址从视频服务器上下载部分视频流,并缓存。
步骤103,判断是否能从该第一视频流中解析出第二视频流的头部信息,若是,则执行步骤104,若否,则执行步骤105。
具体地,后台服务器对第一视频流进行解析,以获取第二视频流的头部信息,若解析成功,表明后台服务器可以从该第一视频流中解析出头部信息,若解析失败,则表明后台服务器不能从该第一视频流中解析出头部信息。
其中,第二视频流的头部信息包括:视频长度信息、视频编码格式信息、视频帧率信息等等。
步骤104,判定该视频源地址对应的视频可播放。
在后台服务器判断能从第一视频流中解析出头部信息时,表明该视频源地址是有效的,此时,可判定该视频源地址对应的视频可播放。
步骤105,判定该视频源地址对应的视频不可播放。
在后台服务器判断不能从第一视频流中解析出头部信息时,表明该视频源地址失效,此时,可判定该视频源地址对应的视频不可播放。
在本实施例的方法应用于对新添加的视频源地址的视频检测时,在判定视频源地址对应的视频可播放之后,本实施例检测方法还可以包括:将该视频源地地址添加到视频聚合应用中;具体地,将该视频源地址存储在视频聚合应用的后台服务器中,然后根据该视频源地址生成视频信息(比如视频网页等)。在将该视频源地址添加到视频聚合应用之后,可以将该视频信息发送至用户终端,比如用户终端发送视频信息请求至后台服务器,后台服务器会将该视频信息发送至终端。
实际应用中,在后台服务器将视频源地址添加至视频聚合应用之后,如果用户通过浏览器或者视频客户端发送视频请求至后台服务器之后,那么后台服务器会将根据该视频源地址生成的视频信息发送至终端浏览器或者终端视频客户端;比如,在视频源地址添加的过程中,如果后台服务器检测到某个视频源地址的视频可播放,那么后台服务器将该视频源地址添加到视频聚合应用的数据库中,然后后台服务器根据该视频源地址生成视频信息,在用户打开浏览器提供的视频选项中,后台服务器会将该视频信息发送至终端的浏览器显示,以供用户选择观看该视频。
在本实施例检测方法用于对视频聚合应用中已有视频源地址的视频进行可播放性检测时,即当上述步骤101包括:获取视频聚合应用中待检测的视频
源地址时,在判定视频源地址对应的视频不可播放之后,本实施例检测方法还可以将该视频源地址从视频聚合应用中删除;具体地,将该视频源地址从视频聚合应用的后台服务器存储中删除,比如将该视频源地址从视频聚合应用的数据库删除,进一步地,还可以删除已有的该视频源地址对应的视频信息,以更新视频聚合应用中的视频信息。
由上可知,本发明实施例采用获取视频源地址,然后,根据该视频源地址获取第一视频流,该第一视频流为与视频源地址对应的第二视频流中的部分视频流,判断是否能从该第一视频流中解析出该第二视频流的头部信息,若是,判定视频源地址对应的视频可播放,若否,则判定该视频源地址对应的视频不可播放;该方案可以通过视频流头部信息的解析结果来检测视频源地址对应的视频的可播性,因此,该方案可以对视频聚合应用中使用的第三方视频网站中视频源的可播放性进行检测,可以避免视频聚合应用使用不可播放视频对应的视频源地址,提升了视频聚合应用的视频播放的稳定性,提升了用户体验;另外,本发明实施例还可以添加有效的视频源地址至视频聚合应用中,删除视频聚合应用中失效的视频源地址,可以及时对视频聚合应用的视频内容进行更新;此外,本实施例方案还可以降低视频聚合应用的运营成本,加快视频内容的更新。
实施例二、
根据实施例一的描述,以下将举例作进一步详细说明。
在本实施例中将以检测装置具体可以集成在视频聚合应用的后台服务器中,该检测装置应用在视频聚合应用的视频源地址添加的场景为例进行说明。
其中该检测装置集成在后台服务器中方式可以有多种,比如,以软件形式或者硬件形式集成在后台服务器中,具体形式可根据实际应用的需求而定,在此不再赘述。
如图2所示,本实施例提供了一种视频可播放性的检测方法,具体流程可以如下:
步骤201,后台服务器从网络爬取视频网页。
具体地,后台服务器通过安装网页爬取程序不断地从网络中爬取视频网
页,比如通过网页爬取程序爬取在线网站的视频网页。
步骤202,后台服务器对该视频网页进行解析,以获取对应的视频标签。
具体第,后台服务器可以使用浏览器内核服务对爬取的视频网页进行解析,以获取视频标签,该视频标签包括:视频标题信息、视频源地址信息等等。
步骤203,后台服务器对视频标签进行处理,以获取对应的视频源地址。
一般地,视频标签中的视频源地址信息是不完整的或者一部分视频源地址是隐藏的,因此,需要对视频标签进行处理,以得到完整的视频源地址。
具体地,后台服务器可以使用浏览器内核服务执行视频网页中的js脚本,以实现对视频标签中视频源地址信息进行处理,并伪装获取视频源地址。
步骤204,后台服务器根据视频源地址从网络下载第一视频流,该第一视频流为视频源地址对应的第二视频流的部分视频流。
具体地,后台服务器可以根据视频源地址发送视频流获取请求给对应的视频服务器,然后接收视频服务器根据该视频流获取请求返回的部分视频流,该部分视频流为视频服务器中与视频源地址对应的整个视频流的部分视频流。
在实际应用中,后台服务器还可以缓存第一视频流。
步骤205,后台服务器判断是否能从第一视频流中解析出第二视频流的头部信息,若是,执行步骤206,若否,执行步骤207。
具体地,后台服务器先对第一视频流进行头部信息的解析,如果解析成功,则认为能从第一视频流中解析出第二视频流的头部信息,若解析失败,则认为不能从第一视频流中解析出第二视频流的头部信息。实际应用中后台服务器对缓存中的第一视频流进行头部信息的解析。
步骤206,后台服务器判定该视频源地址对应的视频可播放,将该视频源地址添加至视频聚合应用。
具体地,后台服务器将该视频源地址添加到视频聚合应用数据库中,并根据该视频源地址生成对应的视频信息,比如生成视频网页等。
步骤207,后台服务器判断视频网页爬取是否完成,若否,执行步骤208,若是,则结束流程。
后台服务器判断不能解析出头部信息之后,可以丢弃该视频源地址,然后
再执行判断视频网页爬取是否完成的步骤。
步骤208,后台服务器从网络爬取下一个视频网页,转步骤202。
由上可知,本发明实施例采用从网络爬取视频网页,然后,对视频网页进行解析处理获取视频源地址,根据该视频源地址获取第一视频流,该第一视频流为与视频源地址对应的第二视频流中的部分视频流,判断是否能从该第一视频流中解析出该第二视频流的头部信息,若是,判定视频源地址对应的视频可播放,并将该视频源地址添加到视频聚合应用中,若否,则判定该视频源地址对应的视频不可播放,不进行添加操作;该方案可以通过视频流头部信息的解析结果来检测视频源地址对应的视频的可播性,然后,对视频可播放的视频源地址进行添加,对视频不可播放的视频源地址不进行添加操作;因此,该方案可以避免视频聚合应用使用不可播放视频对应的视频源地址,提升了视频聚合应用的视频播放的稳定性,提升了用户体验;另外,本发明实施例还可以添加有效的视频源地址至视频聚合应用中,可以及时对视频聚合应用的视频内容进行更新;此外,本实施例方案还可以降低视频聚合应用的运营成本,加快视频内容的更新。
实施例三、
根据实施例一的描述,以下将举例作进一步详细说明。
在本实施例中将以检测装置具体可以集成在视频聚合应用的后台服务器中,该检测装置应用在视频聚合应用已有的视频源地址添加进行检测为例进行说明。
其中该检测装置集成在后台服务器中方式可以有多种,比如,以软件形式或者硬件形式集成在后台服务器中,具体形式可根据实际应用的需求而定,在此不再赘述。
如图3所示,本实施例提供了一种视频可播放性的检测方法,具体流程如下:
步骤301、后台服务器获取视频聚合应用中待检测的视频源地址。
具体地,后台服务器遍历检测视频聚合应用中的所有视频源时,后台服务器可以按照预定顺序逐一提取视频聚合应用中待检测的视频源地址。
步骤302、后台服务器根据视频源地址从网络下载第一视频流,该第一视频流为视频源地址对应的第二视频流的部分视频流。
具体地,后台服务器可以根据视频源地址发送视频流获取请求给对应的视频服务器,然后接收视频服务器根据该视频流获取请求返回的部分视频流,该部分视频流为视频服务器中与视频源地址对应的整个视频流的部分视频流。
在实际应用中,后台服务器还可以缓存第一视频流。
步骤303,后台服务器判断是否能从第一视频流中解析出第二视频流的头部信息,若否,执行步骤304,若是,执行步骤305。
具体地,后台服务器先对第一视频流进行头部信息的解析,如果解析成功,则认为能从第一视频流中解析出第二视频流的头部信息,若解析失败,则认为不能从第一视频流中解析出第二视频流的头部信息。实际应用中后台服务器对缓存中的第一视频流进行头部信息的解析。
步骤304,后台服务器判定该视频源地址对应的视频不可播放,将该视频源地址从视频聚合应用中删除。
具体地,后台服务器将该视频源地址从视频聚合应用数据库中删除。
步骤305,后台服务器判断视频聚合应用中所有视频源地址是否检测完成,若否,执行步骤306,若是,则结束流程。
步骤306,后台服务器获取视频聚合应用中下一个待检测的视频源地址,转步骤302。
由上可知,本发明实施例采用获取视频聚合应用中的视频源地址,然后,,根据该视频源地址获取第一视频流,该第一视频流为与视频源地址对应的第二视频流中的部分视频流,判断是否能从该第一视频流中解析出该第二视频流的头部信息,若是,判定视频源地址对应的视频可播放,若否,则判定该视频源地址对应的视频不可播放,并将该视频源地址删除;该方案可以通过视频流头部信息的解析结果来检测视频聚合应用中视频源地址对应的视频的可播性,然后,对视频不可播放的视频源地址进行删除;因此,该方案可以避免视频聚合应用已有视频源地址失效导致视频不可播放的问题,提升了视频聚合应用的视频播放的稳定性,提升了用户体验。
实施例四、
为了更好地实施以上方案,本发明实施例还提供一种视频可播放性的检测装置,如图4所示,该检测装置可以包括:地址获取模块401、视频流获取模块402以及判断模块403;
其中,地址获取模块401,被设置为获取视频源地址;
视频流获取模块402,被设置为根据所述视频源地址获取第一视频流,所述第一视频流为与所述视频源地址对应的第二视频流中的部分视频流;
判断模块403,被设置为判断是否能从所述第一视频流中解析出所述第二视频流的头部信息;若是,则判定所述视频源地址对应的视频可播放,若否,则判定所述视频源地址对应的视频不可播放。
优选地,所述头部信息包括:视频长度信息、视频编码格式信息、视频帧率信息等等。
优选地,所述地址获取模块401,具体被设置为:
从网络上获取视频网页;
对所述视频网页进行解析,以得到所述视频网页对应的视频源地址。
进一步地,地址获取模块401,具体被设置为:
从网络上获取视频网页;
对所述视频网页进行解析,以得到所述视频网页对应的视频标签;
根据所述视频标签获取视频网页对应的视频源地址。
优选地,如图5所示,本实施例检测装置还可以包括添加模块404,该添加模块404,被设置为在所述判断模块403判定所述视频源地址对应的视频可播放之后,将所述视频源地址添加到视频聚合应用中
优选地,所述地址获取模块401,可以具体被设置为获取视频聚合应用中待检测的视频源地址;此时,如图6所示,本实施例检测装置还可以包括删除模块405,该删除模块405被设置为在所述判断模块403判定所述视频源地址对应的视频不可播放之后,将所述视频源地址从所述视频聚合应用中删除。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的
方法实施例,在此不再赘述。
由上可知,本发明实施例中视频可播放性的检测装置中的地址获取模块401获取视频源地址,然后,由视频流获取模块402根据该视频源地址获取第一视频流,该第一视频流为与视频源地址对应的第二视频流中的部分视频流,由判断模块403判断是否能从该第一视频流中解析出该第二视频流的头部信息,若是,判定视频源地址对应的视频可播放,若否,则判定该视频源地址对应的视频不可播放;该方案可以通过视频流头部信息的解析结果来检测视频源地址对应的视频的可播性,因此,该方案可以对视频聚合应用中使用的第三方视频网站中视频源的可播放性进行检测,可以避免视频聚合应用使用不可播放视频对应的视频源地址,提升了视频聚合应用的视频播放的稳定性,提升了用户体验;另外,本发明实施例还可以添加有效的视频源地址至视频聚合应用中,删除视频聚合应用中失效的视频源地址,可以及时对视频聚合应用的视频内容进行更新;此外,本实施例方案还可以降低视频聚合应用的运营成本,加快视频内容的更新。
实施例五、
本发明的实施例还提供了一种服务器,该服务器可以是计算机终端群中的任意一个设备。
可选地,在本实施例中,上述服务器可以包括一个或多个处理器、存储器、以及传输装置。
其中,存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的视频可播放性的检测方法。存储器可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至服务器。
可选地,上述处理器可以执行视频可播放性的检测方法中以下步骤的程序代码:
步骤S1:获取视频源地址;
步骤S2:根据所述视频源地址获取第一视频流,所述第一视频流为与所述视频源地址对应的第二视频流中的部分视频流;
步骤S3:判断是否能从所述第一视频流中解析出所述第二视频流的头部信息;若是,则判定所述视频源地址对应的视频可播放;若否,则判定所述视频源地址对应的视频不可播放。
可选地,上述处理器还可以执行视频可播放性的检测方法中以下步骤的程序代码:从网络上获取视频网页;对所述视频网页进行解析,以得到所述视频网页对应的视频源地址。
可选地,上述处理器还可以执行视频可播放性的检测方法中以下步骤的程序代码:对所述视频网页进行解析,以得到所述视频网页对应的视频标签;根据所述视频标签获取所述视频网页对应的视频源地址。
可选地,上述处理器还可以执行视频可播放性的检测方法中以下步骤的程序代码:在判定所述视频源地址对应的视频可播放之后,将所述视频源地址添加到视频聚合应用中。
可选地,上述处理器还可以执行视频可播放性的检测方法中以下步骤的程序代码:获取视频聚合应用中待检测的视频源地址。
可选地,上述处理器还可以执行视频可播放性的检测方法中以下步骤的程序代码:在判定所述视频源地址对应的视频不可播放之后,将所述视频源地址从所述视频聚合应用中删除。
本领域普通技术人员可以理解,服务器也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
实施例六、
本申请的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述实施例一所提供的视频可播放性的检测方法所执行的程序代码。
可选地,在本实施例中,上述存储介质可以位于计算机网络中服务器群中的任意一个服务器中,或者位于移动终端群中的任意一个移动终端中。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:
步骤S4:获取视频源地址;
步骤S5:根据所述视频源地址获取第一视频流,所述第一视频流为与所述视频源地址对应的第二视频流中的部分视频流;
步骤S6:判断是否能从所述第一视频流中解析出所述第二视频流的头部信息;若是,则判定所述视频源地址对应的视频可播放;若否,则判定所述视频源地址对应的视频不可播放。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:从网络上获取视频网页;对所述视频网页进行解析,以得到所述视频网页对应的视频源地址。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:对所述视频网页进行解析,以得到所述视频网页对应的视频标签;根据所述视频标签获取所述视频网页对应的视频源地址。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:在判定所述视频源地址对应的视频可播放之后,将所述视频源地址添加到视频聚合应用中。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:获取视频聚合应用中待检测的视频源地址。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:在判定所述视频源地址对应的视频不可播放之后,将所述视频源地址从所述视频聚合应用中删除。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步
骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
以上对本发明实施例所提供的一种视频可播放性的检测方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。
Claims (12)
- 一种视频可播放性的检测方法,其中,包括:获取视频源地址;根据所述视频源地址获取第一视频流,所述第一视频流为与所述视频源地址对应的第二视频流中的部分视频流;判断是否能从所述第一视频流中解析出所述第二视频流的头部信息;若是,则判定所述视频源地址对应的视频可播放;若否,则判定所述视频源地址对应的视频不可播放。
- 如权利要求1所述的检测方法,其中,所述头部信息包括:视频长度信息、视频编码格式信息、和视频帧率信息。
- 如权利要求1所述的检测方法,其中,所述获取视频源地址的步骤具体包括:从网络上获取视频网页;对所述视频网页进行解析,以得到所述视频网页对应的视频源地址。
- 如权利要求3所述的检测方法,其中,所述对所述视频网页进行解析,以得到所述视频网页对应的视频源地址的步骤具体包括:对所述视频网页进行解析,以得到所述视频网页对应的视频标签;根据所述视频标签获取所述视频网页对应的视频源地址。
- 如权利要求3或4所述的检测方法,其中,在判定所述视频源地址对应的视频可播放之后,还包括:将所述视频源地址添加到视频聚合应用中。
- 如权利要求1所述的检测方法,其中,所述获取视频源地址的步骤具体包括:获取视频聚合应用中待检测的视频源地址。
- 如权利要求6所述的检测方法,其中,在判定所述视频源地址对应的视频不可播放之后,所述检测方法还包括:将所述视频源地址从所述视频聚合应用中删除。
- 一种视频可播放性的检测装置,其中,包括:地址获取模块,被设置为获取视频源地址;视频流获取模块,被设置为根据所述视频源地址获取第一视频流,所述第 一视频流为与所述视频源地址对应的第二视频流中的部分视频流;判断模块,被设置为判断是否能从所述第一视频流中解析出所述第二视频流的头部信息;若是,则判定所述视频源地址对应的视频可播放,若否,则判定所述视频源地址对应的视频不可播放。
- 如权利要求8所述的检测装置,其中,所述头部信息包括:视频长度信息、视频编码格式信息、视频帧率信息。
- 如权利要求8所述的检测装置,其中,所述地址获取模块,具体被设置为:从网络上获取视频网页;对所述视频网页进行解析,以得到所述视频网页对应的视频源地址。
- 如权利要求10所述的检测装置,其中,还包括:添加模块;所述添加模块,被设置为在所述判断模块判定所述视频源地址对应的视频可播放之后,将所述视频源地址添加到视频聚合应用中。
- 如权利要求8所述的检测装置,其中,还包括:删除模块,所述地址获取模块,具体被设置为获取视频聚合应用中待检测的视频源地址;所述删除模块,被设置为在所述判断模块判定所述视频源地址对应的视频不可播放之后,将所述视频源地址从所述视频聚合应用中删除。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/707,613 US10477253B2 (en) | 2015-12-10 | 2017-09-18 | Method and apparatus for detecting video playability |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510909480.8 | 2015-12-10 | ||
CN201510909480.8A CN105516734B (zh) | 2015-12-10 | 2015-12-10 | 一种视频可播放性的检测方法和装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/707,613 Continuation US10477253B2 (en) | 2015-12-10 | 2017-09-18 | Method and apparatus for detecting video playability |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017097039A1 true WO2017097039A1 (zh) | 2017-06-15 |
Family
ID=55724324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/102606 WO2017097039A1 (zh) | 2015-12-10 | 2016-10-19 | 一种视频可播放性的检测方法和装置 |
Country Status (3)
Country | Link |
---|---|
US (1) | US10477253B2 (zh) |
CN (1) | CN105516734B (zh) |
WO (1) | WO2017097039A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111368135A (zh) * | 2020-02-24 | 2020-07-03 | 郑州阿帕斯数云信息科技有限公司 | 视频嗅探方法和装置 |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105516734B (zh) | 2015-12-10 | 2019-11-15 | 腾讯科技(深圳)有限公司 | 一种视频可播放性的检测方法和装置 |
CN106792079A (zh) * | 2016-11-29 | 2017-05-31 | 努比亚技术有限公司 | 视频接入装置及方法 |
CN106973318B (zh) * | 2017-03-20 | 2020-01-14 | 聚好看科技股份有限公司 | 聚合视频操作方法及装置 |
CN108600866B (zh) * | 2018-05-18 | 2020-11-24 | 电子科技大学 | 一种网络音视频可播放性高效自动判别方法 |
CN109889865B (zh) * | 2019-03-12 | 2020-06-30 | 四川长虹电器股份有限公司 | 一种视频播放源推荐方法 |
CN112118487B (zh) * | 2019-06-21 | 2022-01-28 | 腾讯科技(深圳)有限公司 | 一种视频播放控制方法、装置、设备、及介质 |
CN113271458B (zh) * | 2021-05-19 | 2022-12-02 | 北京睿芯高通量科技有限公司 | 一种转码***中检测视频源有效性的方法 |
CN114390007B (zh) * | 2021-12-23 | 2024-03-15 | 西安诺瓦星云科技股份有限公司 | 数据处理方法、装置、存储介质和处理器 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101796834A (zh) * | 2007-07-02 | 2010-08-04 | Lg电子株式会社 | 数字广播***和在数字广播***中处理数据的方法 |
CN103501468A (zh) * | 2013-10-17 | 2014-01-08 | 珠海迈科电子科技有限公司 | 检测网络视频播放地址是否有效的方法及装置 |
CN104661058A (zh) * | 2013-11-20 | 2015-05-27 | 深圳市云帆世纪科技有限公司 | Mp4视频点播的数据流传输方法、客户端及点播*** |
CN104980805A (zh) * | 2015-07-28 | 2015-10-14 | 无锡天脉聚源传媒科技有限公司 | 视频播放方法及装置 |
CN105516734A (zh) * | 2015-12-10 | 2016-04-20 | 腾讯科技(深圳)有限公司 | 一种视频可播放性的检测方法和装置 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2001274622A1 (en) * | 2000-06-26 | 2002-01-08 | Matsushita Electric Industrial Co., Ltd. | Edit apparatus, reproduction apparatus, edit method, reproduction method, edit program, reproduction program, and digital record medium |
US7003551B2 (en) * | 2000-11-30 | 2006-02-21 | Bellsouth Intellectual Property Corp. | Method and apparatus for minimizing storage of common attachment files in an e-mail communications server |
US20060222328A1 (en) * | 2005-03-29 | 2006-10-05 | Takashi Akahane | Digital broadcast playback system, digital broadcast receiving apparatus, and digital broadcast recording and playback apparatus |
JP4791129B2 (ja) * | 2005-10-03 | 2011-10-12 | ルネサスエレクトロニクス株式会社 | 画像符号化装置、画像符号化方法及び画像編集装置 |
US8274564B2 (en) * | 2006-10-13 | 2012-09-25 | Fuji Xerox Co., Ltd. | Interface for browsing and viewing video from multiple cameras simultaneously that conveys spatial and temporal proximity |
CN101849261B (zh) * | 2007-08-17 | 2013-10-30 | 菲尼克斯没药树脂科技专营有限公司 | 内容发送方法及*** |
US8108893B2 (en) * | 2007-10-05 | 2012-01-31 | Alcatel Lucent | Targeted/addressable advertisement insertion into video streams delivered to users using a VLAN |
TWI482486B (zh) * | 2013-01-30 | 2015-04-21 | Wistron Corp | 影音串流的預覽及播放方法及其系統 |
US9420324B2 (en) * | 2013-09-30 | 2016-08-16 | Parrable, Inc. | Content isolation and processing for inline video playback |
US9509742B2 (en) * | 2014-10-29 | 2016-11-29 | DLVR, Inc. | Configuring manifest files referencing infrastructure service providers for adaptive streaming video |
US10250940B2 (en) * | 2016-08-12 | 2019-04-02 | International Business Machines Corporation | System, method, and recording medium for providing notifications in video streams to control video playback |
-
2015
- 2015-12-10 CN CN201510909480.8A patent/CN105516734B/zh active Active
-
2016
- 2016-10-19 WO PCT/CN2016/102606 patent/WO2017097039A1/zh active Application Filing
-
2017
- 2017-09-18 US US15/707,613 patent/US10477253B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101796834A (zh) * | 2007-07-02 | 2010-08-04 | Lg电子株式会社 | 数字广播***和在数字广播***中处理数据的方法 |
CN103501468A (zh) * | 2013-10-17 | 2014-01-08 | 珠海迈科电子科技有限公司 | 检测网络视频播放地址是否有效的方法及装置 |
CN104661058A (zh) * | 2013-11-20 | 2015-05-27 | 深圳市云帆世纪科技有限公司 | Mp4视频点播的数据流传输方法、客户端及点播*** |
CN104980805A (zh) * | 2015-07-28 | 2015-10-14 | 无锡天脉聚源传媒科技有限公司 | 视频播放方法及装置 |
CN105516734A (zh) * | 2015-12-10 | 2016-04-20 | 腾讯科技(深圳)有限公司 | 一种视频可播放性的检测方法和装置 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111368135A (zh) * | 2020-02-24 | 2020-07-03 | 郑州阿帕斯数云信息科技有限公司 | 视频嗅探方法和装置 |
CN111368135B (zh) * | 2020-02-24 | 2023-09-05 | 郑州阿帕斯数云信息科技有限公司 | 视频嗅探方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
US20180007399A1 (en) | 2018-01-04 |
CN105516734B (zh) | 2019-11-15 |
US10477253B2 (en) | 2019-11-12 |
CN105516734A (zh) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017097039A1 (zh) | 一种视频可播放性的检测方法和装置 | |
US11757961B2 (en) | System and method for streaming content from multiple servers | |
WO2016173200A1 (zh) | 用于检测恶意网址的方法和*** | |
US20140040026A1 (en) | Systems and methods for including advertisements in streaming content | |
US10212170B1 (en) | User authentication using client-side browse history | |
US10448070B2 (en) | Media device knowledge base | |
US10262341B2 (en) | Resource downloading method and device | |
US9952848B2 (en) | Dependency-aware transformation of multi-function applications for on-demand execution | |
US20170177319A1 (en) | Dependency-Aware Transformation Of Multi-Function Applications For On-Demand Execution | |
US20140366117A1 (en) | Method and system of managing a captive portal with a router | |
KR102045602B1 (ko) | 애플리케이션 코드 실행이 없는 라이브 타일들 | |
US20180131779A1 (en) | Recording And Triggering Web And Native Mobile Application Events With Mapped Data Fields | |
WO2013059798A2 (en) | Optimization of web page content including video | |
WO2017206396A1 (zh) | 一种视频播放方法及设备 | |
WO2020253366A1 (zh) | 网页邮箱数据的爬取方法、装置、终端和存储介质 | |
US8579187B2 (en) | System and method to identify machine-readable codes | |
WO2016045606A1 (zh) | 一种媒体内容推荐方法和装置 | |
US10869071B2 (en) | Tracking and visualizing video utilization | |
WO2012034537A1 (zh) | 一种在线应用***及其实现方法 | |
WO2022127743A1 (zh) | 内容显示方法及终端设备 | |
US10827026B1 (en) | Eviction of data in a session service cache | |
WO2016184288A1 (zh) | 一种广告投放方法、装置及*** | |
CN106230988A (zh) | 一种视频文件播放处理方法及装置 | |
WO2015078255A1 (zh) | 一种显示视频标题的方法、***及浏览器 | |
US10290022B1 (en) | Targeting content based on user characteristics |
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: 16872233 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 31.10.2018) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16872233 Country of ref document: EP Kind code of ref document: A1 |