Video recording method and electronic equipment
By introducing pre-recording functions and multiple operation methods into video recording technology, the problem of low recording efficiency in users in fast recording scenarios is solved, and richer recording options and higher user experience is achieved.
Patent Information
- Application Number
- CN202510281588.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-07
- Publication Date
- 2025-07-18
AI Technical Summary
In scenarios where timeliness is required, users need to prepare for situations such as posture adjustment and focal length adjustment, resulting in low recording efficiency and inability to meet the needs of fast recording.
It provides pre-recording function, and allows users to save pre-recording content before recording through different operation methods and controls, including two methods: traditional recording and pre-recording, to meet the needs of different recording scenarios.
It improves the user's recording experience, can avoid missing exciting content in scenes that require timeliness, and provides more video materials, which facilitates user cropping and processing and meets the needs of multiple recording scenarios.
Smart Images

Figure CN120343142A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of electronic devices, and in particular, to a video recording method and an electronic device. Background Art
[0002] As a more intuitive and vivid information carrier, videos are more and more widely used in people's daily lives.
[0003] Generally, in an application with a video recording function in an electronic device, video recording can be achieved by clicking on a recording control. However, for recording, users generally need to perform some preparatory work, such as adjusting the posture of the electronic device, adjusting the focal length, aligning the focus, etc. These preparatory works often take some time, resulting in some limitations for some recording scenarios that require timeliness. Summary of the Invention
[0004] The embodiments of the present application provide a video recording method and an electronic device, which are used to provide a pre-recording function, and can save some pre-recorded content for users in a recording scenario, so as to meet the usage requirements of users in more recording scenarios.
[0005] In a first aspect, the embodiments of the present application provide a video recording method, which can be applied to an electronic device. In this method, a first interface is displayed, and the first interface is a preview interface for video recording; if a first operation acting on the first interface is received, in response to the first operation, a second interface is displayed; the first operation is used to indicate starting recording in a first manner; in response to a second operation in the second interface, a first video is obtained; the first video includes the video with the duration between the first operation and the second operation; and, if a third operation acting on the first interface is received, in response to the third operation, a third interface is displayed; the third operation is used to indicate starting recording in a second manner; in response to a fourth operation in the third interface, a second video is obtained; where the second video includes the video with the duration between the third operation and the fourth operation, and also includes a pre-recorded video with a preset duration before the third operation.
[0006] In the method provided by the embodiments of the present application, in a video recording scenario, the electronic device can meet the user's needs for different recording scenarios by providing multiple different methods, so as to facilitate the user to select a suitable method and obtain the desired generated video. Among them, different recording scenarios include, for example, generating a video including a pre-recorded video, so that a video with a longer duration than the recording duration can be obtained, more content can be recorded, which is applicable to some scenarios that require timeliness to avoid missing wonderful content, and it is also convenient to provide the user with a video material with longer content, which is convenient for the user to perform cropping processing to obtain a better video. Another example is to generate a traditional video that does not include a pre-recorded video, so that a video with the same duration as the recording duration can be obtained without further cropping or other processing.
[0007] In a possible implementation manner, the first interface includes a first control; the first operation is a click operation on the first control; the third operation is a long-press operation on the first control; or, the first operation is a first sliding operation on the first control; the third operation is a second sliding operation on the first control, and the sliding directions of the first sliding operation and the second sliding operation are different.
[0008] In this implementation manner, the electronic device can enable the user to perform different recording processes through different operations by providing different user operations to the user, so as to meet the user's usage requirements for more recording scenarios and improve the user experience.
[0009] In a possible implementation manner, the first interface includes a first control and a second control; the first operation is a click operation on the first control; the third operation is a click operation on the second control.
[0010] In this implementation manner, the electronic device can enable the user to perform different recording processes by clicking different controls by providing different controls to the user, so as to meet the user's usage requirements for more recording scenarios and improve the user experience.
[0011] In a possible implementation manner, the third interface includes a third control, and the third control is used to indicate at least one of the following: the recorded video includes a pre-recorded video, and the first pre-recording duration of the pre-recorded video.
[0012] In this implementation manner, in the ongoing recording interface including a pre-recorded video, the user is prompted by the control that the finally generated video of the ongoing recording includes the pre-recorded video and / or the pre-recording duration, which is convenient for the user to perceive that the video that can be obtained in this recording scenario includes the pre-recorded video.
[0013] In a possible implementation, a fourth control is included in the first interface, and the fourth control is used to indicate that the pre-recording function is enabled.
[0014] In this implementation, in the real-time preview interface of the recording, the user is prompted by the control that the pre-recording function is enabled, so that when the user hopes that the generated video includes a pre-recorded video, the recording including the pre-recorded video can be performed through a preset operation method or a preset control.
[0015] In a possible implementation, prompt text is included in the first interface, and the prompt text is used to indicate the operation method of the second method.
[0016] In this implementation, in the real-time preview interface of the recording, the user is prompted by the prompt text about what preset operation method can be used to perform the recording including the pre-recorded video when the user hopes that the generated video includes a pre-recorded video, so that the user can better use the recording function and the pre-recording function.
[0017] In a possible implementation, the preset duration of the pre-recorded video included in the second video is the first pre-recording duration. After obtaining the second video, the method further includes: displaying a fourth interface, where the fourth interface is the preview interface of the video recording; in response to a fifth operation on the fourth interface, displaying a fifth interface, where the fifth operation is used to adjust the first pre-recording duration, and the fifth interface includes options for various pre-recording durations; in response to a selection operation on the option in the fifth interface for indicating the second pre-recording duration, determining that the preset duration of the pre-recorded video is adjusted to the second pre-recording duration.
[0018] In this implementation, by providing an entry for switching the pre-recording duration, it is convenient for the user to set an appropriate pre-recording duration, so as to meet the needs of different users for different pre-recording durations.
[0019] In a possible implementation, the fifth operation is a click operation on the fourth control included in the fourth interface, and the fourth control is used to indicate that the pre-recording function is enabled. For example, the fourth control can be a function control in the preview interface of the video recording, used to adjust the video recording function.
[0020] It can be understood that in this application, the entry for switching the pre-recording duration is not limited, and it can be through the configuration for indicating that the pre-recording function is enabled, or through other control configurations.
[0021] In a second aspect, the present application provides an electronic device, which includes a plurality of functional modules; the plurality of functional modules interact with each other to implement the methods executed by the electronic device in any of the above aspects and their respective embodiments. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on specific implementations.
[0022] In a third aspect, the present application provides an electronic device, including at least one processor and at least one memory, wherein computer program instructions are stored in the at least one memory. When the electronic device runs, the at least one processor executes the methods executed by the electronic device in any of the above aspects and their respective embodiments.
[0023] In a fourth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer is caused to execute the methods executed by the electronic device in any of the above aspects and their respective possible designs.
[0024] In a fifth aspect, the present application provides a computer program product, which includes a computer program (which can also be referred to as code or instructions). When the computer program is run, the computer is caused to execute the methods of the electronic device in any of the above aspects and their respective possible designs.
[0025] In a sixth aspect, an embodiment of the present application further provides a graphical user interface on an electronic device. The electronic device has a display screen, one or more memories, and one or more processors. The one or more processors are used to execute one or more computer programs stored in the one or more memories. The graphical user interface includes the graphical user interface displayed when the electronic device executes any of the above aspects and their respective possible designs.
[0026] In a seventh aspect, the present application further provides a chip, which is used to read the computer program stored in the memory and execute the methods executed by the electronic device in any of the above aspects and their respective possible designs.
[0027] In an eighth aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement the methods executed by the electronic device in any of the above aspects and their respective possible designs. In a possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. The chip system can be composed of chips or can include chips and other discrete devices.
[0028] For the beneficial effects of any of the above second to eighth aspects and their possible designs, please specifically refer to the beneficial effects of various possible designs in the above first aspect, which will not be elaborated here. Description of the Drawings
[0029] Figure 1 It is a schematic diagram of a possible scenario;
[0030] Figure 2 It is a schematic diagram of the hardware structure of a possible electronic device provided by an embodiment of the present application;
[0031] Figure 3 It is a block diagram of the software architecture of an electronic device provided by an embodiment of the present application;
[0032] Figure 4 It is one of the schematic diagrams of the interface of a video recording method provided by an embodiment of the present application;
[0033] Figure 5 It is another schematic diagram of the interface of a video recording method provided by an embodiment of the present application;
[0034] Figure 6 It is yet another schematic diagram of the interface of a video recording method provided by an embodiment of the present application;
[0035] Figure 7 It is still another schematic diagram of the interface of a video recording method provided by an embodiment of the present application;
[0036] Figure 8 It is a schematic flow diagram of a video recording method provided by an embodiment of the present application. Detailed Description of the Embodiments
[0037] Next, embodiments of the present application will be described in detail with reference to the accompanying drawings.
[0038] Embodiments of the present application can be applied to the technical field of electronic devices, and specifically can be applicable to scenarios of video recording. Among them, the scenarios of video recording can include but are not limited to: recording functions in camera applications, recording functions in instant messaging software, or recording functions in other applications, etc.
[0039] For example, Figure 1 It is a schematic diagram of a possible scenario. As Figure 1 shown, the interface 100A can display a real-time preview interface of the video recording function of the camera application. In the interface 100A, there can be at least a video recording function control 101 and a video recording control 102. Among them, the video recording function control 101 is used to switch to the video recording function in the camera application, and the functions included in the camera application are, for example, a photo-taking function, a portrait function, or a video recording function, etc.; the video recording control 102 is used to control the start and end of video recording, etc. in the video recording scenario.
[0040] In the current recording scenario, in interface 100A, the electronic device starts recording in response to a click operation on the video control control 102. For example, after recording for 3 seconds, interface 100B may be displayed. In interface 100B, the electronic device may end recording in response to another click operation on the video control control 102. Exemplarily, based on the operations of interfaces 100A and 100B, the electronic device may provide recorded content in an album application, as shown in interface 100C, which is a display interface of the album application and may include a 3-second video 103.
[0041] Based on the existing recording function, an embodiment of the present application provides a video recording method. In this method, a pre-recording function is provided. When the pre-recording function is turned on, it can be realized that when recording, not only the recorded content but also the pre-recorded content can be saved, so as to help users save some fleeting screen content and additionally save some video content before pressing the video control. In addition, in an embodiment of the present application, a first method and a second method can be distinguished to respectively implement traditional recording and pre-recording. For example, when the electronic device detects the first method, it can be determined to use the traditional recording method for video recording. For another example, when the electronic device detects the second method, it can be determined to use the pre-recording method for video recording. In this way, by pre-configuring different methods and providing different recording methods, the needs of different recording scenarios of users can be met, thereby improving the user experience.
[0042] The technical solutions in the embodiments of the present application can be applied to electronic devices, and the electronic devices can be any devices that can record videos. For example, the electronic devices can be mobile phones such as straight-screen phones, folding screen phones, and three-folding screen phones, tablet computers, cameras, sports cameras, wearable devices (e.g., watches, bracelets, etc.), vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), smart home devices (e.g., smart TVs, etc.), and other electronic devices that can record videos. It is understandable that the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0043] The electronic devices to which the embodiments of the present application can be applied include but are not limited to electronic devices equipped with Or electronic devices with other operating systems. The electronic device may be, for example, the electronic device introduced in the above embodiments.
[0044] Figure 2 The figure shows a schematic diagram of the hardware structure of a possible electronic device. Among them, the electronic device 200 includes components such as a radio frequency (RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, an audio circuit 270, a communication interface 280, and a Wi-Fi module 290. Those skilled in the art can understand that Figure 2 the hardware structure of the electronic device 200 shown in the figure does not limit the electronic device 200. The electronic device 200 provided by the embodiments of the present application may include more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 2 The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0045] The following will specifically introduce each component of the electronic device 200 in conjunction with Figure 2 :
[0046] The RF circuit 210 can be used for receiving and sending data during communication or a call. Specifically, after the RF circuit 210 receives downlink data from a base station, it sends the data to the processor 230 for processing; in addition, it sends the uplink data to be sent to the base station. Generally, the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
[0047] In addition, the RF circuit 210 can also communicate with other devices through a wireless communication network. The wireless communication can use any communication standard or protocol, including but not limited to the global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
[0048] Wi-Fi technology belongs to short-distance wireless transmission technology. The electronic device 200 can connect to and access an access point (AP) through the Wi-Fi module 290, thereby achieving access to the data network. The Wi-Fi module 290 can be used for receiving and sending data during the communication process.
[0049] The electronic device 200 can establish a physical connection with other devices through the communication interface 280. Optionally, the communication interface 280 of the electronic device 200 and the communication interface of the other device are connected by a cable to achieve data transmission between the electronic device 200 and the other device.
[0050] The electronic device 200 can also implement communication services and interact with other electronic devices. Therefore, the electronic device 200 needs to have a data transmission function, that is, the electronic device 200 needs to include a communication module inside. Although Figure 2 the RF circuit 210, the Wi-Fi module 290, and the communication interface 280 and other communication modules are shown, it can be understood that there is at least one of the above components or other communication modules for implementing communication (such as a Bluetooth module) in the electronic device 200 to perform data transmission.
[0051] For example, when the electronic device 200 is a mobile phone, the electronic device 200 may include the RF circuit 210, may also include the Wi-Fi module 290, or may include a Bluetooth module ( Figure 2 not shown in the figure); when the electronic device 200 is a tablet computer, the electronic device 200 may include the Wi-Fi module, or may include a Bluetooth module ( Figure 2 not shown in the figure); when the electronic device 200 is a smart home device, the electronic device 200 may include the Wi-Fi module 290, or may include a Bluetooth module ( Figure 2 not shown in the figure).
[0052] The memory 240 can be used to store software programs and modules. The processor 230 executes various functional applications and data processing of the electronic device 200 by running the software programs and modules stored in the memory 240. Optionally, the memory 240 may mainly include a program storage area and a data storage area. Among them, the program storage area can store the operating system (mainly including software programs or modules corresponding to the kernel layer, system layer, application framework layer, and application layer, etc.). In the embodiments of the present application, the memory 240 can be used to store program instructions related to the pre-recording function to support the electronic device to provide the pre-recording function.
[0053] In addition, the memory 240 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0054] The input unit 250 can be used to receive edit operations of various different types of data objects such as digital or character information input by the user, and generate key signal inputs related to user settings and function controls of the electronic device 200. Optionally, the input unit 250 may include a touch panel 251 and other input devices 252.
[0055] Among them, the touch panel 251, also known as a touch screen, can collect touch operations of the user on or near it (such as operations of the user using a finger, a stylus, or any suitable object or accessory on or near the touch panel 251), and drive corresponding connection devices according to a pre-set program. In the embodiments of the present application, the touch panel 251 can collect user operations on or near it. For example, when the electronic device 200 is a mobile phone, the user operation can be a long press operation on a video recording control control for indicating caching pre-recorded content, or the user operation can also be a click operation on the video recording control control for indicating not to cache pre-recorded content, or the user operation can also be a click operation on the video recording control control for indicating caching pre-recorded content, etc.
[0056] Optionally, the other input devices 252 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.
[0057] The display unit 260 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device 200. The display unit 260 is the display system of the electronic device 200, used to present an interface and achieve human-computer interaction. The display unit 260 may include a display panel 261. Optionally, the display panel 261 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. In the embodiments of the present application, the display unit 260 can be used to display a user interface, for example, it can display various possible interaction interfaces with a pre-recording function provided by the method according to the embodiments of the present application, such as various display interfaces shown in the subsequent content Figures 4 to 7 shown various display interfaces.
[0058] The processor 230 is the control center of the electronic device 200, connecting various components through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 240, and calling data stored in the memory 240, it executes various functions of the electronic device 200 and processes data, thereby enabling various services based on the electronic device 200. In the embodiments of the present application, the processor 230 can be used to implement a video recording method provided by the embodiments of the present application.
[0059] The electronic device 200 further includes a power supply 220 (such as a battery) for supplying power to each component. Optionally, the power supply 220 can be logically connected to the processor 230 through a power management system, thereby implementing functions such as management of charging, discharging, and power consumption through the power management system.
[0060] As Figure 2 shown, the electronic device 200 further includes an audio circuit 270, a microphone 271, and a speaker 272, which can provide an audio interface between the user and the electronic device 200. The audio circuit 270 can be used to convert audio data into a signal that the speaker 272 can recognize, and transmit the signal to the speaker 272, which converts it into a sound signal for output. The microphone 271 is used to collect external sound signals (such as the sound of a person speaking or other sounds), and convert the collected external sound signals into a signal that the audio circuit 270 can recognize, and send it to the audio circuit 270. The audio circuit 270 can also be used to convert the signal sent by the microphone 271 into audio data, and then output the audio data to the RF circuit 210 for sending to, for example, another electronic device, or output the audio data to the memory 240 for further processing later.
[0061] Although Figure 2 not shown, the electronic device 200 may further include a camera, at least one sensor, etc., which will not be elaborated here. The at least one sensor may include, but is not limited to, a pressure sensor, a barometric pressure sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
[0062] The operating system (OS) involved in the embodiments of the present application is the most basic system software running on the electronic device 200. The software system of the electronic device 200 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present application, taking the operating system with a layered architecture as an example, the software architecture of the electronic device 200 is exemplarily described.
[0063] Figure 3 is a software architecture block diagram of an electronic device provided by the embodiments of the present application. As Figure 3As shown, the software architecture of an electronic device can be a layered architecture. For example, the software can be divided into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into five layers, from top to bottom: the application layer, the application framework layer (FWK), the runtime and system libraries, the kernel layer, and the hardware layer.
[0064] The application layer can include a series of application packages. As Figure 3 shown, the application layer can include applications, such as a camera application, an album application, a video application, etc. Among them, the applications can be used to provide a graphical user interface (GUI) for users and provide an operation interface for users, etc.
[0065] In a possible implementation, the applications can be developed using the Java language and completed by calling the application programming interfaces (APIs) provided by the application framework layer. Developers can interact with the underlying layers of the operating system (such as the hardware layer, the kernel layer, etc.) through the application framework layer to develop their own applications. The application framework layer is mainly a series of services and management systems of the operating system.
[0066] The application framework layer provides application programming interfaces and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions. As Figure 3 shown, the application framework layer can include a camera system framework, an audio system framework, a window manager, a view system, etc. Among them,
[0067] The camera system framework includes a camera and a pre-recording function management module. The camera is used for applications such as the camera application to call the interface of the camera. The pre-recording function management module is used to manage the pre-recording function of the camera and provide the pre-recording function to the user to pre-record video content of a preset duration in advance.
[0068] The audio system framework includes a media recorder, an audio player, etc. The media recorder is used to generate video files.
[0069] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make this data accessible to applications. The data can include videos, images, audio, incoming and outgoing calls, browsing history and bookmarks, phone books, etc.
[0070] The view system includes visible controls and invisible controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon can include a view for displaying text and a view for displaying pictures.
[0071] The runtime includes a core library and a virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0072] The core library contains two parts: one part is the functional functions that the Java language needs to call, and the other part is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as management of object life cycles, stack management, thread management, security and exception management, and garbage collection.
[0073] The system library can include multiple functional modules. For example: surface manager, media framework, 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc.
[0074] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0075] The media framework supports the playback and recording of a variety of common audio and video formats, as well as static image files, etc. The media framework can support a variety of audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR; it can also support a variety of image coding formats, such as: JPG, PNG, etc.
[0076] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0077] The 2D graphics engine is a graphics engine for 2D drawing.
[0078] In some embodiments, the 3D graphics processing library can be used to draw 3D motion trajectory images, and the 2D graphics engine can be used to draw 2D motion trajectory images.
[0079] The kernel layer is the layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0080] The hardware layer can include video shooting devices such as cameras, audio playback devices, and can also include various sensors, such as touch sensors, etc.
[0081] Generally, the electronic device 200 can run multiple applications simultaneously. More simply, one application can correspond to one process, and more complexly, one application can correspond to multiple processes. Each process has a process number (process ID).
[0082] It should be understood that in the embodiments of the present application, "at least one (item)" or its similar expressions refer to any combination of these items, including any combination of single item (s) or plural items (s). For example, at least one (item) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, c can be single or multiple. "Multiple" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the front and rear associated objects.
[0083] In addition, it should be understood that in the description of the present application, terms such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. For example, in the following embodiments, "first operation" and "second operation" are only used to distinguish and describe operations in different scenarios, and are not used to limit the specific operation methods, etc.
[0084] It should be understood that the hardware structure of the electronic device can be as Figure 2 shown, and the software system architecture can be as Figure 3 shown. Among them, the software programs and / or modules corresponding to the software system architecture in the electronic device can be stored in the memory 240, and the processor 230 can run the software programs and applications stored in the memory 240 to execute the process of a video recording method provided by the embodiments of the present application.
[0085] To facilitate the understanding of a video recording method provided by the present application, the implementation process of the method provided by the present application will be introduced below in combination with Figures 4 to 7 the content shown in. For the sake of easy understanding, several possible application scenarios that may be involved in the method provided by the present application will be introduced first below. It should be noted that in the following embodiments, the electronic device is taken as a mobile phone as an example, and the implementation of other types of electronic devices can refer to the implementation of a tablet computer, and the present application will not repeat the introduction.
[0086] For example, Figure 4 is a schematic diagram of the interface of a video recording method provided by the embodiments of the present application. As Figure 4As shown in the interface 400A, it is a real-time preview interface of the video recording function of the camera application. In the interface 400A, a pre-recording function control 401 may be included. The pre-recording function control 401 is used to indicate that the camera has a pre-recording function. Optionally, the interface 400A may further include a prompt text 402, which is used to indicate that the pre-recording function has been enabled and the pre-recording duration is 3 seconds. In a possible example, the prompt text 402 may also be displayed only when the mobile phone responds to a preset operation on the pre-recording function control 401. For example, the preset operation may be a touch operation, etc.
[0087] In the interface 400A, traditional function controls of the camera application may also be included, such as: a video recording function control 403 and a video recording control control 404. Their specific functions will not be elaborated in this application.
[0088] Based on the real-time preview interface displayed by the interface 400A, in the embodiments of the present application, two different scenarios of recording can be realized through two different methods. For example,
[0089] Scenario A1: When the mobile phone responds to a click operation on the video recording control control 404 in the interface 400A, recording starts, and the interface 400B may also be displayed. As shown in the interface 400B, it is the interface after 3 seconds of starting recording. In the interface 400B, when the mobile phone responds to a second click operation on the video recording control control 404, recording can end. Exemplarily, based on the operations of the interface 400A and the interface 400B, the mobile phone can provide the recorded content in the album application. As shown in the interface 400C, it is the display interface of the album application, which may include a 3-second video 405.
[0090] It can be seen from the interface 400A, the interface 400B, and the interface 400C that Scenario A1 is the first operation method, which can realize traditional video recording and obtain a recorded video with the same duration as the recording duration.
[0091] Scenario A2: When the mobile phone responds to a long-press operation on the video recording control control 404 in the interface 400A, recording starts, and the interface 400D may also be displayed. As shown in the interface 400D, it is the interface after 3 seconds of starting recording. Among them, the interface 400D may include a video recording control control 406. Different from the video recording control control 404, the video recording control control 406 can also indicate that the current recording includes 3 seconds of pre-recorded content. Optionally, after the mobile phone starts recording, the user does not need to continue to perform a long-press operation on the video recording control control 404, thereby reducing the user's operation.
[0092] In the interface 400D, the mobile phone can end the recording in response to a second click operation on the video recording control control 406. Exemplarily, based on the operations of the interface 400A and the interface 400D, the mobile phone can provide the recorded content in the album application. As shown in the interface 400E, which is the display interface of the album application, it can include a video 407 with a duration of 6 seconds; where the video 407 includes not only 3 seconds of official recorded content but also 3 seconds of pre-recorded content.
[0093] It can be seen from the interface 400A, the interface 400D, and the interface 400E that the scenario A2 is the second operation method, which can achieve pre-recording under the condition of enabling the pre-recording function, so that a recorded video longer than the recording duration can be obtained, which can provide more video materials for users. Especially in some recording scenarios that require timeliness, it can reduce the probability of users missing the content that needs to be recorded in time and improve the user experience.
[0094] In this way, through different operation methods, scenario A1 and scenario A2 can meet the different scenario requirements of users, can provide more rich functions of the camera application for users, and improve the user experience.
[0095] It should be noted that in the embodiments of the present application, the specific forms of the first operation method and the second operation method are not limited. For example, the first operation method is a long press operation, the second operation method is a click operation, or the second operation is a double click operation, etc.
[0096] For another example, Figure 5 is another schematic diagram of an interface for a video recording method provided by an embodiment of the present application. As shown in the interfaces 500A1 and 500A2 in Figure 5 , they are the real-time preview interfaces of the video recording function of the camera application. In the interfaces 500A1 and 500A2, traditional function controls of the camera application can be included, such as: a video recording function control 501, a first video recording control control 502A. The specific functions of which are not elaborated in the present application. In the embodiments of the present application, the interfaces 500A1 and 500A2 can also include a second video recording control control 502B. Among them, compared with the first video recording control control 502A, the second video recording control control 502B has a pre-recording function.
[0097] Based on the real-time preview interfaces displayed by the interfaces 500A1 and 500A2, in the embodiments of the present application, two different scenarios of recording can be implemented through two different controls. Among them, the interfaces 500A1 and 500A2 are used to indicate that operations on different controls are detected. For example,
[0098] Scenario B1: When the mobile phone responds to a click operation on the first video recording control control 502A in the interface 500A1, it starts recording and can also display the interface 500B. As shown in the interface 500B, it is the interface after 3 seconds of starting recording. In the interface 500B, the mobile phone can respond to a click operation on the first video recording control control 502A again to end the recording. Exemplarily, based on the operations of the interface 500A1 and the interface 500B, the mobile phone can provide the recorded content in the album application. As shown in the interface 500C, it is the display interface of the album application and can include a video 505 with a duration of 3 seconds.
[0099] It can be seen from the interface 500A1, the interface 500B, and the interface 500C that Scenario B1 uses the first video recording control control to achieve traditional video recording and obtain a recorded video with the same duration as the recording duration.
[0100] Scenario B2: When the mobile phone responds to a click operation on the second video recording control control 502B in the interface 500A2, it starts recording and can also display the interface 500D. As shown in the interface 500D, it is the interface after 3 seconds of starting recording. Among them, the interface 500D can include the second video recording control control 502B. Different from the first video recording control control 502A, the second video recording control control 502B can also indicate that the current recording includes 3 seconds of pre-recorded content.
[0101] In the interface 500D, the mobile phone can respond to a click operation on the second video recording control control 502B again to end the recording. Exemplarily, based on the operations of the interface 500A2 and the interface 500D, the mobile phone can provide the recorded content in the album application. As shown in the interface 500E, it is the display interface of the album application and can include a video 504 with a duration of 6 seconds; among them, the video 504 not only includes 3 seconds of formal recorded content but also 3 seconds of pre-recorded content.
[0102] It can be seen from the interface 500A2, the interface 500D, and the interface 500E that Scenario B2 uses the second video recording control control to achieve pre-recording under the pre-recording function enabled, so that a recorded video longer than the recording duration can be obtained, which can provide more video materials for users. Especially in some recording scenarios that require timeliness, it can reduce the probability of users missing the content that needs to be recorded in time and improve the user experience.
[0103] In this way, Scenario B1 and Scenario B2 can meet the different scenario needs of users through different controls, can provide more abundant functions of the camera application for users, and improve the user experience.
[0104] It should be noted that in the embodiments of the present application, the specific forms of the first video control control and the second video control control are not limited. For example, the first recording control and the second recording control can also be combined controls. For example, when the control is swiped to the left, it is the traditional recording method, and when the control is swiped to the right, it is the recording method with the pre-recording function.
[0105] The above Figure 4 and Figure 5 The duration of the pre-recorded content saved when recording a video introduced above takes 3 seconds as an example. In the embodiments of the present application, an implementation method for switching the pre-recording duration is also provided. It can be understood that there can be various settings for the entrance to switch the pre-recording duration. The following takes Figure 6 and Figure 7 as an example to introduce two possible ways to switch the duration. The present application does not limit the following switching methods.
[0106] For example, Figure 6 is another interface schematic diagram of a video recording method provided by an embodiment of the present application. As shown in the interface 600A in Figure 6 , it is the real-time preview interface of the video recording function of the camera application. In the interface 600A, a control 601 can be included, and the control 601 is used to switch the duration of the pre-recording function.
[0107] Exemplarily, in response to an upward sliding operation on the control 601, the mobile phone can display the interface 600B. It can be seen from the interface 600B that a display area 602 can be displayed, and the area 602 includes various different pre-recording durations, such as turning off pre-recording, 3 seconds, 5 seconds, 10 seconds, etc.
[0108] As shown in the interface 600B, the current pre-recording duration is set to 3 seconds. The mobile phone can respond to a click operation on the 5-second control and switch the pre-recording duration to 5 seconds. Based on this, the interface after starting to record for 3 seconds can be shown as the interface 600C; among them, the interface 600C includes a video control control 603, and the video control control 603 is used to indicate the pre-recorded content including 5 seconds.
[0109] For example, in the interface 600C, based on a click operation on the video control control 603, the mobile phone can provide the recorded content in the album application. As shown in the interface 600D, it is the display interface of the album application, and a video 604 with a duration of 8 seconds can be included; among them, the video 604 not only includes 3 seconds of official recorded content, but also includes 5 seconds of pre-recorded content.
[0110] It can be understood that if the duration of the camera's data acquisition before starting recording is less than the pre-recording duration, the pre-recorded content can include the pre-recorded content of the camera's acquisition duration. For example, if the pre-recording duration is set to 10 seconds and the camera's acquisition duration before starting recording is 8 seconds, the finally obtained video can include 8 seconds of pre-recorded content.
[0111] For another example, Figure 7 FIG. 7 is another interface schematic diagram of a video recording method provided by an embodiment of the present application. As shown in the interface 700A in FIG. 7, it is a real-time preview interface of the video recording function of the camera application. In the interface 700A, a pre-recording function control 701 may be included. The pre-recording function control 701 can not only be used to indicate that the camera has a pre-recording function, but also be used to switch the duration of the pre-recording function. Figure 7
[0112] Exemplarily, in response to a click operation on the pre-recording function control 701, the mobile phone can display the interface 700B. It can be seen from the interface 700B that a display area 702 can be displayed. The area 702 includes various different pre-recording durations, such as turning off pre-recording, 3 seconds, 5 seconds, 10 seconds, etc.
[0113] As shown in the interface 700B, the current pre-recording duration is set to 3 seconds. In response to a click operation on the 5-second control, the mobile phone can switch the pre-recording duration to 5 seconds. Based on this, the interface after 3 seconds of starting recording can be shown as the interface 700C; wherein, the interface 700C includes a video recording control 703, and the video recording control 703 is used to indicate that it includes 5 seconds of pre-recorded content.
[0114] For example, in the interface 700C, in response to a click operation on the video recording control 703, the mobile phone can provide the recorded content in the album application. As shown in the interface 700D, it is a display interface of the album application, and it can include a video 704 with a duration of 8 seconds; wherein the video 704 not only includes 3 seconds of official recording content, but also includes 5 seconds of pre-recorded content.
[0115] It can be understood that if the duration of the camera's data acquisition before starting recording is less than the pre-recording duration, the pre-recorded content can include the pre-recorded content of the camera's acquisition duration. For example, if the pre-recording duration is set to 10 seconds and the camera's acquisition duration before starting recording is 8 seconds, the finally obtained video can include 8 seconds of pre-recorded content.
[0116] Figures 4 to 7 Based on the foregoing content that illustrates the interface processing effects that can be achieved by using the method provided by the embodiments of the present application in combination with multiple scenarios, the following introduces the implementation process of the video recording method provided by the present application to illustrate how to use the method provided by the present application to achieve the foregoing Figures 4 to 7The interface processing effect shown can thus provide a pre-recording function to meet the needs of users in various recording scenarios.
[0117] Figure 8 The flowchart shows a video recording method provided by an embodiment of this application. This process can be applied to an electronic device and may include the following steps:
[0118] Step 800: Display a first interface, which is a preview interface for video recording. For example, the first interface can be Figure 4 interface 400A in Figure 5 or can also be interface 500A1 or interface 500A2 in
[0119] Step 801: If a first operation on the first interface is received, in response to the first operation, display a second interface; the first operation is used to indicate starting recording in a first manner. The second interface can be, for example, Figure 4 interface 400B in Figure 5 or can also be interface 500B in
[0120] Step 802: In response to a second operation in the second interface, obtain a first video; the first video includes the video during the time period between the first operation and the second operation. For example, the first video can be Figure 4 video 405 shown in interface 400C in Figure 5 or can also be video 503 shown in interface 500C in
[0121] Step 803: If a third operation on the first interface is received, in response to the third operation, display a third interface; the third operation is used to indicate starting recording in a second manner. The third interface can be, for example, Figure 4 interface 400D in Figure 5 or can also be interface 500D in
[0122] Step 804: In response to a fourth operation in the third interface, obtain a second video; wherein, the second video includes the video during the time period between the third operation and the fourth operation, and also includes a pre-recorded video with a preset duration before the third operation. For example, the second video can be Figure 4 video 407 shown in interface 400E in Figure 5 or can also be video 504 shown in interface 500E in
[0123] It can be understood that the electronic device can provide the recording scenarios implemented in the above steps 801 and 802, or can also provide the recording scenarios implemented in the above steps 803 and 804. The specific implementation scenario can be determined according to the user's operation to execute the above steps 801 and 802, or to execute the above steps 803 and 804.
[0124] Among them, the specific implementation processes of steps 800 and 804 can refer to the foregoing embodiments, and the present application will not repeat the introduction.
[0125] In the method provided by the embodiments of the present application, in the video recording scenario, by providing a variety of different methods, the needs of users for different recording scenarios can be met, so as to facilitate the user to select a suitable method to obtain the desired video. Among them, different recording scenarios, for example, generate a video including a pre-recorded video, so that a video with a longer duration than the recording duration can be obtained, more content can be recorded, which is applicable to some scenarios that require timeliness, and it is also convenient to provide the user with a video material with longer content, which is convenient for the user to perform cropping processing to obtain a better video. Another example is to generate a traditional video that does not include a pre-recorded video, so that a video with the same duration as the recording duration can be obtained, and no further cropping or other processing is required.
[0126] Based on the above embodiments, the present application further provides an electronic device, the electronic device includes a plurality of functional modules; the plurality of functional modules interact with each other to implement the functions performed by the electronic device in the various methods described in the embodiments of the present application. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on the specific implementation. Such as executing Figure 8 the steps 800 to 804 executed by the electronic device in the illustrated embodiment.
[0127] Based on the above embodiments, the present application further provides an electronic device, the electronic device includes at least one processor and at least one memory, and computer program instructions are stored in the at least one memory. When the electronic device runs, the at least one processor executes the functions performed by the electronic device in the various methods described in the embodiments of the present application. Such as executing Figure 8 the steps 800 to 804 executed by the electronic device in the illustrated embodiment.
[0128] Based on the above embodiments, the present application further provides a computer program product, the computer program product includes: a computer program (which can also be referred to as code, or instructions), when the computer program is run, it causes the computer to execute the various methods described in the embodiments of the present application.
[0129] Based on the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer is caused to execute the various methods described in the embodiments of the present application.
[0130] Based on the above embodiments, the present application further provides a chip, which is used to read the computer program stored in a memory and implement the various methods described in the embodiments of the present application.
[0131] Based on the above embodiments, the present application provides a chip system. The chip system includes a processor, which is used to support a computer device to implement the various methods described in the embodiments of the present application. In a possible design, the chip system further includes a memory, and the memory is used to store the necessary programs and data of the computer device. The chip system can be composed of chips or can include chips and other discrete devices. Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.
[0132] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0133] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0134] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions for implementing the steps specified in one process or multiple processes and / or blocks Figure 1 one process or multiple processes and / or blocks Figure 1 and / or functions specified in one block or multiple blocks.
[0135] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the scope of protection of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to cover these modifications and variations.
Claims
1. A video recording method, applied to an electronic device, characterized in that, including: displaying a first interface, where the first interface is a preview interface for video recording; if a first operation on the first interface is received, in response to the first operation, displaying a second interface; the first operation is used to indicate starting recording in a first manner; in response to a second operation in the second interface, obtaining a first video; the first video includes the video of the duration between the first operation and the second operation; and, if a third operation on the first interface is received, in response to the third operation, displaying a third interface; the third operation is used to indicate starting recording in a second manner; in response to a fourth operation in the third interface, obtaining a second video; wherein, the second video includes the video of the duration between the third operation and the fourth operation, and also includes a pre-recorded video of a preset duration before the third operation.
2. The method according to claim 1, wherein the first interface includes a first control; the first operation is a click operation on the first control; the third operation is a long press operation on the first control; or, the first operation is a first sliding operation on the first control; the third operation is a second sliding operation on the first control, and the sliding directions of the first sliding operation and the second sliding operation are different.
3. The method according to claim 1, wherein the first interface includes a first control and a second control; the first operation is a click operation on the first control; the third operation is a click operation on the second control.
4. The method according to any one of claims 1 to 3, characterized in that, the third interface includes a third control, and the third control is used to indicate at least one of the following: the recorded video includes a pre-recorded video, and the first pre-recorded duration of the pre-recorded video.
5. The method according to any one of claims 1 to 4, characterized in that, the first interface includes a fourth control, and the fourth control is used to indicate that the pre-recording function is enabled.
6. The method according to any one of claims 1 to 5, characterized in that, the first interface includes prompt text, and the prompt text is used to indicate the operation method of the second manner.
7. The method according to any one of claims 1 to 6, characterized in that the preset duration of the pre-recorded video included in the second video is the first pre-recorded duration. After obtaining the second video, the method further includes: displaying a fourth interface, where the fourth interface is a preview interface for video recording; in response to a fifth operation in the fourth interface, displaying a fifth interface, the fifth operation is used to adjust the first pre-recorded duration, and the fifth interface includes options of various pre-recorded durations; in response to a selection operation on the option in the fifth interface for indicating the second pre-recorded duration, determining that the preset duration of the pre-recorded video is adjusted to the second pre-recorded duration.
8. The method according to claim 7, wherein the fifth operation is a click operation on the fourth control included in the fourth interface, and the fourth control is used to indicate that the pre-recording function is enabled.
9. An electronic device, characterized in that, including at least one processor, the at least one processor is coupled with at least one memory, and the at least one processor is used to read the computer program stored in the at least one memory to execute the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, Instructions are stored in the computer-readable storage medium, and when it runs on a computer, it causes the computer to execute the method according to any one of claims 1 to 8.
11. A computer program product comprising instructions, characterized in that, When the computer program product runs on a computer, it causes the computer to execute the method according to any one of claims 1 to 8.