Video playing method and device, equipment, storage medium and program product
By dynamically selecting grayscale or color video content to be transmitted in the camera device, based on the data transmission method and object characteristics, the problem of balancing privacy protection and playback effect during the recording process of the camera device is solved, and a balance between privacy protection and video quality is achieved in different scenarios.
Patent Information
- Application Number
- CN202511745923.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-25
- Publication Date
- 2026-02-13
AI Technical Summary
Existing camera devices struggle to balance privacy protection and video playback quality during recording, especially lacking the ability to dynamically adjust video content under different data transmission scenarios, resulting in a high risk of privacy leaks and poor playback quality.
By dynamically selecting the transmitted video content in the camera device, and generating target videos including grayscale or color images based on the data transmission method and object characteristics, privacy-level protection can be achieved.
It effectively protects user privacy under high privacy protection requirements and ensures video playback quality under low privacy protection requirements, thereby improving data transmission security and user experience.
Smart Images

Figure CN121531182A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of camera equipment, and particularly relates to a video playing method and device, equipment, storage medium and program product. BACKGROUND
[0002] With the popularity of intelligent camera equipment, the monitoring demand of families, commercial places and public areas is increasing. However, the privacy protection problem of camera video content is increasingly prominent. The traditional video recording method usually directly stores and transmits complete video data, but these data may contain sensitive personal information, and once leaked or illegally accessed, the user's privacy will be seriously infringed. In addition, different playing scenarios of local area network playing or cloud remote playing have different requirements for the security and efficiency of data transmission. At present, there is often a lack of ability to dynamically adjust the video content played, and it is difficult to balance the demand of privacy protection and guarantee of video playing effect. SUMMARY
[0003] The purpose of the embodiments of the application is to provide a video playing method, device, equipment, storage medium and program product, which can dynamically select the video content for transmission and playing, and balance the demand of privacy protection and guarantee of video playing effect.
[0004] In a first aspect, the embodiments of the application provide a video playing method applied to a first electronic device, and the method comprises: receiving a playing request; in response to the playing request, obtaining an original video frame; determining a target video based on the original video frame according to at least one of a data transmission mode between the first electronic device and a second electronic device and an object feature included in the original video frame; transmitting the target video to the second electronic device for playing; wherein the target video is one of a first video and a second video, the first video includes N first images, the second video includes M second images, the N first images are images selected from the original video frame according to a predetermined frame interval, the M second images are other images in the original video frame except the first images, and the first images include grayscale component information, and the second images include grayscale component information and chrominance component information; N and M are integers greater than 1.
[0005] In a second aspect, the embodiments of the application provide a video playing device applied to a first electronic device, and the device comprises: a receiving module configured to receive a playing request; an obtaining module configured to obtain an original video frame in response to the playing request; The determining module is configured to determine a target video based on the original video frame according to at least one of a data transmission mode between the first electronic device and the second electronic device and an object feature included in the original video frame; The transmitting module is configured to transmit the target video to the second electronic device for playing. The target video is one of a first video and a second video, the first video includes N first images, the second video includes M second images, the N first images are images selected from the original video frame according to a predetermined frame interval, the M second images are other images in the original video frame except the first images, the first images include grayscale component information, and the second images include the grayscale component information and chroma component information; N and M are integers greater than 1.
[0006] In a third aspect, an electronic device is provided, which includes a processor and a memory. The memory stores programs or instructions executable on the processor. When the programs or instructions are executed by the processor, the steps of the method according to the first aspect are implemented.
[0007] In a fourth aspect, a readable storage medium is provided, which stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the method according to the first aspect are implemented.
[0008] In a fifth aspect, a chip is provided, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to execute programs or instructions to implement the method according to the first aspect.
[0009] In a sixth aspect, a computer program product is provided, which is stored in a storage medium. The program product is executed by at least one processor to implement the method according to the first aspect.
[0010] In the embodiments of the present application, a playing request can be received. In response to the playing request, an original video frame is acquired. A target video is determined based on the original video frame according to at least one of a data transmission mode between a first electronic device and a second electronic device and an object feature included in the original video frame. The target video is transmitted to the second electronic device for playing. The target video is one of a first video and a second video. The first video includes N first images, and the second video includes M second images. The N first images are images selected from the original video frame according to a predetermined frame interval. The M second images are other images in the original video frame except the first images. The first images include grayscale component information, and the second images include the grayscale component information and chroma component information. N and M are integers greater than 1.
[0011] In this way, the privacy protection requirement can be determined based on the data transmission mode between the first electronic device and the second electronic device and the object features included in the original video frame, and the black-and-white first video or the colored second video is dynamically selected for playing, so that the privacy hierarchical protection is realized, and thus the user privacy can be effectively protected under high privacy protection requirement, and the video playing effect is ensured through the colored image under low privacy protection requirement. BRIEF DESCRIPTION OF DRAWINGS
[0012] Figure 1 is a flowchart of a video playing method provided by some embodiments of the present application; Figure 2 is an interaction diagram of a camera device and an electronic device in a video playing method provided by some embodiments of the present application; Figure 3 is a flowchart of a scene embodiment of a video playing method provided by some embodiments of the present application; Figure 4 is a flowchart of a scene embodiment of a video playing method provided by some embodiments of the present application; Figure 5 is a flowchart of a scene embodiment of a video playing method provided by some embodiments of the present application; Figure 6 is a flowchart of a scene embodiment of a video playing method provided by some embodiments of the present application; Figure 7 is a structural diagram of a video playing device provided by some embodiments of the present application; Figure 8 is a structural diagram of an electronic device provided by some embodiments of the present application; Figure 9 is a hardware structural diagram of an electronic device provided by some embodiments of the present application. DETAILED DESCRIPTION
[0013] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0014] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in an "or" relationship.
[0015] With the popularity of intelligent camera devices, the monitoring demand of homes, commercial places and public areas is growing. However, with its popularity, the risk of privacy leakage is also rising sharply. Hacker intrusion, data abuse and illegal shooting problems occur frequently, making personal privacy exposed to risk in an invisible way.
[0016] The main ways of privacy leakage include but are not limited to the following: first, if the camera devices in public places are not well managed, the monitoring video may be leaked or stolen by hackers, resulting in the leakage of personal whereabouts, living habits and other sensitive information. Second, if the security protection of home camera, doorbell camera and other devices is insufficient, they may be remotely invaded, and the interior pictures of the home may be maliciously spread. Third, the hidden camera shooting video leakage phenomenon in hotels, fitting rooms and other places is repeated.
[0017] Privacy leakage has great harm, for example, the leakage of address, daily activity track and other information may be used for tracking, harassment or even crime. Once the biological information such as face recognition and voiceprint is leaked, it may be used for identity forgery or financial fraud. The leaked person may be in anxiety and unease for a long time.
[0018] The current methods to prevent video privacy leakage usually include the following: regularly update the camera firmware, set high-strength password, and close unnecessary remote access function. Check whether there are suspicious cameras in public places, and pay attention to check hidden shooting devices when staying in hotels. Use artificial intelligence detection technology to crack down on illegal shooting behavior, etc. However, these methods have great limitations, resulting in poor privacy protection effect.
[0019] The embodiments of the present application want to provide a method to prevent privacy leakage from the root. Based on this, the process of camera device from image acquisition to video generation is first introduced below.
[0020] It can be understood that the process of camera equipment from "still image" to "dynamic video" is essentially a complete link of continuous image frame acquisition, signal processing, data compression and encapsulated storage, involving optical, electronic and algorithm three core modules. The following six key steps will be detailed to explain the technical principles: The first step is light collection and optical control, which is the "source input" of the image. The starting point of video recording is "capturing light", which is completed by the optical system of the camera equipment. The core components include lens, aperture and focusing motor. The function is to accurately converge the light of the real scene to the image sensor.
[0021] Among them, the lens is composed of multiple optical glass or resin lenses, which is equivalent to the "eyes" of the camera equipment, and can converge the divergent light in the scene into a clear optical image and project it onto the surface of the subsequent image sensor. The focal length of the lens determines the field of view, such as short focal length for wide angle and long focal length for long distance.
[0022] The focusing motor adjusts the distance between the lens and the sensor by moving the lens lens, so that the light of a specific object in the scene is accurately focused on the sensor, avoiding blurred images. The mainstream automatic focusing now calculates the contrast or phase difference through algorithm to quickly lock the focus.
[0023] The aperture is a variable aperture in the lens, which is used to adjust the amount of light entering per unit time. The larger the aperture, the more light enters, and the brighter the picture in low light environment. At the same time, it can affect the depth of field, such as large aperture background blur and small aperture panoramic clear. Electronic shutter controls the length of time that the image sensor receives light. The faster the shutter speed, the more it can freeze fast-moving objects, but the amount of light entering will decrease.
[0024] The second step is the conversion of light and digitalization, which is the path of optical signal→electrical signal→digital signal. Optical image is "intangible light", which needs to be converted into "computable digital signal" by image sensor, which is the key turning point from "physical light" to "electronic data".
[0025] Among them, the image sensor is the core chip of light signal conversion to electrical signal. The current mainstream sensor is CMOS, whose surface is covered with pixel units, such as 4800 million pixels, which means that the surface of the image sensor is covered with 4800 million pixel units. Each pixel unit is essentially a photosensitive diode that produces an analog electrical signal corresponding to the intensity and wavelength of light when light shines. The stronger the light, the stronger the electrical signal. It can be understood that intensity can represent brightness, and wavelength can represent color.
[0026] The surface of the image sensor is covered with a Bayer filter, which arranges red, green and blue pixels in the ratio of 2:1:1, so that each pixel only receives light of a single color, preparing for the subsequent generation of color images.
[0027] The electrical signal generated by the pixel unit is an "analog signal", that is, a continuously changing current or voltage signal, which cannot be directly processed by the chip and needs to be converted into a "digital signal" by an analog-to-digital converter (ADC). The converted bit depth, such as 10bit or 12bit, determines the image quality details. The higher the bit depth, the more brightness levels can be recorded, and the smoother the transition of the picture, which can avoid the appearance of faults at the junction of light and dark.
[0028] The third step is image signal preprocessing, which is used to optimize the original image quality. The converted original digital image can be called RAW data, which has problems such as noise and color deviation, and needs to be optimized by an image signal processor (ISP). Common processing methods include black level correction, white balance adjustment, color interpolation, noise reduction processing, and sharpening and contrast adjustment.
[0029] Among them, black level correction can remove the dark current of the image sensor itself, that is, the weak signal generated in the absence of light, to avoid the appearance of colored speckles in the dark part of the picture. White balance adjustment can correct color deviation under different light sources, such as blue under fluorescent light and yellow under incandescent light, so that white objects in the picture are truly white. Color interpolation can remove the mosaic, and the Bayer filter allows each pixel to record only one color. The ISP will calculate the values of the other two colors for each pixel through a bilinear interpolation algorithm, and finally generate a complete RGB color image. Noise reduction processing can remove noise points in low light environments, that is, random fluctuations of pixels, while trying to preserve picture details and avoid excessive noise reduction that can cause picture blur. Sharpening and contrast adjustment can enhance image edge clarity, optimize light and dark contrast, and make the picture more transparent.
[0030] The fourth step is frame sequence generation, which is the key from "single image" to "continuous picture". The essence of video recording is to quickly play continuous static images, and the human eye will perceive continuous image frames as dynamic pictures due to the visual persistence effect. The core is to generate continuous image frames at a fixed frame rate.
[0031] Among them, frame rate control determines the smoothness of the picture. The ISP will continuously output pre-processed image frames at the set frame rate (Frames Per Second, FPS). Frame synchronization can ensure picture stability. The camera device will control the acquisition and processing time of each image through a "synchronization signal" to ensure that the time interval between frames is uniform, avoiding picture lag or frame skipping.
[0032] The fifth step is video encoding compression. Uncompressed raw video data is extremely large and cannot be directly stored or transmitted. For example: a 4K, 10-bit RAW image is about 30MB, recording at 30fps, the data volume per second is 900MB, and 1 minute requires 54GB. Therefore, it must be compressed through video encoding.
[0033] The principle of encoding is to remove redundant data, and its core is to delete invalid or repetitive information. Video encoding can be divided into two categories: one is intra-frame compression, which compresses a single image itself and removes redundant pixels within the image, such as repeated data in large areas of solid color. The second is inter-frame compression, which uses the correlation between frames, such as recording a static scene, where adjacent frames are almost identical, and only the changing parts are recorded.
[0034] The current industry standard for encoding is H.264 (AVC) and H.265 (HEVC), the latter has higher compression efficiency, and under the same quality, H.265 is about 50% smaller than H.264, so it has become the mainstream choice for 4K or 8K recording. In addition, AV1 encoding is also gradually popularizing.
[0035] When encoding, the code rate is set, that is, the amount of video data per unit time, such as 10Mbps, 50Mbps. The higher the code rate, the more details are retained, the better the picture quality, but the file size is larger, and the code rate is too low, which will appear mosaic, causing the picture to be blurred.
[0036] The sixth step is video packaging and storage, generating a playable file. The "video stream" after encoding, which only contains image data, needs to be packaged with "audio stream" into a complete video file to be recognized by the player. The "audio stream" is collected and encoded by the microphone.
[0037] Common packaging formats can include MP4, MOV, and MKV. Among them, MP4 has the strongest compatibility, supporting almost all electronic devices. MOV retains good picture quality and is suitable for post-editing. MKV supports multiple audio tracks and subtitles, and is suitable for storing high-definition or 4K videos, but some devices have poor compatibility.
[0038] When packaging, "timestamps" are recorded to ensure that audio and video are played synchronously and avoid misalignment of pictures and sounds. The packaged video file is written to the storage medium through interfaces such as USB and PCIe. Common storage media include built-in storage of mobile devices, SD cards, hard drives of surveillance cameras, and TF cards of drones, etc.
[0039] In other words, the complete link from image to recording includes: light → lens → image sensor → AD conversion → ISP preprocessing → frame rate control → video encoding → packaging → storage. All of this is completed in real time at the millisecond level under the cooperation of hardware and software of the camera device.
[0040] From the beginning of taking multiple images to generating a playable video file, there is an opportunity to control the output of different kinds of images through some means to achieve the purpose of protecting user privacy.
[0041] The video playing method provided by the embodiments of the present application will be described in detail below in combination with the accompanying drawings, specific embodiments and application scenarios.
[0042] Figure 1 is a flowchart of the video playing method provided by the embodiments of the present application. The video playing method is applied to a first electronic device, and can include the following steps: Step 101, receiving a playing request.
[0043] In this embodiment, as shown in Figure 2 , the first electronic device can be a camera device 201, which can be connected to a local server 202 and a cloud server 203, and interact with an application 204 installed on an electronic device, so as to play the video content shot by the camera device 201 on the application (Application, APP) 204. In other embodiments of the present application, the first electronic device can also be a mobile terminal, a personal computer, a smart wearable device, etc.
[0044] Among them, the local server 202 can include a device end 2021 and an APP end 2022, and the device end 2021 and the APP end 2022 communicate through mqtt protocol, and directly realize data transmission and control between the camera device 201 and the application 204 through the local server (i.e. local area network).
[0045] The cloud server 203 undertakes the functions of camera data processing, storage, AI analysis, etc., including: a WEB service module 2031, an Artificial Intelligence (AI) service module 2032, a cloud storage module 2033 and a Real-Time Communication (RTC) service module 2034. Among them, the WEB service module 2031 provides web services, configuration management, value-added services, etc. functions, which depend on wallet, risk control, DMP, account, AI and other services. The AI service module 2032 includes video understanding, algorithm service, AI dialogue, etc. functions, which can intelligently analyze the video shot by the camera device 201. The cloud storage module 2033 is used to store the video segments shot by the camera device 201. The RTC service module 2034 provides real-time communication services for video stream transmission.
[0046] The user can play the video recorded by the camera device through an APP installed on the second electronic device. The second electronic device can include a mobile phone, a notebook computer, a palm computer, a tablet computer, a smart device, etc., which are not limited here.
[0047] The video can be associated with video information such as video time, video location, video content cover, etc. The second electronic device can receive the relevant input of the user on the APP to the video information, generate a play request of the corresponding video, and send it to the first electronic device, such as the camera device. In this way, the first electronic device can receive the play request. Hereinafter, the first electronic device will be taken as an example of the camera device.
[0048] In step 102, the original video frame corresponding to the video that the user wants to view is obtained in response to the play request.
[0049] In step 102, the camera device can obtain the original video frame corresponding to the video that the user wants to view in response to the play request.
[0050] It can be understood that the original video frame can be stored in a local server or a memory, or in a cloud server. If it is stored in a local server or a memory, the video transmission can be directly performed through a local area network when the camera device transmits the generated video to the second electronic device for playing. If it is stored in a cloud server, the video transmission needs to be performed through other three-party networks of the cloud server in addition to the local area network when the camera device transmits the generated video to the second electronic device for playing.
[0051] Based on this, the camera device can determine the data transmission mode corresponding to the video playing when obtaining the original video frame.
[0052] In step 103, the target video is determined based on the original video frame according to at least one of the data transmission mode between the first electronic device and the second electronic device and the object features included in the original video frame.
[0053] In step 103, the target video is one of the first video and the second video, the first video includes N first images, the second video includes M second images, the N first images are images selected from the original video frame according to a predetermined frame interval, the M second images are other images in the original video frame except the first images, and the first images include grayscale component information, and the second images include grayscale component information and chrominance component information; N and M are integers greater than 1.
[0054] For example, whether the risk of privacy leakage is high or not can be determined according to at least one of a data transmission mode between the first electronic device and the second electronic device and an object feature included in the original video frame, and then the target video is determined from the first video and the second video. If the risk of privacy leakage is high, the first video with low privacy risk and in black and white color can be used as the target video, and if the risk of privacy leakage is low, the second video with clear picture quality and distinct color can be used as the target video, so as to transmit the target video to the second electronic device for playing.
[0055] The object feature included in the original video frame can be a face feature, an outline feature, a body feature, or the like included in the original video frame. Through the above features, it can be determined whether a preset object is included in the original video frame. The preset object can be a specific person, such as family members or friends. It can be understood that the user can previously input the object feature of the preset object into the first electronic device, so that the first electronic device can identify and determine whether the specific preset object appears in the original video frame.
[0056] In some embodiments, the first electronic device includes an image signal processor, and before receiving the playing request, the method can further include: During the video recording process of the first electronic device, the image signal processor is used for image processing to obtain original video frames, and the original video frames include N frames of first images and M frames of second images; The original video frames are encrypted; The encrypted original video frames are stored.
[0057] In this embodiment, during the video recording process of the camera device, multiple frames of images output by the image sensor can be obtained. When the images are processed by the ISP, the images selected according to a predetermined frame interval can be used as the N frames of first images, and the first images only include gray component information. The other images except the first images can be the M frames of second images, and the second images include gray component information and chrominance component information. The N frames of first images and the M frames of second images constitute the original image frames of the video.
[0058] It can be understood that the predetermined frame interval can be 1-3 frames, which can be set according to actual needs, and is not limited specifically here. For example, 1 frame will be taken as an example for description below.
[0059] For example, the ISP can control different types of images to be output by odd and even frames. The images output by the odd frames include UVY information, and the M frames of second images are obtained. The images output by the even frames include Y-axis information only in black and white, and the N frames of first images are obtained.
[0060] The original video frames can be encrypted, and the encrypted original video frames can be stored in a folder on the local server or a folder on the cloud server.
[0061] In this way, the image is processed in layers during the recording stage of the first electronic device to obtain a set of images including grayscale component information and a set of images including both grayscale and chroma component information. These images are then encrypted and stored to ensure data security from the source. This allows for the generation of black-and-white or color videos as needed, thus simultaneously meeting the requirements of protecting user privacy and ensuring video playback quality.
[0062] Based on actual privacy protection needs, the system can process consecutive image frames from odd-numbered frames to form a second video with distinct colors, or process consecutive image frames from even-numbered frames to form a first video in black and white.
[0063] Step 104: Transmit the target video to the second electronic device for playback.
[0064] In step 104, as mentioned above, after determining whether the target video is the first video or the second video, the first video or the second video can be transmitted to the second electronic device for playback.
[0065] In this embodiment, the video playback method can receive a playback request; in response to the playback request, acquire an original video frame; determine a target video based on the original video frame according to at least one of the data transmission method between the first electronic device and the second electronic device and the object features included in the original video frame; and transmit the target video to the second electronic device for playback; wherein, the target video is one of a first video and a second video, the first video includes N frames of first images, the second video includes M frames of second images, the N frames of first images are images selected from the original video frame according to a predetermined frame interval, the M frames of second images are other images in the original video frame besides the first images, and the first image includes grayscale component information, the second image includes grayscale component information and chroma component information; N and M are integers greater than 1.
[0066] In this way, privacy protection requirements can be determined based on the data transmission method between the first and second electronic devices and the object characteristics included in the original video frames. The system can then dynamically select to transmit either a black-and-white first video or a color second video to the second electronic device for playback, thus achieving graded privacy protection. This effectively protects user privacy under high privacy protection requirements while ensuring video playback quality under low privacy protection requirements.
[0067] In some embodiments, determining the target video based on the original video frame according to the data transmission method between the first electronic device and the second electronic device may include: In a case where the data transmission manner is to directly transmit data through a local area network, M frames of second images are determined from the original video frames; A second video is generated based on the M frames of second images, and the target video is the second video; In a case where the data transmission manner is to transmit data through a cloud server, N frames of first images are determined from the original video frames; A first video is generated based on the N frames of first images, and the target video is the first video.
[0068] In this embodiment, in a case where the data transmission manner is to directly transmit data through a local area network, at this time, since the video file is stored locally on the camera device and is only transmitted within the local network without passing through the public Internet, it is difficult for external attackers to directly access, and thus the risk of privacy leakage is relatively small. Considering that the user experience is better when playing a video with clear colors, at this time, the second video can be determined as the target video.
[0069] Based on this, M frames of second images can be determined from the original video frames, and a second video is generated based on the M frames of second images. For example, the M frames of second images can be encoded, and the encoded data can be encapsulated to generate the second video. The encoding and encapsulation have been described in detail above, and thus will not be described here.
[0070] In a case where the data transmission manner is to transmit data through a cloud server, at this time, since the video file is stored on a third-party server, the service provider may cause data leakage due to compliance requirements, hacker attacks, or internal mistakes, and the data needs to be uploaded to a remote server and transmitted through a public network, which may be hijacked or the server may be hacked, resulting in a relatively large risk of privacy leakage. Therefore, at this time, the first video can be determined as the target video.
[0071] Based on this, N frames of first images can be determined from the original video frames, and a first video is generated based on the N frames of first images. Similarly, the N frames of first images can be encoded, and the encoded data can be encapsulated to generate the first video.
[0072] In some examples, whether the current is in a privacy mode or a non-privacy mode can also be considered, where the privacy mode and the non-privacy mode can be set by a user, for example, the privacy mode can be set by default, and the user can switch to the non-privacy mode by himself / herself. In the privacy mode, even if the data transmission manner is to directly transmit data through a local area network, the first video can be determined as the target video.
[0073] In this way, the video type can be automatically selected according to whether the data transmission mode between the first electronic device and the second electronic device is direct transmission through the local area network or transmission through the cloud server, so as to optimize the balance between privacy and playing effect. The first video with low privacy risk is played through the cloud transmission, and the second video with complete image quality is provided in the high-bandwidth environment in the local area network, so as to improve the playing scene adaptability.
[0074] In some embodiments, the target video can be determined based on the original video frame according to the object feature included in the original video frame, which can include: In a case where the object feature included in the original video frame indicates that the preset object is included in the original image frame, N first images are determined from the original video frame; The first video is generated based on the N first images, and the target video is the first video; In a case where the object feature indicates that the preset object is not included in the original video frame, M second images are determined from the original video frame; The second video is generated based on the M second images, and the target video is the second video.
[0075] In this embodiment, the preset object can refer to that a user pre-sets a feature label for some specific person, and the person corresponding to the feature label is the preset object, such as family members, friends, etc. When the object feature included in the original video frame includes the above feature label, it can be considered that the preset object is included in the original image frame. At this time, in order to protect the privacy of family members or friends, the first video can be determined as the target video.
[0076] Based on this, N first images can be determined from the original video frame, and the first video can be generated based on the N first images. For example, the N first images can be encoded, and the encoded data can be encapsulated to generate the first video.
[0077] If the object feature indicates that the preset object is not included in the original video frame, it can be considered that the original video frame does not include family members or friends, in other words, the recording content does not record family members or friends, that is, the playing of the recording video does not disclose the privacy of family members or friends at this time. Based on this, M second images can be determined from the original video frame, and the second video can be generated based on the M second images. For example, the M second images can be encoded, and the encoded data can be encapsulated to generate the second video.
[0078] Wherein, the encoding and encapsulation have been described in detail above, and will not be repeated here.
[0079] In this way, when the preset object is included in the original image frame, the first video with low privacy risk is preferentially transmitted and played, so as to avoid exposure of the details of the person, and the first video is more suitable for a privacy-sensitive scene, and effectively protects the privacy of the user. When the preset object is not included in the original image frame, the second video with complete image quality and rich colors can be preferentially transmitted and played, so as to ensure the video playing effect under the low privacy protection requirement.
[0080] In some embodiments, the target video is determined based on the original video frame according to the data transmission mode between the first electronic device and the second electronic device and the object feature included in the original video frame, which can include: In a case where the object feature indicates that the preset object is included in the original video frame, or the data transmission mode is to transmit data through a cloud server, N first images are determined from the original video frame; The first video is generated based on the N first images, and the target video is the first video; In a case where the object feature indicates that the preset object is not included in the original video frame, and the data transmission mode is to directly transmit data through a local area network, M second images are determined from the original video frame; The second video is generated based on the M second images, and the target video is the second video.
[0081] In this embodiment, in a case where the data transmission mode is to directly transmit data through a local area network, at this time, since the video file is stored locally on the camera device, and is only transmitted within the local network without passing through the public Internet, it is difficult for an external attacker to directly access, so the risk of privacy leakage is relatively small at this time. Considering that the user experience is better when playing a video with clear colors, the second video can be determined as the target video at this time.
[0082] Based on this, in a case where the data transmission mode is to transmit data through a cloud server, at this time, since the video file is stored on a third-party server, the service provider may cause data leakage due to compliance requirements, hacker attacks or internal mistakes, and the data needs to be uploaded to a remote server and transmitted through a public network, which may be hijacked or the server may be hacked, so the risk of privacy leakage is relatively large at this time. Therefore, the first video can be determined as the target video at this time.
[0083] In addition, when it is identified that the object feature included in the original video frame includes a feature label corresponding to the preset object, it can be considered that the original image frame includes the preset object, and at this time, in order to protect the privacy of family members or friends, the first video can also be determined as the target video.
[0084] For example, at this time, N first images can be determined from the original video frame, the N first images are encoded, the encoded data is encapsulated, and the first video is generated.
[0085] In the case of direct data transmission through the local area network, it is difficult for external attackers to access directly because the data transmission does not pass through the public Internet, and it can be considered that the risk of privacy leakage is smaller at this time. At this time, it can be further determined whether the preset object is included in the original video frame.
[0086] If the object feature indicates that the preset object is not included in the original video frame, and the data transmission mode is direct data transmission through the local area network, it can be determined that the video playback has little risk of privacy leakage. At this time, considering that the user experience is better when playing videos with clear colors, the second video can be determined as the target video.
[0087] Based on this, M frames of second images can be determined from the original video frames, the M frames of second images are encoded and processed, and the encoded data is encapsulated to generate a second video.
[0088] In this way, the privacy leakage risk of the current video playback can be determined by combining the data transmission mode between the first electronic device and the second electronic device and the object feature included in the original video frame, and the black-and-white first video or the colored second video can be dynamically selected for playback. In the case of high privacy protection demand, the user privacy can be more effectively protected, and in the case of low privacy protection demand, the video playback effect is ensured.
[0089] In some embodiments, the playback request includes playback mode information; in response to the playback request, the original video frame can be obtained, which can include: In the case where the playback mode information indicates a real-time playback mode, in response to the playback request, the original video frame is obtained from the image signal processor; In the case where the playback mode information indicates a non-real-time playback mode, in response to the playback request, the stored encrypted original video frame is obtained; The encrypted original video frame is decrypted to obtain the original video frame.
[0090] In this embodiment, the playback request can include playback mode information. The playback mode information can include a real-time playback mode, i.e., a preview mode, and a non-real-time playback mode, i.e., a playback mode.
[0091] All output original video frames are read from the ISP of the camera device, one of which can be used for encrypted storage, and one of which can be directly used for subsequent processing.
[0092] In the case where the playback mode information indicates a real-time playback mode, i.e., when the video preview needs to be viewed, the original video frame can be directly read from the ISP for subsequent processing.
[0093] When the playback mode information indicates non-real-time playback mode, i.e. when you need to view the video playback, you can read the encrypted original video frames stored in the folder, decrypt the encrypted original video frames to obtain the original video frames for subsequent processing.
[0094] In this way, different data acquisition methods can be selected according to real-time or non-real-time playback modes. In real-time playback mode, decryption overhead is avoided and response speed is improved, while in non-real-time playback mode, decryption is used to ensure data security.
[0095] To facilitate understanding of the video playback method provided in the above embodiments, the following describes the video playback method using a specific scenario embodiment. Figures 3 to 6 The following are schematic flowcharts illustrating some scenario embodiments of the video playback method provided in this application.
[0096] These scenario examples can be illustrated by taking odd-numbered frame images as M frames (second images) and even-numbered frame images as N frames (first images).
[0097] like Figure 3 As shown, during video preview, the specific steps of the scene implementation example include: Step 301: Read the raw video frames from the ISP; Step 302: Encrypt the original video frames and store them in a folder; Step 303: Determine if it is a cloud preview. If yes, proceed to step 304; otherwise, proceed to step 305. Step 304: Select even-numbered frame images from the original video frames as target images; Step 305: Select odd-numbered frame images from the original video frames as target images; Step 306: Apply for an encoder to encode the target image and obtain encoded data; Step 307: Encapsulate the encoded data to obtain the target video; Step 308: Transmit the target video for recording preview.
[0098] like Figure 4 As shown, during video playback, the specific implementation of the scenario includes the following steps: Step 401: Read the encrypted original video frames from the folder; Step 402: Determine if it is a cloud playback. If yes, proceed to step 403; otherwise, proceed to step 404. Step 403: Select even-numbered frame images from the original video frames as target images; Step 404: Select odd-numbered frame images from the original video frames as target images; Step 405: Apply for an encoder to encode the target image and obtain encoded data; Step 406: Encapsulate the encoded data to obtain the target video; Step 407: Transmit the target video for recording and playback.
[0099] like Figure 5 As shown, during video preview, the specific steps of the scene implementation example include: Step 501: Read the raw video frames from the ISP; Step 502: Encrypt the original video frames and store them in a folder; Step 503: Determine whether a preset object is included. If yes, proceed to step 504; otherwise, proceed to step 505. Step 504: Select even-numbered frame images from the original video frames as target images; Step 505: Select odd-numbered frame images from the original video frames as target images; Step 506: Apply for an encoder to encode the target image and obtain encoded data; Step 507: Encapsulate the encoded data to obtain the target video; Step 508: Transmit the target video for recording preview.
[0100] like Figure 6 As shown, during video playback, the specific implementation of the scenario includes the following steps: Step 601: Read the encrypted original video frames from the folder; Step 602: Determine whether a preset object is included. If yes, proceed to step 603; otherwise, proceed to step 604. Step 603: Select even-numbered frame images from the original video frames as target images; Step 604: Select odd-numbered frame images from the original video frames as target images; Step 605: Apply for an encoder to encode the target image and obtain encoded data; Step 606: Encapsulate the encoded data to obtain the target video; Step 607: Transmit the target video for recording and playback.
[0101] The video playback method provided in this application can be executed by a video playback device. This application uses a video playback device executing the video playback method as an example to illustrate the video playback device provided in this application.
[0102] like Figure 7As shown, the video playing device 700 provided by the embodiments of the present application is applied to a first electronic device and can include: The receiving module 701 is configured to receive a playing request. The obtaining module 702 is configured to obtain original video frames in response to the playing request. The determining module 703 is configured to determine target video based on the original video frames according to at least one of a data transmission mode between the first electronic device and a second electronic device and object features included in the original video frames. The transmission module 704 is configured to transmit the target video to the second electronic device for playing. The target video is one of a first video and a second video, the first video includes N frames of first images, the second video includes M frames of second images, the N frames of first images are images selected from the original video frames according to a predetermined frame interval, the M frames of second images are other images in the original video frames except the first images, the first images include grayscale component information, and the second images include grayscale component information and chrominance component information; N and M are integers greater than 1.
[0103] In this way, the privacy protection requirement can be determined based on the data transmission mode between the first electronic device and the second electronic device and the object features included in the original video frames, and the black-and-white first video or the colorful second video is dynamically selected for playing, so that the privacy hierarchical protection is realized, the user privacy can be effectively protected under high privacy protection requirement, and the video playing effect is ensured under low privacy protection requirement.
[0104] In some embodiments, the determining module 703 can be specifically configured to: In a case where the data transmission mode is to directly transmit data through a local area network, the M frames of second images are determined from the original video frames; The second video is generated based on the M frames of second images, and the target video is the second video. In a case where the data transmission mode is to transmit data through a cloud server, the N frames of first images are determined from the original video frames; The first video is generated based on the N frames of first images, and the target video is the first video.
[0105] In this way, the video type can be automatically selected according to whether the data transmission mode between the first electronic device and the second electronic device is direct transmission through a local area network or transmission through a cloud server, and the balance between privacy and playing effect is optimized. The first video with low privacy risk is used for cloud transmission and playing, and the second video with complete image quality is provided in a high-bandwidth environment in a local area network, thereby improving the playing scene adaptability.
[0106] In some embodiments, the determining module 703 can be specifically configured to: In a case where the object feature indicates that the preset object is included in the original image frame, N frames of first images are determined from the original video frame; A first video is generated based on the N frames of first images, and the target video is the first video; In a case where the object feature indicates that the preset object is not included in the original video frame, M frames of second images are determined from the original video frame; A second video is generated based on the M frames of second images, and the target video is the second video.
[0107] In this way, when the preset object is included in the original image frame, the first video with low privacy risk is preferentially transmitted and played, so as to avoid exposure of the details of the person, and the first video is more suitable for a scene with high privacy sensitivity, and the user privacy is effectively protected. When the preset object is not included in the original image frame, the second video with complete image quality and rich colors can be preferentially transmitted and played, so as to ensure the video playing effect in the case of low privacy protection demand.
[0108] In some embodiments, the determining module 703, in particular, can be configured to: In a case where the object feature indicates that the preset object is included in the original video frame, or the data transmission manner is to transmit data through a cloud server, N frames of first images are determined from the original video frame; A first video is generated based on the N frames of first images, and the target video is the first video; In a case where the object feature indicates that the preset object is not included in the original video frame, and the data transmission manner is to directly transmit data through a local area network, M frames of second images are determined from the original video frame; A second video is generated based on the M frames of second images, and the target video is the second video.
[0109] In this way, the privacy leakage risk of the current video playing can be determined in combination with the data transmission manner between the first electronic device and the second electronic device and the object feature included in the original video frame, and the first video in black and white or the second video in color is dynamically selected for playing, so that the user privacy can be more effectively protected in the case of high privacy protection demand, and the video playing effect is ensured in the case of low privacy protection demand.
[0110] In some embodiments, the first electronic device includes an image signal processor, and the video playing apparatus 700 can further include a processing module configured to: In a case where the first electronic device is recording a video, the image signal processor is configured to perform image processing to obtain an original video frame, and the original video frame includes N frames of first images and M frames of second images; The original video frame is encrypted; The encrypted original video frame is stored.
[0111] In this way, in the first electronic device recording stage, that is, the image is processed in layers to obtain a set of images including grayscale component information and a set of images including grayscale component information and chrominance component information, and the images are stored in an encrypted manner, so that data security is guaranteed from the source, and black and white video or color video can be generated according to requirements, so as to meet the requirements of protecting user privacy and ensuring video playing effect.
[0112] In some embodiments, the playing request includes playing mode information; the obtaining module 702 can be specifically used for: In a case where the playing mode information indicates a real-time playing mode, in response to the playing request, the original video frame is obtained from the image signal processor; In a case where the playing mode information indicates a non-real-time playing mode, in response to the playing request, the stored encrypted original video frame is obtained; The encrypted original video frame is decrypted to obtain the original video frame.
[0113] In this way, different data obtaining manners can be selected according to the real-time or non-real-time playing mode, the decryption overhead is avoided in the real-time playing mode, the response speed is improved, and the data security is ensured by decryption in the non-real-time playing mode.
[0114] The video playing apparatus in the embodiments of the present application can be an electronic device or a component in an electronic device, for example, an integrated circuit or a chip. The electronic device can be a terminal or other devices other than the terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), and the like, and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like, and the embodiments of the present application are not limited in this regard.
[0115] The video playing apparatus in the embodiments of the present application can be an apparatus having an operating system. The operating system can be an Android operating system, an IOS operating system, or other possible operating systems, and the embodiments of the present application are not limited in this regard.
[0116] The video playing device provided by the embodiments of the present application can realize each process realized by the method embodiments, and thus details are not repeated here.
[0117] Optionally, as shown in Figure 8 The embodiments of the present application also provide an electronic device 800, which includes a processor 801 and a memory 802. The memory 802 stores programs or instructions that can run on the processor 801. When the programs or instructions are executed by the processor 801, each step of the above-mentioned video playing method embodiments is realized, and the same technical effects are achieved. Details are not repeated here to avoid repetition.
[0118] It should be noted that the electronic device in the embodiments of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
[0119] Figure 9 is a hardware structure schematic diagram of the electronic device provided by the embodiments of the present application.
[0120] The electronic device 900 includes but is not limited to the following components: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910, etc.
[0121] Those skilled in the art can understand that the electronic device 900 can also include a power supply (such as a battery) that supplies power to each component. The power supply can be logically connected to the processor 910 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 9 The electronic device structure shown in the above-mentioned embodiments does not constitute a limitation on the electronic device. The electronic device can include more or fewer components than those shown, or combine certain components, or have different component arrangements, and details are not repeated here.
[0122] The processor 910 can be configured to: receive a playing request; in response to the playing request, acquire an original video frame; determine a target video based on the original video frame according to at least one of a data transmission mode between the first electronic device and the second electronic device and an object feature included in the original video frame; transmit the target video to the second electronic device for playing; and The target video is one of a first video and a second video, the first video includes N first images, the second video includes M second images, the N first images are images selected from original video frames according to a predetermined frame interval, the M second images are other images in the original video frames except the first images, and the first images include grayscale component information, and the second images include grayscale component information and chrominance component information; N and M are integers greater than 1.
[0123] In this way, the privacy protection requirement can be determined based on the data transmission mode between the first electronic device and the second electronic device and the object feature included in the original video frames, and the first video in black and white or the second video in color is dynamically selected for playing, so that the privacy hierarchical protection is realized, and thus the user privacy can be effectively protected under high privacy protection requirement, and the video playing effect is ensured under low privacy protection requirement.
[0124] In some embodiments, the processor 910 can be further configured to: In a case where the data transmission mode is to transmit data directly through the local area network, determine the M second images from the original video frames; generate the second video based on the M second images, and the target video is the second video; In a case where the data transmission mode is to transmit data through the cloud server, determine the N first images from the original video frames; generate the first video based on the N first images, and the target video is the first video.
[0125] In this way, the video type can be automatically selected according to whether the data transmission mode between the first electronic device and the second electronic device is direct transmission through the local area network or transmission through the cloud server, and the balance between privacy and playing effect is optimized. The first video with low privacy risk is used for cloud transmission and playing, and the second video with complete image quality is provided in a high-bandwidth environment in the local area network, so that the playing scene adaptability is improved.
[0126] In some embodiments, the processor 910 can be further configured to: In a case where the object feature included in the original video frames indicates that the original image frames include a preset object, determine the N first images from the original video frames; generate the first video based on the N first images, and the target video is the first video; In a case where the object feature indicates that the original video frames do not include the preset object, determine the M second images from the original video frames; generate the second video based on the M second images, and the target video is the second video.
[0127] In this way, when the preset object is included in the original image frame, the first video with low privacy risk is preferentially transmitted and played, so as to avoid exposure of the details of the person, and the first video is more suitable for a privacy-sensitive scene, and effectively protects the privacy of the user. When the preset object is not included in the original image frame, the second video with complete image quality and rich colors can be preferentially transmitted and played, so as to ensure the video playing effect under a low privacy protection requirement.
[0128] In some embodiments, the processor 910 can also be configured to: In a case where the object feature indicates that the preset object is included in the original video frame, or the data transmission manner is to transmit data through a cloud server, N first images are determined from the original video frame; The first video is generated based on the N first images, and the target video is the first video; In a case where the object feature indicates that the preset object is not included in the original video frame, and the data transmission manner is to directly transmit data through a local area network, M second images are determined from the original video frame; The second video is generated based on the M second images, and the target video is the second video.
[0129] In this way, the privacy leakage risk of the current video playing can be determined by combining the data transmission manner between the first electronic device and the second electronic device and the object feature included in the original video frame, and the first video in black and white or the second video in color can be dynamically selected for playing, so that the privacy of the user can be more effectively protected under a high privacy protection requirement, and the video playing effect is ensured under a low privacy protection requirement.
[0130] In some embodiments, the first electronic device includes an image signal processor, and the processor 910 can also be configured to: During the video recording process of the first electronic device, the image signal processor is used for image processing to obtain the original video frame, and the original video frame includes N first images and M second images; The original video frame is encrypted; The encrypted original video frame is stored.
[0131] In this way, the image is processed in layers during the video recording stage of the first electronic device, a group of images including gray component information and a group of images including gray component information and chroma component information are obtained, and the images are encrypted and stored, so that data security is guaranteed from the source, and a black and white video or a color video can be generated according to requirements in the future, so as to meet the requirements of protecting the privacy of the user and ensuring the video playing effect.
[0132] In some embodiments, the playing request further includes playing mode information, and the processor 910 can also be configured to: In a case where the play mode information indicates a real-time play mode, in response to the play request, the original video frame is acquired from the image signal processor; In a case where the play mode information indicates a non-real-time play mode, in response to the play request, the stored encrypted original video frame is acquired; The encrypted original video frame is decrypted to obtain the original video frame.
[0133] In this way, different data acquisition manners can be selected according to the real-time or non-real-time play mode, the decryption overhead is avoided in the real-time play mode, the response speed is improved, and the data security is ensured by decryption in the non-real-time play mode.
[0134] It should be understood that in the embodiments of the present application, the input unit 904 can include a graphics processor (GPU) 9041 and a microphone 9042. The graphics processor 9041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 can include a display panel 9061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 can include a touch detection device and a touch controller. The other input devices 9072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, an operation lever, and the like, which will not be described here.
[0135] The memory 909 can be used to store software programs and various data. The memory 909 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 909 can include a volatile memory or a non-volatile memory, or the memory 909 can include both a volatile memory and a non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 909 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0136] The processor 910 can include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 910.
[0137] The embodiments of the present application also provide a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned video playing method embodiments, and the same technical effects can be achieved. To avoid repetition, details are not described here.
[0138] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0139] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize the processes of the above video playing method embodiment and achieve the same technical effects. To avoid repetition, details are not described herein.
[0140] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system or a system on chip, etc.
[0141] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and is executed by at least one processor to realize the processes of the above video playing method embodiment and achieve the same technical effects. To avoid repetition, details are not described herein.
[0142] It should be noted that, in this document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in a reverse order, for example, the described method can be performed in an order different from the described order, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.
[0143] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
[0144] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.
Claims
1. A video playback method, applied to a first electronic device, characterized in that, The method comprises: receiving a playing request; in response to the playing request, obtaining an original video frame; determining a target video based on the original video frame according to at least one of a data transmission mode between the first electronic device and a second electronic device and an object feature included in the original video frame; transmitting the target video to the second electronic device for playing; wherein the target video is one of a first video and a second video, the first video comprises N first images, the second video comprises M second images, the N first images are images selected from the original video frame at a predetermined frame interval, the M second images are images other than the first images in the original video frame, the first images comprise grayscale component information, and the second images comprise grayscale component information and chrominance component information; N and M are integers greater than 1.
2. The method of claim 1, wherein, According to the data transmission mode between the first electronic device and the second electronic device, the target video is determined based on the original video frame, comprising: in the case that the data transmission mode is direct data transmission through a local area network, determining the M second images from the original video frame; generating the second video based on the M second images, and the target video is the second video; in the case that the data transmission mode is data transmission through a cloud server, determining the N first images from the original video frame; generating the first video based on the N first images, and the target video is the first video.
3. The method of claim 1, wherein, According to the object feature included in the original video frame, the target video is determined based on the original video frame, comprising: in the case that the object feature indicates that the original video frame includes a preset object, determining the N first images from the original video frame; generating the first video based on the N first images, and the target video is the first video; in the case that the object feature indicates that the original video frame does not include a preset object, determining the M second images from the original video frame; generating the second video based on the M second images, and the target video is the second video.
4. The method of claim 1, wherein, According to the data transmission mode between the first electronic device and the second electronic device and the object feature included in the original video frame, the target video is determined based on the original video frame, comprising: in the case that the object feature indicates that the original video frame includes a preset object or the data transmission mode is data transmission through a cloud server, determining the N first images from the original video frame; generating the first video based on the N first images, and the target video is the first video; in the case that the object feature indicates that the original video frame does not include a preset object and the data transmission mode is direct data transmission through a local area network, determining the M second images from the original video frame; generating the second video based on the M second images, and the target video is the second video.
5. The method of claim 1, wherein, The first electronic device comprises an image signal processor, and before the receiving of the playing request, the method further comprises: In the first electronic device recording process, image processing is performed by the image signal processor to obtain original video frames, the original video frames including the N frames of first images and the M frames of second images; The original video frames are encrypted; The encrypted original video frames are stored.
6. The method of claim 5, wherein, The play request includes play mode information; and the original video frames are obtained in response to the play request, including: In a case where the play mode information indicates a real-time play mode, the original video frames are obtained from the image signal processor in response to the play request; In a case where the play mode information indicates a non-real-time play mode, the stored encrypted original video frames are obtained in response to the play request; The encrypted original video frames are decrypted to obtain the original video frames. 7.A video playing device applied to a first electronic device, characterized in that, The apparatus includes: a receiving module configured to receive a play request; an obtaining module configured to obtain original video frames in response to the play request; a determining module configured to determine target video based on the original video frames according to at least one of a data transmission mode between the first electronic device and a second electronic device and an object feature included in the original video frames; a transmission module configured to transmit the target video to the second electronic device for play; wherein the target video is one of a first video and a second video, the first video including N frames of first images, the second video including M frames of second images, the N frames of first images being images selected from the original video frames at a predetermined frame interval, the M frames of second images being other images in the original video frames except the first images, and the first images including grayscale component information and the second images including grayscale component information and chrominance component information; N and M are integers greater than 1.
8. An electronic device, comprising: A processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions being executed by the processor to implement the steps of the method of any one of claims 1-6.
9. A readable storage medium, characterized by, The readable storage medium stores programs or instructions, the programs or instructions being executed by the processor to implement the steps of the method of any one of claims 1-6.
10. A computer program product, characterised in that, The program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the method of any one of claims 1-6.