CN109936762B - Method for synchronously playing similar audio or video files and electronic equipment - Google Patents
Method for synchronously playing similar audio or video files and electronic equipment Download PDFInfo
- Publication number
- CN109936762B CN109936762B CN201910029198.9A CN201910029198A CN109936762B CN 109936762 B CN109936762 B CN 109936762B CN 201910029198 A CN201910029198 A CN 201910029198A CN 109936762 B CN109936762 B CN 109936762B
- Authority
- CN
- China
- Prior art keywords
- similar
- playing
- video
- segment
- video file
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000001360 synchronised effect Effects 0.000 claims abstract description 12
- 230000015654 memory Effects 0.000 claims description 17
- 239000012634 fragment Substances 0.000 claims description 10
- 230000000977 initiatory effect Effects 0.000 claims description 2
- 230000007547 defect Effects 0.000 abstract description 3
- 230000000694 effects Effects 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
In order to overcome the defects of the prior art, the invention provides a method for synchronously playing similar audio or video files and electronic equipment, and aims to solve the problems that the distribution condition of similar parts of the content cannot be quickly identified when the existing audio and video content is checked, the playing progress needs to be manually dragged for comparison, and the synchronous playing of the audio, video to be detected and the target audio and video cannot be realized. According to the scheme, the plurality of segments with similar playing contents can calculate the playing speed of different segments according to the playing time of the similar content segments, the similar front segments and the similar rear segments, so that the technical effect of synchronous playing of different audio or video files is realized, and corresponding contents can be more efficiently checked in the process of manually checking the contents of the audio or video files.
Description
Technical Field
The present invention relates to the field of audio/video file processing, and in particular, to a method for synchronously playing a plurality of similar audio or video files and an electronic device.
Background
With the rapid development of the internet, more and more platforms support users to upload created audio or video software to the internet, and a large amount of video resources are spread and viewed on the internet. Meanwhile, pirate resources for imitating and copying hot audio and video are continuously emerged, and a great amount of video embezzlement brings great loss to video copyright exclusive companies.
In order to prevent legal risks, a copyright party or an authorized party needs to invest a large amount of resources to search for similar videos in order to maintain own interests, and in the prior art, whether videos are similar videos is generally judged by comparing names of the videos to be detected and the original videos or manually checking contents of the videos to be detected and the original videos, and then whether the videos to be detected are pirate videos is determined. When the video content is checked manually, the video to be detected needs to be dragged manually, the working efficiency is low, and similar content of the video is easy to miss.
In the prior art, the invention of china, "a method and a device for detecting similar videos and pirated videos", patent No. 201511030498.7, published 2016, 06, 15, discloses a method for automatically comparing similar videos using a program, but the above-mentioned techniques only disclose a method for comparing videos, only can display comparison results, and cannot synchronously display similar contents.
Contents of the invention
In view of the above situation, in order to overcome the defects of the prior art, the present invention firstly provides a method for synchronously playing similar audio or video files, and aims to solve the problems that the distribution situation of similar content parts cannot be quickly identified when the existing audio/video content is viewed, the playing progress needs to be manually dragged for comparison, and the synchronous playing of the audio/video to be detected and the target audio/video cannot be realized.
The technical scheme is that the method for synchronously playing the files obtains at least two audio and video files with similar contents, and is characterized in that the playing contents of the audio and video files are defined as a similar front segment, a similar segment and a similar rear segment according to whether the contents of the obtained audio and video files are similar or not;
respectively obtaining the playing time lengths of similar front segments, similar segments and similar rear segments of different audio and video files; and adjusting the playing speed of the audio and video files according to the proportion of the playing time of the corresponding segments of the different audio and video files, so that the different audio and video files can be synchronously played according to the adjusted speed.
In an embodiment, the video files are a first video file a and a second video file B, and the first video file a and the second video file B are respectively decomposed into a similar front segment, a similar segment and a similar rear segment according to distribution of similar contents of the first video file and the second video file.
In one embodiment, the start time point and the end time point of the similar segment in the first video file a are a0 and a1, respectively, and the video end time point is a 2; the start time point and the end time point of the similar clip in the second video file B are respectively B0 and B1, the video end time point is B2, and the playing time lengths of the similar front clip, the similar clip and the similar back clip of the first video file are respectively obtained as follows:
first video file a:
similar preceding segment play duration: a0;
similar segment playing time length: A1-A0;
similar post-play duration: A2-A1;
second video file B:
similar preceding segment play duration: b0
Similar segment playing time length: B1-B0
Similar back segment play duration: B2-B1;
and (3) calculating the playing speed of each segment of the second video file:
similar pre-fragment B0 ═ xA0
Similar fragment B1-B0 ═ y (a1-a0)
Fragment B2-B1 ═ z (a2-a1) after similarity
Wherein x, y and z are the playing speed of B before, after and after the similarity respectively.
In one embodiment, according to whether the contents of the video files are similar and the positions of the video files, the video files are marked with different marks to play each segment, so that the corresponding playing segments of different video files are displayed in the same color.
In one embodiment, an electronic device includes: one or more processors; one or more memories; and one or more programs, wherein the one or more programs are stored in the storage, and the one or more programs are executed by the one or more processors; the one or more programs include instructions for performing any of the methods of claims 1-3.
In one embodiment, an electronic device includes: a display; a memory for storing one or more programs for executing instructions of any of the methods of claims 1-3; a processor coupled to the display, the memory; the processor is configured to execute instructions associated with comparing, decomposing, and marking the content of an audio or video file.
In an embodiment, the display in the electronic device is configured to display one or more audio or video file playing interfaces, where the playing interfaces display marks corresponding to a similar front segment, a similar segment, and a similar back segment of an audio or video file, respectively.
In one embodiment, the display of the electronic device includes a button or other graphical indicia associated with initiating the synchronized playback of two or more video files.
According to the scheme, the plurality of segments with similar playing contents can calculate the playing speed of different segments according to the playing time of the similar content segments, the similar front segments and the similar rear segments, so that the technical effect of synchronous playing of different audio or video files is realized, and corresponding contents can be more efficiently checked in the process of manually checking the contents of the audio or video files.
Drawings
Fig. 1 is an exploded view of a video file.
Fig. 2 is a schematic diagram illustrating adjustment of the playing speed of different video files.
Fig. 3 is a schematic view of a video file playing interface.
FIG. 4 is a schematic diagram of playing a similar previous clip of different video files.
Fig. 5 is a schematic diagram illustrating playing of similar segments of different video files.
FIG. 6 is a block diagram of an electronic device in some embodiments.
FIG. 7 is a flow chart of a method for synchronous playback of similar audio or video files.
Detailed Description
The following detailed description is made with reference to the accompanying drawings.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Those of ordinary skill in the art will recognize that the directional terms "upper," "lower," "outer," "inner," etc., are used in a descriptive sense with respect to the figures and are not intended to limit the scope of the claims.
The following description sets forth exemplary methods, parameters, and the like. It should be recognized, however, that such description is not intended as a limitation on the scope of the present disclosure, but is instead provided as a description of exemplary embodiments.
Embodiments of electronic devices, user interfaces for such devices, and associated processes for using such devices are described herein. In some embodiments, the device is a device that also contains other functionality such as a tablet, desktop, laptop, or other device capable of executing program instructions and playing audio or video files.
Aiming at solving the problems that the distribution condition of similar parts of the content can not be quickly identified when the existing audio and video content is checked, the playing progress needs to be manually dragged for comparison, and the synchronous playing of the audio and video to be detected and the target video can not be realized, the invention firstly provides a method for synchronously playing the similar audio or video files and equipment for realizing the method in order to overcome the defects of the prior art.
An electronic device, a block diagram of an electronic device of an embodiment is presented, as shown in fig. 6. The apparatus comprises: a display 101 or screen, a memory 102 (which optionally includes one or more computer-readable storage media), a memory controller 103, one or more processors (CPUs) 104. These components optionally communicate over one or more communication buses or signal lines 105.
It should be understood that device 100 is just one example of a device, and that device 100 optionally has more or fewer components than shown, optionally combines two or more components, or optionally has a different configuration or arrangement of these components. The various components shown in fig. 5 are implemented in hardware, software, or a combination of both hardware and software, including one or more signal processing circuits and/or application specific integrated circuits.
In some examples, a non-transitory computer-readable storage medium of memory 102 may be used to store the instructions for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
The device 100 also includes a power system 106 for powering the various components. The power system 106 may include a power management system, one or more power sources (e.g., battery, Alternating Current (AC)), a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator (e.g., a Light Emitting Diode (LED)), and any other components associated with the generation, management, and distribution of power in a portable device.
In some embodiments, the software components stored in memory 102 include an operating system 107, a communication module (or set of instructions) 108, and an application (or set of instructions) 109.
The operating system 107 (e.g., Darwin, RTXC, LINUX, UNIX, OSX, iOS, Android, WINDOWS, or embedded operating systems such as VxWorks) includes various software components and/or drivers for controlling and managing general system tasks (e.g., memory 102 management, storage device control, power management, etc.) and facilitates communication between various hardware and software components.
The communication module 108 facilitates communication with other devices through one or more external ports.
Each of the modules and applications described above corresponds to a set of executable instructions for performing one or more of the functions described above as well as the methods described in this patent application (e.g., the computer-implemented methods and other information processing methods described herein). These modules (e.g., sets of instructions) need not be implemented as separate software programs, procedures or modules, and thus various subsets of these modules may be combined or otherwise rearranged in various embodiments.
The processor is configured to receive user input associated with a request for media, including signals entered by peripheral devices (e.g., mouse, keyboard, etc.) keys that may turn on or off the opening, closing, contrastive analysis, decomposition, and synchronized playback of audio or video files.
In some embodiments, a comparison program instruction set for comparing video or audio files is stored in the memory, similar content of the video files is found by using the comparison program instruction set, a playing time node where the similar content is located is determined, the video files are divided into a similar front segment, a similar segment and a playing back segment according to the time node of the similar content, and in some embodiments, progress bars of the similar front segment, the similar segment and the playing back segment are marked with different colors during playing.
In an embodiment, the video files are a first video file a and a second video file B, and the first video file a and the second video file B are respectively decomposed into a similar front segment, a similar segment and a similar rear segment according to distribution of similar contents of the first video file and the second video file.
In one embodiment, the start time point and the end time point of the similar segment in the first video file a are a0 and a1, respectively, and the video end time point is a 2; the start time point and the end time point of the similar clip in the second video file B are respectively B0 and B1, the video end time point is B2, and the playing time lengths of the similar front clip, the similar clip and the similar back clip of the first video file are respectively obtained as follows:
first video file a:
similar preceding segment play duration: a0;
similar segment playing time length: A1-A0;
similar post-play duration: A2-A1;
second video file B:
similar preceding segment play duration: b0
Similar segment playing time length: B1-B0
Similar back segment play duration: B2-B1;
and (3) calculating the playing speed of each segment of the second video file:
similar pre-fragment B0 ═ xA0
Similar fragment B1-B0 ═ y (a1-a0)
Fragment B2-B1 ═ z (a2-a1) after similarity
Wherein x, y and z are the playing speed of B before, after and after the similarity respectively.
In one embodiment, video a is 40 seconds long, similar segments start at 20 seconds and end at 30 seconds; video B duration 30 seconds, similar segment starts at 15 seconds and ends at 20 seconds). Namely, it is
A0=15 A1=20 A2=40
B0=10 B1=20 B2=30
According to the formula, the method comprises the following steps:
namely: b similar front fragment playing time length is 2/3 times speed playing, as shown in fig. 5, extending from 10 seconds to 15 seconds; the playing time of the similar clip is shortened from 10 seconds to 5 seconds at 2 times speed as shown in fig. 6; similar back clip play duration extends from 10 seconds to 20 seconds at 1/2 times speed. By the synchronization method, the final playing time length of B is 40 seconds, so that the synchronous playing of two video similar segments with different time lengths is realized, and the synchronous playing is finished.
According to the scheme, the plurality of segments with similar playing contents can calculate the playing speed of different segments according to the playing time of the similar content segments, the similar front segments and the similar rear segments, so that the technical effect of synchronous playing of different audio or video files is realized, and corresponding contents can be more efficiently checked in the process of manually checking the contents of the audio or video files.
Claims (6)
1. The method for synchronously playing the audio and video files is characterized in that the playing contents of the video files are defined as a similar front segment, a similar segment and a similar rear segment according to whether the contents of the obtained video files are similar; respectively obtaining the playing time lengths of similar front segments, similar segments and similar back segments of different video files; adjusting the playing speed of the video files according to the proportion of the playing time of the corresponding segments of the different video files, so that the different video files can be synchronously played according to the adjusted speed, wherein the video files are a first video file A and a second video file B, the first video file A and the second video file B are respectively decomposed into a similar front segment, a similar segment and a similar rear segment according to the distribution of the similar contents of the first video file and the second video file, the starting time point and the ending time point of the similar segment in the first video file A are respectively A0 and A1, and the video ending time point is A2; the start time point and the end time point of the similar clip in the second video file B are respectively B0 and B1, the video end time point is B2, and the playing time lengths of the similar front clip, the similar clip and the similar back clip of the first video file are respectively obtained as follows:
first video file a:
similar preceding segment play duration: a0;
similar segment playing time length: A1-A0;
similar post-play duration: A2-A1;
second video file B:
similar preceding segment play duration: b0
Similar segment playing time length: B1-B0
Similar back segment play duration: B2-B1;
and (3) calculating the playing speed of each segment of the second video file:
similar front fragment B0= xA0
Similar fragment B1-B0= y (A1-A0)
Similar rear fragment B2-B1= z (A2-A1)
Wherein x, y and z are the playing speed of B before, after and after the similarity respectively.
2. The method for synchronously playing the audio/video files according to claim 1, wherein the segments played by the video files are identified by different marks according to whether the contents and positions of the video files are similar, so that the corresponding segments played by different video files are displayed in the same color.
3. An electronic device, comprising:
one or more processors;
one or more memories; and one or more programs, wherein the one or more programs are stored in the storage, and the one or more programs are executed by the one or more processors; the one or more programs include instructions for performing any of the methods of claims 1-2.
4. An electronic device, comprising:
a display;
a memory for storing one or more programs for executing instructions of any of the methods of claims 1-2;
a processor coupled to the display, the memory;
the processor is configured to execute instructions associated with comparing, decomposing, and marking the content of an audio or video file.
5. The electronic device of claim 4, wherein the display is configured to display one or more audio-visual or video file playing interfaces, and the playing interface displays corresponding marks of a similar front segment, a similar segment, and a similar back segment of an audio or video file.
6. The electronic device of claim 5, wherein the display comprises a button or other graphical indicia associated with initiating synchronized playback of two or more video files.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910029198.9A CN109936762B (en) | 2019-01-12 | 2019-01-12 | Method for synchronously playing similar audio or video files and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910029198.9A CN109936762B (en) | 2019-01-12 | 2019-01-12 | Method for synchronously playing similar audio or video files and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109936762A CN109936762A (en) | 2019-06-25 |
| CN109936762B true CN109936762B (en) | 2021-06-25 |
Family
ID=66985025
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910029198.9A Expired - Fee Related CN109936762B (en) | 2019-01-12 | 2019-01-12 | Method for synchronously playing similar audio or video files and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109936762B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110324689B (en) * | 2019-07-08 | 2022-05-17 | 成都酷狗创业孵化器管理有限公司 | Audio and video synchronous playing method, device, terminal and storage medium |
| CN110719529B (en) * | 2019-10-24 | 2021-11-23 | 北京文渊佳科技有限公司 | Multi-channel video synchronization method, device, storage medium and terminal |
| CN114095668B (en) * | 2021-10-08 | 2025-05-09 | 深圳市景阳科技股份有限公司 | A video playback method, device, equipment and computer storage medium |
| CN119277138A (en) * | 2023-07-06 | 2025-01-07 | 脸萌有限公司 | Video detection method, device, electronic device and storage medium |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7084898B1 (en) * | 2003-11-18 | 2006-08-01 | Cisco Technology, Inc. | System and method for providing video conferencing synchronization |
| WO2007096691A2 (en) * | 2006-02-21 | 2007-08-30 | Nokia Corporation | Generating a representation of a dancer dancing to music |
| CN101640057A (en) * | 2009-05-31 | 2010-02-03 | 北京中星微电子有限公司 | Audio and video matching method and device therefor |
| CN103856819A (en) * | 2012-11-30 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Play speed adjusting device and method |
| CN103905742A (en) * | 2014-04-10 | 2014-07-02 | 北京数码视讯科技股份有限公司 | Video file segmentation method and device |
| CN103931199A (en) * | 2011-11-14 | 2014-07-16 | 苹果公司 | Generation of multi -views media clips |
| CN104504307A (en) * | 2015-01-08 | 2015-04-08 | 北京大学 | Method and device for detecting audio/video copy based on copy cells |
| CN107105314A (en) * | 2017-05-12 | 2017-08-29 | 北京小米移动软件有限公司 | Video broadcasting method and device |
| CN107239496A (en) * | 2017-05-02 | 2017-10-10 | 青岛海信电器股份有限公司 | Multimedia information retrieval method and multimedia information retrieval device |
| CN107888948A (en) * | 2017-11-07 | 2018-04-06 | 北京小米移动软件有限公司 | Determine method and device, the electronic equipment of video file broadcasting speed |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7471337B2 (en) * | 2004-06-09 | 2008-12-30 | Lsi Corporation | Method of audio-video synchronization |
| CN101859582A (en) * | 2010-04-29 | 2010-10-13 | 北京中星微电子有限公司 | Method and device for playing audio and video in multi-window |
| US20140047371A1 (en) * | 2012-08-10 | 2014-02-13 | Smartdrive Systems Inc. | Vehicle Event Playback Apparatus and Methods |
| CN106572387B (en) * | 2016-11-09 | 2019-09-17 | 广州视源电子科技股份有限公司 | Video sequence alignment method and system |
-
2019
- 2019-01-12 CN CN201910029198.9A patent/CN109936762B/en not_active Expired - Fee Related
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7084898B1 (en) * | 2003-11-18 | 2006-08-01 | Cisco Technology, Inc. | System and method for providing video conferencing synchronization |
| WO2007096691A2 (en) * | 2006-02-21 | 2007-08-30 | Nokia Corporation | Generating a representation of a dancer dancing to music |
| CN101640057A (en) * | 2009-05-31 | 2010-02-03 | 北京中星微电子有限公司 | Audio and video matching method and device therefor |
| CN103931199A (en) * | 2011-11-14 | 2014-07-16 | 苹果公司 | Generation of multi -views media clips |
| CN103856819A (en) * | 2012-11-30 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Play speed adjusting device and method |
| CN103905742A (en) * | 2014-04-10 | 2014-07-02 | 北京数码视讯科技股份有限公司 | Video file segmentation method and device |
| CN104504307A (en) * | 2015-01-08 | 2015-04-08 | 北京大学 | Method and device for detecting audio/video copy based on copy cells |
| CN107239496A (en) * | 2017-05-02 | 2017-10-10 | 青岛海信电器股份有限公司 | Multimedia information retrieval method and multimedia information retrieval device |
| CN107105314A (en) * | 2017-05-12 | 2017-08-29 | 北京小米移动软件有限公司 | Video broadcasting method and device |
| CN107888948A (en) * | 2017-11-07 | 2018-04-06 | 北京小米移动软件有限公司 | Determine method and device, the electronic equipment of video file broadcasting speed |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109936762A (en) | 2019-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109936762B (en) | Method for synchronously playing similar audio or video files and electronic equipment | |
| US20190149872A1 (en) | Information exchanging method and device, audio terminal and computer-readable storage medium | |
| US20130058522A1 (en) | Media source identification | |
| WO2022022700A1 (en) | Application icon display method and apparatus, and electronic device | |
| US11511200B2 (en) | Game playing method and system based on a multimedia file | |
| CN103324483B (en) | Application of smart terminal to display hidden method and device | |
| CN105955769A (en) | Method and apparatus for starting multimedia application | |
| US9495348B2 (en) | Template application error detection | |
| CN106250063A (en) | Page turning method and device and writing terminal | |
| CN102023848A (en) | Taskbar button management method and device | |
| US9323367B2 (en) | Automatic annotation de-emphasis | |
| US10514996B2 (en) | Simulation reproducing apparatus and computer-readable recording medium | |
| CN109426504B (en) | Program processing method, program processing device, electronic device and storage medium | |
| EP4412745B1 (en) | Determining a degree of smoothing based on whether a latency between light and audio will likely exceed a threshold | |
| CN107608737A (en) | Animation playing method and device | |
| US10324681B2 (en) | Method, apparatus and medium for continuous playback of sound file | |
| WO2024067348A2 (en) | Memory allocator determination method and apparatus, and electronic device and storage medium | |
| CN117706901A (en) | Alarm clock time calibration method, device, equipment and storage medium | |
| CN109469962A (en) | Air conditioner defrosting method and device and storage medium | |
| US9615118B1 (en) | System and method for scheduling clips | |
| CN116560837A (en) | Cache resource adjustment method, device, electronic device and readable storage medium | |
| CN112468952B (en) | Positioning method, positioning device, storage medium and electronic equipment | |
| CN108170607B (en) | Control device and control method of OTP switch | |
| US20140270523A1 (en) | Multimedia copy source detection | |
| US12327121B2 (en) | Instruction scheduling method, instruction scheduling apparatus, device and storage medium based on durations consumed by memory access instructions during instruction running scenarios |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210625 Termination date: 20220112 |