CN113438487A - Method for compatible private video format webpage player - Google Patents
Method for compatible private video format webpage player Download PDFInfo
- Publication number
- CN113438487A CN113438487A CN202110592104.6A CN202110592104A CN113438487A CN 113438487 A CN113438487 A CN 113438487A CN 202110592104 A CN202110592104 A CN 202110592104A CN 113438487 A CN113438487 A CN 113438487A
- Authority
- CN
- China
- Prior art keywords
- video
- video stream
- decoding
- format
- webpage
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000012795 verification Methods 0.000 claims description 3
- 230000006835 compression Effects 0.000 description 9
- 238000007906 compression Methods 0.000 description 9
- 230000001133 acceleration Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method for a webpage player compatible with a private video format, which comprises the following specific steps: step one, installing a local service plug-in at a PC end, creating a websocket service port of a designated port in the configuration and waiting for the connection of a browser; step two, the browser is used for receiving information of a user clicking on a webpage to apply for watching a new video format; step three, judging whether the video stream is in a standard format; step four, when the video stream in the step three is judged to be in the standard format, calling a standard embedded player to play the video stream pulled from the streaming media, otherwise, the browser needs to create a webSocket connection local decoding service; and step five, pushing the YUV image data after the video data decoding back to the webpage. Compared with the prior art, the invention has the advantages that: the video of different formats can be decoded and played without opening two pictures for video watching, the operation is convenient and fast, and the user experience is good.
Description
Technical Field
The invention relates to the technical field related to video decoding, in particular to a method for a webpage player compatible with a private video format.
Background
A4-time lossless compression algorithm which is newly developed by a pick-up algorithm team is combined with a 3559A chip in compression, but the computational power of a reduction algorithm chip is insufficient, a GPU computational power is required to be used for reducing images on x86, an original pick-up web page player only supports decoding of h264 and h265 video formats, if an original webpage system needs to play the latest video format seamlessly, a new method is required for solving the problem, otherwise, the webpage system can only play the latest video format in a local version, two pictures need to be opened, the operation is troublesome, and the user experience is very poor.
With the continuous development of video technology, the iterative innovation of video compression technology is more and more frequent, when a more excellent compression algorithm is not yet standard, embedded video players of various browsers do not support the latest video compression algorithm, if the latest compression algorithm is required to be applied, the latest algorithm is required to be used for compression at a video source end, and a picture is restored and displayed at a front end by the latest algorithm. When a new algorithm comes out, the encoding and decoding are provided with a calling library below x86 (since the new algorithm improves the compression rate, needs N times of calculation power, basically needs to use a GPU for acceleration, and therefore can be realized below x 86), at this time, a player in a common webpage application cannot play, and therefore a uniform method of a webpage player compatible with a private video format is needed.
Disclosure of Invention
The invention provides a method for enabling a webpage player to play compatibly by local decoding, aiming at overcoming the problem that the video format of the latest compression algorithm cannot be played by the existing webpage player and enabling the new algorithm to be applied most quickly.
In order to solve the technical problems, the technical scheme provided by the invention is as follows: a compatible private video format webpage player method is applied to video stream playing equipment, the video stream playing equipment comprises a browser and local service, the browser and the local service are communicated through websocket, and the compatible private video format webpage player method comprises the following specific steps:
step one, installing a local service plug-in at a PC (personal computer) end, wherein the local service plug-in is used for reading configuration, creating a websocket service port of a specified port in the configuration and waiting for connection of a browser;
the browser is used for receiving information of applying for watching a new video format clicked on a webpage by a user, acquiring a video stream corresponding to the video playing request, and returning video format information, the address of a streaming media forwarding server and a verification key;
analyzing according to the video stream, and judging whether the video stream is in a standard format;
step four, when the video stream in the step three is judged to be in the standard format, calling a standard embedded player to play the video stream pulled from the streaming media, and when the video stream in the step three is judged to be in the new video format, the browser needs to create a webSocket connection local decoding service and pushes the video stream data pulled up by the streaming media forwarding server to the local decoding service;
and step five, after local decoding service is carried out on the video stream in the new video format in the step four, the YUV image data after the video data decoding is pushed back to the webpage, the webpage player obtains the YUV image data, and the image is generated by using the canvas and displayed.
As an improvement, the local service connects decoding hardware for assisting in multi-path decoding.
As an improvement, the local service pushes the received video stream with the new format to locally connected decoding hardware, and the decoding hardware returns the original image data and then pushes the original image data back to the browser.
As an improvement, the local service adopts a public decoding algorithm and a pick-up decoding algorithm at the same time.
As an improvement, the local service plug-in is used for circularly decoding until the webpage is disconnected.
Compared with the prior art, the invention has the advantages that: the method for the webpage player compatible with the private video format can decode and play videos with different formats, two pictures do not need to be opened for video watching, the operation is convenient and fast, the user experience is good, the decoding hardware is connected in the local service and used for assisting the multi-channel decoding shell to improve the video stream decoding performance, and the phenomenon of video playing blockage is avoided.
Drawings
Fig. 1 is a schematic block diagram of a method for playing a web page compatible with a proprietary video format according to the present invention.
FIG. 2 is a flow chart of the present invention for a web page invoking local decode service.
FIG. 3 is a flow chart of the operation of the local service plug-in of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
The following further describes embodiments of the present invention with reference to the accompanying drawings. In which like parts are designated by like reference numerals.
It should be noted that the terms "front," "back," "left," "right," "upper" and "lower" used in the following description refer to directions in the drawings, and the terms "inner" and "outer" refer to directions toward and away from, respectively, the geometric center of a particular component.
In order to make the content of the present invention more clearly understood, 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.
With reference to fig. 1-3, a method for playing a web page compatible with a private video format is applied to a video stream playing device, where the video stream playing device includes a browser and a local service, and the browser and the local service communicate with each other through a websocket, and the method for playing the web page compatible with the private video format includes the following specific steps:
step one, installing a local service plug-in at a PC (personal computer) end, wherein the local service plug-in is used for reading configuration, creating a websocket service port of a specified port in the configuration and waiting for connection of a browser;
the browser is used for receiving information of applying for watching a new video format clicked on a webpage by a user, acquiring a video stream corresponding to the video playing request, and returning video format information, the address of a streaming media forwarding server and a verification key;
analyzing according to the video stream, and judging whether the video stream is in a standard format;
step four, when the video stream in the step three is judged to be in the standard format, calling a standard embedded player to play the video stream pulled from the streaming media, and when the video stream in the step three is judged to be in the new video format, the browser needs to create a webSocket connection local decoding service and pushes the video stream data pulled up by the streaming media forwarding server to the local decoding service;
and step five, after local decoding service is carried out on the video stream in the new video format in the step four, the YUV image data after the video data decoding is pushed back to the webpage, the webpage player obtains the YUV image data, and the image is generated by using the canvas and displayed.
And the local service is connected with decoding hardware for assisting multi-path decoding.
And the local service pushes the received video stream with the new format to locally connected decoding hardware, and the decoding hardware returns the original image data and then pushes the original image data back to the browser.
The local service simultaneously adopts a public decoding algorithm and a pick-up decoding algorithm.
The local service plug-in is used for circularly decoding until the webpage is disconnected.
The present invention and its embodiments have been described above, and the description is not intended to be limiting, and the drawings are only one embodiment of the present invention, and the actual structure is not limited thereto. In summary, those skilled in the art should appreciate that they can readily use the disclosed conception and specific embodiments as a basis for designing or modifying other structures for carrying out the same purposes of the present invention without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (5)
1. A compatible private video format webpage player method is applied to video stream playing equipment, the video stream playing equipment comprises a browser and local service, the browser and the local service are communicated through websocket, and the compatible private video format webpage player method comprises the following specific steps:
step one, installing a local service plug-in at a PC (personal computer) end, wherein the local service plug-in is used for reading configuration, creating a websocket service port of a specified port in the configuration and waiting for connection of a browser;
the browser is used for receiving information of applying for watching a new video format clicked on a webpage by a user, acquiring a video stream corresponding to the video playing request, and returning video format information, the address of a streaming media forwarding server and a verification key;
analyzing according to the video stream, and judging whether the video stream is in a standard format;
step four, when the video stream in the step three is judged to be in the standard format, calling a standard embedded player to play the video stream pulled from the streaming media, and when the video stream in the step three is judged to be in the new video format, the browser needs to create a webSocket connection local decoding service and pushes the video stream data pulled up by the streaming media forwarding server to the local decoding service;
and step five, after local decoding service is carried out on the video stream in the new video format in the step four, the YUV image data after the video data decoding is pushed back to the webpage, the webpage player obtains the YUV image data, and the image is generated by using the canvas and displayed.
2. The method of claim 1, wherein the method further comprises: and the local service is connected with decoding hardware for assisting multi-path decoding.
3. The method of claim 2, wherein the method further comprises: and the local service pushes the received video stream with the new format to locally connected decoding hardware, and the decoding hardware returns the original image data and then pushes the original image data back to the browser.
4. The method of claim 1, wherein the method further comprises: the local service simultaneously adopts a public decoding algorithm and a pick-up decoding algorithm.
5. The method of claim 1, wherein the method further comprises: the local service plug-in is used for circularly decoding until the webpage is disconnected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110592104.6A CN113438487A (en) | 2021-05-28 | 2021-05-28 | Method for compatible private video format webpage player |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110592104.6A CN113438487A (en) | 2021-05-28 | 2021-05-28 | Method for compatible private video format webpage player |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113438487A true CN113438487A (en) | 2021-09-24 |
Family
ID=77803134
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110592104.6A Withdrawn CN113438487A (en) | 2021-05-28 | 2021-05-28 | Method for compatible private video format webpage player |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113438487A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115037991A (en) * | 2022-06-08 | 2022-09-09 | 厦门熵基科技有限公司 | Browser video playing method and device, terminal equipment and readable storage medium |
CN115086603A (en) * | 2022-05-12 | 2022-09-20 | 南方电网深圳数字电网研究院有限公司 | Video processing method and device based on compatible player |
-
2021
- 2021-05-28 CN CN202110592104.6A patent/CN113438487A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115086603A (en) * | 2022-05-12 | 2022-09-20 | 南方电网深圳数字电网研究院有限公司 | Video processing method and device based on compatible player |
CN115086603B (en) * | 2022-05-12 | 2024-05-14 | 南方电网数字平台科技(广东)有限公司 | Video processing method and device based on compatibility player |
CN115037991A (en) * | 2022-06-08 | 2022-09-09 | 厦门熵基科技有限公司 | Browser video playing method and device, terminal equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10721282B2 (en) | Media acceleration for virtual computing services | |
US10187668B2 (en) | Method, system and server for live streaming audio-video file | |
US9961398B2 (en) | Method and device for switching video streams | |
CN112653700B (en) | Website video communication method based on WEBRTC | |
WO2020233142A1 (en) | Multimedia file playback method and apparatus, electronic device, and storage medium | |
JP6511038B2 (en) | Cloud streaming service providing method and apparatus therefor | |
CN112073809B (en) | Method for supporting browser to play video with any coding format | |
CN108337545A (en) | Media playback and media serving device for reproduced in synchronization video and audio | |
CN105518614A (en) | Screencasting for multi-screen applications | |
CN113438487A (en) | Method for compatible private video format webpage player | |
WO2017080175A1 (en) | Multi-camera used video player, playing system and playing method | |
KR101942269B1 (en) | Apparatus and method for playing back and seeking media in web browser | |
CN109325145A (en) | Acquisition methods, terminal and the computer readable storage medium of video thumbnails | |
US20170171579A1 (en) | Method and Device for Transcoding Live Video | |
JP2005130196A (en) | Contents-providing service system | |
TW535437B (en) | Dynamic generation of video content for presentation by a media server | |
KR101018781B1 (en) | Method and system for providing additional contents using augmented reality | |
KR20140117889A (en) | Client apparatus, server apparatus, multimedia redirection system and the method thereof | |
JP2012257196A (en) | System and method for transferring streaming medium based on sharing of screen | |
CN115134664A (en) | Real-time video stream playing method and system and nonvolatile storage medium | |
KR20160015123A (en) | System for cloud streaming service, method of cloud streaming service based on still image and apparatus for the same | |
KR20100072113A (en) | Method and system for providing flash contents via mobile network and method and apparatus for converting flash contents | |
WO2016107174A1 (en) | Method and system for processing multimedia file data, player and client | |
Karachristos et al. | A real-time streaming games-on-demand system | |
CN116708867B (en) | Live broadcast data processing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210924 |