[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110786020A - Video processing method and device and computer readable storage medium - Google Patents

Video processing method and device and computer readable storage medium Download PDF

Info

Publication number
CN110786020A
CN110786020A CN201880041188.0A CN201880041188A CN110786020A CN 110786020 A CN110786020 A CN 110786020A CN 201880041188 A CN201880041188 A CN 201880041188A CN 110786020 A CN110786020 A CN 110786020A
Authority
CN
China
Prior art keywords
video
dragging
editor
video information
time period
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
CN201880041188.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.)
Dajiang Mutual Entertainment Technology Beijing Co Ltd
Shenzhen Dajiang Innovations Technology Co Ltd
Original Assignee
Dajiang Mutual Entertainment Technology Beijing Co Ltd
Shenzhen Dajiang Innovations Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dajiang Mutual Entertainment Technology Beijing Co Ltd, Shenzhen Dajiang Innovations Technology Co Ltd filed Critical Dajiang Mutual Entertainment Technology Beijing Co Ltd
Publication of CN110786020A publication Critical patent/CN110786020A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8193Monomedia components thereof involving executable data, e.g. software dedicated tools, e.g. video decoder software or IPMP tool
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a video processing method, a video processing device and a computer readable storage medium, wherein the method comprises the following steps: acquiring a trigger operation of dragging a video editor by a user; determining video information to be processed after dragging according to triggering operation, wherein the video information comprises a plurality of video sequence frames; and adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation. According to the video processing method, the video processing device and the computer readable storage medium, the triggering operation of dragging the video editor by the user is obtained, and then the video information needing to be processed after dragging can be determined according to the triggering operation, so that the user can accurately select the video clip according to the requirement, and the thumbnail of the video sequence frame in the video information displayed in the video editor can be adjusted according to the triggering operation, so that the user can visually check the change information of the video sequence frame, and the quality and the efficiency of man-machine interaction are improved.

Description

Video processing method and device and computer readable storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for processing a video, and a computer-readable storage medium.
Background
With the continuous progress of scientific technology, the intelligent terminal is more and more widely used, and the types of application programs APP suitable for the terminal are more and more, wherein the APP for editing videos is one of the commonly used APPs.
Currently, for most video editing APPs, including: in the video display area and the progress adjustment area, a user can select a displayed video picture by adjusting the position of the progress adjustment area, however, when the user uses the video editing APP, the user cannot accurately select some segments in the video picture, and the use requirements of the user cannot be met.
Disclosure of Invention
The invention provides a video processing method and device and a computer readable storage medium, which are used for solving the problems that in the prior art, when a video editing APP is used, some segments in a video picture cannot be accurately selected, and the use requirements of users cannot be met.
The first aspect of the present invention is to provide a video processing method, including:
acquiring a trigger operation of dragging a video editor by a user;
determining video information needing to be processed after dragging according to the triggering operation, wherein the video information comprises a plurality of video sequence frames;
and adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation.
A second aspect of the present invention is to provide a video processing apparatus, including:
a memory for storing a computer program;
a processor for executing the computer program stored in the memory to implement: acquiring a trigger operation of dragging a video editor by a user; determining video information needing to be processed after dragging according to the triggering operation, wherein the video information comprises a plurality of video sequence frames; and adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation.
A third aspect of the present invention is to provide a video processing apparatus, including:
the acquisition module is used for acquiring the trigger operation of dragging the video editor by a user;
the determining module is used for determining the video information needing to be processed after dragging according to the triggering operation, and the video information comprises a plurality of video sequence frames;
and the processing module is used for adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation.
A fourth aspect of the present invention is to provide a computer-readable storage medium having stored therein program instructions for implementing the video processing method according to the first aspect.
According to the video processing method, the video processing device and the computer readable storage medium, the triggering operation of dragging the video editor by the user is obtained, and then the video information to be processed after dragging can be determined according to the triggering operation, so that the user can accurately select the video clip according to the requirement, and the thumbnail of the video sequence frame in the video information displayed in the video editor can be adjusted according to the triggering operation, so that the user can visually check the change information of the video sequence frame, the quality and the efficiency of man-machine interaction are improved, the practicability of the processing method is further ensured, and the popularization and the application of the market are facilitated.
Drawings
Fig. 1 is a schematic flowchart of a video processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a process of determining video information to be processed after dragging according to the triggering operation according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of determining a playing time period after dragging according to the trigger operation according to the embodiment of the present invention;
fig. 4 is a schematic flowchart of adjusting a thumbnail of a video sequence frame in the video information displayed in the video editor according to the triggering operation according to the embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating a process of acquiring a trigger operation of a user dragging a video editor according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a video processing method according to another embodiment of the present invention;
fig. 7 is a schematic flowchart of decoding the image data by using a preset decoding manner according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another video processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below may be combined with each other without conflict between the embodiments.
Fig. 1 is a schematic flowchart of a video processing method according to an embodiment of the present invention; referring to fig. 1, the present embodiment provides a video processing method, which can implement accurate selection of video information through human-computer interaction, and includes:
s101: acquiring a trigger operation of dragging a video editor by a user;
the video editor may be located around the video to be processed, for example: the video editor may be a bar-shaped edit box or an edit box of other shapes, and is not limited herein, and is used for editing a video to be processed, and the editing mode may include at least one of the following: the method comprises the following steps of intercepting and splicing the video to be processed, adjusting the picture, zooming, adjusting the speed, adjusting the playing sequence and the like. In addition, when the user drags the video editor, one side or two side edges of the video editor can be dragged, at the moment, the edges of the video editor can move under the dragging operation of the user, and therefore the triggering operation of dragging the video editor by the user can be detected and acquired.
S102: determining video information to be processed after dragging according to triggering operation, wherein the video information comprises a plurality of video sequence frames;
the user may process the video information or the video clip that is required or interested by the trigger operation selection, and the video information that needs to be processed may specifically be: the video information that needs to be edited or the video information that needs to be played may be at least a portion of an original video, that is, after a trigger operation that a user drags a video editor is acquired, the video information that needs to be processed determined according to the trigger operation may be the entire original video, or the video information that needs to be processed determined according to the trigger operation may be a portion of the original video.
S103: and adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation.
It should be noted that the thumbnail may be some unspecified images in a plurality of video sequence frames in the video information, but not images of each frame in the video information, for example: the thumbnail may be an image of a plurality of intra-coded frames (I-frames), or the thumbnail may be an image of a plurality of key frames, or the thumbnail may be a preset representative image, or the like.
After the trigger operation of the user dragging the video editor is obtained, the thumbnails displayed in the video editor can be adjusted according to the trigger operation, specifically, the number, the display size, the display scale, and the like of the thumbnails displayed in the video editor can be adjusted, and a person skilled in the art can adjust the thumbnails displayed in the video editor according to specific design requirements, which is not described herein again.
According to the video processing method provided by the embodiment, the triggering operation of the user for dragging the video editor is obtained, and then the video information to be processed after dragging can be determined according to the triggering operation, so that the user can accurately select the video clip according to the requirement, and the thumbnail of the video sequence frame in the video information displayed in the video editor can be adjusted according to the triggering operation, so that the user can visually check the change information of the video sequence frame, the quality and the efficiency of man-machine interaction are improved, the practicability of the processing method is further ensured, and the popularization and the application of the market are facilitated.
Fig. 2 is a schematic flowchart of a process of determining video information to be processed after dragging according to a trigger operation according to an embodiment of the present invention; fig. 3 is a schematic flowchart of determining a playing time period after dragging according to a trigger operation according to an embodiment of the present invention; on the basis of the foregoing embodiment, with reference to fig. 2 to 3, it can be seen that, in this embodiment, a specific implementation manner of determining the video information to be processed after being dragged according to the trigger operation is not limited, and a person skilled in the art may set the video information according to a specific design requirement, and preferably, determining the video information to be processed after being dragged according to the trigger operation may include:
s1021: determining the playing time period after dragging according to the triggering operation;
determining the playing time period after the dragging according to the triggering operation may include:
s10211: determining the playing start time and the playing end time after dragging according to the triggering operation;
after the trigger operation is acquired, determining the playing start time and the playing end time after dragging according to the trigger operation, wherein the playing start time can be a preset initial time or any one preset intermediate time, and the playing end time can be a preset end time or any one preset intermediate time; for example: the initial time corresponding to the existing original video is 0: 00; the corresponding end time is 1:30, then after the user drags the video editor, the play start time may be 0:00, or may be any time between 0:00 and 1:30, for example: 0:15, 0:30, or 1: 15; the playing end time may be 1:30, or may be any time between 0:00 and 1:30, for example: 0:45, 0:50, or 1: 15.
S10212: a time period between the play end time and the play start time is determined as a play time period.
In this embodiment, the playing time period is less than or equal to a preset standard playing time, and the standard playing time is a time required to process a complete video including video information. Further, the determined playing time period may be greater than or equal to a preset time period threshold, and the time period threshold may be set according to specific design requirements, for example: the time period threshold value can be 0.3s, 0.5s, 1s or other self-defined numerical values and the like, so that the condition of misoperation of a user can be effectively prevented, and the accuracy and reliability of video information selection are further ensured.
S1022: and determining the video information according to the playing time period.
The video information includes a plurality of video sequence frames and time information corresponding to each video sequence frame, so that the video information corresponding to the playing time period can be determined according to the playing time period, that is, the video information selected by the user is determined.
The APP including the video editor can play the video information according to the video information selected by the user, and can also preview the video information.
The video information is obtained in the above mode, so that the accuracy and reliability of the video information determination are effectively ensured, and the accuracy degree of the method is further improved.
FIG. 4 is a flowchart illustrating adjusting a thumbnail of a video sequence frame in video information displayed in a video editor according to a triggering operation according to an embodiment of the present invention; as can be seen from fig. 4, the adjusting of the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation in the embodiment may include:
s1031: if the playing time period is prolonged relative to the historical playing time, the number of thumbnails of video sequence frames in the video information displayed in the video editor is increased; or,
s1032: if the playback time period is shortened relative to the historical playback time, the number of thumbnails displaying video sequence frames in the video information in the video editor is reduced.
The historical playing time is the time before the user drags the video editor, and the historical playing time can be less than or equal to the preset standard playing time, and the standard playing time is the time required to process the complete video including the video information.
For example, the historical playing time corresponding to a certain video is T1, at this time, the number of thumbnails displayed in the video editor is N1, after the user drags the video editor, it is possible to determine certain video information in the video and the playing time period T2 corresponding to the video information, at this time, the number of thumbnails displayed in the video editor is N2, and if T2> T1, N2> N1, that is, when the playing time period is extended with respect to the historical playing time, the number of thumbnails of video sequence frames displayed in the video editor is increased. Alternatively, if T2< T1, then N2< N1, i.e., the playback time period is shortened relative to the historical playback time, the number of thumbnails of video sequence frames displayed in the video editor may be reduced. If T2 is T1, N2 is N1, and when the playback time period is equal to the historical playback time, it is described that the playback time at this time has not changed, and therefore, the number of thumbnails of video sequence frames displayed in the video editor has not changed. In general, the number of thumbnails located in the video sequence frames displayed in the video editor is in a preset ratio to the time in the playback period.
It is to be understood that, after determining the play time period after dragging according to the triggering operation, the method further includes:
s201: if the playing time period is prolonged relative to the historical playing time, the number of thumbnails of video sequence frames in the video information displayed outside the video editor is reduced; or,
s202: if the playback time period is shortened relative to the historical playback time, the number of thumbnails of video sequence frames in the video information displayed outside the video editor increases.
Following the above description, for example, the historical playing time corresponding to a certain video is T1, the number of thumbnails displayed in the video editor is N3, and after the user drags the video editor, the video information in the video and the playing time period T2 corresponding to the video information may be determined, at this time, the number of thumbnails displayed in the video editor is N4, and if T2> T1, N4< N3, that is, the playing time period is extended with respect to the historical playing time, and the number of thumbnails of video sequence frames displayed outside the video editor is reduced. If T2< T1, N4> N3, that is, the playback period is shortened with respect to the historical playback time, the number of thumbnails of video sequence frames displayed outside the video editor increases. If T2 is T1, N4 is N3, and when the playback time period is equal to the historical playback time, it indicates that the playback time at that time has not changed, and therefore, the number of thumbnails of video sequence frames displayed in and outside the video editor does not change.
It is understood that, when adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation, the size and/or display scale of the thumbnail displayed in the video editor may also be adjusted according to the triggering operation, for example: if the playing time period is prolonged relative to the historical playing time, the size/display proportion of the thumbnail of the video sequence frame in the video information displayed in the video editor is reduced; alternatively, if the playback time period is shortened with respect to the historical playback time, the size/display ratio of the thumbnail of the video sequence frame in the video information displayed in the video editor becomes large. Those skilled in the art can determine a specific implementation manner according to specific design requirements, as long as the thumbnail displayed in the video editor can be adjusted according to the trigger operation, which is not described herein again.
Fig. 5 is a schematic flowchart illustrating a process of acquiring a trigger operation of a user dragging a video editor according to an embodiment of the present invention; on the basis of the foregoing embodiment, with reference to fig. 5, when the user performs the dragging operation on the video editor, the specific implementation manner of the trigger operation acquisition in this embodiment is not limited, and those skilled in the art may set the trigger operation according to specific design requirements, and preferably, the trigger operation of acquiring the user dragging the video editor in this embodiment may include:
s1011: acquiring a first trigger operation of dragging a first adjusting area of a video editor by a user; and/or the presence of a gas in the gas,
s1012: and acquiring a second trigger operation of dragging a second adjusting area positioned in the video editor by the user, wherein the second adjusting area and the first adjusting area are positioned at two sides of the video editor.
For example, the video editor is located at the upper end or the lower end of the video to be processed, and the video editor is a strip-shaped editing frame capable of editing, where the editing may be an editing operation in which a user drags the video editor left and right, at this time, the first adjustment area and the second adjustment area may be located on the left and right sides of the video editor respectively, and the user may drag the first adjustment area, so that the first adjustment area may move left and right, and the first trigger operation may be acquired; similarly, the second adjustment area may also move left and right according to the dragging operation of the user, and then the second trigger operation may be obtained.
In order to improve the display effect of the human-computer interaction, the method may further include:
s201: when the user drags the first adjustment area, the first adjustment area can move according to the dragging track of the user and restore to the preset initial position after the dragging is finished.
For example, the initial position of the first adjustment region is L1, when the user drags the first adjustment region, the first adjustment region may move according to the dragging operation of the user, and when the position where the dragging operation of the user ends is L2, the first adjustment region may be restored from the position L2 to the position L1 after the dragging operation of the user ends, thereby achieving the effect that the first adjustment region has a rebound effect when the user ends the dragging operation, and further improving the display effect of human-computer interaction.
Similarly, the method further comprises:
s301: when the user drags the second adjustment area, the second adjustment area can move according to the dragging track of the user and restore to the preset initial position after the dragging is finished.
Similar to the implementation process of step S201, the description is omitted here.
In order to further improve the practicability of the method, the method in this embodiment may further include:
s401: displaying, with a video editor, time information corresponding to the video information, the time information including at least one of: a playing time period, a playing start time, and a playing end time.
The playing time period can be displayed through the middle area of the video editor, the playing start time can be displayed through one side (left side or right side) of the video editor, and the playing end time can be displayed through the other side (right side or left side) of the video editor to be distinguished from the playing start time.
In addition, when the video editor can display the playing time period, the playing start time and the playing end time, the playing time period displayed in the video editor can be changed in real time according to the triggering operation of dragging the video editor by a user, the playing start time displayed in the video editor can be changed in real time according to the triggering operation of dragging the first adjusting area on one side (for example, the left side) of the video editor by the user, and the playing end time displayed in the video editor can be changed in real time according to the triggering operation of dragging the second adjusting area on the other side (for example, the right side) of the video editor by the user; it can be understood that, when the user does not have a trigger operation on the first adjustment region or the second adjustment region, the play start time and the play end time corresponding to the first adjustment region or the second adjustment region do not change.
The time information corresponding to the video information is displayed by using the video editor, so that a user can intuitively acquire the time information related to video processing when the video is processed, and the convenience degree of the method is further improved.
Fig. 6 is a flowchart illustrating a video processing method according to another embodiment of the present invention; fig. 7 is a schematic flowchart illustrating a process of decoding image data by using a preset decoding manner according to an embodiment of the present invention; on the basis of the foregoing embodiment, with continued reference to fig. 6 to 7, in this embodiment, after determining the video information to be processed after dragging according to the trigger operation, the method further includes:
s501: acquiring image data corresponding to the video information;
s502: and decoding the image data by using a preset decoding mode to obtain a plurality of video sequence frames in the video information.
The preset decoding mode comprises a hard decoding mode and/or a soft decoding mode.
Specifically, decoding the image data by using a preset decoding manner may include:
s5021: decoding the video data by using a hard decoding mode;
s5022: if the video data can not be decoded by using the hard decoding mode, the video data is decoded by using the soft decoding mode.
The hard decoding (also referred to as hardware decoding) mode is a mode of decoding a video (high-definition video) by using a video acceleration function of a video card, the soft decoding (also referred to as software decoding) mode is a mode of decoding a video (high-definition video) by using a central processing unit CPU, and the API Media metadata receiver is taken as a hard decoding mode, and FFPG is taken as a soft decoding mode for example, first, decoding operation is performed on video data by using the hard decoding API Media receiver to realize API extraction on a video sequence frame; if the extraction is not available, the decoding operation is carried out on the video data through the soft decoding of the FFPG so as to realize the API extraction of the video sequence frame.
Further, after obtaining a plurality of frames of a video sequence in the video information, the method further comprises:
s601: a plurality of frames of a video sequence are buffered.
In order to improve efficiency, a preset LRU (least recent used) algorithm may be used to cache the extracted picture, where the LRU algorithm is a page replacement algorithm for memory management, and specifically, the extracted picture may be cached in a preset memory or a mobile phone disk.
In addition, for example, to optimize the performance, the whole extraction process of the video sequence frames may be cached in a predetermined memory or on a mobile phone disk.
The video sequence frames are extracted through the method, and can be cached, so that the use efficiency of the method is effectively ensured, and the accuracy and reliability of the use of the method are further improved.
Fig. 8 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present invention; as can be seen from fig. 8, the present embodiment provides a video processing apparatus, including:
a memory 201 for storing a computer program;
a processor 202 for executing the computer program stored in the memory 201 to implement: acquiring a trigger operation of dragging a video editor by a user; determining video information to be processed after dragging according to triggering operation, wherein the video information comprises a plurality of video sequence frames; and adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation.
Further, when the processor 202 determines that the video information needs to be processed after being dragged according to the triggering operation, the processor 202 is configured to: determining the playing time period after dragging according to the triggering operation; and determining the video information according to the playing time period.
Wherein, when the processor 202 determines the playing time period after the dragging according to the trigger operation, the processor 202 is configured to: determining the playing start time and the playing end time after dragging according to the triggering operation; a time period between the play end time and the play start time is determined as a play time period.
Further, when the processor 202 adjusts the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation, the processor 202 is configured to:
if the playing time period is prolonged relative to the historical playing time, the number of thumbnails of video sequence frames in the video information displayed in the video editor is increased; alternatively, if the playback time period is shortened relative to the historical playback time, the number of thumbnails showing video sequence frames in the video information in the video editor is reduced.
After the processor 202 determines the post-dragging play time period according to the trigger operation, the processor 202 is configured to: if the playing time period is prolonged relative to the historical playing time, the number of thumbnails of video sequence frames in the video information displayed outside the video editor is reduced; alternatively, if the playback time period is shortened relative to the historical playback time, the number of thumbnails of video sequence frames in the video information displayed outside the video editor increases.
The playing time period and the historical playing time are both less than or equal to preset standard playing time, and the standard playing time is the time required to process the complete video including the video information.
Further, when the processor 202 obtains a trigger operation of the user dragging the video editor, the processor 202 is configured to: acquiring a first trigger operation of dragging a first adjusting area of a video editor by a user; and/or acquiring a second trigger operation of dragging a second adjusting area positioned in the video editor by a user, wherein the second adjusting area and the first adjusting area are positioned at two sides of the video editor.
Wherein the processor 202 is configured to: when the user drags the first adjustment area, the first adjustment area can move according to the dragging track of the user and restore to the preset initial position after the dragging is finished.
Further, the processor 202 is configured to: when the user drags the second adjustment area, the second adjustment area can move according to the dragging track of the user and restore to the preset initial position after the dragging is finished.
Further, the processor 202 is configured to: displaying, with a video editor, time information corresponding to the video information, the time information including at least one of: a playing time period, a playing start time, and a playing end time.
Further, after the processor 202 determines that the video information needs to be processed after being dragged according to the triggering operation, the processor 202 is configured to: acquiring image data corresponding to the video information; and decoding the image data by using a preset decoding mode to obtain a plurality of video sequence frames in the video information.
The preset decoding mode comprises a hard decoding mode and/or a soft decoding mode.
In addition, when the processor 202 decodes the image data using a preset decoding manner, the processor 202 is configured to: decoding the video data by using a hard decoding mode; if the video data can not be decoded by using the hard decoding mode, the video data is decoded by using the soft decoding mode.
Further, after the processor 202 obtains the plurality of video sequence frames in the video information, the processor 202 is configured to: a plurality of frames of a video sequence are buffered.
The video processing apparatus in this embodiment may be configured to execute the technical solutions of the embodiments shown in fig. 1 to 7 in the above methods, and the implementation principles and technical effects are similar, and are not described herein again.
Fig. 9 is a schematic structural diagram of another video processing apparatus according to an embodiment of the present invention, and referring to fig. 9, the embodiment provides another video processing apparatus including:
the acquisition module 1 is used for acquiring the trigger operation of dragging the video editor by a user;
the determining module 2 is configured to determine, according to the trigger operation, video information to be processed after dragging, where the video information includes a plurality of video sequence frames;
and the processing module 3 is used for adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation.
The obtaining module 1, the determining module 2 and the processing module 3 in the image encoding control device in this embodiment may be used to execute the technical solutions of the embodiments shown in fig. 1 to 7 in the above methods, and the implementation principles and technical effects thereof are similar and will not be described herein again.
Another aspect of the present embodiment provides a computer-readable storage medium, in which program instructions are stored, the program instructions being used for implementing the video processing method in any one of the above embodiments.
The technical solutions and the technical features in the above embodiments may be used alone or in combination in case of conflict with the present disclosure, and all embodiments that fall within the scope of protection of the present disclosure are intended to be equivalent embodiments as long as they do not exceed the scope of recognition of those skilled in the art.
In the embodiments provided in the present invention, it should be understood that the disclosed related devices and methods can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (29)

1. A method for processing video, comprising:
acquiring a trigger operation of dragging a video editor by a user;
determining video information needing to be processed after dragging according to the triggering operation, wherein the video information comprises a plurality of video sequence frames;
and adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation.
2. The method according to claim 1, wherein determining the video information to be processed after dragging according to the triggering operation comprises:
determining the playing time period after dragging according to the triggering operation;
and determining the video information according to the playing time period.
3. The method according to claim 2, wherein determining the playing time period after dragging according to the triggering operation comprises:
determining the playing start time and the playing end time after dragging according to the triggering operation;
determining a time period between the play end time and the play start time as the play time period.
4. The method of claim 2, wherein adjusting thumbnails of video sequence frames in the video information displayed in the video editor in accordance with the triggering operation comprises:
if the playing time period is prolonged relative to the historical playing time, the number of thumbnails of video sequence frames in the video information displayed in the video editor is increased; or,
and if the playing time period is shortened relative to the historical playing time, the number of the thumbnails of the video sequence frames in the video information displayed in the video editor is reduced.
5. The method according to claim 2, wherein after determining the dragged playback time period according to the trigger operation, the method further comprises:
if the playing time period is prolonged relative to the historical playing time, the number of thumbnails of video sequence frames in the video information displayed outside the video editor is reduced; or,
if the playing time period is shortened relative to the historical playing time, the number of thumbnails displaying the video sequence frames in the video information outside the video editor is increased.
6. The method according to claim 4, wherein the playing time period and the historical playing time are both less than or equal to a preset standard playing time, and the standard playing time is a time required for processing a complete video including the video information.
7. The method of claim 1, wherein obtaining a trigger operation of a user dragging a video editor comprises:
acquiring a first trigger operation of a user dragging a first adjusting area positioned in the video editor; and/or the presence of a gas in the gas,
and acquiring a second trigger operation of dragging a second adjusting area positioned in the video editor by a user, wherein the second adjusting area and the first adjusting area are positioned at two sides of the video editor.
8. The method of claim 7, further comprising:
when the user drags the first adjustment area, the first adjustment area can move according to the dragging track of the user and restore to the preset initial position after dragging is finished.
9. The method of claim 7, further comprising:
when the user drags the second adjustment area, the second adjustment area can move according to the dragging track of the user and restore to the preset initial position after dragging is finished.
10. The method according to any one of claims 1-9, further comprising:
displaying, with the video editor, time information corresponding to the video information, the time information including at least one of: a playing time period, a playing start time, and a playing end time.
11. The method according to any one of claims 1 to 9, wherein after determining the video information to be processed after dragging according to the triggering operation, the method further comprises:
acquiring image data corresponding to the video information;
and decoding the image data by using a preset decoding mode to obtain a plurality of video sequence frames in the video information.
12. The method according to claim 11, wherein the predetermined decoding scheme comprises a hard decoding scheme and/or a soft decoding scheme.
13. The method according to claim 12, wherein decoding the image data using a predetermined decoding scheme comprises:
decoding the video data by using the hard decoding mode;
and if the video data cannot be decoded by the hard decoding mode, decoding the video data by the soft decoding mode.
14. The method of claim 11, wherein after obtaining the plurality of video sequence frames in the video information, the method further comprises:
buffering the plurality of video sequence frames.
15. An apparatus for processing video, comprising:
a memory for storing a computer program;
a processor for executing the computer program stored in the memory to implement: acquiring a trigger operation of dragging a video editor by a user; determining video information needing to be processed after dragging according to the triggering operation, wherein the video information comprises a plurality of video sequence frames; and adjusting the thumbnail of the video sequence frame in the video information displayed in the video editor according to the triggering operation.
16. The apparatus according to claim 15, wherein when the processor determines that the video information needs to be processed after being dragged according to the trigger operation, the processor is configured to:
determining the playing time period after dragging according to the triggering operation;
and determining the video information according to the playing time period.
17. The apparatus of claim 16, wherein when the processor determines the dragged playback time period according to the trigger operation, the processor is configured to:
determining the playing start time and the playing end time after dragging according to the triggering operation;
determining a time period between the play end time and the play start time as the play time period.
18. The apparatus of claim 16, wherein when the processor adjusts thumbnails of video sequence frames in the video information displayed in the video editor according to the trigger operation, the processor is configured to:
if the playing time period is prolonged relative to the historical playing time, the number of thumbnails of video sequence frames in the video information displayed in the video editor is increased; or,
and if the playing time period is shortened relative to the historical playing time, the number of the thumbnails of the video sequence frames in the video information displayed in the video editor is reduced.
19. The apparatus of claim 16, wherein after the processor determines the dragged playback time period according to the triggering operation, the processor is configured to:
if the playing time period is prolonged relative to the historical playing time, the number of thumbnails of video sequence frames in the video information displayed outside the video editor is reduced; or,
if the playing time period is shortened relative to the historical playing time, the number of thumbnails displaying the video sequence frames in the video information outside the video editor is increased.
20. The apparatus according to claim 18, wherein the playing time period and the historical playing time are both less than or equal to a preset standard playing time, and the standard playing time is a time required for processing a complete video including the video information.
21. The apparatus according to claim 15, wherein when the processor obtains a trigger operation of a user dragging a video editor, the processor is configured to:
acquiring a first trigger operation of a user dragging a first adjusting area positioned in the video editor; and/or the presence of a gas in the gas,
and acquiring a second trigger operation of dragging a second adjusting area positioned in the video editor by a user, wherein the second adjusting area and the first adjusting area are positioned at two sides of the video editor.
22. The apparatus of claim 21, wherein the processor is configured to:
when the user drags the first adjustment area, the first adjustment area can move according to the dragging track of the user and restore to the preset initial position after dragging is finished.
23. The apparatus of claim 21, wherein the processor is configured to:
when the user drags the second adjustment area, the second adjustment area can move according to the dragging track of the user and restore to the preset initial position after dragging is finished.
24. The apparatus according to any of claims 15-23, wherein the processor is configured to:
displaying, with the video editor, time information corresponding to the video information, the time information including at least one of: a playing time period, a playing start time, and a playing end time.
25. The apparatus according to any one of claims 15-23, wherein after the processor determines that the video information needs to be processed after being dragged according to the triggering operation, the processor is configured to:
acquiring image data corresponding to the video information;
and decoding the image data by using a preset decoding mode to obtain a plurality of video sequence frames in the video information.
26. The apparatus of claim 25, wherein the predetermined decoding scheme comprises a hard decoding scheme and/or a soft decoding scheme.
27. The apparatus of claim 26, wherein when the processor decodes the image data using a preset decoding scheme, the processor is configured to:
decoding the video data by using the hard decoding mode;
and if the video data cannot be decoded by the hard decoding mode, decoding the video data by the soft decoding mode.
28. The apparatus of claim 25, wherein after the processor obtains a plurality of video sequence frames in the video information, the processor is configured to:
buffering the plurality of video sequence frames.
29. A computer-readable storage medium, characterized in that program instructions for implementing the method of processing a video according to any one of claims 1 to 14 are stored in the computer-readable storage medium.
CN201880041188.0A 2018-08-01 2018-08-01 Video processing method and device and computer readable storage medium Pending CN110786020A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/098149 WO2020024197A1 (en) 2018-08-01 2018-08-01 Video processing method and apparatus, and computer readable medium

Publications (1)

Publication Number Publication Date
CN110786020A true CN110786020A (en) 2020-02-11

Family

ID=69231304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880041188.0A Pending CN110786020A (en) 2018-08-01 2018-08-01 Video processing method and device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN110786020A (en)
WO (1) WO2020024197A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540713A (en) * 2020-11-13 2021-03-23 广州市百果园网络科技有限公司 Video preview progress bar scaling method, system, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101032164A (en) * 2004-09-30 2007-09-05 索尼株式会社 Moving picture data edition device and moving picture data edition method
CN101552898A (en) * 2008-03-31 2009-10-07 Lg电子株式会社 Methods and device for reproducing images
CN104380380A (en) * 2012-06-08 2015-02-25 Lg电子株式会社 Video editing method and digital device therefor
CN104813399A (en) * 2012-11-05 2015-07-29 奈斯瑞明株式会社 Method for editing motion picture, terminal for same and recording medium
CN108156407A (en) * 2017-12-13 2018-06-12 深圳市金立通信设备有限公司 A kind of video clipping method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8276074B2 (en) * 2008-05-15 2012-09-25 Apple Inc. User interfaces for editing video clips
KR20100028344A (en) * 2008-09-04 2010-03-12 삼성전자주식회사 Method and apparatus for editing image of portable terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101032164A (en) * 2004-09-30 2007-09-05 索尼株式会社 Moving picture data edition device and moving picture data edition method
CN101552898A (en) * 2008-03-31 2009-10-07 Lg电子株式会社 Methods and device for reproducing images
CN104380380A (en) * 2012-06-08 2015-02-25 Lg电子株式会社 Video editing method and digital device therefor
CN104813399A (en) * 2012-11-05 2015-07-29 奈斯瑞明株式会社 Method for editing motion picture, terminal for same and recording medium
CN108156407A (en) * 2017-12-13 2018-06-12 深圳市金立通信设备有限公司 A kind of video clipping method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540713A (en) * 2020-11-13 2021-03-23 广州市百果园网络科技有限公司 Video preview progress bar scaling method, system, device and storage medium
CN112540713B (en) * 2020-11-13 2022-09-23 广州市百果园网络科技有限公司 Video preview progress bar scaling method, system, device and storage medium

Also Published As

Publication number Publication date
WO2020024197A1 (en) 2020-02-06

Similar Documents

Publication Publication Date Title
CN112291627B (en) Video editing method and device, mobile terminal and storage medium
CN109936763B (en) Video processing and publishing method
US9275604B2 (en) Constant speed display method of mobile device
US9473548B1 (en) Latency reduction in streamed content consumption
US10313712B2 (en) Method, device, and server for producing video frame set
EP3080980B1 (en) Handling video frames compromised by camera motion
US20140344751A1 (en) Image Processing Method and Terminal Device
CN112929728A (en) Video rendering method, device and system, electronic equipment and storage medium
KR102147633B1 (en) Method and apparatus for decoding variable length coded files
CN106470353B (en) Multimedia data processing method and device and electronic equipment
EP4057633B1 (en) Video processing method and apparatus, and terminal device
CN115883899B (en) Image on-screen playing method and system, electronic equipment and readable storage medium
US20170163555A1 (en) Video file buffering method and system
CN110786020A (en) Video processing method and device and computer readable storage medium
US20200092444A1 (en) Playback method, playback device and computer-readable storage medium
CN109327713B (en) Method and device for generating media information
CN112118473B (en) Video bullet screen display method and device, computer equipment and readable storage medium
US20160142456A1 (en) Method and Device for Acquiring Media File
WO2014200539A1 (en) Remultiplexing bitstreams of encoded video for video playback
WO2023083064A1 (en) Video processing method and apparatus, electronic device, and readable storage medium
WO2018196530A1 (en) Video information processing method, terminal, and computer storage medium
CN113038218B (en) Video screenshot method, device, equipment and readable storage medium
CN108111900B (en) Playing speed control method and device
CN105791908A (en) Method and device for obtaining video key frames
CN105573921A (en) File storage method and device

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

Application publication date: 20200211