CN112584208A - Video browsing and editing method and system based on artificial intelligence - Google Patents

Video browsing and editing method and system based on artificial intelligence Download PDF

Info

Publication number
CN112584208A
CN112584208A CN202010990932.0A CN202010990932A CN112584208A CN 112584208 A CN112584208 A CN 112584208A CN 202010990932 A CN202010990932 A CN 202010990932A CN 112584208 A CN112584208 A CN 112584208A
Authority
CN
China
Prior art keywords
video file
application program
editing application
editing
video
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.)
Granted
Application number
CN202010990932.0A
Other languages
Chinese (zh)
Other versions
CN112584208B (en
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.)
Hebei Nengrui Technology Co ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202010990932.0A priority Critical patent/CN112584208B/en
Publication of CN112584208A publication Critical patent/CN112584208A/en
Application granted granted Critical
Publication of CN112584208B publication Critical patent/CN112584208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/47202End-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 requesting content on demand, e.g. video on demand
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • 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/439Processing of audio elementary streams
    • 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

Abstract

The invention provides a video browsing and editing method, a device, an electronic device and a computer readable storage medium based on artificial intelligence.A user firstly identifies the number and the type of application programs capable of opening a video file when opening the video file, and opens the video by using a default application program when the application programs capable of opening the video are only one type; the method comprises the steps that the number and the size of screens are identified when the application programs capable of opening the video are of various types, the video is opened by adopting the application programs of different types respectively, and the video is played in a multi-screen or split-screen mode; therefore, the opening and editing efficiency of different application programs of the same video is improved. In addition, the video opened by the application program can be automatically and synchronously played, so that the browsing efficiency of the user on the video is improved. Meanwhile, the editing and browsing of the video file can be automatically adapted to the current screen parameters, so that the screen utilization rate is maximized.

Description

