CN117395460A - Video processing method, video processing device, electronic apparatus, and storage medium - Google Patents

Video processing method, video processing device, electronic apparatus, and storage medium Download PDF

Info

Publication number
CN117395460A
CN117395460A CN202311574774.0A CN202311574774A CN117395460A CN 117395460 A CN117395460 A CN 117395460A CN 202311574774 A CN202311574774 A CN 202311574774A CN 117395460 A CN117395460 A CN 117395460A
Authority
CN
China
Prior art keywords
video
recording
definition
input
stream corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311574774.0A
Other languages
Chinese (zh)
Inventor
何茂祥
闫金阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311574774.0A priority Critical patent/CN117395460A/en
Publication of CN117395460A publication Critical patent/CN117395460A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a video processing method, a video processing device, electronic equipment and a storage medium, and belongs to the technical field of electronic equipment. The video processing method comprises the following steps: starting a plurality of recording streams, and recording a first video based on a first recording stream corresponding to a first definition, wherein the plurality of recording streams comprise the first recording stream, and each recording stream corresponds to one definition; and under the condition that the definition switching condition is met, stopping recording the first video, and recording the second video based on a second recording stream corresponding to the second definition.

Description

Video processing method, video processing device, electronic apparatus, and storage medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a video processing method, a video processing device, electronic equipment and a storage medium.
Background
In the related art, a user may record a video through a video recording function of an electronic device, and typically, a user may select a definition of the video to be recorded before recording the video, and then start recording with a determined definition. However, before the video recording ends, that is, before the user stops recording the video, the sharpness of the recorded video cannot be adjusted, which may affect the user's video recording process.
Disclosure of Invention
An object of the embodiments of the present application is to provide a video processing method, apparatus, electronic device, and readable storage medium, which can solve the problem that the sharpness of a video cannot be adjusted in the process of recording the video by a user.
In a first aspect, an embodiment of the present application provides a video processing method, including:
starting a plurality of recording streams, and recording a first video based on a first recording stream corresponding to a first definition, wherein the plurality of recording streams comprise the first recording stream, and each recording stream corresponds to one definition;
and under the condition that the definition switching condition is met, stopping recording the first video, and recording the second video based on a second recording stream corresponding to the second definition.
In a second aspect, an embodiment of the present application provides a video processing apparatus, including:
the recording unit is used for starting a plurality of recording streams and recording a first video based on a first recording stream corresponding to a first definition, wherein the plurality of recording streams comprise the first recording stream, and each recording stream corresponds to one definition;
the recording unit is further configured to stop recording the first video and record the second video based on a second recording stream corresponding to the second definition when the definition switching condition is satisfied.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, the program or instructions implementing the steps of the method as in the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface coupled to the processor for running a program or instructions implementing the steps of the method as in the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a readable storage medium, the program product being executable by at least one processor to implement a method as in the first aspect.
In the embodiment of the application, the user can operate the electronic equipment to record the video through the video recording function of the electronic equipment. And when the electronic device receives the input of the recorded video of the electronic device by the user, starting recording the video.
Specifically, when the electronic device receives an input for recording video, recording the first video with a default first definition, and at the same time, starting a plurality of recording streams. Each recording stream corresponds to one definition, and in the recording process, video frame data of the video are written into the video files through the recording streams, and correspondingly, video frame data with different definitions are written into different video files through the corresponding recording streams.
Further, the video recording device of the electronic equipment records the first video according to the first recording stream corresponding to the first definition. That is, the writing of the video frame data of the first video is performed based on the first recording stream corresponding to the first definition, so as to form the first video.
Further, in the recording process of the first video, if the switching condition of the definition is satisfied, the recording of the first video may be stopped at this time, and the second video may be recorded based on the second recording stream corresponding to the second definition. That is, when the definition switching condition is satisfied, the electronic device does not write the video frame data of the first video through the first recording stream, but switches to the second recording stream corresponding to the second definition to write the video frame data of the second video, so as to form the second video.
It can be appreciated that when the electronic device starts video recording in response to the first input, a plurality of recording streams corresponding to the plurality of resolutions are simultaneously opened, where the plurality of recording streams include both the first recording stream and the second recording stream corresponding to the second resolution to be switched to, and further the plurality of recording streams may further include other recording streams corresponding to other resolutions. When the recording process meets the definition switching condition, the starting of the recording stream corresponding to the second definition is not required to be executed, but the second video can be directly switched to the second recording stream to be recorded, the recording process is not required to be stopped, and the definition is directly switched in the recording process.
Specifically, the writing paths of the video frame data corresponding to different definitions can be established in advance by starting a plurality of recording streams, seamless switching is realized in the video recording process, the video frame data can be written only to the recording stream which is matched with the definition selected by the user and requested by the driving device of the video recording device, other recording streams do not need to be written, and the user switches the definition and then requests the new recording stream which is matched with the definition selected by the user to be written to the driving device of the video recording device.
In the embodiment of the application, a plurality of recording streams are simultaneously opened in the process of recording video. And then recording the video according to the first recording stream corresponding to the first definition. In the recording process of the first video, as the plurality of recording streams are all in an open state, when the recording process meets the definition switching condition, the current first recording stream can be directly switched to the second recording stream corresponding to the second definition to record the second video, thereby realizing that the recording process is not required to be interrupted when the definition is switched, and realizing that the definition is switched in the recording process.
Drawings
FIG. 1 shows one of the flow diagrams of the video processing method of the embodiment of the present application;
FIG. 2 shows one of the interface schematic diagrams of the video processing method according to the embodiment of the present application;
FIG. 3 is a second diagram illustrating an interface of a video processing method according to an embodiment of the present application;
FIG. 4 shows a third interface diagram of a video processing method according to an embodiment of the present application;
FIG. 5 shows a flow diagram of a video processing method of an embodiment of the present application;
FIG. 6 shows a second flowchart of a video processing method according to an embodiment of the present application;
fig. 7 shows a block diagram of a video processing apparatus according to an embodiment of the present application;
FIG. 8 shows a block diagram of an electronic device of an embodiment of the present application;
fig. 9 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The video processing method, the video processing device, the electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
In some embodiments of the present application, a video processing method is provided, fig. 1 shows one of flow diagrams of the video processing method in the embodiment of the present application, and as shown in fig. 1, the video processing method includes:
step 102, starting a plurality of recording streams, and recording a first video based on a first recording stream corresponding to a first definition, wherein the plurality of recording streams comprise the first recording stream, and each recording stream corresponds to one definition;
and 104, stopping recording the first video under the condition that the definition switching condition is met, and recording the second video based on a second recording stream corresponding to the second definition.
In the embodiment of the present application, the video processing method is performed by an electronic device, which may be a mobile phone, a tablet computer, a notebook computer, or the like.
The user can operate the electronic equipment to record the video through the video recording function of the electronic equipment. And when the electronic device receives the input of the recorded video of the electronic device by the user, starting recording the video.
Specifically, when the electronic device receives an input for recording video, recording the first video with a default first definition, and at the same time, starting a plurality of recording streams. Each recording stream corresponds to one definition, and in the recording process, video frame data of the video are written into the video files through the recording streams, and correspondingly, video frame data with different definitions are written into different video files through the corresponding recording streams.
Specifically, the video definition may include a common 720P, a standard definition 1080P, and an ultra-definition 4K, each of which corresponds to a different recording stream.
Further, the video recording device of the electronic equipment records the first video according to the first recording stream corresponding to the first definition. That is, the writing of the video frame data of the first video is performed based on the first recording stream corresponding to the first definition, so as to form the first video. Although the plurality of recording streams are started before the recording is started, the recording of the first video can only be performed based on the first recording stream corresponding to the first definition in the recording process, that is, the video frame data is only requested to the video recording device of the electronic equipment to be output from the first recording stream matched with the first definition in the recording process.
Further, in the recording process of the first video, if the switching condition of the definition is satisfied, the recording of the first video may be stopped at this time, and the second video may be recorded based on the second recording stream corresponding to the second definition. That is, when the definition switching condition is satisfied, the electronic device does not write the video frame data of the first video through the first recording stream, but switches to the second recording stream corresponding to the second definition to write the video frame data of the second video, so as to form the second video.
It can be appreciated that when the electronic device starts video recording in response to the first input, a plurality of recording streams corresponding to the plurality of resolutions are simultaneously opened, where the plurality of recording streams include both the first recording stream and the second recording stream corresponding to the second resolution to be switched to, and further the plurality of recording streams may further include other recording streams corresponding to other resolutions. When the recording process meets the definition switching condition, the starting of the recording stream corresponding to the second definition is not required to be executed, but the second video can be directly switched to the second recording stream to be recorded, the recording process is not required to be stopped, and the definition is directly switched in the recording process.
Specifically, the writing paths of the video frame data corresponding to different definitions can be established in advance by starting a plurality of recording streams, seamless switching is achieved in the video recording process, the video frame data can be written only to the recording stream matched with the definition selected by the user, which is requested by the driving device (sensor) of the video recording device (camera), other recording streams do not need to be written, and the user switches the definition and then requests the new recording stream matched with the definition selected by the user to write the video frame data to the driving device of the video recording device.
In the embodiment of the application, a plurality of recording streams are simultaneously opened in the process of recording video. And then recording the video according to the first recording stream corresponding to the first definition. In the recording process of the first video, as the plurality of recording streams are all in an open state, when the recording process meets the definition switching condition, the current first recording stream can be directly switched to the second recording stream corresponding to the second definition to record the second video, thereby realizing that the recording process is not required to be interrupted when the definition is switched, and realizing that the definition is switched in the recording process.
In some embodiments of the present application, when a definition switching condition is satisfied, stopping recording the first video, recording the second video based on a second recording stream corresponding to the second definition, including:
Stopping recording the first video when receiving an input for switching the first definition to the second definition;
and recording a second video based on a second recording stream corresponding to the second definition.
In the embodiment of the application, whether the video recording process meets the definition switching condition or not can be judged according to the input of the electronic equipment in the recording process of the user.
Specifically, in the case where an input is received that the user switches the first definition to the second definition, it may be determined that the definition switching condition has been satisfied at this time. At this time, recording of the first video may be stopped.
Further, the second definition to be switched to, that is, the second recording stream to be switched to, may be determined according to the input of the user to the electronic device to switch the first definition to the second definition. And the electronic equipment can record the second video based on the second recording stream corresponding to the second definition.
According to the method and the device, whether the recording process meets the definition switching condition is determined according to the received input that the user switches the first definition into the second definition. Namely, under the condition that the definition switching input of the user is received, recording of the first video is stopped, the second definition is determined according to the definition switching input, and then the second video is recorded according to a second recording stream corresponding to the second definition, so that definition switching in the recording process is completed.
For example, fig. 2 shows one of interface diagrams of the video processing method according to the embodiment of the present application, as shown in fig. 2, a user operates an electronic device 200, the electronic device displays a definition switch 202, the user selects a normal definition recording, and at the same time, the electronic device 200 starts recording streams corresponding to three definitions of normal, standard definition and super definition, and records video based on the recording stream corresponding to the normal definition. After the user finds the wonderful content after recording for a period of time, the user operates the definition switch 202 again to adjust the definition to be super-definition, at this time, the electronic device 200 records the video based on the recording stream corresponding to the super-definition, after the wonderful content is finished, the user operates the definition switch 202 again, switches to the common gear, and continues recording until the user finishes recording.
In some embodiments of the present application, when a definition switching condition is satisfied, stopping recording the first video, recording the second video based on a second recording stream corresponding to the second definition, including:
stopping recording the first video under the condition that a first object appears in the recording picture;
determining a second definition according to the first object;
And recording a second video based on a second recording stream corresponding to the second definition.
In this embodiment of the present application, whether the video recording process meets the definition switching condition may also be determined according to the specific content appearing in the recording frame, that is, according to the object photographed in the recording frame.
Specifically, in the case that the first object appears in the recording picture, it may be determined that the current recording process has satisfied the sharpness switching condition. The corresponding relation between the first object and the definition can be preset, so that when the first object appears in the recording picture, the definition can be determined to be switched to the definition corresponding to the first object when the current recording is required.
Further, when the first object appears in the recording picture, the recording of the first video can be stopped. And then determining the second definition according to the first object, namely determining the second definition corresponding to the first object. And then recording a second video based on a second recording stream corresponding to the second definition, and completing the switching of the definition in the recording process.
According to the method and the device for determining the definition switching conditions, whether the definition switching conditions are met or not is determined according to the shooting objects in the recording picture, namely, the definition switching conditions are determined to be met under the condition that the first object appears in the recording picture, so that the second definition is determined according to the first object, and further, the second video is recorded based on the second recording stream corresponding to the second definition, and the definition switching is completed.
In an exemplary embodiment, when the monitoring camera is turned on during the process of recording the monitoring video, the video recording is performed with a default normal definition, that is, the video recording is performed with a recording stream corresponding to the normal definition. When moving objects appear in the recording picture, the definition can be automatically switched to the standard definition, namely, the video is continuously recorded by the recording stream corresponding to the standard definition. And further, when the face appears in the recording picture, the definition can be further improved, and the definition is switched to high definition, namely, the video is continuously recorded by the recording stream corresponding to the high definition. When the moving object leaves the recording picture, the definition can be switched back to the ordinary definition, and the video is continuously recorded by the recording stream corresponding to the ordinary definition. The monitoring camera can save the storage size of the monitoring video by adjusting the definition according to the object in the recorded picture in the process of recording the monitoring video, and is convenient for checking the video, because the video with the moving object and the video without the moving object are separated and have different definition, and the monitoring camera is easy to distinguish.
In some embodiments of the present application, when the sharpness switching condition is satisfied, stopping recording the first video, and after recording the second video based on the second recording stream corresponding to the second sharpness, the processing method further includes:
Receiving a first input;
stopping recording the second video in response to the first input;
and associating the first video with the second video to generate a video group.
In the embodiment of the application, the user can perform the first input on the electronic device to stop video recording. The electronic device may stop recording the second video in response to the first input upon receiving the first input.
Further, the first video and the second video are generated in the recording process. Even if the sharpness is switched a plurality of times during the recording of the video, a plurality of videos are generated. At this time, the first video and the second video may be associated, thereby generating a video group, that is, a final video obtained during recording.
According to the embodiment of the application, according to the first input of the user, the electronic equipment can respond to the first input to complete video recording. Because the recorded definition is switched in the recording process, at least the first video and the second video are generated, and the first video and the second video are integrated videos, after the video is recorded, the first video and the second video can be associated, so that a video group is generated, and the video group can represent an integrated video, so that a user can conveniently view the recorded video.
In some embodiments of the present application, after associating the first video with the second video to generate the video group, the processing method further includes:
receiving a second input to the video group;
in response to the second input, the first video and the second video are played based on the generation times of the first video and the second video.
In the embodiment of the application, after the video recording is completed, the first video and the second video can be associated, so that a video group is generated, and the video group can represent a complete video, so that a user can conveniently view the recorded video.
Further, when the electronic device receives a second input of the user to the video group, the electronic device can respond to the second input and play the first video and the second video based on the generation time of the first video and the second video.
It can be understood that different definition videos are respectively recorded in different video files, a plurality of videos are obtained after the definition is switched in the recording process and finally recorded, the videos are time-ordered, the information such as the serial number of each video and the duration of each video is recorded, and when the videos need to be played, the videos can be played according to the generation time of each video in order, so that the playing of the complete videos is realized.
According to the embodiment of the application, under the condition that the second input to the video group is received, the first video and the second video are played according to the generation time of the first video and the second video, so that the complete playing process of the recorded video is realized, in the playing process, the first video and the second video can be displayed according to different definition, and the viewing process of the complete video is realized.
For example, fig. 2 shows one of interface diagrams of the video processing method according to the embodiment of the present application, as shown in fig. 2, a user operates an electronic device 200, the electronic device displays a definition switch 202, the user selects a normal definition recording, and at the same time, the electronic device 200 starts recording streams corresponding to three definitions of normal, standard definition and super definition, and records video based on the recording stream corresponding to the normal definition. After the user finds the wonderful content after recording for a period of time, the user operates the definition switch 202 again to adjust the definition to be super-definition, at this time, the electronic device 200 records the video based on the recording stream corresponding to the super-definition, after the wonderful content is finished, the user operates the definition switch 202 again, switches to the common gear, and continues recording until the user finishes recording. Further, fig. 3 shows a second interface schematic diagram of the video processing method in the embodiment of the present application, as shown in fig. 3, three videos are generated in total at this time, and the three videos are associated to form a video group and are displayed on a display screen of the electronic device 200 in a form of a thumbnail icon 300, at this time, the thumbnail icon 300 can be clicked to view and play the group of videos, in the playing process, the previous section is a video with normal definition, in the middle is a video with super-definition, in the middle is a video with normal definition, in the whole playing process, the three videos are automatically linked and played, and the user does not need to manually operate. Further, fig. 4 shows a third interface schematic diagram of the video processing method in the embodiment of the present application, as shown in fig. 4, when a user plays a video group, the playing progress may also be displayed under the display screen in a manner of a video frame thumbnail 400, and the user may slide the video frame thumbnail 400 to adjust the playing progress of the video.
In some embodiments of the present application, after associating the first video with the second video to generate the video group, the processing method further includes:
associating the first video with the second video, and after generating the video group, the processing method further comprises:
displaying a plurality of definition identifiers in the thumbnail icons of the video group;
receiving a third input for any sharpness indication;
in response to the third input, the first video or the second video corresponding to the sharpness identification is played.
In this embodiment, after the video group is generated, a plurality of sharpness identifications may also be displayed in the thumbnail icon of the video group, that is, sharpness identifications of the first video and the second video are displayed in the thumbnail chart of the video group. Further, a third input of the arbitrary definition identifier may be received, so that the electronic device may play the first video or the second video corresponding to the definition identifier corresponding to the third input.
For example, fig. 3 shows a second interface schematic diagram of the video processing method according to the embodiment of the present application, as shown in fig. 3, three videos are generated in total at this time, and the three videos are associated to form a video group and are displayed on a display screen of the electronic device 200 in the form of a thumbnail icon 300, at this time, three definition identifiers are displayed in the thumbnail icon 300, and a user may click on one of the definition identifiers, so that the electronic device can play a video corresponding to the definition identifier selected by the user.
According to the method and the device for displaying the first video or the second video, the plurality of definition identifiers are displayed in the thumbnail icons of the video group, so that a user can input the third definition identifier to any one, the electronic device can respond to the third input, and the first video or the second video corresponding to the definition identifier can be played, so that the user can view videos with different definitions conveniently.
In a specific embodiment, fig. 5 shows a block flow diagram of a video processing method according to an embodiment of the present application, fig. 6 shows a second block flow diagram of the video processing method according to an embodiment of the present application, and as shown in fig. 5 and fig. 6, a user records a video through an electronic device, where a video recording apparatus of the electronic device includes a control unit, a sharpness converter, and a file correlator. The specific recording process is as follows:
step 602, starting recording;
specifically, during the recording process, the user may click a start recording button displayed on the display screen of the electronic device to start video recording, and view the video preview through the display screen of the electronic device.
Step 604, starting the recording stream with all definition;
step 606, creating a video file;
step 608, determining whether the user switches the definition in the recording process, if so, entering step 610, and if not, continuing recording;
Specifically, when the user switches the definition, the definition converter of the video recording device converts the definition in the recording process, that is, switches to the recording stream corresponding to the current definition to write the video frame data.
Step 610, writing video content information into the video file in the recording stream corresponding to the current definition;
specifically, different definitions correspond to different recording streams, and when the definition is switched, the recording streams are simultaneously switched, so that the corresponding recording streams are written with video content information in the current definition.
Step 612, the user clicks to end the recording;
step 614, determining whether a plurality of video files exist, if so, proceeding to step 616, otherwise proceeding to step 620;
step 616, associating a plurality of video files;
step 618, merging the plurality of video files into a video group;
step 620, the user clicks to view the video.
In some embodiments of the present application, a video processing apparatus is provided, fig. 7 shows a block diagram of a video processing apparatus 700 according to an embodiment of the present application, and as shown in fig. 7, the video processing apparatus 700 includes:
a recording unit 702, configured to start a plurality of recording streams, and record a first video based on a first recording stream corresponding to a first definition, where the plurality of recording streams include the first recording stream, and each recording stream corresponds to one definition;
The recording unit 702 is further configured to stop recording the first video and record a second video based on a second recording stream corresponding to a second definition if the definition switching condition is satisfied.
In the embodiment of the application, a plurality of recording streams are simultaneously opened in the process of recording video. And then recording the video according to the first recording stream corresponding to the first definition. In the recording process of the first video, as the plurality of recording streams are all in an open state, when the recording process meets the definition switching condition, the current first recording stream can be directly switched to the second recording stream corresponding to the second definition to record the second video, thereby realizing that the recording process is not required to be interrupted when the definition is switched, and realizing that the definition is switched in the recording process.
In some embodiments of the present application, the recording unit is specifically configured to:
stopping recording the first video when an input for switching the first definition to the second definition is received;
and recording the second video based on the second recording stream corresponding to the second definition.
According to the method and the device, whether the recording process meets the definition switching condition is determined according to the received input that the user switches the first definition into the second definition. Namely, under the condition that the definition switching input of the user is received, recording of the first video is stopped, the second definition is determined according to the definition switching input, and then the second video is recorded according to a second recording stream corresponding to the second definition, so that definition switching in the recording process is completed.
In some embodiments of the present application, the recording unit is specifically configured to:
stopping recording the first video under the condition that a first object appears in the recording picture;
determining a second definition according to the first object;
and recording a second video based on a second recording stream corresponding to the second definition.
According to the method and the device for determining the definition switching conditions, whether the definition switching conditions are met or not is determined according to the shooting objects in the recording picture, namely, the definition switching conditions are determined to be met under the condition that the first object appears in the recording picture, so that the second definition is determined according to the first object, and further, the second video is recorded based on the second recording stream corresponding to the second definition, and the definition switching is completed.
In some embodiments of the present application, the video processing apparatus further includes:
the receiving unit is used for receiving a first input;
the recording unit is further used for stopping recording the second video in response to the first input;
the video processing device further comprises an association unit for associating the first video with the second video to generate a video group.
According to the embodiment of the application, according to the first input of the user, the electronic equipment can respond to the first input to complete video recording. Because the recorded definition is switched in the recording process, at least the first video and the second video are generated, and the first video and the second video are integrated videos, after the video is recorded, the first video and the second video can be associated, so that a video group is generated, and the video group can represent an integrated video, so that a user can conveniently view the recorded video.
In some embodiments of the present application, the receiving unit is further configured to receive a second input to the video group;
the video processing apparatus further includes a playback unit that plays back the first video and the second video based on generation times of the first video and the second video in response to the second input.
According to the embodiment of the application, under the condition that the second input to the video group is received, the first video and the second video are played according to the generation time of the first video and the second video, so that the complete playing process of the recorded video is realized, in the playing process, the first video and the second video can be displayed according to different definition, and the viewing process of the complete video is realized.
In some embodiments of the present application, the video processing apparatus further includes a display unit configured to display a plurality of sharpness identifications in thumbnail icons of the video group;
the receiving unit is further configured to receive a third input for any one of the sharpness identifiers;
the playing unit of the video processing device is further configured to respond to the third input, and play the first video or the second video corresponding to the definition identifier.
According to the method and the device for displaying the first video or the second video, the plurality of definition identifiers are displayed in the thumbnail icons of the video group, so that a user can input the third definition identifier to any one, the electronic device can respond to the third input, and the first video or the second video corresponding to the definition identifier can be played, so that the user can view videos with different definitions conveniently.
The video processing device in the embodiment of the application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The video processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The video processing device provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and in order to avoid repetition, details are not repeated here.
Optionally, an electronic device is further provided in the embodiments of the present application, fig. 8 shows a block diagram of a structure of the electronic device in the embodiments of the present application, as shown in fig. 8, where, the electronic device 800 includes a processor 802, a memory 804, and a program or an instruction stored in the memory 804 and capable of running on the processor 802, where the program or the instruction is executed by the processor 802 to implement each process of the foregoing method embodiments, and the same technical effects are achieved, and are not repeated herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 9 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 900 includes, but is not limited to: radio frequency unit 901, network module 902, audio output unit 903, input unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, and processor 910.
Those skilled in the art will appreciate that the electronic device 900 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 910 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 910 is configured to receive a first input; determining a first definition in response to a first input, and starting a plurality of recording streams, wherein each recording stream corresponds to one definition; recording a first video based on a first recording stream corresponding to the first definition; and under the condition that the definition switching condition is met, stopping recording the first video, and recording the second video based on a second recording stream corresponding to the second definition.
In the embodiment of the application, when the first input is received, a plurality of recording streams are started at the same time. And then determining a first definition according to the first input, and starting to record the video based on a first recording stream corresponding to the first definition. In the recording process of the first video, as the plurality of recording streams are all in an open state, when the recording process meets the definition switching condition, the current first recording stream can be directly switched to the second recording stream corresponding to the second definition to record the second video, thereby realizing that the recording process is not required to be interrupted when the definition is switched, and realizing that the definition is switched in the recording process.
Optionally, the processor 910 is further configured to stop recording the first video if a sharpness switch input of the user is received; determining a second definition according to the definition switching input; and recording a second video based on a second recording stream corresponding to the second definition.
According to the embodiment of the application, whether the recording process meets the definition switching condition is determined according to the received definition switching input of the user. Namely, under the condition that the definition switching input of the user is received, recording of the first video is stopped, the second definition is determined according to the definition switching input, and then the second video is recorded according to a second recording stream corresponding to the second definition, so that definition switching in the recording process is completed.
Optionally, the processor 910 is further configured to stop recording the first video if the first object appears in the recording screen; determining a second definition according to the first object; and recording a second video based on a second recording stream corresponding to the second definition.
According to the method and the device for determining the definition switching conditions, whether the definition switching conditions are met or not is determined according to the shooting objects in the recording picture, namely, the definition switching conditions are determined to be met under the condition that the first object appears in the recording picture, so that the second definition is determined according to the first object, and further, the second video is recorded based on the second recording stream corresponding to the second definition, and the definition switching is completed.
Optionally, in the case that the sharpness switching condition is satisfied, stopping recording the first video, and after recording the second video based on the second recording stream corresponding to the second sharpness, the processor 910 is further configured to receive a second input; stopping recording the second video in response to the second input; and associating the first video with the second video to generate a video group.
According to the embodiment of the application, according to the second input of the user, the electronic equipment can respond to the second input to complete video recording. Because the recorded definition is switched in the recording process, at least the first video and the second video are generated, and the first video and the second video are integrated videos, after the video is recorded, the first video and the second video can be associated, so that a video group is generated, and the video group can represent an integrated video, so that a user can conveniently view the recorded video.
Optionally, associating the first video with the second video, and after generating the video group, the processor 910 is further configured to receive a second input to the video group; in response to the second input, the first video and the second video are played based on the generation times of the first video and the second video.
According to the embodiment of the application, under the condition that the second input to the video group is received, the first video and the second video are played according to the generation time of the first video and the second video, so that the complete playing process of the recorded video is realized, in the playing process, the first video and the second video can be displayed according to different definition, and the viewing process of the complete video is realized.
It should be appreciated that in embodiments of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, with the graphics processor 9041 processing image data of still images or video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. Touch panel 9071, also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 909 may include a volatile memory or a nonvolatile memory, or the memory 909 may include both volatile and nonvolatile memories. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 909 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 910.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, the processes of the above method embodiment are realized, the same technical effects can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a readable storage medium, where the program product is executed by at least one processor to implement the respective processes of the above method embodiments, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a readable storage medium (such as ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A video processing method, comprising:
starting a plurality of recording streams, recording a first video based on a first recording stream corresponding to a first definition, wherein the plurality of recording streams comprise the first recording stream, and each recording stream corresponds to one definition;
and under the condition that the definition switching condition is met, stopping recording the first video, and recording a second video based on a second recording stream corresponding to the second definition.
2. The method according to claim 1, wherein stopping recording the first video when the sharpness switching condition is satisfied, recording a second video based on a second recording stream corresponding to a second sharpness, comprises:
stopping recording the first video when an input for switching the first definition to the second definition is received;
and recording the second video based on the second recording stream corresponding to the second definition.
3. The method according to claim 1, wherein stopping recording the first video when the sharpness switching condition is satisfied, recording a second video based on a second recording stream corresponding to a second sharpness, comprises:
Stopping recording the first video under the condition that a first object appears in the recording picture;
determining a second definition according to the first object;
and recording the second video based on the second recording stream corresponding to the second definition.
4. The video processing method according to any one of claims 1 to 3, wherein after recording the second video based on the second recording stream corresponding to the second definition, the processing method further comprises:
receiving a first input;
stopping recording the second video in response to the first input;
and associating the first video with the second video to generate a video group.
5. The video processing method of claim 4, wherein after the associating the first video with the second video to generate a video group, the processing method further comprises:
receiving a second input to the video group;
in response to the second input, playing the first video and the second video based on generation times of the first video and the second video.
6. The video processing method of claim 4, wherein after the associating the first video with the second video to generate a video group, the processing method further comprises:
Displaying a plurality of definition identifiers in the thumbnail icons of the video group;
receiving a third input for any one of the sharpness identifiers;
and responding to the third input, and playing the first video or the second video corresponding to the definition identifier.
7. A video processing apparatus, comprising:
the recording unit is used for starting a plurality of recording streams, recording a first video based on a first recording stream corresponding to a first definition, wherein the plurality of recording streams comprise the first recording stream, and each recording stream corresponds to one definition;
the recording unit is further configured to stop recording the first video and record a second video based on a second recording stream corresponding to the second definition when the definition switching condition is satisfied.
8. The video processing apparatus according to claim 7, wherein the video processing apparatus further comprises:
a receiving unit for receiving a first input;
the recording unit is further configured to stop recording the second video in response to the first input;
the video processing device further comprises a correlation unit, which is used for correlating the first video with the second video to generate a video group.
9. An electronic device comprising a processor and a memory storing a program or input executable on the processor, which when executed by the processor, performs the steps of the method of any of claims 1 to 6.
10. A readable storage medium, characterized in that it stores thereon a program or an input, which when executed by a processor, implements the steps of the method according to any of claims 1 to 6.
CN202311574774.0A 2023-11-23 2023-11-23 Video processing method, video processing device, electronic apparatus, and storage medium Pending CN117395460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311574774.0A CN117395460A (en) 2023-11-23 2023-11-23 Video processing method, video processing device, electronic apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311574774.0A CN117395460A (en) 2023-11-23 2023-11-23 Video processing method, video processing device, electronic apparatus, and storage medium

Publications (1)

Publication Number Publication Date
CN117395460A true CN117395460A (en) 2024-01-12

Family

ID=89441115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311574774.0A Pending CN117395460A (en) 2023-11-23 2023-11-23 Video processing method, video processing device, electronic apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN117395460A (en)

Similar Documents

Publication Publication Date Title
CN108900902B (en) Method, device, terminal equipment and storage medium for determining video background music
CN112437353B (en) Video processing method, video processing device, electronic apparatus, and readable storage medium
US11545188B2 (en) Video processing method, video playing method, devices and storage medium
CN111095939A (en) Identifying previously streamed portions of a media item to avoid repeated playback
WO2023030270A1 (en) Audio/video processing method and apparatus and electronic device
CN112887794B (en) Video editing method and device
CN112711368B (en) Operation guidance method and device and electronic equipment
WO2024104113A1 (en) Screen capture method, screen capture apparatus, electronic device, and readable storage medium
CN114025237B (en) Video generation method and device and electronic equipment
WO2023011300A1 (en) Method and apparatus for recording facial expression of video viewer
CN115550741A (en) Video management method and device, electronic equipment and readable storage medium
CN117395460A (en) Video processing method, video processing device, electronic apparatus, and storage medium
CN115002551A (en) Video playing method and device, electronic equipment and medium
CN112399238A (en) Video playing method and device and electronic equipment
CN113726953B (en) Display content acquisition method and device
CN116389665A (en) Video recording method and device, electronic equipment and readable storage medium
CN117676256A (en) Video playing method and device, electronic equipment and readable storage medium
CN115174812A (en) Video generation method, video generation device and electronic equipment
CN115793920A (en) Screenshot method and screenshot device
CN115631109A (en) Image processing method, image processing device and electronic equipment
CN116320140A (en) Image processing method and processing device
CN117648144A (en) Image processing method, device, electronic equipment and readable storage medium
CN117640819A (en) Image display method and device, electronic equipment and readable storage medium
CN117729382A (en) Video playing method and device, electronic equipment and storage medium
CN117608459A (en) Screenshot method, screenshot device, screenshot equipment and screenshot medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination