CN114143490A - Method for previewing SDI video signal in webpage - Google Patents
Method for previewing SDI video signal in webpage Download PDFInfo
- Publication number
- CN114143490A CN114143490A CN202111437084.1A CN202111437084A CN114143490A CN 114143490 A CN114143490 A CN 114143490A CN 202111437084 A CN202111437084 A CN 202111437084A CN 114143490 A CN114143490 A CN 114143490A
- Authority
- CN
- China
- Prior art keywords
- frame
- data
- data segment
- sdi video
- picture
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000012986 modification Methods 0.000 claims description 33
- 230000004048 modification Effects 0.000 claims description 33
- 238000012360 testing method Methods 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 abstract description 6
- 230000010365 information processing Effects 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 10
- 230000000694 effects Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
-
- 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]
Abstract
The invention relates to the technical field related to information processing and transmission, and discloses a method for previewing SDI video signals in a webpage.
Description
Technical Field
The invention relates to the technical field of information processing and transmission, in particular to a method for previewing an SDI video signal in a webpage.
Background
With the rapid development of information technology and network technology and the gradual increase of data transmission rate, information which can be transmitted and acquired through a network gradually becomes wider and more comprehensive, compared with the past information which can only be transmitted in a short-distance high delay way through a simple and shorter data segment, the information can be generated simultaneously in multiple dimensions such as real-time video and voice and the like at present and can be transmitted in an ultra-long distance way, and web browsing at any time and any place can be realized by means of intelligent equipment with different forms, so that the limitation of traditional information processing transmission is broken to a certain extent.
In the prior art, when browsing a video signal of a remote webpage (mostly used in related technical fields such as security protection and remote control), a mode of converting an SDI video signal of a camera by using a streaming media protocol such as rtmp and hls and then embedding a video playing plug-in the webpage for playing is mostly adopted.
The streaming media protocol conversion mode adopted by the prior art has response delay of different degrees, and in addition, the delay problem exists in the conversion process, so that the streaming media protocol conversion mode is not suitable for some scenes needing low delay in use, the processing mode of the streaming media protocol in the prior art needs larger network broadband requirements, the use effect is poor under the condition that some temporarily built networks have poor conditions, but the web browser in the prior art cannot directly display and insert SDI video signals, and therefore the use of related protocols or processing modes cannot be avoided.
Disclosure of Invention
The present invention is directed to a method for previewing an SDI video signal in a webpage, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of previewing an SDI video signal on a web page comprising the steps of:
acquiring SDI video signals, wherein the SDI video signals are generated by video acquisition equipment and are high-frame-rate lossless picture signals;
acquiring the SDI video signal, reading a frame picture in the SDI video signal according to a preset frame acquisition interval, and converting the frame picture through a preset SDI conversion model to generate picture data, wherein the picture data is in a PNG format;
acquiring and responding to a data request signal, updating the frame acquisition interval according to the data request signal, and forwarding the picture data through WebSocket, wherein the data request signal comprises a frame request data segment and a frame modification data segment;
and receiving the picture data forwarded by the WebSocket, assembling the picture data into a Blob object by using a preset data processing unit, and outputting the Blob object by using a Blob protocol.
As a further scheme of the invention: the frame acquisition interval is an adjustable control parameter and is used for expressing the time interval between two adjacent times of acquisition of the SDI video signal;
the frame modification data segment is used for assigning values to the frame acquisition intervals.
As a further scheme of the invention: before the step of forwarding the picture data through the WebSocket is executed, the method further comprises the following steps:
reading the frame modification data segment, judging the frame modification data segment, and if the frame modification data segment is a null data segment, determining the frame modification data segment
Testing the network bandwidth and the network rate through a network testing tool to generate a network testing result;
and setting the frame acquisition interval according to the network test result.
As a further scheme of the invention: before the step of reading the frame picture in the SDI video signal according to the preset frame acquisition interval is executed, the method further comprises the following steps:
and uploading the SDI video signal to a cloud server, wherein the cloud server is used for storing and backing up the SDI video signal.
As a further scheme of the invention: the steps of acquiring and responding to a data request signal, updating the frame acquisition interval according to the data request signal, and forwarding the picture data through WebSocket specifically include:
receiving a data request signal from a mobile intelligent terminal;
reading a frame modification data segment in the data request signal, performing content judgment on the frame modification data segment and generating a modification judgment result;
updating the frame acquisition interval according to the modification judgment result;
reading a frame request data segment in the data request signal, and performing content judgment on the frame request data segment to generate a request judgment result;
and forwarding the picture data according to the request judgment result.
Compared with the prior art, the invention has the beneficial effects that: frame processing is carried out on SDI video signals, frame pictures are converted into picture data according to a certain frame interval, the picture data are forwarded through WebSocket, a Blob protocol is adopted to assemble the picture data, and webpage playing and outputting are used.
Drawings
Fig. 1 is a schematic diagram illustrating an implementation of a method for browsing SDI video signals in a web page.
Fig. 2 is a flow chart of a method for browsing SDI video signals in a web page.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The following detailed description of specific embodiments of the present invention is provided in connection with specific embodiments.
As shown in fig. 1, a method for browsing an SDI video signal in a web page according to an embodiment of the present invention includes the following steps:
in this embodiment, step S100 corresponds to the video capture card and the capture device in fig. 1, steps S200 and S300 correspond to the frame processing module in fig. 1, and step S400 corresponds to the display module in fig. 1.
S100, acquiring SDI video signals, wherein the SDI video signals are generated by video acquisition equipment and are high-frame-rate lossless picture signals.
In this embodiment, the SDI video signal is generated by a device lock such as a camera (e.g., monitor), and then is collected by a video capture card, where a decklik video capture card of BlackMagic Design company is adopted, and the SDI video signal of the camera is accessed into the capture card, so that the capture card is used to further process the SDI video signal.
S200, acquiring the SDI video signal, reading a frame picture in the SDI video signal according to a preset frame acquisition interval, and converting the frame picture through a preset SDI conversion model to generate picture data, wherein the picture data is in a PNG format.
In this embodiment, the step can be implemented by summarizing the frame processing step performed by the frame processing module, and reading each frame of image of the SDI video signal by using a program development interface provided by the acquisition card, where the pixel format is generally YUV 4:2:2 format, and converting each frame of image into a PNG-format image, but the image data here can also be in multiple formats such as JPG and BMP, where the multiple formats are mainly determined by multiple requirements on the quality of the generated image data, the conversion efficiency, and the like, so the PNG format is selected and used in step S200, because the PNG format is one of the multiple formats that can most equally satisfy the multiple requirements in the experimental use.
S300, acquiring and responding to a data request signal, updating the frame acquisition interval according to the data request signal, and forwarding the picture data through WebSocket, wherein the data request signal comprises a frame request data segment and a frame modification data segment.
In this embodiment, this step represents a process of responding to a terminal request, that is, a user accesses a web page of a remote smart device to obtain a response process of a picture data end, and when executing the process, after receiving a data request signal from a smart mobile terminal, executes a corresponding response step for content of the data request signal, thereby sending required picture data content to a browser web page of the mobile smart device.
S400, receiving the picture data forwarded by the WebSocket, assembling the picture data into a Blob object by using a preset data processing unit, and outputting the Blob object by using a Blob protocol.
In the embodiment, after receiving the data stream, the JavaScript program of the browser assembles the data into a Blob form, and plays the Blob form according to a Blob protocol; through the test, delay about two frames, compare in the play of the traditional webpage video that uses the webGL technique, need not to carry out streaming media's conversion with SDI data, when having reduced the delay, through directly carrying out frame compression and preview the play through the Blob protocol to SDI data signal, reduction delay that can be great can effectually be lived to the data transmission quantity simultaneously to the user demand under the different network bandwidth of adaptation.
As another preferred embodiment of the present invention, the frame acquisition interval is an adjustable control parameter, and the frame acquisition interval is used to express a time interval between two adjacent times of acquiring the SDI video signal;
the frame modification data segment is used for assigning values to the frame acquisition intervals.
In this embodiment, the frame acquisition interval is simply described as a preset frame acquisition interval, and in a normal use process, the frame acquisition interval works for a long time with a preset value, and when a user needs certain specific use parameters to use the frame acquisition interval in accordance with a use scene of the user, the frame acquisition interval can be reset through a frame modification data segment in a data request signal in a process of requesting to acquire a picture data end, so that the advantage of setting the frame modification at any time is that the frame acquisition interval can be more effectively adapted to use scenes under different requirements and network bandwidths.
As another preferred embodiment of the present invention, before the step of forwarding the picture data through the WebSocket is executed, the method further includes the steps of:
reading the frame modification data segment, judging the frame modification data segment, and if the frame modification data segment is a null data segment, determining the frame modification data segment
And testing the network bandwidth and the network rate through a network testing tool to generate a network testing result.
And setting the frame acquisition interval according to the network test result.
In this embodiment, the frame acquisition interval is further described here, when the user does not set the frame acquisition interval according to the self-demand, in order to ensure that the transmission of data can be more efficiently and stably performed, a step of detecting the bandwidth and the rate of the network connected to the user is set, and then according to the detection result of the network connection condition of the smart device with the user, the frame acquisition interval is reasonably adjusted and controlled, so that the effect of stably transmitting the picture data is achieved, and the stability of accessing the SDI video data segment through the webpage in different scenes is improved.
As another preferred embodiment of the present invention, before the step of reading the frame pictures in the SDI video signal according to the preset frame acquisition interval is executed, the method further comprises the steps of:
and uploading the SDI video signal to a cloud server, wherein the cloud server is used for storing and backing up the SDI video signal.
In this embodiment, supplementary description is performed after step S100 and before step S200, and the method further includes a step of uploading the SDI video information to a cloud for storage, so that the uploading and storing step is performed before step S200, so that the effect of storing the original SDI video information can be achieved, and subsequent data replication and further analysis and use (in some scenarios) can be facilitated.
As another preferred embodiment of the present invention, the step of acquiring and responding to a data request signal, updating the frame acquisition interval according to the data request signal, and forwarding the picture data through a WebSocket specifically includes:
and receiving a data request signal from the mobile intelligent terminal.
And reading the frame modification data segment in the data request signal, performing content judgment on the frame modification data segment and generating a modification judgment result.
And updating the frame acquisition interval according to the modification judgment result.
And reading a frame request data segment in the data request signal, and performing content judgment on the frame request data segment to generate a request judgment result.
And forwarding the picture data according to the request judgment result.
In this embodiment, the execution process of step S300 is further decomposed and described, and mainly includes operation judgment and execution contents of two parts, namely, frame acquisition interval and picture data forwarding.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (5)
1. A method for previewing an SDI video signal on a web page, comprising the steps of:
acquiring SDI video signals, wherein the SDI video signals are generated by video acquisition equipment and are high-frame-rate lossless picture signals;
acquiring the SDI video signal, reading a frame picture in the SDI video signal according to a preset frame acquisition interval, and converting the frame picture through a preset SDI conversion model to generate picture data, wherein the picture data is in a PNG format;
acquiring and responding to a data request signal, updating the frame acquisition interval according to the data request signal, and forwarding the picture data through WebSocket, wherein the data request signal comprises a frame request data segment and a frame modification data segment;
and receiving the picture data forwarded by the WebSocket, assembling the picture data into a Blob object by using a preset data processing unit, and outputting the Blob object by using a Blob protocol.
2. The method of claim 1, wherein the frame acquisition interval is an adjustable control parameter, and the frame acquisition interval is used to describe a time interval between two adjacent times of acquiring the SDI video signal;
the frame modification data segment is used for assigning values to the frame acquisition intervals.
3. The method of claim 2, wherein before the step of forwarding the picture data through the WebSocket is performed, the method further comprises the steps of:
reading the frame modification data segment, judging the frame modification data segment, and if the frame modification data segment is a null data segment, determining the frame modification data segment
Testing the network bandwidth and the network rate through a network testing tool to generate a network testing result;
and setting the frame acquisition interval according to the network test result.
4. The method of claim 3, wherein before the step of reading the frame pictures in the SDI video signal according to the preset frame acquisition interval, the method further comprises the steps of:
and uploading the SDI video signal to a cloud server, wherein the cloud server is used for storing and backing up the SDI video signal.
5. The method of claim 1, wherein the steps of obtaining and responding to a data request signal, updating the frame obtaining interval according to the data request signal, and forwarding the picture data through a WebSocket specifically include:
receiving a data request signal from a mobile intelligent terminal;
reading a frame modification data segment in the data request signal, performing content judgment on the frame modification data segment and generating a modification judgment result;
updating the frame acquisition interval according to the modification judgment result;
reading a frame request data segment in the data request signal, and performing content judgment on the frame request data segment to generate a request judgment result;
and forwarding the picture data according to the request judgment result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111437084.1A CN114143490A (en) | 2021-11-29 | 2021-11-29 | Method for previewing SDI video signal in webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111437084.1A CN114143490A (en) | 2021-11-29 | 2021-11-29 | Method for previewing SDI video signal in webpage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114143490A true CN114143490A (en) | 2022-03-04 |
Family
ID=80389371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111437084.1A Pending CN114143490A (en) | 2021-11-29 | 2021-11-29 | Method for previewing SDI video signal in webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114143490A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115086764A (en) * | 2022-05-08 | 2022-09-20 | 全芯(佛山)科技有限公司 | Method and terminal for web side to preview short video effect |
CN116308888A (en) * | 2023-05-19 | 2023-06-23 | 南方电网数字平台科技(广东)有限公司 | Operation ticket management system based on neural network |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5768426A (en) * | 1993-11-18 | 1998-06-16 | Digimarc Corporation | Graphics processing system employing embedded code signals |
CN101902475A (en) * | 2010-07-22 | 2010-12-01 | 工业和信息化部电信研究院 | A kind of transfer control method of variable-speed streaming media in next-generation network and device |
US20140365892A1 (en) * | 2013-06-08 | 2014-12-11 | Tencent Technology (Shenzhen) Company Limited | Method, apparatus and computer readable storage medium for displaying video preview picture |
US20190163981A1 (en) * | 2017-11-28 | 2019-05-30 | Baidu Online Network Technology (Beijing) Co., Ltd. | Method and apparatus for extracting video preview, device and computer storage medium |
CN110647703A (en) * | 2019-09-18 | 2020-01-03 | 平安科技(深圳)有限公司 | Animation playing method and device, computer equipment and storage medium |
CN111935459A (en) * | 2020-08-25 | 2020-11-13 | 睿云联(厦门)网络通讯技术有限公司 | Browser-based ladder machine video preview method |
WO2020258479A1 (en) * | 2019-06-26 | 2020-12-30 | 网宿科技股份有限公司 | Webpage frame acquisition method, server and storage medium |
CN112312067A (en) * | 2019-07-31 | 2021-02-02 | 杭州海康威视数字技术股份有限公司 | Method, device and equipment for pre-monitoring input video signal |
CN112422508A (en) * | 2020-10-19 | 2021-02-26 | 武汉烽火众智数字技术有限责任公司 | Method and system for playing video in browser webpage |
-
2021
- 2021-11-29 CN CN202111437084.1A patent/CN114143490A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5768426A (en) * | 1993-11-18 | 1998-06-16 | Digimarc Corporation | Graphics processing system employing embedded code signals |
CN101902475A (en) * | 2010-07-22 | 2010-12-01 | 工业和信息化部电信研究院 | A kind of transfer control method of variable-speed streaming media in next-generation network and device |
US20140365892A1 (en) * | 2013-06-08 | 2014-12-11 | Tencent Technology (Shenzhen) Company Limited | Method, apparatus and computer readable storage medium for displaying video preview picture |
US20190163981A1 (en) * | 2017-11-28 | 2019-05-30 | Baidu Online Network Technology (Beijing) Co., Ltd. | Method and apparatus for extracting video preview, device and computer storage medium |
WO2020258479A1 (en) * | 2019-06-26 | 2020-12-30 | 网宿科技股份有限公司 | Webpage frame acquisition method, server and storage medium |
CN112312067A (en) * | 2019-07-31 | 2021-02-02 | 杭州海康威视数字技术股份有限公司 | Method, device and equipment for pre-monitoring input video signal |
CN110647703A (en) * | 2019-09-18 | 2020-01-03 | 平安科技(深圳)有限公司 | Animation playing method and device, computer equipment and storage medium |
CN111935459A (en) * | 2020-08-25 | 2020-11-13 | 睿云联(厦门)网络通讯技术有限公司 | Browser-based ladder machine video preview method |
CN112422508A (en) * | 2020-10-19 | 2021-02-26 | 武汉烽火众智数字技术有限责任公司 | Method and system for playing video in browser webpage |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115086764A (en) * | 2022-05-08 | 2022-09-20 | 全芯(佛山)科技有限公司 | Method and terminal for web side to preview short video effect |
CN116308888A (en) * | 2023-05-19 | 2023-06-23 | 南方电网数字平台科技(广东)有限公司 | Operation ticket management system based on neural network |
CN116308888B (en) * | 2023-05-19 | 2023-08-11 | 南方电网数字平台科技(广东)有限公司 | Operation ticket management system based on neural network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114143490A (en) | Method for previewing SDI video signal in webpage | |
US20210160556A1 (en) | Method for enhancing resolution of streaming file | |
US20130308699A1 (en) | Audio-visual content delivery | |
CN103902664B (en) | Page image rendering method and information providing method and device | |
CN110602445B (en) | Video monitoring data acquisition method and device, computer equipment and storage medium | |
US20230224487A1 (en) | Transmission device, communication system, transmission method, and computer program product | |
US20160351231A1 (en) | Efficient video frame rendering in compliance with cross-origin resource restrictions | |
US20230130807A1 (en) | Method for on-demand video editing at transcode-time in a video streaming system | |
CN112738637A (en) | Web page real-time video playing method and device and computer equipment | |
CN104243886B (en) | A kind of high speed image parsing and video generation method based on plug-in part technology | |
CN113689592B (en) | Short-range file transmission method and system based on WIFI network | |
CN103428528A (en) | Cloud streaming media adaptive playing device and method | |
US8812584B2 (en) | Moving picture file transmitting server and method of controlling operation of same | |
JP5836574B2 (en) | Data request method and apparatus, and data acquisition method and apparatus | |
CN112235600B (en) | Method, device and system for processing video data and video service request | |
KR102130076B1 (en) | Method for improving the resolution of streaming files based on the learning importance of feature areas | |
CN113301388A (en) | Video stream processing system, device and method | |
CN112866745B (en) | Streaming video data processing method, device, computer equipment and storage medium | |
WO2019076155A1 (en) | Data transmission method, camera and electronic device | |
TWI731579B (en) | Transmission device, communication system, transmission method, and computer program product | |
CN109698923B (en) | Data transmission method, camera and electronic equipment | |
CN106657339B (en) | Data transmission method, server and client | |
CN109831701B (en) | Digital television equipment browser and method for expanding cross-page system event | |
KR102291293B1 (en) | Transmission device, comunication system, transmission method, and non-transitory computer readable recording medium | |
CN111131814A (en) | Data feedback method and device and set top box |
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 |