Video browsing and editing method and system based on artificial intelligence
Technical Field
The present invention relates to the technical field of artificial intelligence and terminal video management, and in particular, to a video browsing and editing method and apparatus based on artificial intelligence.
Background
Currently, with the continuous rise of mobile internet and self-media, more and more users have more demands for video editing, and various video editing software is appeared, such as: 1. the bee clip provides rich and various characters, filters, transition, overlapping and animation special effects, and supports the functions of reverse playing, acceleration and deceleration, mosaic adding, local amplification, division, cutting, picture-in-picture and the like. 2. HitFilm, which supports the functions of creating 2D and 3D animations 410+ special effects and infinite transition, belongs to professional-level video editing software and is suitable for making movies. In addition, love clips, meeting sound and shadow and the like are provided.
However, when a user edits a video file through the video editing software, the user usually performs switching browsing between different versions of the video file before and after editing in the same editing software, so as to compare certain details of the video file before and after editing; therefore, the user repeatedly switches the edition versions of different video files and drags the specific position of the time axis of the video file to be searched, and the efficiency of editing and browsing the video file is greatly reduced. In addition, the user needs to manually copy and rename the browsed video files, so that the storage efficiency of the video files is low; thereby causing a problem of wasting operator time due to repetitive operations when editing and browsing a plurality of video files. Finally, the editing of the video file is not automatically adapted to the current screen parameters, so that the problem of low screen utilization efficiency exists. Therefore, a method for quickly opening, editing, browsing, and comparing different versions of the same video file before and after editing by using different application programs is yet to be proposed to improve the efficiency of editing and browsing the video file.
Disclosure of Invention
The invention provides a video browsing and editing method based on artificial intelligence, which comprises the following steps:
s1, acquiring the opening operation of a user on a first video file, and identifying an application program and a category which can open the first video file in a terminal;
s2, if the applications capable of opening the first video file are all non-editing applications or editing applications, opening the first video file by using default applications in the non-editing applications or default applications in the editing applications; if the applications that can open the first video file include a non-editing application and an editing application, performing step S3;
s3, identifying the screen number and the screen size of the terminal; if the number of the screens is multiple, opening the first video file on a first screen by using a first editing application program, and opening the first video file on a second screen by using a first non-editing application program;
s4, if the number of the screens is only one and the size of the screen is larger than or equal to a first size threshold, respectively opening the first video file by using a first editing application program and a first non-editing application program, and displaying the first video file opened by the first editing application program and the first video file opened by the first non-editing application program in a split screen manner;
s5, if the number of the screens is only one and the size of the screen is smaller than a first size threshold, opening the first video file by using a default application program in the non-editing application programs or a default application program in the editing application programs.
As a preferred embodiment, the step S3 or S4 further includes:
and if the user adjusts the playing progress of the first video file through the first editing application program/the first non-editing application program, synchronously adjusting the playing progress of the first video file by the first non-editing application program/the first editing application program so as to keep the synchronization of the playing progress of the first video file by the first editing application program and the first non-editing application program.
As a preferred embodiment, the method for maintaining synchronization of the playing progress of the first video file by the first editing application and the first non-editing application further includes:
acquiring screen positions of the first editing application program and the first non-editing application program, and establishing a corresponding relation between the first editing application program, the first non-editing application program and left and right sound channels of a loudspeaker according to the screen positions;
and respectively controlling the left and right sound channels of the loudspeaker by the first editing application program and the first non-editing application program according to the corresponding relation between the first editing application program, the first non-editing application program and the left and right sound channels of the loudspeaker.
In a preferred embodiment, the controlling the left and right channels of the speaker by the first editing application and the first non-editing application respectively further comprises:
acquiring a sound playing mode of the terminal, acquiring the position of a cursor if the sound playing mode is a loudspeaker playing mode, and controlling left and right sound channels of a loudspeaker by a first editing application program if an interface where the cursor is located is an interface where the first editing application program is located; if the interface where the cursor is located is the interface where the first non-editing application program is located, controlling left and right sound channels of the loudspeaker by the first non-editing application program;
and if the earphone playing mode is adopted, the left and right sound channels of the loudspeaker are respectively controlled by the first editing application program and the first non-editing application program.
As a preferred embodiment, the method for maintaining synchronization of the playing progress of the first video file by the first editing application and the first non-editing application further includes:
detecting whether a user carries out clipping operation on the first video file, if so, marking the position information of a video segment cut or inserted by the first video file, and acquiring the position of a cursor;
if the interface where the cursor is located is the interface where the first editing application program is located, when the clipped first video file is played to the clipping position, the first non-editing application program skips the clipped video segment and continues to play the first video file; when the clipped first video file is played to an insertion position, the first non-editing application program suspends playing of the first video file, wherein the suspension time length is the playing time length of an inserted video segment;
if the interface where the cursor is located is the interface where the first non-editing application program is located, when the first editing application program is played to the cutting position of the first video file, the playing of the first video file is paused, and the pause time length is the playing time length of the inserted video segment; and when the first editing application program is played to the insertion position of the first video file, skipping the inserted video segment and continuing to play the first video file.
As a preferred embodiment, the step S3 or S4 further includes:
acquiring the editing operation of a user on the first video file through the first editing application program, and after the user saves the edited first video file, automatically naming and saving a copy of the edited first video file;
the first non-editing application program obtains the saving operation and the saving path of the copy, and prompts the user whether to open the copy of the first video file on an interface of the first non-editing application program for opening the first video file; if so, the first non-editing application program closes the first video file and opens the copy; if not, the copy is not opened.
As a preferred embodiment, after automatically naming and saving the copy of the edited first video file, the method further includes:
if the user carries out editing operation on the second video file through the first editing application program, after the user saves the edited second video file, automatically naming the copy of the edited second video file, and creating an automatically named folder for saving the copy of the first video file and the copy of the second video file.
As a preferred embodiment, the method further comprises:
if the user performs closing operation on the first video file through the first editing application program, simultaneously performing closing operation on the first video file through the first non-editing application program;
and if the user performs closing operation on the first video file through the first non-editing application program, not closing the first non-editing application program and the first video file opened by the first non-editing application program.
The invention provides a video browsing and editing method based on artificial intelligence, which comprises the steps of firstly identifying the number and the types of application programs capable of opening a video file when a user opens the video file, and opening the video by using a default application program when the application program capable of opening the video is only one type; the method comprises the steps that the number and the size of screens are identified when the application programs capable of opening the video are of various types, the video is opened by adopting the application programs of different types respectively, and the video is played in a multi-screen or split-screen mode; therefore, the opening and editing efficiency of different application programs of the same video is improved. In addition, the video opened by the application program can be automatically and synchronously played, so that the browsing efficiency of the user on the video is improved. Meanwhile, the editing and browsing of the video file can be automatically adapted to the current screen parameters, so that the screen utilization rate is maximized.
As another embodiment, the present invention provides an artificial intelligence based video browsing and editing system, which is characterized by comprising the following modules:
the first identification module is used for acquiring the opening operation of a user on a first video file and identifying an application program and a category which can open the first video file in a terminal;
the second identification module is used for opening the first video file by using a default application program in the non-editing application programs or a default application program in the editing application programs if the application programs capable of opening the first video file are all non-editing application programs or editing application programs; if the application programs capable of opening the first video file comprise a non-editing application program and an editing application program, executing a first video file opening module;
the first video file opening module is used for identifying the screen number and the screen size of the terminal; if the number of the screens is multiple, opening the first video file on a first screen by using a first editing application program, and opening the first video file on a second screen by using a first non-editing application program;
a second video file opening module, configured to open the first video file using a first editing application and a first non-editing application respectively if the number of the screens is only one and the size of the screen is greater than or equal to a first size threshold, and display, in a split screen manner, the first video file opened by the first editing application and the first video file opened by the first non-editing application;
and the third video file opening module is used for opening the first video file by using a default application program in a non-editing application program or a default application program in an editing application program if the number of the screens is only one and the size of the screen is smaller than the first size threshold.
As a preferred embodiment, the first video file opening module or the second video file opening module further includes:
and if the user adjusts the playing progress of the first video file through the first editing application program/the first non-editing application program, synchronously adjusting the playing progress of the first video file by the first non-editing application program/the first editing application program so as to keep the synchronization of the playing progress of the first video file by the first editing application program and the first non-editing application program.
As a preferred embodiment, the method for maintaining synchronization of the playing progress of the first video file by the first editing application and the first non-editing application further includes:
acquiring screen positions of the first editing application program and the first non-editing application program, and establishing a corresponding relation between the first editing application program, the first non-editing application program and left and right sound channels of a loudspeaker according to the screen positions;
and respectively controlling the left and right sound channels of the loudspeaker by the first editing application program and the first non-editing application program according to the corresponding relation between the first editing application program, the first non-editing application program and the left and right sound channels of the loudspeaker.
In a preferred embodiment, the controlling the left and right channels of the speaker by the first editing application and the first non-editing application respectively further comprises:
acquiring a sound playing mode of the terminal, acquiring the position of a cursor if the sound playing mode is a loudspeaker playing mode, and controlling left and right sound channels of a loudspeaker by a first editing application program if an interface where the cursor is located is an interface where the first editing application program is located; if the interface where the cursor is located is the interface where the first non-editing application program is located, controlling left and right sound channels of the loudspeaker by the first non-editing application program;
and if the earphone playing mode is adopted, the left and right sound channels of the loudspeaker are respectively controlled by the first editing application program and the first non-editing application program.
As a preferred embodiment, the method for maintaining synchronization of the playing progress of the first video file by the first editing application and the first non-editing application further includes:
detecting whether a user carries out clipping operation on the first video file, if so, marking the position information of a video segment cut or inserted by the first video file, and acquiring the position of a cursor;
if the interface where the cursor is located is the interface where the first editing application program is located, when the clipped first video file is played to the clipping position, the first non-editing application program skips the clipped video segment and continues to play the first video file; when the clipped first video file is played to an insertion position, the first non-editing application program suspends playing of the first video file, wherein the suspension time length is the playing time length of an inserted video segment;
if the interface where the cursor is located is the interface where the first non-editing application program is located, when the first non-editing application program is played to the cutting position of the first video file, the playing of the first video file is paused, and the pause time length is the playing time length of the inserted video segment; and when the first non-editing application program is played to the insertion position of the first video file, skipping the inserted video segment and continuing to play the first video file.
As a preferred embodiment, the first video file opening module or the second video file opening module further includes:
acquiring the editing operation of a user on the first video file through the first editing application program, and after the user saves the edited first video file, automatically naming and saving a copy of the edited first video file;
the first non-editing application program obtains the saving operation and the saving path of the copy, and prompts the user whether to open the copy of the first video file on an interface of the first non-editing application program for opening the first video file; if so, the first non-editing application program closes the first video file and opens the copy; if not, the copy is not opened.
As a preferred embodiment, after automatically naming and saving the copy of the edited first video file, the method further includes:
if the user carries out editing operation on the second video file through the first editing application program, after the user saves the edited second video file, automatically naming the copy of the edited second video file, and creating an automatically named folder for saving the copy of the first video file and the copy of the second video file.
As a preferred embodiment, the method further comprises:
if the user performs closing operation on the first video file through the first editing application program, simultaneously performing closing operation on the first video file through the first non-editing application program;
and if the user performs closing operation on the first video file through the first non-editing application program, not closing the first non-editing application program and the first video file opened by the first non-editing application program.
The invention provides a video browsing and editing device based on artificial intelligence.A user firstly identifies the number and types of application programs capable of opening a video file when opening the video file, and opens the video by using a default application program when the application program capable of opening the video is only one type; the method comprises the steps that the number and the size of screens are identified when the application programs capable of opening the video are of various types, the video is opened by adopting the application programs of different types respectively, and the video is played in a multi-screen or split-screen mode; therefore, the opening and editing efficiency of different application programs of the same video is improved. In addition, the video opened by the application program can be automatically and synchronously played, so that the browsing efficiency of the user on the video is improved. Meanwhile, the editing and browsing of the video file can be automatically adapted to the current screen parameters, so that the screen utilization rate is maximized.
As another embodiment, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned artificial intelligence based video browsing and editing method when executing the program.
As another embodiment, the present invention provides a computer-readable storage medium stored in a memory in the mobile terminal, the computer-readable storage medium including a program for executing the artificial intelligence based video browsing editing method.
The invention provides a video browsing and editing method, a system, an electronic device and a computer readable storage medium based on artificial intelligence.A user firstly identifies the number and the type of application programs capable of opening a video file when opening the video file, and opens the video by using a default application program when the application programs capable of opening the video are only one type; the method comprises the steps that the number and the size of screens are identified when the application programs capable of opening the video are of various types, the video is opened by adopting the application programs of different types respectively, and the video is played in a multi-screen or split-screen mode; therefore, the opening and editing efficiency of different application programs of the same video is improved. In addition, the video opened by the application program can be automatically and synchronously played, so that the browsing efficiency of the user on the video is improved. Meanwhile, the editing and browsing of the video file can be automatically adapted to the current screen parameters, so that the screen utilization rate is maximized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating steps of an artificial intelligence-based video browsing and editing method according to the present invention.
Fig. 2 is a schematic structural diagram of an artificial intelligence-based video browsing and editing apparatus according to the present invention.
Detailed Description
The embodiments of the present invention are further described below with reference to the drawings.
The first embodiment is as follows:
as shown in fig. 1, the present invention provides a video browsing and editing method based on artificial intelligence, which comprises the following steps:
s1, acquiring the opening operation of a user on a first video file, and identifying an application program and a category which can open the first video file in a terminal; it should be noted that the opening operation of the first video file by the user may be a double-click operation performed by the user on an icon of the first video file; the method may further include invoking the first video file in other manners to perform an opening operation on the first video file, for example, obtaining the video file of the first video file format type in a certain application software by reading the video file format type of the first video file, and further performing an opening operation on the first video file by selecting the first video file; and are not limited thereto. In addition, the video opening of the invention can trigger the double-screen or split-screen opening of a plurality of application programs, and the opening operation of the invention is to realize the video editing function; therefore, in order to distinguish the conventional video opening operation of the user, the operation of opening the first video file of the present invention may also be an opening operation in other manners, such as long pressing of a left mouse button, dragging of an icon of the first video file, and the like, which is not limited herein. Illustratively, the first video file is of a format type such as MPEG, WMV, RM, RMVB, and the like. After the user performs the opening operation of the first video file, it indicates that the user may have a requirement for performing comparative browsing on the first video file in a double-screen or split-screen mode, and because the same video cannot be opened twice with the same opening software at the same time, the comparative browsing often has a requirement for opening the same video twice. For this reason, it is necessary to automatically identify the application and the category of the terminal that can open the first video file, so as to determine whether the above basic conditions for browsing the video file in a comparative manner exist. For example, the application and the category of the terminal that can open the first video file are identified, for example, a plurality of video player software are installed in the terminal, where the first video player software can edit a video, and the second video player software cannot edit a video but can only play the video; at this time, the application program category for opening the first video file is divided into a non-editing application program and an editing application program. The reason why the application program that opens the first video file is classified into the above categories is that the user may have a need to edit the video while browsing the first video file, and the editing-type application program has a function of editing the video. When a user browses the same video in multiple screens or multiple screens, the user often only needs to edit one opened video interface to continuously adjust the edited content, and the user often only needs to compare the edited content with an interface opened by another application program, so that the user needs to open the first video file in multiple screens or multiple screens by using different types of application programs. On the other hand, if two applications for opening the first video file are both editing applications during dual-screen or split-screen browsing, not only the user may edit the first video file by mistake on a certain unedited screen, but also the user may edit the first video file on two screens, which may cause the editing to be confused and inconvenient to search due to the existence of different editing version files. In summary, the present invention employs opening a first video file of an editable version using an editing application on one screen or split screen, and opening a first video file that can only be browsed using a non-editing application on the other split screen or screen; in order to avoid the problems described above.
S2, if the applications capable of opening the first video file are all non-editing applications or editing applications, opening the first video file by using default applications in the non-editing applications or default applications in the editing applications; if the applications that can open the first video file include a non-editing application and an editing application, performing step S3; it should be noted that, if the applications that can open the first video file are all non-editing applications, that is, applications that can only browse the first video file or editing applications, at this time, since there are only similar applications to implement the same video browsing or editing function, and there are no different types of applications to implement different browsing and editing functions, it is not necessary to open the first video file twice using similar applications to implement the same browsing or editing function; at this time, opening the first video file by using a default application program in a non-editing application program or a default application program in an editing application program; that is, the first video file is opened only by using the default application program in the application software, i.e., the conventional video opening method, which is not described herein again.
S3, identifying the screen number and the screen size of the terminal; if the number of the screens is multiple, opening the first video file on a first screen by using a first editing application program, and opening the first video file on a second screen by using a first non-editing application program; it should be noted that, in addition to the category of the application program, the video browsing experience of the user can be affected, that is, different types of application programs respectively implement different browsing and editing functions thereof; the number of screens and the size of the screens also affect the editing and browsing functions of the first video file; for example, under the condition of a single screen and a small screen, such as in a notebook operating environment, the effect of double-screen or split-screen editing and browsing of a user is often poor, and at the moment, the problem that the effect is poor when the user adopts the scheme of the present invention to edit and browse the first video file simultaneously also exists, and for this reason, the effect achieved by the scheme of the present invention is improved; the number of screens and the screen size of the terminal need to be identified, that is, the scheme of the present invention is executed only when the number of screens or the screen size meets the set requirements so as to achieve the expected editing and browsing effect. At this time, if the number of the screens is multiple, for example, the current operating system is connected with a dual-screen display screen, the first video file is opened on the first screen by using a first editing application program, and the first video file is opened on the second screen by using a first non-editing application program; therefore, the user operation and watching effect when the first video file is operated in a double-screen mode are guaranteed while the first video file is edited on one screen and browsed on the other screen. Further, if the number of screens to which the current operating system is connected is 3 or more, it is preferable that a corresponding number of screens be determined according to the number of application categories for opening the first video file, so as to open the first video file using one category of application on each screen; if the number of the application program categories for opening the first video file is inconsistent with the number of the screens, the user may preset the application program categories for opening the first video file or the screens for starting multi-screen browsing, or an artificial intelligence algorithm is adopted to automatically set the relationships between the application program categories for opening the first video file and the number thereof and the number of the screens, which is not limited herein. Preferably, the first screen is a main screen, and the second screen is a sub-screen.
S4, if the number of the screens is only one and the size of the screen is larger than or equal to a first size threshold, respectively opening the first video file by using a first editing application program and a first non-editing application program, and displaying the first video file opened by the first editing application program and the first video file opened by the first non-editing application program in a split screen manner; it should be noted that, similar to the above, in order to improve the effect achieved by the solution of the present invention, it is necessary to identify the number of screens and the screen size of the terminal, that is, the solution of the present invention is executed only when the number of screens or the screen size meets the set requirement so as to achieve the desired editing and browsing effect. At this time, if the number of the screens is only one and the size of the screen is greater than or equal to a first size threshold, for example, the first size threshold is 27 inches, so that the screen editing and browsing the first video file can achieve the desired visual effect when the screen size is greater than the size threshold; at this time, a first video file is respectively opened by using a first editing application program and a first non-editing application program, and the first video file opened by the first editing application program and the first video file opened by the first non-editing application program are displayed in a split screen manner; namely, the editing and browsing of the first video file are realized in two split screens simultaneously by automatically adopting a split screen mode.
S5, if the number of the screens is only one and the size of the screen is smaller than a first size threshold, opening the first video file by using a default application program in the non-editing application programs or a default application program in the editing application programs. It should be noted that, continuing with the foregoing method, if the number of screens is only one and the size of the screen is smaller than a first size threshold, for example, the first size threshold is 27 inches, the desired visual effect cannot be achieved due to screen editing and browsing the first video file when the screen size is smaller than the size threshold; at this time, the first video file is opened by using a default application program in the non-editing application programs or a default application program in the editing application programs, that is, the first video file is opened by using only one default application program, and this conventional video opening method is not described again.
Therefore, according to the video browsing and editing method based on artificial intelligence, when a user opens a video file, the number and the type of application programs capable of opening the file are firstly identified, and when only one type of application program capable of opening the video exists, a default application program is used for opening the video; the method comprises the steps that the number and the size of screens are identified when the application programs capable of opening the video are of various types, the video is opened by adopting the application programs of different types respectively, and the video is played in a multi-screen or split-screen mode; therefore, the opening and editing efficiency of different application programs of the same video is improved. In addition, the video opened by the application program can be automatically and synchronously played, so that the browsing efficiency of the user on the video is improved. Meanwhile, the editing and browsing of the video file can be automatically adapted to the current screen parameters, so that the screen utilization rate is maximized.
As a preferred embodiment, the step S3 or S4 further includes:
and if the user adjusts the playing progress of the first video file through the first editing application program/the first non-editing application program, synchronously adjusting the playing progress of the first video file by the first non-editing application program/the first editing application program so as to keep the synchronization of the playing progress of the first video file by the first editing application program and the first non-editing application program. It should be noted that, because the user has a requirement for comparatively browsing different versions of the video when editing the video file, preferably, the present invention adopts a method for synchronizing the first editing application program and the first non-editing application program to synchronously play the editing version and the original version of the first video file, that is, if the user adjusts the playing schedule of the first video file through the first editing application program, for example, performs fast forward, pause, and fast backward operations on the first video file of the editing version, the playing schedule of the first video file by the first non-editing application program is synchronously adjusted to keep synchronization of the playing schedule of the first editing application program and the first non-editing application program on the first video file; similarly, if the user adjusts the playing progress of the first video file through the first non-editing application program, for example, fast forward, pause, and fast backward operations are performed on the first video file of the original version, the playing progress of the first editing application program on the first video file is synchronously adjusted, so as to maintain synchronization of the playing progress of the first non-editing application program and the first editing application program on the first video file. Therefore, the same content of the first video file is played synchronously by the first editing application program and the first non-editing application program, so that a user can visually compare the difference between the edited video file and the video file before editing, such as the effects of picture repairing, color beautifying and filter.
As a preferred embodiment, the method for maintaining synchronization of the playing progress of the first video file by the first editing application and the first non-editing application further includes:
acquiring screen positions of the first editing application program and the first non-editing application program, and establishing a corresponding relation between the first editing application program, the first non-editing application program and left and right sound channels of a loudspeaker according to the screen positions; it should be noted that, in a general situation, a terminal only authorizes an audio signal to a single application program running in a foreground in the current terminal, and an authorization problem of the audio signal exists when multiple videos are played on multiple screens or split screens; in contrast, the method fully considers the distribution condition of audio signals when different videos are played in a multi-screen mode or a split-screen mode, namely the screen positions of the first editing application program and the first non-editing application program are obtained, and the corresponding relation between the first editing application program, the first non-editing application program and the left and right sound channels of the loudspeaker is established according to the screen positions; for example, the video playing interface displayed by the first editing application program is located on the left side of the split screen interface or the left side display screen of the dual-screen display screen, and the video playing interface displayed by the first non-editing application program is located on the right side of the split screen interface or the right side display screen of the dual-screen display screen.
And then, respectively controlling the left and right channels of the loudspeaker by the first editing application program and the first non-editing application program according to the corresponding relation between the first editing application program, the first non-editing application program and the left and right channels of the loudspeaker. For example, according to the above relationship, the first editing application controls the left channel of the speaker, and the first non-editing application controls the left channel of the speaker; i.e. the left headphone or channel is controlled by said first editing type application and the right headphone or channel is controlled by said first non-editing type application. Therefore, corresponding sound channels are distributed for different application programs for playing videos in a split screen mode or a multi-screen mode, and the purpose of simultaneously answering audio information in the videos is achieved; more importantly, the method can provide better comparison effect for the video editing and browsing of double screens or split screens, simultaneously realize synchronous comparison of video and audio, and improve comparison efficiency.
In a preferred embodiment, the controlling the left and right channels of the speaker by the first editing application and the first non-editing application respectively further comprises:
acquiring a sound playing mode of the terminal, acquiring the position of a cursor if the sound playing mode is a loudspeaker playing mode, and controlling left and right sound channels of a loudspeaker by a first editing application program if an interface where the cursor is located is an interface where the first editing application program is located; if the interface where the cursor is located is the interface where the first non-editing application program is located, controlling left and right sound channels of the loudspeaker by the first non-editing application program; it should be noted that, when different video files are played through two speakers, the sound can be heard by the user after being mixed, and at this time, the difference between the two audio signals is difficult to distinguish; therefore, the speaker playing mode is not suitable for controlling the left and right channels of the speaker by the first editing application and the first non-editing application respectively; therefore, a mode that one application program controls the audio signal to play independently needs to be adopted, and in order to accurately identify which video playing application program the user intends to play the audio signal more, preferably, the position of the cursor is obtained, and then the application program interface where the attention of the user is positioned is judged according to the position of the cursor; if the interface where the cursor is located is the interface where the first editing application program is located, controlling left and right sound channels of the loudspeaker by the first editing application program; and if the interface where the cursor is located is the interface where the first non-editing application program is located, controlling the left and right channels of the loudspeaker by the first non-editing application program. Therefore, the audio signal source of the loudspeaker is determined and adjusted according to the cursor position where the attention of the user is located, and the intelligence of audio signal playing is improved.
And if the earphone playing mode is adopted, the left and right sound channels of the loudspeaker are respectively controlled by the first editing application program and the first non-editing application program. It should be noted that, if the mode is the earphone playing mode, the user can listen to the difference between the sounds of the video files of different versions through different earphones, so as to further modify and edit the video files. Thereby controlling the left and right channels of the loudspeaker by the first editing application and the first non-editing application respectively; for example, according to the foregoing relationship, the speaker left channel is controlled by the first editing class application, and the speaker left channel is controlled by the first non-editing class application; i.e. the left headphone or channel is controlled by said first editing type application and the right headphone or channel is controlled by said first non-editing type application. Therefore, corresponding sound channels are distributed for different application programs for playing videos in a split screen mode or a multi-screen mode, and the purpose of simultaneously answering audio information in the videos is achieved; more importantly, the method can provide better comparison effect for the video editing and browsing of double screens or split screens, simultaneously realize synchronous comparison of video and audio, and improve comparison efficiency.
As a preferred embodiment, the method for maintaining synchronization of the playing progress of the first video file by the first editing application and the first non-editing application further includes:
detecting whether a user carries out clipping operation on the first video file, if so, marking the position information of a video segment cut or inserted by the first video file, and acquiring the position of a cursor; it should be noted that, because there may be video segment insertion and deletion operations in the editing of the video file by the user, that is, there may be a difference between the length of the video and the length of the original video, at this time, the simple synchronous playing cannot accurately correspond to the same picture and audio signal; therefore, it is necessary to accurately recognize the synchronization of the two. For example, whether a user carries out a clipping operation on the first video file is detected, and if so, further determination needs to be carried out on the image corresponding relation of the video files of different versions; at this time, the position information of the video segment marking the cut or inserted first video file, i.e. the 1 st minute 30 seconds to 1 st minute 50 seconds of the original video file are cut off, and the 20 second video of the slice header is newly added. The position of the cursor is then retrieved to determine the application program that the user is currently focused on.
If the interface where the cursor is located is the interface where the first editing application program is located, when the clipped first video file is played to the clipping position, the first non-editing application program skips the clipped video segment and continues to play the first video file; when the clipped first video file is played to an insertion position, the first non-editing application program suspends playing of the first video file, wherein the suspension time length is the playing time length of an inserted video segment; it should be noted that, if the interface where the cursor is located is the interface where the first editing application program is located, that is, the user is browsing the first video file played on the first editing application program; when the clipped first video file is played to a clipping position, for example, a position where the 1 st minute 30 seconds to 1 st minute 50 seconds are clipped, the first non-editing application skips the clipped video segment and continues to play the first video file, so as to synchronize the playing screen of the first non-editing application with the first editing application. Similarly, when the clipped first video file is played to the insertion position, for example, a 20-second video with a newly added slice header, the first non-editing application suspends playing of the first video file, where the suspension duration is the playing duration of the inserted video segment, that is, when the first editing application plays the newly added video segment, the playing of the first non-editing application is suspended to wait for the time of picture synchronization, and synchronization between the played picture of the first non-editing application and the first editing application is realized until pictures of the first non-editing application and the first editing application can be synchronized after 20 seconds.
If the interface where the cursor is located is the interface where the first non-editing application program is located, when the first editing application program is played to the cutting position of the first video file, the playing of the first video file is paused, and the pause time length is the playing time length of the inserted video segment; and when the first editing application program is played to the insertion position of the first video file, skipping the inserted video segment and continuing to play the first video file. It should be noted that, if the interface where the cursor is located is the interface where the first non-editing application program is located, that is, the user is browsing the first video file played on the first non-editing application program; when the first editing application is played to the cut position of the first video file, for example, the cut position is from 1 st 30 seconds to 1 st 50 seconds, the playing of the first video file is paused, and the pause duration is the playing duration of the inserted video segment, so as to realize the synchronization between the playing picture of the first editing application and the first non-editing application. When the first editing application program is played to the insertion position of the first video file, for example, a 20-second video with a new added slice header, the inserted video segment is skipped over and the first video file is played continuously, so that the synchronization of the playing picture of the first editing application program and the first non-editing application program is realized.
As a preferred embodiment, the step S3 or S4 further includes:
acquiring the editing operation of a user on the first video file through the first editing application program, and after the user saves the edited first video file, automatically naming and saving a copy of the edited first video file; it should be noted that, because the original text of the first video file is opened by the first non-editing application program, the text content of the first video file has been changed after the first non-editing application program performs editing operation on the first video file, and in order not to affect the opening of the original text of the first video file by the first non-editing application program and the browsing of the original text by the user, preferably, in the present invention, after the user saves the edited first video file, a copy of the edited first video file is automatically named and saved; therefore, when the user repeatedly edits the first video file through the first editing application program, the first non-editing application program is not influenced to open the original text of the first video file and browse the original text by the user.
The first non-editing application program obtains the saving operation and the saving path of the copy, and prompts the user whether to open the copy of the first video file on an interface of the first non-editing application program for opening the first video file; if so, the first non-editing application program closes the first video file and opens the copy; if not, the copy is not opened. It should be noted that the user still has a requirement for comparative browsing on the copy of the first video file saved after editing; in this regard, a first non-editing application program is used for obtaining the edited saving operation of the first editing application program on the first video file and the saving path of the copy, and the first non-editing application program prompts the user whether to open the copy of the first video file on an interface for opening the first video file; if so, the first non-editing application program closes the first video file and opens the copy so as to realize comparative browsing of the copy of the first video file. Otherwise, if the dialog box of the prompt is clicked or not operated, the first non-editing application program keeps the state of opening the first video file and does not open the copy.
As a preferred embodiment, after automatically naming and saving the copy of the edited first video file, the method further includes:
if the user carries out editing operation on the second video file through the first editing application program, after the user saves the edited second video file, automatically naming the copy of the edited second video file, and creating an automatically named folder for saving the copy of the first video file and the copy of the second video file. It should be noted that comparative browsing by the user is not limited to one video file, and may be, for example, multiple video files in a continuous or same storage path, and at this time, the user is obtained to perform an editing operation on the second video file through the first editing application program; if the user carries out editing operation on the second video file through the first editing application program, after the user saves the edited second video file, automatically naming the copy of the edited second video file, and creating an automatically named folder for saving the copy of the first video file and the copy of the second video file.
As a preferred embodiment, the method further comprises:
if the user performs closing operation on the first file through the first editing application program, simultaneously performing closing operation on the first file through the first non-editing application program; it should be noted that, because a user usually operates to edit a first file on a main screen and assists browsing on an auxiliary screen, when the user performs a closing operation on the first file through the first editing application program, it indicates that the user has finished editing and browsing the first video file, and at this time, performs a closing operation on the first file through the first non-editing application program; therefore, the operation efficiency of closing the first video file by the user is improved.
And if the user performs closing operation on the first file through the first non-editing application program, not closing the first non-editing application program and the first file opened by the first non-editing application program. It should be noted that, on the contrary, if the user performs a closing operation on the first file through the first non-editing application program, that is, closes the browsing interface on the sub-screen for the first video file, at this time, it cannot be proved that the user has finished the editing operation on the first video file, and therefore the first non-editing application program and the first file opened by the first non-editing application program are not closed.
The invention provides a video browsing and editing method based on artificial intelligence.A user firstly identifies the number and types of application programs capable of opening a video file when opening the video file, and opens the video by using a default application program when the application program capable of opening the video is only one type; the method comprises the steps that the number and the size of screens are identified when the application programs capable of opening the video are of various types, the video is opened by adopting the application programs of different types respectively, and the video is played in a multi-screen or split-screen mode; therefore, the opening and editing efficiency of different application programs of the same video is improved. In addition, the video opened by the application program can be automatically and synchronously played, so that the browsing efficiency of the user on the video is improved. Meanwhile, the editing and browsing of the video file can be automatically adapted to the current screen parameters, so that the screen utilization rate is maximized.
Example two:
as shown in fig. 2, the present invention provides an apparatus and a system for browsing and editing videos based on artificial intelligence, wherein the apparatus and the system comprise the following modules:
the first identification module is used for acquiring the opening operation of a user on a first video file and identifying an application program and a category which can open the first video file in a terminal; it should be noted that the opening operation of the first video file by the user may be a double-click operation performed by the user on an icon of the first video file; the method may further include invoking the first video file in other manners to perform an opening operation on the first video file, for example, obtaining the video file of the first video file format type in a certain application software by reading the video file format type of the first video file, and further performing an opening operation on the first video file by selecting the first video file; and are not limited thereto. In addition, the video opening of the invention can trigger the double-screen or split-screen opening of a plurality of application programs, and the opening operation of the invention is to realize the video editing function; therefore, in order to distinguish the conventional video opening operation of the user, the operation of opening the first video file of the present invention may also be an opening operation in other manners, such as long pressing of a left mouse button, dragging of an icon of the first video file, and the like, which is not limited herein. Illustratively, the first video file is of a format type such as MPEG, WMV, RM, RMVB, and the like. After the user performs the opening operation of the first video file, it indicates that the user may have a requirement for performing comparative browsing on the first video file in a double-screen or split-screen mode, and because the same video cannot be opened twice with the same opening software at the same time, the comparative browsing often has a requirement for opening the same video twice. For this reason, it is necessary to automatically identify the application and the category of the terminal that can open the first video file, so as to determine whether the above basic conditions for browsing the video file in a comparative manner exist. For example, the application and the category of the terminal that can open the first video file are identified, for example, a plurality of video player software are installed in the terminal, where the first video player software can edit a video, and the second video player software cannot edit a video but can only play the video; at this time, the application program category for opening the first video file is divided into a non-editing application program and an editing application program. The reason why the application program that opens the first video file is classified into the above categories is that the user may have a need to edit the video while browsing the first video file, and the editing-type application program has a function of editing the video. When a user browses the same video in multiple screens or multiple screens, the user often only needs to edit one opened video interface to continuously adjust the edited content, and the user often only needs to compare the edited content with an interface opened by another application program, so that the user needs to open the first video file in multiple screens or multiple screens by using different types of application programs. On the other hand, if two applications for opening the first video file are both editing applications during dual-screen or split-screen browsing, not only the user may edit the first video file by mistake on a certain unedited screen, but also the user may edit the first video file on two screens, which may cause the editing to be confused and inconvenient to search due to the existence of different editing version files. In summary, the present invention employs opening a first video file of an editable version using an editing application on one screen or split screen, and opening a first video file that can only be browsed using a non-editing application on the other split screen or screen; in order to avoid the problems described above.
The second identification module is used for opening the first video file by using a default application program in the non-editing application programs or a default application program in the editing application programs if the application programs capable of opening the first video file are all non-editing application programs or editing application programs; if the application programs capable of opening the first video file comprise a non-editing application program and an editing application program, executing a first video file opening module; it should be noted that, if the applications that can open the first video file are all non-editing applications, that is, applications that can only browse the first video file or editing applications, at this time, since there are only similar applications to implement the same video browsing or editing function, and there are no different types of applications to implement different browsing and editing functions, it is not necessary to open the first video file twice using similar applications to implement the same browsing or editing function; at this time, opening the first video file by using a default application program in a non-editing application program or a default application program in an editing application program; that is, the first video file is opened only by using the default application program in the application software, i.e., the conventional video opening method, which is not described herein again.
The first video file opening module is used for identifying the screen number and the screen size of the terminal; if the number of the screens is multiple, opening the first video file on a first screen by using a first editing application program, and opening the first video file on a second screen by using a first non-editing application program; it should be noted that, in addition to the category of the application program, the video browsing experience of the user can be affected, that is, different types of application programs respectively implement different browsing and editing functions thereof; the number of screens and the size of the screens also affect the editing and browsing functions of the first video file; for example, under the condition of a single screen and a small screen, such as in a notebook operating environment, the effect of double-screen or split-screen editing and browsing of a user is often poor, and at the moment, the problem that the effect is poor when the user adopts the scheme of the present invention to edit and browse the first video file simultaneously also exists, and for this reason, the effect achieved by the scheme of the present invention is improved; the number of screens and the screen size of the terminal need to be identified, that is, the scheme of the present invention is executed only when the number of screens or the screen size meets the set requirements so as to achieve the expected editing and browsing effect. At this time, if the number of the screens is multiple, for example, the current operating system is connected with a dual-screen display screen, the first video file is opened on the first screen by using a first editing application program, and the first video file is opened on the second screen by using a first non-editing application program; therefore, the user operation and watching effect when the first video file is operated in a double-screen mode are guaranteed while the first video file is edited on one screen and browsed on the other screen. Further, if the number of screens to which the current operating system is connected is 3 or more, it is preferable that a corresponding number of screens be determined according to the number of application categories for opening the first video file, so as to open the first video file using one category of application on each screen; if the number of the application program categories for opening the first video file is inconsistent with the number of the screens, the user may preset the application program categories for opening the first video file or the screens for starting multi-screen browsing, or an artificial intelligence algorithm is adopted to automatically set the relationships between the application program categories for opening the first video file and the number thereof and the number of the screens, which is not limited herein. Preferably, the first screen is a main screen, and the second screen is a sub-screen.
A second video file opening module, configured to open the first video file using a first editing application and a first non-editing application respectively if the number of the screens is only one and the size of the screen is greater than or equal to a first size threshold, and display, in a split screen manner, the first video file opened by the first editing application and the first video file opened by the first non-editing application; it should be noted that, similar to the above, in order to improve the effect achieved by the solution of the present invention, it is necessary to identify the number of screens and the screen size of the terminal, that is, the solution of the present invention is executed only when the number of screens or the screen size meets the set requirement so as to achieve the desired editing and browsing effect. At this time, if the number of the screens is only one and the size of the screen is greater than or equal to a first size threshold, for example, the first size threshold is 27 inches, so that the screen editing and browsing the first video file can achieve the desired visual effect when the screen size is greater than the size threshold; at this time, a first video file is respectively opened by using a first editing application program and a first non-editing application program, and the first video file opened by the first editing application program and the first video file opened by the first non-editing application program are displayed in a split screen manner; namely, the editing and browsing of the first video file are realized in two split screens simultaneously by automatically adopting a split screen mode.
And the third video file opening module is used for opening the first video file by using a default application program in a non-editing application program or a default application program in an editing application program if the number of the screens is only one and the size of the screen is smaller than the first size threshold. It should be noted that, continuing with the foregoing method, if the number of screens is only one and the size of the screen is smaller than a first size threshold, for example, the first size threshold is 27 inches, the desired visual effect cannot be achieved due to screen editing and browsing the first video file when the screen size is smaller than the size threshold; at this time, the first video file is opened by using a default application program in the non-editing application programs or a default application program in the editing application programs, that is, the first video file is opened by using only one default application program, and this conventional video opening method is not described again.
Therefore, according to the video browsing and editing device and system based on artificial intelligence, when a user opens a video file, the number and the type of application programs capable of opening the file are firstly identified, and when only one type of application program capable of opening the video exists, a default application program is used for opening the video; the method comprises the steps that the number and the size of screens are identified when the application programs capable of opening the video are of various types, the video is opened by adopting the application programs of different types respectively, and the video is played in a multi-screen or split-screen mode; therefore, the opening and editing efficiency of different application programs of the same video is improved. In addition, the video opened by the application program can be automatically and synchronously played, so that the browsing efficiency of the user on the video is improved. Meanwhile, the editing and browsing of the video file can be automatically adapted to the current screen parameters, so that the screen utilization rate is maximized.
As a preferred embodiment, the first video file opening module or the second video file opening module further includes:
and if the user adjusts the playing progress of the first video file through the first editing application program/the first non-editing application program, synchronously adjusting the playing progress of the first video file by the first non-editing application program/the first editing application program so as to keep the synchronization of the playing progress of the first video file by the first editing application program and the first non-editing application program. It should be noted that, because the user has a requirement for comparatively browsing different versions of the video when editing the video file, preferably, the present invention adopts a method for synchronizing the first editing application program and the first non-editing application program to synchronously play the editing version and the original version of the first video file, that is, if the user adjusts the playing progress of the first video file through the first editing application program, for example, fast forward, pause, and fast backward operations are performed on the first video file of the editing version, the playing progress of the first video file by the first non-editing application program is synchronously adjusted to keep synchronization of the playing progress of the first editing application program and the first non-editing application program on the first video file; similarly, if the user adjusts the playing progress of the first video file through the first non-editing application program, for example, fast forward, pause, and fast backward operations are performed on the first video file of the original version, the playing progress of the first editing application program on the first video file is synchronously adjusted, so as to maintain synchronization of the playing progress of the first non-editing application program and the first editing application program on the first video file. Therefore, the same content of the first video file is played synchronously by the first editing application program and the first non-editing application program, so that a user can visually compare the difference between the edited video file and the video file before editing, such as the effects of picture repairing, color beautifying and filter.
As a preferred embodiment, the method for maintaining synchronization of the playing progress of the first video file by the first editing application and the first non-editing application further includes:
acquiring screen positions of the first editing application program and the first non-editing application program, and establishing a corresponding relation between the first editing application program, the first non-editing application program and left and right sound channels of a loudspeaker according to the screen positions; it should be noted that, in a general situation, a terminal only authorizes an audio signal to a single application program running in a foreground in the current terminal, and an authorization problem of the audio signal exists when multiple videos are played on multiple screens or split screens; in contrast, the method fully considers the distribution condition of audio signals when different videos are played in a multi-screen mode or a split-screen mode, namely the screen positions of the first editing application program and the first non-editing application program are obtained, and the corresponding relation between the first editing application program, the first non-editing application program and the left and right sound channels of the loudspeaker is established according to the screen positions; for example, the video playing interface displayed by the first editing application program is located on the left side of the split screen interface or the left side display screen of the dual-screen display screen, and the video playing interface displayed by the first non-editing application program is located on the right side of the split screen interface or the right side display screen of the dual-screen display screen.
And then, respectively controlling the left and right channels of the loudspeaker by the first editing application program and the first non-editing application program according to the corresponding relation between the first editing application program, the first non-editing application program and the left and right channels of the loudspeaker. For example, according to the above relationship, the first editing application controls the left channel of the speaker, and the first non-editing application controls the left channel of the speaker; i.e. the left headphone or channel is controlled by said first editing type application and the right headphone or channel is controlled by said first non-editing type application. Therefore, corresponding sound channels are distributed for different application programs for playing videos in a split screen mode or a multi-screen mode, and the purpose of simultaneously answering audio information in the videos is achieved; more importantly, the method can provide better comparison effect for the video editing and browsing of double screens or split screens, simultaneously realize synchronous comparison of video and audio, and improve comparison efficiency.
In a preferred embodiment, the controlling the left and right channels of the speaker by the first editing application and the first non-editing application respectively further comprises:
acquiring a sound playing mode of the terminal, acquiring the position of a cursor if the sound playing mode is a loudspeaker playing mode, and controlling left and right sound channels of a loudspeaker by a first editing application program if an interface where the cursor is located is an interface where the first editing application program is located; if the interface where the cursor is located is the interface where the first non-editing application program is located, controlling left and right sound channels of the loudspeaker by the first non-editing application program; it should be noted that, when different video files are played through two speakers, the sound can be heard by the user after being mixed, and at this time, the difference between the two audio signals is difficult to distinguish; therefore, the speaker playing mode is not suitable for controlling the left and right channels of the speaker by the first editing application and the first non-editing application respectively; therefore, a mode that one application program controls the audio signal to play independently needs to be adopted, and in order to accurately identify which video playing application program the user intends to play the audio signal more, preferably, the position of the cursor is obtained, and then the application program interface where the attention of the user is positioned is judged according to the position of the cursor; if the interface where the cursor is located is the interface where the first editing application program is located, controlling left and right sound channels of the loudspeaker by the first editing application program; and if the interface where the cursor is located is the interface where the first non-editing application program is located, controlling the left and right channels of the loudspeaker by the first non-editing application program. Therefore, the audio signal source of the loudspeaker is determined and adjusted according to the cursor position where the attention of the user is located, and the intelligence of audio signal playing is improved.
And if the earphone playing mode is adopted, the left and right sound channels of the loudspeaker are respectively controlled by the first editing application program and the first non-editing application program. It should be noted that, if the mode is the earphone playing mode, the user can listen to the difference between the sounds of the video files of different versions through different earphones, so as to further modify and edit the video files. Thereby controlling the left and right channels of the loudspeaker by the first editing application and the first non-editing application respectively; for example, according to the foregoing relationship, the speaker left channel is controlled by the first editing class application, and the speaker left channel is controlled by the first non-editing class application; i.e. the left headphone or channel is controlled by said first editing type application and the right headphone or channel is controlled by said first non-editing type application. Therefore, corresponding sound channels are distributed for different application programs for playing videos in a split screen mode or a multi-screen mode, and the purpose of simultaneously answering audio information in the videos is achieved; more importantly, the method can provide better comparison effect for the video editing and browsing of double screens or split screens, simultaneously realize synchronous comparison of video and audio, and improve comparison efficiency.
As a preferred embodiment, the method for maintaining synchronization of the playing progress of the first video file by the first editing application and the first non-editing application further includes:
detecting whether a user carries out clipping operation on the first video file, if so, marking the position information of a video segment cut or inserted by the first video file, and acquiring the position of a cursor; it should be noted that, because there may be video segment insertion and deletion operations in the editing of the video file by the user, that is, there may be a difference between the length of the video and the length of the original video, at this time, the simple synchronous playing cannot accurately correspond to the same picture and audio signal; therefore, it is necessary to accurately recognize the synchronization of the two. For example, whether a user carries out a clipping operation on the first video file is detected, and if so, further determination needs to be carried out on the image corresponding relation of the video files of different versions; at this time, the position information of the video segment marking the cut or inserted first video file, i.e. the 1 st minute 30 seconds to 1 st minute 50 seconds of the original video file are cut off, and the 20 second video of the slice header is newly added. The position of the cursor is then retrieved to determine the application program that the user is currently focused on.
If the interface where the cursor is located is the interface where the first editing application program is located, when the clipped first video file is played to the clipping position, the first non-editing application program skips the clipped video segment and continues to play the first video file; when the clipped first video file is played to an insertion position, the first non-editing application program suspends playing of the first video file, wherein the suspension time length is the playing time length of an inserted video segment; it should be noted that, if the interface where the cursor is located is the interface where the first editing application program is located, that is, the user is browsing the first video file played on the first editing application program; when the clipped first video file is played to a clipping position, for example, a position where the 1 st minute 30 seconds to 1 st minute 50 seconds are clipped, the first non-editing application skips the clipped video segment and continues to play the first video file, so as to synchronize the playing screen of the first non-editing application with the first editing application. Similarly, when the clipped first video file is played to the insertion position, for example, a 20-second video with a newly added slice header, the first non-editing application suspends playing of the first video file, where the suspension duration is the playing duration of the inserted video segment, that is, when the first editing application plays the newly added video segment, the playing of the first non-editing application is suspended to wait for the time of picture synchronization, and synchronization between the played picture of the first non-editing application and the first editing application is realized until pictures of the first non-editing application and the first editing application can be synchronized after 20 seconds.
If the interface where the cursor is located is the interface where the first non-editing application program is located, when the first editing application program is played to the cutting position of the first video file, the playing of the first video file is paused, and the pause time length is the playing time length of the inserted video segment; and when the first editing application program is played to the insertion position of the first video file, skipping the inserted video segment and continuing to play the first video file. It should be noted that, if the interface where the cursor is located is the interface where the first non-editing application program is located, that is, the user is browsing the first video file played on the first non-editing application program; when the first editing application is played to the cut position of the first video file, for example, the cut position is from 1 st 30 seconds to 1 st 50 seconds, the playing of the first video file is paused, and the pause duration is the playing duration of the inserted video segment, so as to realize the synchronization between the playing picture of the first editing application and the first non-editing application. When the first editing application program is played to the insertion position of the first video file, for example, a 20-second video with a new added slice header, the inserted video segment is skipped over and the first video file is played continuously, so that the synchronization of the playing picture of the first editing application program and the first non-editing application program is realized.
As a preferred embodiment, the first video file opening module or the second video file opening module further includes:
acquiring the editing operation of a user on the first video file through the first editing application program, and after the user saves the edited first video file, automatically naming and saving a copy of the edited first video file; it should be noted that, because the original text of the first video file is opened by the first non-editing application program, the text content of the first video file has been changed after the first non-editing application program performs editing operation on the first video file, and in order not to affect the opening of the original text of the first video file by the first non-editing application program and the browsing of the original text by the user, preferably, in the present invention, after the user saves the edited first video file, a copy of the edited first video file is automatically named and saved; therefore, when the user repeatedly edits the first video file through the first editing application program, the first non-editing application program is not influenced to open the original text of the first video file and browse the original text by the user.
The first non-editing application program obtains the saving operation and the saving path of the copy, and prompts the user whether to open the copy of the first video file on an interface of the first non-editing application program for opening the first video file; if so, the first non-editing application program closes the first video file and opens the copy; if not, the copy is not opened. It should be noted that the user still has a requirement for comparative browsing on the copy of the first video file saved after editing; in this regard, a first non-editing application program is used for obtaining the edited saving operation of the first editing application program on the first video file and the saving path of the copy, and the first non-editing application program prompts the user whether to open the copy of the first video file on an interface for opening the first video file; if so, the first non-editing application program closes the first video file and opens the copy so as to realize comparative browsing of the copy of the first video file. Otherwise, if the dialog box of the prompt is clicked or not operated, the first non-editing application program keeps the state of opening the first video file and does not open the copy.
As a preferred embodiment, after automatically naming and saving the copy of the edited first video file, the method further includes:
if the user carries out editing operation on the second video file through the first editing application program, after the user saves the edited second video file, automatically naming the copy of the edited second video file, and creating an automatically named folder for saving the copy of the first video file and the copy of the second video file. It should be noted that comparative browsing by the user is not limited to one video file, and may be, for example, multiple video files in a continuous or same storage path, and at this time, the user is obtained to perform an editing operation on the second video file through the first editing application program; if the user carries out editing operation on the second video file through the first editing application program, after the user saves the edited second video file, automatically naming the copy of the edited second video file, and creating an automatically named folder for saving the copy of the first video file and the copy of the second video file.
As a preferred embodiment, the method further comprises:
if the user performs closing operation on the first file through the first editing application program, simultaneously performing closing operation on the first file through the first non-editing application program; it should be noted that, because a user usually operates to edit a first file on a main screen and assists browsing on an auxiliary screen, when the user performs a closing operation on the first file through the first editing application program, it indicates that the user has finished editing and browsing the first video file, and at this time, performs a closing operation on the first file through the first non-editing application program; therefore, the operation efficiency of closing the first video file by the user is improved.
And if the user performs closing operation on the first file through the first non-editing application program, not closing the first non-editing application program and the first file opened by the first non-editing application program. It should be noted that, on the contrary, if the user performs a closing operation on the first file through the first non-editing application program, that is, closes the browsing interface on the sub-screen for the first video file, at this time, it cannot be proved that the user has finished the editing operation on the first video file, and therefore the first non-editing application program and the first file opened by the first non-editing application program are not closed.
According to the video browsing and editing device and system based on artificial intelligence, when a user opens a video file, the number and the type of application programs capable of opening the file are firstly identified, and when only one type of application program capable of opening the video exists, a default application program is used for opening the video; the method comprises the steps that the number and the size of screens are identified when the application programs capable of opening the video are of various types, the video is opened by adopting the application programs of different types respectively, and the video is played in a multi-screen or split-screen mode; therefore, the opening and editing efficiency of different application programs of the same video is improved. In addition, the video opened by the application program can be automatically and synchronously played, so that the browsing efficiency of the user on the video is improved. Meanwhile, the editing and browsing of the video file can be automatically adapted to the current screen parameters, so that the screen utilization rate is maximized.
Example three:
as another embodiment, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the artificial intelligence based video browsing editing method when executing the program.
Example four:
as another embodiment, the present invention provides a computer-readable storage medium stored in a memory in the mobile terminal, the computer-readable storage medium comprising instructions for performing the artificial intelligence based video browsing method.
According to the video browsing and editing method, the video browsing and editing system, the electronic device and the computer readable storage medium, when a user opens a video file, the number and the type of application programs capable of opening the file are firstly identified, and when the application programs capable of opening the video are only one type, a default application program is used for opening the video; the method comprises the steps that the number and the size of screens are identified when the application programs capable of opening the video are of various types, the video is opened by adopting the application programs of different types respectively, and the video is played in a multi-screen or split-screen mode; therefore, the opening and editing efficiency of different application programs of the same video is improved. In addition, the video opened by the application program can be automatically and synchronously played, so that the browsing efficiency of the user on the video is improved. Meanwhile, the editing and browsing of the video file can be automatically adapted to the current screen parameters, so that the screen utilization rate is maximized.
Those skilled in the art will appreciate that the present invention includes apparatus directed to performing one or more of the operations described in the present application. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the aspects specified in the block or blocks of the block diagrams and/or flowchart illustrations of the invention.
Those of skill in the art will appreciate that various operations, methods, steps in the processes, acts, or solutions discussed in the present application may be alternated, modified, combined, or deleted. Further, various operations, methods, steps in the flows, which have been discussed in the present application, may be interchanged, modified, rearranged, decomposed, combined, or eliminated. Further, steps, measures, schemes in the various operations, methods, procedures disclosed in the prior art and the present invention can also be alternated, changed, rearranged, decomposed, combined, or deleted.
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the aspects specified in the block or blocks of the block diagrams and/or flowchart illustrations of the invention.
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.

Claims (10)

1. A video browsing and editing method based on artificial intelligence is characterized by comprising the following steps:
s1, acquiring the opening operation of a user on a first video file, and identifying an application program and a category which can open the first video file in a terminal;
s2, if the applications capable of opening the first video file are all non-editing applications or editing applications, opening the first video file by using default applications in the non-editing applications or default applications in the editing applications; if the applications that can open the first video file include a non-editing application and an editing application, performing step S3;
s3, identifying the screen number and the screen size of the terminal; if the number of the screens is multiple, opening the first video file on a first screen by using a first editing application program, and opening the first video file on a second screen by using a first non-editing application program;
s4, if the number of the screens is only one and the size of the screen is larger than or equal to a first size threshold, respectively opening the first video file by using a first editing application program and a first non-editing application program, and playing the first video file opened by the first editing application program and the first video file opened by the first non-editing application program in a split screen manner;
s5, if the number of the screens is only one and the size of the screen is smaller than a first size threshold, opening the first video file by using a default application program in the non-editing application programs or a default application program in the editing application programs.
2. The method according to claim 1, wherein the step S3 or S4 further comprises:
and if the user adjusts the playing progress of the first video file through the first editing application program/the first non-editing application program, synchronously adjusting the playing progress of the first video file by the first non-editing application program/the first editing application program so as to keep the synchronization of the playing progress of the first video file by the first editing application program and the first non-editing application program.
3. The method of claim 2, wherein maintaining synchronization of the playback progress of the first video file by the first editing class application and the first non-editing class application, further comprises:
acquiring screen positions of the first editing application program and the first non-editing application program, and establishing a corresponding relation between the first editing application program, the first non-editing application program and left and right sound channels of a loudspeaker according to the screen positions;
and respectively controlling the left and right sound channels of the loudspeaker by the first editing application program and the first non-editing application program according to the corresponding relation between the first editing application program, the first non-editing application program and the left and right sound channels of the loudspeaker.
4. The method of claim 3, wherein controlling the left and right speaker channels by the first editing class application and the first non-editing class application, respectively, further comprises:
acquiring a sound playing mode of the terminal, acquiring the position of a cursor if the sound playing mode is a loudspeaker playing mode, and controlling left and right sound channels of a loudspeaker by a first editing application program if an interface where the cursor is located is an interface where the first editing application program is located; if the interface where the cursor is located is the interface where the first non-editing application program is located, controlling left and right sound channels of the loudspeaker by the first non-editing application program;
and if the earphone playing mode is adopted, the left and right sound channels of the loudspeaker are respectively controlled by the first editing application program and the first non-editing application program.
5. The method of any of claims 2-4, wherein maintaining synchronization of the playback progress of the first video file by the first editing class application and the first non-editing class application, further comprises:
detecting whether a user carries out clipping operation on the first video file, if so, marking the position information of a video segment cut or inserted by the first video file, and acquiring the position of a cursor;
if the interface where the cursor is located is the interface where the first editing application program is located, when the clipped first video file is played to the clipping position, the first non-editing application program skips the clipped video segment and continues to play the first video file; when the clipped first video file is played to an insertion position, the first non-editing application program suspends playing of the first video file, wherein the suspension time length is the playing time length of an inserted video segment;
if the interface where the cursor is located is the interface where the first non-editing application program is located, when the first non-editing application program is played to the cutting position of the first video file, the playing of the first video file is paused, and the pause time length is the playing time length of the inserted video segment; and when the first non-editing application program is played to the insertion position of the first video file, skipping the inserted video segment and continuing to play the first video file.
6. The method according to claim 1, wherein the step S3 or S4 further comprises:
acquiring the editing operation of a user on the first video file through the first editing application program, and after the user saves the edited first video file, automatically naming and saving a copy of the edited first video file;
the first non-editing application program obtains the saving operation and the saving path of the copy, and prompts the user whether to open the copy of the first video file on an interface of the first non-editing application program for opening the first video file; if so, the first non-editing application program closes the first video file and opens the copy; if not, the copy is not opened.
7. The method of claim 6, wherein after automatically naming and saving a copy of the edited first video file, further comprising:
if the user carries out editing operation on the second video file through the first editing application program, after the user saves the edited second video file, automatically naming the copy of the edited second video file, and creating an automatically named folder for saving the copy of the first video file and the copy of the second video file.
8. The method of claim 1, further comprising:
if the user performs closing operation on the first video file through the first editing application program, simultaneously performing closing operation on the first video file through the first non-editing application program;
and if the user performs closing operation on the first video file through the first non-editing application program, not closing the first non-editing application program and the first video file opened by the first non-editing application program.
9. A video browsing and editing system based on artificial intelligence is characterized by comprising the following modules:
the first identification module is used for acquiring the opening operation of a user on a first video file and identifying an application program and a category which can open the first video file in a terminal;
the second identification module is used for opening the first video file by using a default application program in the non-editing application programs or a default application program in the editing application programs if the application programs capable of opening the first video file are all non-editing application programs or editing application programs; if the application programs capable of opening the first video file comprise a non-editing application program and an editing application program, executing a first video file opening module;
the first video file opening module is used for identifying the screen number and the screen size of the terminal; if the number of the screens is multiple, opening the first video file on a first screen by using a first editing application program, and opening the first video file on a second screen by using a first non-editing application program;
a second video file opening module, configured to open the first video file using a first editing application and a first non-editing application respectively if the number of the screens is only one and the size of the screen is greater than or equal to a first size threshold, and display, in a split screen manner, the first video file opened by the first editing application and the first video file opened by the first non-editing application;
and the third video file opening module is used for opening the first video file by using a default application program in a non-editing application program or a default application program in an editing application program if the number of the screens is only one and the size of the screen is smaller than the first size threshold.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-8 when executing the program.
CN202010990932.0A 2020-09-19 2020-09-19 Video browsing editing method and system based on artificial intelligence Active CN112584208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010990932.0A CN112584208B (en) 2020-09-19 2020-09-19 Video browsing editing method and system based on artificial intelligence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010990932.0A CN112584208B (en) 2020-09-19 2020-09-19 Video browsing editing method and system based on artificial intelligence

Publications (2)

Publication Number Publication Date
CN112584208A true CN112584208A (en) 2021-03-30
CN112584208B CN112584208B (en) 2023-05-23

Family

ID=75119568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010990932.0A Active CN112584208B (en) 2020-09-19 2020-09-19 Video browsing editing method and system based on artificial intelligence

Country Status (1)

Country Link
CN (1) CN112584208B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024041468A1 (en) * 2022-08-25 2024-02-29 维沃移动通信有限公司 File processing method and apparatus, and electronic device and storage medium
WO2024074097A1 (en) * 2022-10-08 2024-04-11 北京字跳网络技术有限公司 Conversion method for multimedia editing file, apparatus, device, and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070240098A1 (en) * 2006-03-30 2007-10-11 Microsoft Corporation Per User File Associations
CN102521032A (en) * 2011-12-13 2012-06-27 北京风灵创景科技有限公司 Setting method for optimal application programs and mobile terminal
CN103440144A (en) * 2013-08-07 2013-12-11 北京奇虎科技有限公司 Setting method and device of default software for equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070240098A1 (en) * 2006-03-30 2007-10-11 Microsoft Corporation Per User File Associations
CN102521032A (en) * 2011-12-13 2012-06-27 北京风灵创景科技有限公司 Setting method for optimal application programs and mobile terminal
CN103440144A (en) * 2013-08-07 2013-12-11 北京奇虎科技有限公司 Setting method and device of default software for equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024041468A1 (en) * 2022-08-25 2024-02-29 维沃移动通信有限公司 File processing method and apparatus, and electronic device and storage medium
WO2024074097A1 (en) * 2022-10-08 2024-04-11 北京字跳网络技术有限公司 Conversion method for multimedia editing file, apparatus, device, and medium

Also Published As

Publication number Publication date
CN112584208B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US10360945B2 (en) User interface for editing digital media objects
JP4496264B2 (en) Electronic device and video display method
JP5361908B2 (en) Editing apparatus and editing method
CN109275028B (en) Video acquisition method, device, terminal and medium
US20170024110A1 (en) Video editing on mobile platform
CN105530440A (en) Video production method and device
WO2009081478A1 (en) Electronic device, control method, and program
CN112584208B (en) Video browsing editing method and system based on artificial intelligence
US20240013808A1 (en) Multimedia resource clipping method and apparatus, device and storage medium
CN112333536A (en) Audio and video editing method, equipment and computer readable storage medium
US9818448B1 (en) Media editing with linked time-based metadata
WO2022206366A1 (en) Application video processing method, and electronic device
CN108920057B (en) Method, device, equipment and storage medium for controlling connection nodes of electronic whiteboard
US20180239504A1 (en) Systems and methods for providing webinars
WO2022217944A1 (en) Method for binding subtitle with audio source, and apparatus
US20060159414A1 (en) Systems and methods for associating graphics information with audio and video material
CN114023287A (en) Audio mixing processing method and device for audio file, terminal and storage medium
WO2024002019A1 (en) Audio publishing method and apparatus, and computer-readable storage medium
CN112738563A (en) Method and device for automatically adding subtitle fragments and computer equipment
CN112616084B (en) Lyric display method, device, terminal and storage medium
JP2010093865A (en) Electronic apparatus and display control method
US10637905B2 (en) Method for processing data and electronic apparatus
CN113038014A (en) Video processing method of application program and electronic equipment
JPH07303209A (en) Special effect editing device
WO2023040743A1 (en) Video processing method, apparatus, and device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230425

Address after: 050000 Golden Collar Building, 106-1 Yuhua East Road, Yuhua District, Shijiazhuang City, Hebei Province, 2-2-1403

Applicant after: Hebei Nengrui Technology Co.,Ltd.

Address before: No.1 Changjiang River, intersection of Jingguang South Road and Changjiang Road, Erqi District, Zhengzhou City, Henan Province 452400

Applicant before: Wang Xiaoyan

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant