CN113973232B - Video stream switching method and storage device - Google Patents

Video stream switching method and storage device Download PDF

Info

Publication number
CN113973232B
CN113973232B CN202111138022.0A CN202111138022A CN113973232B CN 113973232 B CN113973232 B CN 113973232B CN 202111138022 A CN202111138022 A CN 202111138022A CN 113973232 B CN113973232 B CN 113973232B
Authority
CN
China
Prior art keywords
video stream
screen
osd
playing
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111138022.0A
Other languages
Chinese (zh)
Other versions
CN113973232A (en
Inventor
吴衍斌
廖以随
池美玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinqianmao Technology Co ltd
Original Assignee
Jinqianmao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinqianmao Technology Co ltd filed Critical Jinqianmao Technology Co ltd
Priority to CN202311450553.2A priority Critical patent/CN117560546A/en
Priority to CN202111138022.0A priority patent/CN113973232B/en
Publication of CN113973232A publication Critical patent/CN113973232A/en
Application granted granted Critical
Publication of CN113973232B publication Critical patent/CN113973232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)
  • Studio Circuits (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention relates to the field of multimedia processing technologies, and in particular, to a video stream switching method and a storage device. The video stream switching method comprises the following steps: responding to a screen operation instruction, judging whether an operation area of the operation instruction is in a screen OSD area range, and if the operation area of the operation instruction is in the screen OSD area range, executing preset operation on a video stream played on a current screen according to preset rules, wherein the preset operation comprises but is not limited to: switching video streams and maintaining the current video stream to play. Through the method, when the video stream is wanted to be switched, the user can switch and play another video stream without exiting the full screen mode only by executing the corresponding operation within the region of the screen OSD, and the user can freely switch the video stream wanted to be played on the current interface, so that the time is saved, and the user experience is greatly improved.

Description

Video stream switching method and storage device
Technical Field
The present invention relates to the field of multimedia processing technologies, and in particular, to a video stream switching method and a storage device.
Background
In daily life, people can watch some video information inevitably, when a user watches videos through terminal equipment such as a mobile phone, a computer, a television and a pad, the existing video stream switching needs to exit a full-screen mode to switch and play another video stream, and the switching process causes that the user exits and reenters each time the user needs to watch another video stream, so that the browsing of the user is unsmooth, the time is wasted, the using satisfaction degree of the user is greatly influenced, and the user needs a faster, convenient, accurate, smooth and reliable video stream switching scheme.
Disclosure of Invention
Therefore, a faster, convenient, accurate, fluent and reliable video stream switching method is needed to solve the technical problems that the existing video stream switching needs to exit and reenter, so that the browsing of users is not smooth, time is wasted and the using satisfaction of users is greatly affected. The specific technical scheme is as follows:
a video stream switching method comprising the steps of:
responding to a screen operation instruction, judging whether an operation area of the operation instruction is in a screen OSD area range, and if the operation area of the operation instruction is in the screen OSD area range, executing preset operation on a video stream played on a current screen according to preset rules, wherein the preset operation comprises but is not limited to: switching video streams and maintaining the current video stream to play.
Further, before the step of "determining whether the operation area of the operation instruction is within the OSD area", the method specifically further includes the steps of:
and reading screen OSD position information, wherein the OSD position information is the peripheral coordinates of the OSD text image, and the OSD region range is a region surrounded by the periphery of the OSD text image.
Further, the step of performing a preset operation on the video stream played on the current screen according to a preset rule specifically further includes the steps of:
the preset rule comprises the following steps: clicking the OSD area once to correspondingly play the first video stream, clicking the OSD area twice to correspondingly play the second video stream;
responding to an OSD region clicking command once, judging whether the current screen plays the first video stream, if so, maintaining playing the first video stream, and if not, reading the first video stream address and switching to playing the first video stream;
and responding to the command of clicking the OSD region twice, judging whether the current screen plays the second video stream, if so, maintaining playing the second video stream, and if not, reading the address of the second video stream and switching to playing the second video stream.
Further, the step of "determining whether the current screen is playing the first video stream" or "determining whether the current screen is playing the second video stream" specifically further includes the steps of:
and judging the current video stream by reading the video stream address.
Further, before the "respond to screen operation instruction", the method specifically further includes the steps of:
presetting reading paths of two video streams;
the video streams include, but are not limited to: video streams recorded by a camera in real time and video streams made of a plurality of pictures;
the read path of the video stream includes, but is not limited to: the stored hard disk address and the IP address of the camera.
Further, the step of performing a preset operation on the video stream played on the current screen according to a preset rule specifically further includes the steps of:
if the video stream made of the plurality of pictures is switched to the video stream recorded in real time by the camera, the video stream made of the plurality of pictures is eliminated after the time point of playing the video stream made of the plurality of pictures is stored, the video stream path recorded in real time by the camera is read, and the video stream recorded in real time by the camera is played;
if the video stream recorded by the camera in real time is switched to the video stream made of the plurality of pictures, confirming that the playing time node of the video stream made of the plurality of pictures to be switched to is playing from the beginning or from the stored time point, eliminating the video stream recorded by the camera in real time, reading the video stream made of the plurality of pictures and playing according to the playing time node.
Further, the screen operation instructions include, but are not limited to: mouse click operation, screen click operation.
In order to solve the technical problems, the invention also provides a storage device, which comprises the following specific technical scheme:
a storage device having stored therein a set of instructions for performing any of the steps of a video stream switching method as described above.
The beneficial effects of the invention are as follows: the method for switching the video is faster, more convenient, more accurate, more fluent and more reliable, and comprises the following steps: responding to a screen operation instruction, judging whether an operation area of the operation instruction is in a screen OSD area range, and if the operation area of the operation instruction is in the screen OSD area range, executing preset operation on a video stream played on a current screen according to preset rules, wherein the preset operation comprises but is not limited to: switching video streams and maintaining the current video stream to play. Through the method, when the video stream is wanted to be switched, the user can switch and play another video stream without exiting the full screen mode only by executing the corresponding operation within the region of the screen OSD, and the user can freely switch the video stream wanted to be played on the current interface, so that the time is saved, and the user experience is greatly improved.
Drawings
Fig. 1 is a flowchart of a video stream switching method according to an embodiment;
fig. 2 is a schematic block diagram of a memory device according to an embodiment.
Reference numerals illustrate:
200. a storage device.
Detailed Description
In order to describe the technical content, constructional features, achieved objects and effects of the technical solution in detail, the following description is made in connection with the specific embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, in the present embodiment, a video stream switching method may be applied to a storage device configured with a display screen, and when the display screen plays a video stream, there is an OSD region on the display screen.
The core technical idea of the application is that the video playing can be switched by directly clicking the OSD region in the screen, the floating window is not used, and the video after switching is played in the original playing window, so that the full-screen playing is realized, and the floating window is not required to be subjected to full-screen operation. The whole operation is very simple and convenient, and extra interface icon functions and the like are not required to be additionally designed.
The following description will be developed specifically:
step S101: responding to the screen operation instruction.
Step S102: judging whether the operation region of the operation instruction is within the OSD region?
If the operation area of the operation instruction is within the OSD region, step S103 is executed: performing preset operations on the video stream played on the current screen according to preset rules, wherein the preset operations include but are not limited to: switching video streams and maintaining the current video stream to play.
In this embodiment, the operation instruction for the screen may be: clicking, the preset rule may be: clicking the OSD area once to correspondingly play the first video stream, clicking the OSD area twice to correspondingly play the second video stream;
similarly, in other embodiments, the user may set the operation instruction of the screen arbitrarily according to his own preference, for example, it may be: the screen scribing operation, the preset rule may be: the screen drawing operation is to play the first video stream correspondingly when the pattern is a dotting pattern, and play the second video stream correspondingly when the pattern is a circling pattern;
the screen operation instruction and the preset rule are not limited at all. The user can perform any personalized setting according to own preference.
The following screen operation instructions are used as clicks, and the preset rules are as follows: clicking the OSD area once corresponds to playing the first video stream, and clicking the OSD area twice corresponds to playing the second video stream. The explanation is made:
in this embodiment, the read paths of the two video streams are set in advance.
Likewise, before the step of "determining whether the operation area of the operation instruction is within the OSD region", the method specifically further includes the step of: and reading screen OSD position information, wherein the OSD position information is the peripheral coordinates of the OSD text image, and the OSD region range is a region surrounded by the periphery of the OSD text image. If the OSD region is rectangular, then falling within the OSD region is within this rectangle. Specifically, whether the coordinate value of the clicked screen area falls within the coordinate of the rectangular area is determined, if yes, the clicked operation area falls within the screen OSD area.
The following description will be developed for one-click operation and two-click operation, respectively:
and responding to the command of clicking the OSD area once, judging whether the current screen is playing the first video stream, if so, maintaining to play the first video stream, and if not, reading the address of the first video stream and switching to play the first video stream.
And responding to the command of clicking the OSD region twice, judging whether the current screen plays the second video stream, if so, maintaining playing the second video stream, and if not, reading the address of the second video stream and switching to playing the second video stream.
In this embodiment, it is determined which current video stream is by reading the video stream address.
Further, if the two video streams are the video stream recorded by the camera in real time and the video stream made of multiple pictures,
if the video stream made of a plurality of pictures is switched to the video stream recorded in real time by the camera, the video stream made of a plurality of pictures is eliminated after the time point of playing the video stream made of a plurality of pictures is stored (so that when the video stream made of a plurality of pictures is switched to the next time, if the video stream is required to be played from the stored time point, the video stream can be watched from the last time point without the need of starting to watch by a heavy head), the video stream path recorded in real time by the camera is read, and the video stream recorded in real time by the camera is played;
if the video stream recorded by the camera in real time is switched to the video stream made of the plurality of pictures, confirming that the playing time node of the video stream made of the plurality of pictures to be switched to is playing from the beginning or from the stored time point (if the stored current time is detected to be equal to the final duration of the video stream, the video stream is played from the beginning by default), eliminating the video stream recorded by the camera in real time, reading the video stream made of the plurality of pictures and playing according to the playing time node.
Wherein the read path of the video stream includes, but is not limited to: the stored hard disk address and the IP address of the camera.
Wherein the clicking operations described above include, but are not limited to: mouse click operation, screen click operation. The screen clicking operation means that clicking can be directly performed on the screen without using a mouse, such as clicking with a finger or clicking with a stylus, and the like.
Through the method, when the video stream is wanted to be switched, the user can switch and play another video stream without exiting the full screen mode only by executing the corresponding operation within the region of the screen OSD, and the user can freely switch the video stream wanted to be played on the current interface, so that the time is saved, and the user experience is greatly improved.
And the preset rule of switching can be appointed according to the preference of the user, so that the user experience is further improved.
Referring to fig. 2, in this embodiment, a specific embodiment of a storage device 200 is as follows:
a storage device 200 has stored therein a set of instructions for performing any of the steps of one of the video stream switching methods described above.
Through the storage device 200, when the video stream is to be switched, the user can switch to play another video stream without exiting full screen mode only by executing corresponding operation within the region of the screen OSD, so that the user can freely switch the video stream to be played on the current interface, thereby saving time and greatly improving the user experience.
It should be noted that, although the foregoing embodiments have been described herein, the scope of the present invention is not limited thereby. Therefore, based on the innovative concepts of the present invention, alterations and modifications to the embodiments described herein, or equivalent structures or equivalent flow transformations made by the present description and drawings, apply the above technical solution, directly or indirectly, to other relevant technical fields, all of which are included in the scope of the invention.

Claims (6)

1. A video stream switching method, comprising the steps of:
responding to a screen operation instruction, judging whether an operation area of the operation instruction is in a screen OSD area range, and if the operation area of the operation instruction is in the screen OSD area range, executing preset operation on a video stream played on a current screen according to preset rules, wherein the preset operation comprises but is not limited to: switching video streams and maintaining the current video stream to play;
the step of executing preset operation on the video stream played on the current screen according to the preset rule specifically further comprises the steps of:
the preset rule comprises the following steps: clicking the OSD area once to correspondingly play the first video stream, clicking the OSD area twice to correspondingly play the second video stream;
responding to an OSD region clicking command once, judging whether the current screen plays the first video stream, if so, maintaining playing the first video stream, and if not, reading the first video stream address and switching to playing the first video stream;
responding to the command of clicking the OSD region twice, judging whether the current screen plays the second video stream, if so, maintaining playing the second video stream, and if not, reading the address of the second video stream and switching to playing the second video stream;
the step of judging whether the current screen is playing the first video stream or not or judging whether the current screen is playing the second video stream or not specifically further comprises the steps of:
and judging the current video stream by reading the video stream address.
2. The video stream switching method according to claim 1, wherein before the step of determining whether the operation area of the operation instruction is within the OSD region, the method further comprises the steps of:
and reading screen OSD position information, wherein the OSD position information is the peripheral coordinates of the OSD text image, and the OSD region range is a region surrounded by the periphery of the OSD text image.
3. A video stream switching method according to claim 1 or 2, wherein before said responding to the screen operation command, the method further comprises the steps of:
presetting reading paths of two video streams;
the video streams include, but are not limited to: video streams recorded by a camera in real time and video streams made of a plurality of pictures;
the read path of the video stream includes, but is not limited to: the stored hard disk address and the IP address of the camera.
4. A video stream switching method as defined in claim 3, wherein,
the step of executing preset operation on the video stream played on the current screen according to the preset rule specifically further comprises the steps of:
if the video stream made of the plurality of pictures is switched to the video stream recorded in real time by the camera, the video stream made of the plurality of pictures is eliminated after the time point of playing the video stream made of the plurality of pictures is stored, the video stream path recorded in real time by the camera is read, and the video stream recorded in real time by the camera is played;
if the video stream recorded by the camera in real time is switched to the video stream made of the plurality of pictures, confirming that the playing time node of the video stream made of the plurality of pictures to be switched to is playing from the beginning or from the stored time point, eliminating the video stream recorded by the camera in real time, reading the video stream made of the plurality of pictures and playing according to the playing time node.
5. A video stream switching method according to any one of claims 1 to 4, wherein the screen operation instruction includes, but is not limited to: mouse click operation, screen click operation.
6. A storage device having stored therein a set of instructions for performing: a video stream switching method as claimed in any one of claims 1 to 5.
CN202111138022.0A 2021-09-27 2021-09-27 Video stream switching method and storage device Active CN113973232B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202311450553.2A CN117560546A (en) 2021-09-27 2021-09-27 Video stream switching method and storage device
CN202111138022.0A CN113973232B (en) 2021-09-27 2021-09-27 Video stream switching method and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111138022.0A CN113973232B (en) 2021-09-27 2021-09-27 Video stream switching method and storage device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311450553.2A Division CN117560546A (en) 2021-09-27 2021-09-27 Video stream switching method and storage device

Publications (2)

Publication Number Publication Date
CN113973232A CN113973232A (en) 2022-01-25
CN113973232B true CN113973232B (en) 2023-12-29

Family

ID=79587350

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111138022.0A Active CN113973232B (en) 2021-09-27 2021-09-27 Video stream switching method and storage device
CN202311450553.2A Pending CN117560546A (en) 2021-09-27 2021-09-27 Video stream switching method and storage device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202311450553.2A Pending CN117560546A (en) 2021-09-27 2021-09-27 Video stream switching method and storage device

Country Status (1)

Country Link
CN (2) CN113973232B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578073A (en) * 2015-12-23 2016-05-11 浙江大华技术股份有限公司 Video monitoring image display method and device
CN105898514A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Video play method and system
WO2017161765A1 (en) * 2016-03-21 2017-09-28 乐视控股(北京)有限公司 Video playback method and device
WO2017219870A1 (en) * 2016-06-20 2017-12-28 深圳创维数字技术有限公司 Method and device for playing video data
CN111327952A (en) * 2018-12-14 2020-06-23 中国移动通信集团山东有限公司 Video switching processing method and device
CN111405346A (en) * 2020-03-20 2020-07-10 北京字节跳动网络技术有限公司 Video stream playing control method, device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI508538B (en) * 2012-06-01 2015-11-11 Wistron Corp Video streams playback method and system
CN106454447A (en) * 2016-10-11 2017-02-22 青岛海信电器股份有限公司 Video playing and processing method and device, and television

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898514A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Video play method and system
CN105578073A (en) * 2015-12-23 2016-05-11 浙江大华技术股份有限公司 Video monitoring image display method and device
WO2017161765A1 (en) * 2016-03-21 2017-09-28 乐视控股(北京)有限公司 Video playback method and device
WO2017219870A1 (en) * 2016-06-20 2017-12-28 深圳创维数字技术有限公司 Method and device for playing video data
CN111327952A (en) * 2018-12-14 2020-06-23 中国移动通信集团山东有限公司 Video switching processing method and device
CN111405346A (en) * 2020-03-20 2020-07-10 北京字节跳动网络技术有限公司 Video stream playing control method, device and storage medium
WO2021185017A1 (en) * 2020-03-20 2021-09-23 北京字节跳动网络技术有限公司 Video stream playback control method, device, and storage medium

Also Published As

Publication number Publication date
CN113973232A (en) 2022-01-25
CN117560546A (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN107341018B (en) Method and device for continuously displaying view after page switching
CN110543268B (en) Apparatus, method and graphical user interface for navigating media content
JP7042917B2 (en) Message processing method, unread message display method, and computer terminal
US11265614B2 (en) Information sharing method and device, storage medium and electronic device
JP7195426B2 (en) Display page interaction control method and apparatus
RU2533634C2 (en) Information processing device, information processing method and programme
CN111866423B (en) Screen recording method for electronic terminal and corresponding equipment
US9285945B2 (en) Method and apparatus for displaying multi-task interface
JP6995425B2 (en) Virtual scene display methods, devices, and computer programs
WO2021258821A1 (en) Video editing method and device, terminal, and storage medium
US9921710B2 (en) Method and apparatus for converting and displaying execution screens of a plurality of applications executed in device
WO2022052624A1 (en) Video data processing method and apparatus, computer device and storage medium
KR20070097499A (en) Method and apparatus for video editing on small screen with minimal input device
US20140164993A1 (en) Method and electronic device for enlarging and displaying contents
CN109729408B (en) Mobile terminal high-definition online video scaling method
US10976913B2 (en) Enabling undo on scrubber/seekbar UI widgets
EP3707914B1 (en) Enhanced playback bar
WO2019157965A1 (en) Interface display method and apparatus, device, and storage medium
CN108008894B (en) Content display method and device and terminal equipment
CN113973232B (en) Video stream switching method and storage device
CN112954484A (en) Bullet screen information display method and device
CN104202641A (en) Method and system for quickly locating multimedia program resources as well as multimedia device
CN109982135B (en) Channel switching method, device, terminal and computer readable storage medium
CN105430526A (en) Subtitle display method and terminal
CN112653931B (en) Control method and device for resource information playing, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant