CN112243086A - Video image capturing method and device, storage medium and mobile terminal - Google Patents

Video image capturing method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112243086A
CN112243086A CN202011102212.2A CN202011102212A CN112243086A CN 112243086 A CN112243086 A CN 112243086A CN 202011102212 A CN202011102212 A CN 202011102212A CN 112243086 A CN112243086 A CN 112243086A
Authority
CN
China
Prior art keywords
video
playing progress
target
picture
screen
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
CN202011102212.2A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011102212.2A priority Critical patent/CN112243086A/en
Publication of CN112243086A publication Critical patent/CN112243086A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a video image capturing method, a video image capturing device, a storage medium and a mobile terminal, wherein the method comprises the following steps: detecting whether a screen capture instruction is received or not when a video is played; when the screen capturing instruction is received, acquiring the current target playing progress of the video; and determining a target picture from the video source file according to the target playing progress, and taking the target picture as an intercepting picture corresponding to the screen intercepting instruction. The corresponding picture is determined from the video source file according to the current playing progress of the video playing when the screen capturing instruction is obtained, the original picture of the video is directly captured, the influence of different systems is avoided, and the quality of the captured picture is improved.

Description

Video image capturing method and device, storage medium and mobile terminal
Technical Field
The application relates to the field of communication, in particular to a video picture capturing method, a video picture capturing device, a storage medium and a mobile terminal.
Background
In recent years, mobile terminals such as mobile phones and tablet computers are increasingly popular with users due to their portability, and users can play videos such as movies and television shows through the mobile terminals, but when a user wants to capture a certain picture in the videos, the user can only pause the playing of the video and trigger a physical key of the mobile terminal to capture the screen. However, the quality information such as the resolution of the captured picture is determined by the system, and the quality of the pictures obtained by different systems is not uniform, so that the original picture of the video cannot be captured.
Disclosure of Invention
The embodiment of the application provides a video image capturing method, which can directly capture the original image of a video without being influenced by different systems, and improve the quality of the captured image.
The embodiment of the application provides a video image capturing method, which comprises the following steps:
detecting whether a screen capture instruction is received or not when a video is played;
when the screen capturing instruction is received, acquiring the current target playing progress of the video;
and determining a target picture from the video source file according to the target playing progress, and taking the target picture as an intercepting picture corresponding to the screen intercepting instruction.
An embodiment of the present application further provides a video image capturing apparatus, including:
the detection unit is used for detecting whether a screen capture instruction is received or not when the video is played;
the acquisition unit is used for acquiring the current target playing progress of the video when the screen capturing instruction is received;
and the determining unit is used for determining a target picture from the video source file according to the target playing progress and taking the target picture as an intercepted picture corresponding to the screen intercepting instruction.
The embodiment of the present application further provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is enabled to execute the video picture capturing method as described above.
The embodiment of the application further provides a mobile terminal, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the video picture capturing method by calling the computer program stored in the memory.
The video image capturing method provided by the embodiment of the application comprises the following steps: detecting whether a screen capture instruction is received or not when a video is played; when the screen capturing instruction is received, acquiring the current target playing progress of the video; and determining a target picture from the video source file according to the target playing progress, and taking the target picture as an intercepting picture corresponding to the screen intercepting instruction. The corresponding picture is determined from the video source file according to the current playing progress of the video playing when the screen capturing instruction is obtained, the original picture of the video is directly captured, the influence of different systems is avoided, and the quality of the captured picture is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart of a video frame capturing method according to an embodiment of the present disclosure.
Fig. 2a is a schematic flowchart of a second video frame capturing method according to an embodiment of the present disclosure.
Fig. 2b is a third flowchart of a video frame capturing method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a video picture capturing apparatus according to an embodiment of the present application.
Fig. 4 is a specific structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a video frame capturing method according to an embodiment of the present disclosure. The video picture intercepting method comprises the following steps:
step 101, detecting whether a screen capture instruction is received when a video is played.
Specifically, the screen capture instruction may be effective only when the mobile terminal plays the video, or may be effective when the mobile terminal is in other states such as screen-off state and screen-on state, which is not limited herein. The screen capture instruction can be realized by clicking one or more physical keys on the mobile terminal by a user or carrying out specific touch operation on the screen.
The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, and the like, and various application programs, such as applications with an entertainment function (e.g., a video application, a game application, and reading software) and applications with a service function (e.g., a map navigation application, a dining application, and the like), are stored in the mobile terminal.
And 102, acquiring the current target playing progress of the video when a screen capturing instruction is received.
Specifically, when a screen capture instruction of a user is detected and received, the current playing progress of the video is obtained, for example, the total screen viewing time is 45 minutes, and when the user triggers the screen capture instruction in 36 minutes, 10 seconds and 150 milliseconds, the current target playing progress of the video is 36 minutes, 10 seconds and 150 milliseconds. The API interface may also be called to obtain the target playing progress of the current video through the MediaPlayer type getCurrentPosition function, and if the target playing progress is 6 minutes, 10 seconds and 150 milliseconds, the returned number is: 370150 milliseconds.
The screen capturing instruction is implemented by sliding on the screen, and in order to determine whether the user captures the screen by sliding, a preset distance threshold value may be set, and when the sliding operation of the user reaches the preset distance threshold value, the screen capturing instruction is triggered. Therefore, when the video is played, the screen capture instruction is detected, and the screen capture instruction comprises the following steps:
when the video is played, if a sliding operation is detected and the sliding distance from the starting point to the end point of the sliding operation reaches a preset distance threshold, triggering the screen capturing instruction.
How to detect the sliding distance from the starting point to the ending point of the sliding operation of the user can be calculated by acquiring the coordinate values of the starting point of the screen clicked for the first time when the user carries out the sliding operation and the ending point of the screen separated by the finger and calculating the sliding distance of the sliding operation according to the coordinate values of the starting point and the ending point.
If the screen capture instruction is a sliding operation, the playing progress corresponding to the starting point of the sliding operation to the playing progress corresponding to the ending point can be determined as the target playing progress, so that the situation that when the screen capture instruction is triggered, the picture to be captured by the user is played completely and the playing progress corresponding to the picture to be captured by the user cannot be obtained due to the fact that the user may slide slowly is avoided. Therefore, obtaining the current target playing progress of the video may include:
acquiring a first playing progress corresponding to the starting point of the sliding operation;
acquiring a second playing progress corresponding to the termination point of the sliding operation;
and determining each playing progress from the first playing progress, the second playing progress and the first playing progress to the second playing progress as a target playing progress.
And 103, determining a target picture from the video source file according to the target playing progress, and taking the target picture as an intercepted picture corresponding to the screen intercepting instruction.
Specifically, after the corresponding target playing progress is obtained when the screen capture instruction is received, a video picture corresponding to the target playing progress needs to be determined from the video source file. An API interface may be called to obtain a picture corresponding to the target play progress through a getframeattattime function of the mediametadatagateway class. The video is composed of a plurality of video frames, each playing progress corresponds to one video frame, therefore, the video can be subjected to framing processing to obtain the video frame for each playing progress, and then the corresponding video frame is determined according to the obtained target playing progress. Therefore, determining a target picture from the video source file according to the target playing progress comprises:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
and determining the video frame with the playing progress corresponding to the target playing progress as a target picture.
The user may slide slowly, so that when the screen capture instruction is triggered, the picture to be captured by the user is played completely. Therefore, the target playing progress and the video frame corresponding to each playing progress within a certain time before the target playing progress can be determined as the target pictures, and then the user selects the pictures to be captured from the pictures. Determining a target picture based on the target playing progress and the plurality of video frames, and may further include:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
acquiring a first video frame corresponding to a target playing progress;
acquiring a second video frame corresponding to each playing progress in a preset time period before the target playing progress;
and determining the first video frame and the second video frame as target pictures.
If the screen capture instruction is a sliding operation, the video frames corresponding to the first playing progress, the second playing progress and each of the first playing progress to the second playing progress in step 102 may be determined as the target pictures. Therefore, determining a target picture from the video source file according to the target playing progress may further include:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
and determining the video frames corresponding to each playing progress from the first playing progress, the second playing progress and each playing progress from the first playing progress to the second playing progress as the target pictures.
Specifically, since the picture directly obtained from the video source file is generally in the bitmap format, the picture in the format occupies a large storage space, and the picture in the JPG format is beneficial to storage and transmission. Therefore, a format conversion condition can be set, when the occupied capacity of the target picture is larger than the preset capacity of the storage space, the picture is subjected to format conversion, and the target picture after the format conversion is used as a capture picture corresponding to the screen capture instruction. Therefore, taking the target picture as the capture picture corresponding to the screen capture instruction may include:
judging whether the capacity occupied by the target picture is larger than the preset capacity of a storage space or not;
and if the capacity occupied by the target picture is larger than the preset capacity of a storage space, converting the file format of the target picture, and storing the target picture after the file format conversion in the storage space as an intercepting picture corresponding to the screen intercepting instruction.
The format conversion can be realized by converting the incoming Bitmap-format picture into a JPG-format picture through a Bitmap-like compression function by the API interface, but is not limited to this format conversion.
The video picture capturing method provided by the embodiment of the application comprises the following steps: detecting whether a screen capture instruction is received or not when a video is played; when the screen capturing instruction is received, acquiring the current target playing progress of the video; and determining a target picture from the video source file according to the target playing progress, and taking the target picture as an intercepting picture corresponding to the screen intercepting instruction. The corresponding picture is determined from the video source file according to the current playing progress of the video playing when the screen capturing instruction is obtained, the original picture of the video is directly captured, the influence of different systems is avoided, and the quality of the captured picture is improved.
In some embodiments, there is provided a video picture capturing method as shown in fig. 2a, the video picture capturing method comprising:
step 201, detecting whether a screen capture instruction is received when a video is played.
Specifically, the screen capture instruction may be effective only when the mobile terminal plays the video, or may be effective when the mobile terminal is in other states such as screen-off state and screen-on state, which is not limited herein. The screen capture instruction can be realized by clicking one or more physical keys on the mobile terminal by a user or carrying out specific touch operation on the screen.
The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, and the like, and various application programs, such as applications with an entertainment function (e.g., a video application, a game application, and reading software) and applications with a service function (e.g., a map navigation application, a dining application, and the like), are stored in the mobile terminal.
Step 202, when a screen capture instruction is received, acquiring the current target playing progress of the video.
Specifically, when a screen capture instruction of a user is detected and received, the current playing progress of the video is obtained, for example, the total screen viewing time is 45 minutes, and when the user triggers the screen capture instruction in 36 minutes, 10 seconds and 150 milliseconds, the current target playing progress of the video is 36 minutes, 10 seconds and 150 milliseconds. The API interface may also be called to obtain the target playing progress of the current video through the MediaPlayer type getCurrentPosition function, and if the target playing progress is 6 minutes, 10 seconds and 150 milliseconds, the returned number is: 370150 milliseconds.
Step 203, performing framing processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress.
Specifically, after the corresponding target playing progress is obtained when the screen capture instruction is received, a video picture corresponding to the target playing progress needs to be determined from the video source file. An API interface may be called to obtain a picture corresponding to the target play progress through a getframeattattime function of the mediametadatagateway class. The video is composed of a plurality of video frames, and each playing progress corresponds to one video frame, so that the video can be subjected to framing processing to obtain the video frame used by each playing progress.
And step 204, determining the video frame with the playing progress corresponding to the target playing progress as a target picture.
Determining the corresponding video frame according to the target playing progress acquired in step 203
And step 205, acquiring a first video frame corresponding to the target playing progress.
The user may slide slowly, so that when the screen capture instruction is triggered, the picture to be captured by the user is played completely. Therefore, the target playing progress and the video frame corresponding to each playing progress within a certain time before the target playing progress can be determined as the target pictures, and then the user selects the pictures to be captured from the pictures.
And step 206, acquiring a second video frame corresponding to each playing progress in a preset time period before the target playing progress.
The preset time period may be 2s or other time period, which is not limited herein.
And step 207, determining the first video frame and the second video frame as target pictures.
And step 208, judging whether the occupied capacity of the target picture is larger than the preset capacity of the storage space.
Specifically, since the picture directly obtained from the video source file is generally in the bitmap format, the picture in the format occupies a large storage space, and the picture in the JPG format is beneficial to storage and transmission. Therefore, a format conversion condition can be set, when the occupied capacity of the target picture is larger than the preset capacity of the storage space, the picture is subjected to format conversion, and the target picture after the format conversion is used as a capture picture corresponding to the screen capture instruction.
And 209, if the occupied capacity of the target picture is larger than the preset capacity of the storage space, converting the file format of the target picture, and storing the target picture after the file format conversion in the storage space.
In some embodiments, as shown in fig. 2b, there is provided a video picture capturing method, including:
step 301, detecting whether a screen capture instruction is received when the video is played.
This step is the same as step 201, and is not described herein.
Step 302, when the video is played, if the sliding operation is detected and the sliding distance from the starting point to the end point of the sliding operation reaches a preset distance threshold, triggering a screen capture instruction.
The screen capturing instruction is implemented by sliding on the screen, and in order to determine whether the user captures the screen by sliding, a preset distance threshold value may be set, and when the sliding operation of the user reaches the preset distance threshold value, the screen capturing instruction is triggered.
And step 303, acquiring a first playing progress corresponding to the starting point of the sliding operation.
And step 304, acquiring a second playing progress corresponding to the termination point of the sliding operation.
Step 305, determining each of the first playing progress, the second playing progress and the first to second playing progress as a target playing progress.
If the screen capture instruction is a sliding operation, the playing progress corresponding to the starting point of the sliding operation to the playing progress corresponding to the ending point can be determined as the target playing progress, so that the situation that when the screen capture instruction is triggered, the picture to be captured by the user is played completely and the playing progress corresponding to the picture to be captured by the user cannot be obtained due to the fact that the user may slide slowly is avoided.
And step 306, performing framing processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress.
This step is the same as step 203 and will not be described again.
And 307, determining the first playing progress, the second playing progress and a video frame corresponding to each playing progress from the first playing progress to the second playing progress as a target picture.
The user may slide slowly, so that when the screen capture instruction is triggered, the picture to be captured by the user is played completely. Therefore, the target playing progress and the video frame corresponding to each playing progress within a certain time before the target playing progress can be determined as the target pictures, and then the user selects the pictures to be captured from the pictures.
And 308, judging whether the capacity occupied by the target picture is larger than the preset capacity of the storage space.
Step 309, if the occupied capacity of the target picture is larger than the preset capacity of the storage space, converting the file format of the target picture, and storing the target picture after the file format conversion in the storage space.
Step 308 and step 309 are the same as step 208 and step 209, respectively, and are not described in detail.
The video picture capturing method provided by the embodiment of the application comprises the following steps: detecting whether a screen capture instruction is received or not when a video is played; when the screen capturing instruction is received, acquiring the current target playing progress of the video; and determining a target picture from the video source file according to the target playing progress, and taking the target picture as an intercepting picture corresponding to the screen intercepting instruction. The corresponding picture is determined from the video source file according to the current playing progress of the video playing when the screen capturing instruction is obtained, the original picture of the video is directly captured, the influence of different systems is avoided, and the quality of the captured picture is improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a video frame capture device according to an embodiment of the present disclosure. The video picture intercepting apparatus includes: a detection unit 31, an acquisition unit 32, and a determination unit 33.
The detection unit 31 is configured to detect whether a screen capture instruction is received when the video is played.
Specifically, the screen capture instruction may be effective only when the mobile terminal plays the video, or may be effective when the mobile terminal is in other states such as screen-off state and screen-on state, which is not limited herein. The screen capture instruction can be realized by clicking one or more physical keys on the mobile terminal by a user or carrying out specific touch operation on the screen.
The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, and the like, and various application programs, such as applications with an entertainment function (e.g., a video application, a game application, and reading software) and applications with a service function (e.g., a map navigation application, a dining application, and the like), are stored in the mobile terminal.
The obtaining unit 32 is configured to obtain a current target playing progress of the video when the screen capture instruction is received.
Specifically, when a screen capture instruction of a user is detected and received, the current playing progress of the video is obtained, for example, the total screen viewing time is 45 minutes, and when the user triggers the screen capture instruction in 36 minutes, 10 seconds and 150 milliseconds, the current target playing progress of the video is 36 minutes, 10 seconds and 150 milliseconds. The API interface may also be called to obtain the target playing progress of the current video through the MediaPlayer type getCurrentPosition function, and if the target playing progress is 6 minutes, 10 seconds and 150 milliseconds, the returned number is: 370150 milliseconds.
The screen capturing instruction is implemented by sliding on the screen, and in order to determine whether the user captures the screen by sliding, a preset distance threshold value may be set, and when the sliding operation of the user reaches the preset distance threshold value, the screen capturing instruction is triggered.
The determining unit 33 is configured to determine a target picture from the video source file according to the target playing progress, and use the target picture as an intercepting picture corresponding to the screen intercepting instruction.
Specifically, after the corresponding target playing progress is obtained when the screen capture instruction is received, a video picture corresponding to the target playing progress needs to be determined from the video source file. An API interface may be called to obtain a picture corresponding to the target play progress through a getframeattattime function of the mediametadatagateway class. The video is composed of a plurality of video frames, each playing progress corresponds to one video frame, therefore, the video can be subjected to framing processing to obtain the video frame for each playing progress, and then the corresponding video frame is determined according to the obtained target playing progress.
In some embodiments, the determining unit 33 is further configured to:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
and determining the video frame with the playing progress corresponding to the target playing progress as a target picture.
In some embodiments, the determining unit 33 is further configured to:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
acquiring a first video frame corresponding to a target playing progress;
acquiring a second video frame corresponding to each playing progress in a preset time period before the target playing progress;
and determining the first video frame and the second video frame as target pictures.
In some embodiments, the obtaining unit 32 is further configured to:
when the video is played, if a sliding operation is detected and the sliding distance from the starting point to the end point of the sliding operation reaches a preset distance threshold, triggering the screen capturing instruction.
In some embodiments, the obtaining unit 32 is further configured to:
acquiring a first playing progress corresponding to the starting point of the sliding operation;
acquiring a second playing progress corresponding to the termination point of the sliding operation;
and determining each playing progress from the first playing progress, the second playing progress and the first playing progress to the second playing progress as a target playing progress.
In some embodiments, the determining unit 33 is further configured to:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
and determining the video frames corresponding to each playing progress from the first playing progress, the second playing progress and each playing progress from the first playing progress to the second playing progress as the target pictures.
In some embodiments, the determining unit 33 is further configured to:
judging whether the capacity occupied by the target picture is larger than the preset capacity of a storage space or not;
and if the capacity occupied by the target picture is larger than the preset capacity of a storage space, converting the file format of the target picture, and storing the target picture after the file format conversion in the storage space as an intercepting picture corresponding to the screen intercepting instruction.
Based on the above method, the present invention further provides a storage medium having a plurality of instructions stored thereon, wherein the instructions are suitable for being loaded by a processor and executing the video picture capturing method as described above.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Fig. 4 is a specific block diagram of a terminal according to an embodiment of the present invention, where the terminal may be used to implement the video picture capturing method, the storage medium, and the terminal provided in the foregoing embodiments.
As shown in fig. 4, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 4 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with a second device over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the video image capturing method, apparatus, storage medium and mobile terminal in the foregoing embodiments, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, that is, implements the function of mutual chip identification. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or a second non-volatile solid-state memory. In some examples, memory 120 may be a storage medium as described above.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and further, the touch-sensitive surface 131 may cover the display panel 141. The display interface of the mobile terminal in the above embodiment may be represented by the display unit 140, that is, the display content captured by the display video screen may be displayed by the display unit 140.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and a second sensor. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As for the second sensor such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, the detailed description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which can help a user send and receive e-mails, browse web pages, access streaming media, etc., provides the user with wireless broadband internet access through the transmission module 170.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Specifically, the processor 180 includes: an Arithmetic Logic Unit (ALU), an application processor, a Global Positioning System (GPS) and a control and status Bus (Bus) (not shown).
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system in some embodiments to provide management of power, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a re-power system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
detecting whether a screen capture instruction is received or not when a video is played;
when the screen capturing instruction is received, acquiring the current target playing progress of the video;
and determining a target picture from the video source file according to the target playing progress, and taking the target picture as an intercepting picture corresponding to the screen intercepting instruction.
In some embodiments, in determining a target picture from the video source file according to the target playback progress, processor 380 may further execute instructions to:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
and determining the video frame with the playing progress corresponding to the target playing progress as a target picture.
In some embodiments, in determining a target picture from the video source file according to the target playback progress, processor 380 may further execute instructions to:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
acquiring a first video frame corresponding to a target playing progress;
acquiring a second video frame corresponding to each playing progress in a preset time period before the target playing progress;
and determining the first video frame and the second video frame as target pictures.
In some embodiments, upon detecting the screen capture instruction while playing the video, processor 380 may further execute the instructions to:
when the video is played, if a sliding operation is detected and the sliding distance from the starting point to the end point of the sliding operation reaches a preset distance threshold, triggering the screen capturing instruction.
In some embodiments, in obtaining the current target playing progress of the video, the processor 380 may further execute the following instructions:
acquiring a first playing progress corresponding to the starting point of the sliding operation;
acquiring a second playing progress corresponding to the termination point of the sliding operation;
and determining each playing progress from the first playing progress, the second playing progress and the first playing progress to the second playing progress as a target playing progress.
In some embodiments, in determining a target picture from the video source file according to the target playback progress, processor 380 may further execute instructions to:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
and determining the video frames corresponding to each playing progress from the first playing progress, the second playing progress and each playing progress from the first playing progress to the second playing progress as the target pictures.
In some embodiments, when the target picture is taken as the screenshot corresponding to the screenshot instruction, the processor 380 may further execute the following instructions:
judging whether the capacity occupied by the target picture is larger than the preset capacity of a storage space or not;
and if the capacity occupied by the target picture is larger than the preset capacity of a storage space, converting the file format of the target picture, and storing the target picture after the file format conversion in the storage space as an intercepting picture corresponding to the screen intercepting instruction.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The video image capturing method, the video image capturing device, the storage medium and the mobile terminal provided by the embodiment of the application are introduced in detail, a specific example is applied in the text to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A method for capturing a video frame, comprising:
detecting whether a screen capture instruction is received or not when a video is played;
when the screen capturing instruction is received, acquiring the current target playing progress of the video;
and determining a target picture from the video source file according to the target playing progress, and taking the target picture as an intercepting picture corresponding to the screen intercepting instruction.
2. The method for intercepting a video frame according to claim 1, wherein the determining a target picture from the video source file according to the target playing progress comprises:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
and determining the video frame with the playing progress corresponding to the target playing progress as a target picture.
3. The method for intercepting a video frame according to claim 1, wherein the determining a target picture from the video source file according to the target playing progress comprises:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
acquiring a first video frame corresponding to a target playing progress;
acquiring a second video frame corresponding to each playing progress in a preset time period before the target playing progress;
and determining the first video frame and the second video frame as target pictures.
4. The method according to claim 1, wherein the detecting a screen capture command when playing the video comprises:
when the video is played, if a sliding operation is detected and the sliding distance from the starting point to the end point of the sliding operation reaches a preset distance threshold, triggering the screen capturing instruction.
5. The method for capturing video image according to claim 4, wherein the obtaining of the current target playing progress of the video includes:
acquiring a first playing progress corresponding to the starting point of the sliding operation;
acquiring a second playing progress corresponding to the termination point of the sliding operation;
and determining each playing progress from the first playing progress, the second playing progress and the first playing progress to the second playing progress as a target playing progress.
6. The video image capturing method according to claim 5, wherein said determining a target picture from the video source file according to the target playing progress comprises:
performing frame division processing on the video to obtain a plurality of video frames, wherein each video frame corresponds to a playing progress;
and determining the video frames corresponding to each playing progress from the first playing progress, the second playing progress and each playing progress from the first playing progress to the second playing progress as the target pictures.
7. The method according to claim 1, wherein the taking the target picture as the captured picture corresponding to the screen capture instruction comprises:
judging whether the capacity occupied by the target picture is larger than the preset capacity of a storage space or not;
and if the capacity occupied by the target picture is larger than the preset capacity of a storage space, converting the file format of the target picture, and storing the target picture after the file format conversion in the storage space as an intercepting picture corresponding to the screen intercepting instruction.
8. A video picture capture apparatus, comprising:
the detection unit is used for detecting whether a screen capture instruction is received or not when the video is played;
the acquisition unit is used for acquiring the current target playing progress of the video when the screen capturing instruction is received;
and the determining unit is used for determining a target picture from the video source file according to the target playing progress and taking the target picture as an intercepted picture corresponding to the screen intercepting instruction.
9. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to execute the video picture capturing method according to any one of claims 1 to 7.
10. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the video picture capturing method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
CN202011102212.2A 2020-10-15 2020-10-15 Video image capturing method and device, storage medium and mobile terminal Pending CN112243086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011102212.2A CN112243086A (en) 2020-10-15 2020-10-15 Video image capturing method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011102212.2A CN112243086A (en) 2020-10-15 2020-10-15 Video image capturing method and device, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN112243086A true CN112243086A (en) 2021-01-19

Family

ID=74169238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011102212.2A Pending CN112243086A (en) 2020-10-15 2020-10-15 Video image capturing method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112243086A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828146A (en) * 2016-03-21 2016-08-03 乐视网信息技术(北京)股份有限公司 Video image interception method, terminal and server
CN106412708A (en) * 2016-10-21 2017-02-15 上海与德信息技术有限公司 Video screenshot method and video screenshot device
US20170280200A1 (en) * 2016-03-24 2017-09-28 Echostar Technologies L.L.C. Direct capture and sharing of screenshots from video programming
CN110062273A (en) * 2019-05-14 2019-07-26 维沃移动通信有限公司 The method and mobile terminal of screenshot
CN110636337A (en) * 2019-08-20 2019-12-31 腾讯科技(深圳)有限公司 Video image intercepting method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828146A (en) * 2016-03-21 2016-08-03 乐视网信息技术(北京)股份有限公司 Video image interception method, terminal and server
US20170280200A1 (en) * 2016-03-24 2017-09-28 Echostar Technologies L.L.C. Direct capture and sharing of screenshots from video programming
CN106412708A (en) * 2016-10-21 2017-02-15 上海与德信息技术有限公司 Video screenshot method and video screenshot device
CN110062273A (en) * 2019-05-14 2019-07-26 维沃移动通信有限公司 The method and mobile terminal of screenshot
CN110636337A (en) * 2019-08-20 2019-12-31 腾讯科技(深圳)有限公司 Video image intercepting method, device and system

Similar Documents

Publication Publication Date Title
WO2021093583A1 (en) Video stream processing method and apparatus, terminal device, and computer readable storage medium
US11363196B2 (en) Image selection method and related product
US10181203B2 (en) Method for processing image data and apparatus for the same
CN107241552B (en) Image acquisition method, device, storage medium and terminal
CN109240577B (en) Screen capturing method and terminal
CN111176602B (en) Picture display method and device, storage medium and intelligent device
CN109618218B (en) Video processing method and mobile terminal
CN106101764A (en) A kind of methods, devices and systems showing video data
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
CN111131612B (en) Screen color temperature control method and device, storage medium and mobile terminal
CN108259808B (en) Video frame compression method and mobile terminal
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN105513098B (en) Image processing method and device
CN111263216B (en) Video transmission method, device, storage medium and terminal
CN106454083B (en) Image acquisition method and device of mobile terminal and mobile terminal
CN111787228A (en) Shooting method, shooting device, storage medium and mobile terminal
CN111182153B (en) System language setting method and device, storage medium and mobile terminal
CN111343335B (en) Image display processing method, system, storage medium and mobile terminal
CN114510417A (en) Image rendering effect testing method and device, electronic equipment and storage medium
CN112243086A (en) Video image capturing method and device, storage medium and mobile terminal
CN108829600B (en) Method and device for testing algorithm library, storage medium and electronic equipment
CN111464829A (en) Method, device and equipment for switching media data and storage medium
CN110830723B (en) Shooting method, shooting device, storage medium and mobile terminal
CN111290672A (en) Image display method and device, storage medium and terminal
CN111601036B (en) Camera focusing method and device, storage medium and mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210119

RJ01 Rejection of invention patent application after publication