[go: up one dir, main page]

CN104159161B - The localization method and device of video image frame - Google Patents

The localization method and device of video image frame Download PDF

Info

Publication number
CN104159161B
CN104159161B CN201410422473.0A CN201410422473A CN104159161B CN 104159161 B CN104159161 B CN 104159161B CN 201410422473 A CN201410422473 A CN 201410422473A CN 104159161 B CN104159161 B CN 104159161B
Authority
CN
China
Prior art keywords
video
frame
time
user
positioning
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
Application number
CN201410422473.0A
Other languages
Chinese (zh)
Other versions
CN104159161A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410422473.0A priority Critical patent/CN104159161B/en
Publication of CN104159161A publication Critical patent/CN104159161A/en
Application granted granted Critical
Publication of CN104159161B publication Critical patent/CN104159161B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明实施例公开了一种视频图像帧的定位方法和装置。所述方法包括:获取视频基准时间;根据所述视频基准时间和由用户操作设置的相对调整时间,确定视频帧定位时间;将视频中与所述视频帧定位时间对应的视频图像帧进行输出。本发明解决了现有的视频截取技术在多数情况下,截取的视频画面往往不是用户真正想要截取的或者效果最好的视频画面的技术问题,提高了视频截取的定位精度,优化了现有的视频截取技术,满足了人们日益增强的个性化、便捷化的视频截取需求。

The embodiment of the invention discloses a video image frame positioning method and device. The method includes: acquiring a video reference time; determining a video frame location time according to the video reference time and a relative adjustment time set by a user operation; and outputting a video image frame corresponding to the video frame location time in the video. The present invention solves the technical problem that in most cases, the captured video picture is not what the user really wants to capture or the video picture with the best effect in most cases in the existing video capture technology, improves the positioning accuracy of the video capture, and optimizes the existing The advanced video interception technology meets people's increasingly personalized and convenient video interception needs.

Description

视频图像帧的定位方法和装置Method and device for locating video image frames

技术领域technical field

本发明实施例涉及视频图像处理技术,尤其涉及一种视频图像帧的定位方法和装置。Embodiments of the present invention relate to video image processing technologies, and in particular, to a method and device for locating video image frames.

背景技术Background technique

随着互联网技术的不断发展,在网络带宽不断增长的今天,网络视频以其便捷的访问体验、多样化的影片来源以及实时的更新速度吸引了广大的用户,使得网络视频成为了用户网络生活中不可或缺的重要组成部分。With the continuous development of Internet technology and the continuous increase of network bandwidth today, online video has attracted a large number of users with its convenient access experience, diverse video sources and real-time update speed, making online video a part of users' online life. Indispensable and important component.

目前,越来越多的终端用户趋向于使用终端设备(例如,台式机、智能手机或者平板电脑等)来观看网络视频,或者将网络视频下载到本地来进行观看。一般来说,终端用户可以通过在终端设备中安装特定的本地播放应用软件(例如,KMPlayer、Media PlayerClassic等)或者网页视频客户端(例如,迅雷看看、优酷视频、土豆视频)等视频播放工具后,即可观看网络或者本地视频。At present, more and more end users tend to use terminal devices (for example, desktop computers, smart phones, or tablet computers, etc.) to watch online videos, or download online videos locally for viewing. Generally speaking, end users can install specific local playback application software (for example, KMPlayer, Media PlayerClassic, etc.) or web video clients (for example, Thunder Kankan, Youku Video, Tudou Video) and other video playback tools After that, you can watch network or local video.

当用户通过视频播放工具观看视频过程中,在看到精彩画面时,有很多时候都想将该视频画面截取出来分享给周围的人。现有的视频截取技术要求终端用户拖动视频播放进度条至想要截屏的位置后,暂停屏幕完成截屏。而现有技术的主要缺陷是:在大多数情况下,用户通过拖动视频播放进度条的方式截取的视频画面往往不是用户真正想要截取的或者效果最好的视频画面。When a user watches a video through a video playback tool and sees a wonderful picture, many times he wants to capture the video picture and share it with the people around him. The existing video capture technology requires the end user to drag the video playback progress bar to the position where the screen capture is desired, and then pause the screen to complete the screen capture. And the main defect of prior art is: in most cases, the video frame intercepted by the mode that the user drags the video playback progress bar is often not the video frame that the user really wants to intercept or the video frame with the best effect.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种视频图像帧的定位方法和装置,以优化现有的视频截取技术,满足人们日益增强的个性化、便捷化的视频截取需求。In view of this, the embodiments of the present invention provide a method and device for locating video image frames, so as to optimize the existing video interception technology and meet people's increasing demand for personalized and convenient video interception.

在第一方面,本发明实施例提供了一种视频图像帧的定位方法,包括:In a first aspect, an embodiment of the present invention provides a method for locating video image frames, including:

获取视频基准时间;Obtain the video reference time;

根据所述视频基准时间和由用户操作设置的相对调整时间,确定视频帧定位时间;Determine the video frame positioning time according to the video reference time and the relative adjustment time set by the user operation;

将视频中与所述视频帧定位时间对应的视频图像帧进行输出。Outputting the video image frame corresponding to the positioning time of the video frame in the video.

在第二方面,本发明实施例提供了一种视频图像帧的定位装置,包括:In a second aspect, an embodiment of the present invention provides a positioning device for a video image frame, including:

基准时间获取单元,用于获取视频基准时间;A reference time acquisition unit, configured to obtain a video reference time;

视频帧定位时间确定单元,用于根据所述视频基准时间和由用户操作设置的相对调整时间,确定视频帧定位时间;A video frame positioning time determination unit, configured to determine the video frame positioning time according to the video reference time and the relative adjustment time set by the user operation;

视频图像帧输出单元,用于将视频中与所述视频帧定位时间对应的视频图像帧进行输出。A video image frame output unit, configured to output the video image frame corresponding to the positioning time of the video frame in the video.

本发明实施例通过根据用户操作确定视频基准时间和相对调整时间;将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;将视频中与所述视频帧定位时间对应的视频图像帧提供给用户的技术手段,解决了现有的视频截取技术在多数情况下,截取的视频画面往往不是用户真正想要截取的或者效果最好的视频画面的技术问题,提高了视频截取的定位精度,优化了现有的视频截取技术,满足了人们日益增强的个性化、便捷化的视频截取需求。In the embodiment of the present invention, the video reference time and the relative adjustment time are determined according to user operations; the sum of the video reference time and the relative adjustment time is used as the video frame positioning time; The technical means provided by the video image frame to the user solves the technical problem that in most cases, the captured video picture is not what the user really wants to capture or the video picture with the best effect in the existing video interception technology, and improves the video capture technology. It optimizes the existing video interception technology and meets people's increasingly personalized and convenient video interception needs.

附图说明Description of drawings

图1是本发明第一实施例的一种视频图像帧的定位方法的流程图;Fig. 1 is a flow chart of a positioning method of a video image frame according to the first embodiment of the present invention;

图2是本发明第二实施例的一种视频图像帧的定位方法的流程图;Fig. 2 is a flow chart of a positioning method of a video image frame according to the second embodiment of the present invention;

图3是本发明第三实施例的一种视频图像帧的定位方法的流程图;Fig. 3 is a flowchart of a positioning method of a video image frame according to the third embodiment of the present invention;

图4是本发明第四实施例的一种视频图像帧的定位方法的流程图;FIG. 4 is a flowchart of a positioning method of a video image frame according to a fourth embodiment of the present invention;

图5是本发明实施例的一种优选应用场景的人机交互示意图;FIG. 5 is a schematic diagram of human-computer interaction in a preferred application scenario of an embodiment of the present invention;

图6是本发明第五实施例的一种视频图像帧的定位装置的结构图。Fig. 6 is a structural diagram of an apparatus for locating video image frames according to a fifth embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。In order to make the object, technical solution and advantages of the present invention clearer, specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.

首先将本发明各实施例的实现思路简述如下:为了实现在视频中精准定位用户实际需要的视频图像帧,本发明各实施例中综合使用视频基准时间和相对调整时间来最终定位视频图像帧。其中,视频基准时间用于粗略定位,相对调整时间用于在视频基准时间的基础上进行精确定位,即在视频基准时间的基础上,向视频前进方向或者视频后退方向调整设定秒数或者设定帧数,以实现精确定位视频图像帧。First, the implementation idea of each embodiment of the present invention is briefly described as follows: In order to accurately locate the video image frame actually required by the user in the video, the various embodiments of the present invention comprehensively use the video reference time and the relative adjustment time to finally locate the video image frame . Among them, the video reference time is used for rough positioning, and the relative adjustment time is used for precise positioning based on the video reference time, that is, on the basis of the video reference time, adjust the set seconds or set Set the number of frames to achieve precise positioning of video image frames.

第一实施例first embodiment

图1是本发明第一实施例的一种视频图像帧的定位方法的流程图,本实施例的方法可以由视频图像帧的定位装置来执行,该装置可通过硬件和/或软件的方式实现,并集成于视频播放器所在的终端设备中与视频播放器配合使用,或作为视频播放器的子程序。本实施例的方法具体包括如下步骤:Fig. 1 is a flow chart of a positioning method of a video image frame according to the first embodiment of the present invention, the method of this embodiment can be executed by a positioning device of a video image frame, and the device can be realized by means of hardware and/or software , and be integrated into the terminal device where the video player is located and used in conjunction with the video player, or as a subroutine of the video player. The method of this embodiment specifically includes the following steps:

步骤110、获取视频基准时间。Step 110, acquiring a video reference time.

在本实施例中,终端设备获取视频基准时间。In this embodiment, the terminal device acquires the video reference time.

其中,视频基准时间具体用作视频图像帧的定位起点。终端设备以该视频基准时间为基础,根据相对调整时间精确定位用户期望获取的视频图像帧,换个角度讲,用户可以以视频基准时间对应的视频帧为定位基准,向视频前进方向或者视频后退方向调整设定时间或者设定帧数(设定相对调整时间),以获取期望视频图像帧。Wherein, the video reference time is specifically used as a positioning starting point of a video image frame. Based on the video reference time, the terminal device accurately locates the video image frame that the user expects to obtain according to the relative adjustment time. From another perspective, the user can use the video frame corresponding to the video reference time as the positioning reference to move forward or backward in the video Adjust the set time or set the number of frames (set relative adjustment time) to obtain desired video image frames.

在本实施例中,终端设备获取视频基准时间的方式可以具体包括:In this embodiment, the way the terminal device acquires the video reference time may specifically include:

根据用户对视频播放器中正在播放视频的视频播放进度条的拖动操作,确定与所述拖动操作对应的拖动位置;获取与所述拖动位置对应的视频播放时间,作为视频基准时间;或者Determine the drag position corresponding to the drag operation according to the user's drag operation to the video playback progress bar of the video being played in the video player; obtain the video playback time corresponding to the drag position as the video reference time ;or

根据用户对视频播放器正在播放视频的视频暂停操作,获取与当前暂停位置对应的视频播放时间,作为视频基准时间;或者According to the user's video pause operation on the video being played by the video player, obtain the video playback time corresponding to the current pause position as the video reference time; or

直接获取用户输入的视频播放时间,作为视频基准时间等,对比并不进行限定。The playing time of the video input by the user is obtained directly, and used as a video reference time, etc., and the comparison is not limited.

步骤120、根据所述视频基准时间和由用户操作设置的相对调整时间,确定视频帧定位时间。Step 120: Determine the video frame positioning time according to the video reference time and the relative adjustment time set by the user operation.

在本实施例中,终端设备根据视频基准时间和由用户操作设置的相对调整时间,确定视频帧定位时间。In this embodiment, the terminal device determines the video frame positioning time according to the video reference time and the relative adjustment time set by the user operation.

其中,相对调整时间具体用作在视频基准时间的基础上,对用户期望获取的视频图像帧进行精确定位。Wherein, the relative adjustment time is specifically used for precisely positioning the video image frame that the user expects to acquire on the basis of the video reference time.

其中,由用户操作设置的相对调整时间的获取方法可以具体包括:Wherein, the method for obtaining the relative adjustment time set by the user operation may specifically include:

将用户输入的调整时间(例如,0.5s,1s或者2s等)直接作为相对调整时间,其中,上述调整秒数的精度可以根据实际情况进行预设;或者The adjustment time input by the user (for example, 0.5s, 1s or 2s, etc.) is directly used as the relative adjustment time, wherein the accuracy of the above-mentioned adjustment seconds can be preset according to the actual situation; or

根据用户输入的调整帧数(例如,1帧、2帧、或者5帧等),计算出相应的相对调整时间;或者Calculate the corresponding relative adjustment time according to the number of adjustment frames input by the user (for example, 1 frame, 2 frames, or 5 frames, etc.); or

根据用户点击或者点触人机交互界面中的设定区域,来获取或者计算出对应的相对调整时间等,对比并不进行限制。According to the user clicking or touching the setting area in the human-computer interaction interface, the corresponding relative adjustment time is obtained or calculated, and the comparison is not limited.

其中,根据所述视频基准时间和由用户操作设置的相对调整时间,确定视频帧定位时间具体可以包括:Wherein, according to the video reference time and the relative adjustment time set by the user operation, determining the video frame positioning time may specifically include:

如果相对调整时间中同时包括了调整方向信息,典型的,相对调整时间大于0代表向视频前进方向进行视频帧调整,相对调整时间小于0代表向视频后退方向进行视频帧调整。此时,可以直接将所述视频基准时间和所述相对调整时间之和,作为视频帧定位时间;If the relative adjustment time also includes adjustment direction information, typically, a relative adjustment time greater than 0 means that the video frame is adjusted in the forward direction of the video, and a relative adjustment time less than 0 means that the video frame is adjusted in the backward direction of the video. At this point, the sum of the video reference time and the relative adjustment time can be directly used as the video frame positioning time;

如果相对调整时间中不包括调整方向的信息,仅仅代表在时间上的调整距离,典型的,相对调整时间仅使用正整数表示。此时,如果确定向视频前进方向进行视频帧调整,可以将所述视频基准时间和所述相对调整时间之和,作为视频帧定位时间;如果确定向视频后退方向进行视频帧调整,可以将所述视频基准时间和所述相对调整时间之差,作为视频帧定位时间等,对此并不进行限制。If the information of the adjustment direction is not included in the relative adjustment time, it only represents the adjustment distance in time. Typically, the relative adjustment time is only represented by a positive integer. At this time, if it is determined to adjust the video frame to the forward direction of the video, the sum of the video reference time and the relative adjustment time can be used as the video frame positioning time; if it is determined to adjust the video frame to the video backward direction, all The difference between the video reference time and the relative adjustment time is used as the video frame positioning time, etc., which is not limited.

步骤130、将视频中与所述视频帧定位时间对应的视频图像帧进行输出。Step 130: Output the video image frame corresponding to the positioning time of the video frame in the video.

在本实施例中,终端设备将视频中与所述视频帧定位时间对应的视频图像帧进行输出。In this embodiment, the terminal device outputs the video image frame corresponding to the positioning time of the video frame in the video.

其中,将视频中与所述视频帧定位时间对应的视频图像帧进行输出可以具体包括:Wherein, outputting the video image frame corresponding to the positioning time of the video frame in the video may specifically include:

将所述视频帧定位时间发送至设定的视频跳转接口(例如,播放器中的seekTo()接口函数等),以实现将视频跳转至与所述视频帧定位时间对应的视频位置进行解码;获取解码结果作为视频中与所述视频帧定位时间对应的视频图像帧进行输出;或者The video frame positioning time is sent to the set video jump interface (for example, the seekTo () interface function in the player, etc.), to realize that the video jumps to the video position corresponding to the video frame positioning time. Decoding; obtaining the decoding result as a video image frame corresponding to the positioning time of the video frame in the video and outputting it; or

根据所述视频帧定位时间,获取视频中与该定时时间对应的视频帧编号,举例而言,获取的视频帧定位时间为35min,视频的帧间隔ΔT=0.1s,可以确定视频中与该视频帧定位时间对应的视频帧编号为:35*60/0.1=21000;获取视频中与所述视频帧编号对应的视频图像帧进行输出。According to the video frame positioning time, obtain the video frame number corresponding to the timing time in the video. For example, the video frame positioning time obtained is 35min, and the frame interval ΔT=0.1s of the video can determine the video frame number corresponding to the video frame. The video frame number corresponding to the frame positioning time is: 35*60/0.1=21000; the video image frame corresponding to the video frame number in the video is acquired and output.

本发明实施例通过根据用户操作确定视频基准时间和相对调整时间;将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;将视频中与所述视频帧定位时间对应的视频图像帧提供给用户的技术手段,解决了现有的视频截取技术在多数情况下,截取的视频画面往往不是用户真正想要截取的或者效果最好的视频画面的技术问题,提高了视频截取的定位精度,优化了现有的视频截取技术,满足了人们日益增强的个性化、便捷化的视频截取需求。In the embodiment of the present invention, the video reference time and the relative adjustment time are determined according to user operations; the sum of the video reference time and the relative adjustment time is used as the video frame positioning time; The technical means provided by the video image frame to the user solves the technical problem that in most cases, the captured video picture is not what the user really wants to capture or the video picture with the best effect in the existing video interception technology, and improves the video capture technology. It optimizes the existing video interception technology and meets people's increasingly personalized and convenient video interception needs.

第二实施例second embodiment

图2是本发明第二实施例的一种视频图像帧的定位方法的流程图。本实施例以上述实施例为基础进行优化,在本实施例中,优选的将步骤获取视频基准时间优化为:根据用户对视频播放进度条的拖动操作,确定与所述拖动操作对应的拖动位置;获取与所述拖动位置对应的视频播放时间,作为视频基准时间;Fig. 2 is a flow chart of a video image frame positioning method according to the second embodiment of the present invention. This embodiment is optimized on the basis of the above embodiments. In this embodiment, the step of obtaining the video reference time is preferably optimized as follows: according to the user's drag operation on the video playback progress bar, determine the time corresponding to the drag operation drag position; obtain the video playback time corresponding to the drag position, as the video reference time;

优选的将步骤根据所述视频基准时间和由用户操作设置的相对调整时间,确定视频帧定位时间优化为:根据用户输入的帧调整数目,或者根据用户输入的帧调整数目和帧调整方向,确定相对调整时间;根据所述视频基准时间和所述相对调整时间,确定视频帧定位时间;Preferably, the step is determined according to the video reference time and the relative adjustment time set by the user operation, and the video frame positioning time is optimized as follows: according to the frame adjustment number input by the user, or according to the frame adjustment number and the frame adjustment direction input by the user, determine Relative adjustment time; according to the video reference time and the relative adjustment time, determine the video frame positioning time;

优选的将步骤将获取视频中与所述视频帧定位时间对应的视频图像帧进行输出优化为:将所述视频帧定位时间发送至设定的视频跳转接口,以实现将视频跳转至与所述视频帧定位时间对应的视频位置进行解码;获取解码结果作为视频中与所述视频帧定位时间对应的视频图像帧进行输出。Preferably, the step of obtaining the video image frame corresponding to the video frame positioning time in the video is optimized as: sending the video frame positioning time to the set video jump interface, so as to realize the video jump to the corresponding video frame Decoding the video position corresponding to the positioning time of the video frame; obtaining the decoding result as a video image frame corresponding to the positioning time of the video frame in the video and outputting it.

相应的,本实施例的方法包括如下步骤:Correspondingly, the method of this embodiment includes the following steps:

步骤210、根据用户对视频播放进度条的拖动操作,确定与所述拖动操作对应的拖动位置。Step 210, according to the user's dragging operation on the video playback progress bar, determine the dragging position corresponding to the dragging operation.

在本实施例中,终端设备根据用户对视频播放进度条的拖动操作,确定与所述拖动操作对应的拖动位置。In this embodiment, the terminal device determines a drag position corresponding to the drag operation according to the user's drag operation on the video playback progress bar.

在本实施例中,终端设备通过在视频播放器播放过程中,在视频播放进度条控件上监听mousedown(鼠标按下),mousemove(鼠标移动)和mouseup(鼠标抬起)这几个事件,来检测用户对视频播放器进度条的拖动操作,并确定所述拖动操作对应的拖动位置。In this embodiment, the terminal device monitors mousedown (mouse press), mousemove (mouse movement) and mouseup (mouse lift) events on the video playback progress bar control during the playback of the video player. Detect the user's drag operation on the progress bar of the video player, and determine the drag position corresponding to the drag operation.

步骤220、获取与所述拖动位置对应的视频播放时间,作为视频基准时间。Step 220, acquire the video playing time corresponding to the dragging position as the video reference time.

在本实施例中,终端设备获取与所述拖动位置对应的视频播放时间,作为视频基准时间。In this embodiment, the terminal device acquires the video playing time corresponding to the dragging position as the video reference time.

其中,终端设备可以首先计算所述拖动位置占整个视频播放进度条的比例,,之后根据整个视频的播放时间,确定与所述拖动位置对应的视频播放时间。Wherein, the terminal device may first calculate the ratio of the drag position to the entire video playback progress bar, and then determine the video playback time corresponding to the drag position according to the playback time of the entire video.

举例而言,终端设备计算得到所述拖动位置位于整个视频播放进度条的2/3,该视频的总播放时间为1:30:00,最终可确定与所述拖动位置对应的视频播放时间为60分钟。For example, the terminal device calculates that the dragging position is located at 2/3 of the entire video playback progress bar, and the total playing time of the video is 1:30:00, and finally the video playback corresponding to the dragging position can be determined The time is 60 minutes.

步骤230、根据用户输入的帧调整数目,或者根据用户输入的帧调整数目和帧调整方向,确定相对调整时间。Step 230: Determine the relative adjustment time according to the frame adjustment number input by the user, or according to the frame adjustment number and frame adjustment direction input by the user.

在本实施例中,终端设备可以根据用户输入的帧调整数目,确定相对调整时间;In this embodiment, the terminal device can determine the relative adjustment time according to the number of frame adjustments input by the user;

举例而言,用户输入的帧调整数目为3,视频的帧间隔ΔT=0.1s,可以确定相对调整时间为3*ΔT=0.3s。For example, if the number of frame adjustments input by the user is 3, and the frame interval of the video is ΔT=0.1s, the relative adjustment time can be determined as 3*ΔT=0.3s.

终端设备也可以根据用户输入的帧调整数目和帧调整方向,确定相对调整时间。The terminal device may also determine the relative adjustment time according to the frame adjustment number and frame adjustment direction input by the user.

举例而言,用户输入的帧调整数目为3,帧调整方向为视频后退方向,视频的帧间隔ΔT=0.1s,可以确定相对调整时间为-3*ΔT=-0.3s。For example, the number of frame adjustments input by the user is 3, the frame adjustment direction is the video backward direction, and the video frame interval ΔT=0.1s, the relative adjustment time can be determined as -3*ΔT=-0.3s.

步骤240、根据所述视频基准时间和所述相对调整时间,确定视频帧定位时间。Step 240: Determine the video frame positioning time according to the video reference time and the relative adjustment time.

在本实施例中,终端设备根据所述视频基准时间和所述相对调整时间,确定视频帧定位时间。In this embodiment, the terminal device determines the video frame positioning time according to the video reference time and the relative adjustment time.

步骤250、将所述视频帧定位时间发送至设定的视频跳转接口,以实现将视频跳转至与所述视频帧定位时间对应的视频位置进行解码。Step 250: Send the video frame positioning time to the set video jump interface, so as to jump the video to the video position corresponding to the video frame positioning time for decoding.

步骤260、获取解码结果作为视频中与所述视频帧定位时间对应的视频图像帧进行输出。Step 260, obtain the decoding result as a video image frame in the video corresponding to the positioning time of the video frame, and output it.

本发明实施例通过根据用户操作确定视频基准时间和相对调整时间;将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;将视频中与所述视频帧定位时间对应的视频图像帧提供给用户的技术手段,解决了现有的视频截取技术在多数情况下,截取的视频画面往往不是用户真正想要截取的或者效果最好的视频画面的技术问题,提高了视频截取的定位精度,优化了现有的视频截取技术,满足了人们日益增强的个性化、便捷化的视频截取需求。In the embodiment of the present invention, the video reference time and the relative adjustment time are determined according to user operations; the sum of the video reference time and the relative adjustment time is used as the video frame positioning time; The technical means provided by the video image frame to the user solves the technical problem that in most cases, the captured video picture is not what the user really wants to capture or the video picture with the best effect in the existing video interception technology, and improves the video capture technology. It optimizes the existing video interception technology and meets people's increasingly personalized and convenient video interception needs.

第三实施例third embodiment

图3是本发明第三实施例的一种视频图像帧的定位方法的流程图。本实施例以上述实施例为基础进行优化,在本实施例中,优选的将步骤根据用户输入的帧调整数目和帧调整方向,确定相对调整时间优化为:在用户输入的帧调整方向为前进方向时,根据用户输入的帧调整数目M和视频的帧间隔ΔT,确定相对调整时间为M*ΔT;在用户输入的帧调整方向为后退方向时,根据用户输入的帧调整数目N和视频的帧间隔ΔT,确定相对调整时间为-N*ΔT;其中,M、N为大于等于1的整数;Fig. 3 is a flow chart of a method for locating video image frames according to the third embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, it is preferable to optimize the relative adjustment time according to the frame adjustment number and frame adjustment direction input by the user as follows: when the frame adjustment direction input by the user is forward direction, according to the frame adjustment number M input by the user and the frame interval ΔT of the video, determine the relative adjustment time as M*ΔT; when the frame adjustment direction input by the user is the backward direction, adjust the number N and the video frame according to the user input Frame interval ΔT, determine the relative adjustment time as -N*ΔT; where, M and N are integers greater than or equal to 1;

优选的将步骤根据所述视频基准时间和所述相对调整时间,确定视频帧定位时间优化为:将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间。Preferably, the step of determining the video frame positioning time according to the video reference time and the relative adjustment time is optimized as: taking the sum of the video reference time and the relative adjustment time as the video frame positioning time.

相应的,本实施例的方法包括如下步骤:Correspondingly, the method of this embodiment includes the following steps:

步骤310、获取视频基准时间。Step 310, acquiring a video reference time.

步骤320、判断用户输入的帧调整方向是否为前进方向:若是,执行步骤330;否则,执行步骤340。Step 320 , judging whether the frame adjustment direction input by the user is the forward direction: if yes, execute step 330 ; otherwise, execute step 340 .

步骤330、根据用户输入的帧调整数目M和视频的帧间隔ΔT,确定相对调整时间为M*ΔT,执行步骤350。Step 330 : Determine the relative adjustment time as M*ΔT according to the frame adjustment number M input by the user and the frame interval ΔT of the video, and execute step 350 .

在本实施例中,M为大于等于1的整数,视频的帧间隔ΔT可以通过获取视频的帧速率f后计算得到,其中:ΔT=1/fIn this embodiment, M is an integer greater than or equal to 1, and the frame interval ΔT of the video can be calculated by obtaining the frame rate f of the video, where: ΔT=1/f

步骤340、根据用户输入的帧调整数目N和视频的帧间隔ΔT,确定相对调整时间为-N*ΔT,执行步骤350。Step 340 : Determine the relative adjustment time as -N*ΔT according to the frame adjustment number N input by the user and the frame interval ΔT of the video, and execute step 350 .

在本实施例中,N为大于等于1的整数。In this embodiment, N is an integer greater than or equal to 1.

步骤350、将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间。Step 350, taking the sum of the video reference time and the relative adjustment time as the video frame positioning time.

步骤360、将视频中与所述视频帧定位时间对应的视频图像帧进行输出。Step 360: Output the video image frame corresponding to the positioning time of the video frame in the video.

本发明实施例通过根据用户操作确定视频基准时间和相对调整时间;将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;将视频中与所述视频帧定位时间对应的视频图像帧提供给用户的技术手段,解决了现有的视频截取技术在多数情况下,截取的视频画面往往不是用户真正想要截取的或者效果最好的视频画面的技术问题,提高了视频截取的定位精度,优化了现有的视频截取技术,满足了人们日益增强的个性化、便捷化的视频截取需求。In the embodiment of the present invention, the video reference time and the relative adjustment time are determined according to user operations; the sum of the video reference time and the relative adjustment time is used as the video frame positioning time; The technical means provided by the video image frame to the user solves the technical problem that in most cases, the captured video picture is not what the user really wants to capture or the video picture with the best effect in the existing video interception technology, and improves the video capture technology. It optimizes the existing video interception technology and meets people's increasingly personalized and convenient video interception needs.

第四实施例Fourth embodiment

图4是本发明第四实施例的一种视频图像帧的定位方法的流程图。本实施例以上述实施例为基础进行优化,在本实施例中,优选的将步骤根据用户输入的帧调整数目确定相对调整时间优化为:根据用户输入的帧调整数目P和视频的帧间隔ΔT,确定相对调整时间为P*ΔT;其中,P为大于等于1的整数;Fig. 4 is a flow chart of a video image frame positioning method according to the fourth embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, it is preferable to optimize the relative adjustment time in the step of determining the relative adjustment time according to the frame adjustment number input by the user as follows: adjust the number P of frames according to the user input and the frame interval ΔT of the video , determine the relative adjustment time as P*ΔT; where, P is an integer greater than or equal to 1;

优选的将步骤根据所述视频基准时间与和所述相对调整时间,确定视频帧定位时间优化为:在用户输入的帧调整方向为前进方向时,将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;在用户输入的帧调整方向为后退方向时,将所述视频基准时间与所述相对调整时间之差,作为视频帧定位时间。Preferably, the step of determining the video frame positioning time according to the video reference time and the relative adjustment time is optimized as: when the frame adjustment direction input by the user is the forward direction, the video reference time and the relative adjustment time The sum is used as the video frame positioning time; when the frame adjustment direction input by the user is the backward direction, the difference between the video reference time and the relative adjustment time is used as the video frame positioning time.

相应的,本实施例的方法包括如下步骤:Correspondingly, the method of this embodiment includes the following steps:

步骤410、获取视频基准时间。Step 410, acquire the video reference time.

步骤420、根据用户输入的帧调整数目P和视频的帧间隔ΔT,确定相对调整时间为P*ΔT。Step 420: Determine the relative adjustment time as P*ΔT according to the frame adjustment number P input by the user and the frame interval ΔT of the video.

在本实施例中,P为大于等于1的整数In this embodiment, P is an integer greater than or equal to 1

步骤430、判断用户输入的帧调整方向是否为前进方向:若是,执行步骤440;否则,执行步骤450。Step 430 , judging whether the frame adjustment direction input by the user is the forward direction: if yes, execute step 440 ; otherwise, execute step 450 .

步骤440、所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间,执行步骤460。Step 440, the sum of the video reference time and the relative adjustment time is used as the video frame positioning time, and step 460 is executed.

步骤450、所述视频基准时间与所述相对调整时间之差,作为视频帧定位时间,执行步骤460。Step 450, the difference between the video reference time and the relative adjustment time is used as the video frame positioning time, and step 460 is executed.

步骤460、将视频中与所述视频帧定位时间对应的视频图像帧进行输出。Step 460: Output the video image frame corresponding to the positioning time of the video frame in the video.

本发明实施例通过根据用户操作确定视频基准时间和相对调整时间;将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;将视频中与所述视频帧定位时间对应的视频图像帧提供给用户的技术手段,解决了现有的视频截取技术在多数情况下,截取的视频画面往往不是用户真正想要截取的或者效果最好的视频画面的技术问题,提高了视频截取的定位精度,优化了现有的视频截取技术,满足了人们日益增强的个性化、便捷化的视频截取需求。In the embodiment of the present invention, the video reference time and the relative adjustment time are determined according to user operations; the sum of the video reference time and the relative adjustment time is used as the video frame positioning time; The technical means provided by the video image frame to the user solves the technical problem that in most cases, the captured video picture is not what the user really wants to capture or the video picture with the best effect in the existing video interception technology, and improves the video capture technology. It optimizes the existing video interception technology and meets people's increasingly personalized and convenient video interception needs.

在图5中示出了本发明实施例的一种优选应用场景的人机交互示意图。在本优选应用场景中,视频播放器可以在视频播放器的人机交互界面中添加一个“截屏模式”的操作按钮。在视频播放过程中用户期望截取视频图像帧时,可以将视频播放进度条大致拖动到要截取画面的位置,然后点击“截屏模式”按钮,进入截屏模式;进入截屏模式后,视频播放暂停,在视频播放器的底部会出现一排标识向左箭头和向右箭头的帧调整按钮。如图5所示,向左箭头代表用户可以点此输入后退方向的帧调整方向,向右箭头代表代表用户可以点此输入前进方向的帧调整方向,箭头的数目代表用户可以点此输入对应的帧调整数目,当用户通过点击帧调整按钮的方式找到期望获取的视频图像帧之后,可以通过点击保存按钮来截取出该期望获取的视频图像帧。FIG. 5 shows a schematic diagram of human-computer interaction of a preferred application scenario of the embodiment of the present invention. In this preferred application scenario, the video player can add an operation button of "screen capture mode" in the human-computer interaction interface of the video player. When the user expects to capture video image frames during video playback, he can roughly drag the video playback progress bar to the position where he wants to capture the image, and then click the "screen capture mode" button to enter the screen capture mode; after entering the screen capture mode, the video playback is paused, At the bottom of the video player there will be a row of frame adjustment buttons labeled with left and right arrows. As shown in Figure 5, the left arrow represents the frame adjustment direction that the user can click to input the backward direction, the right arrow represents the frame adjustment direction that the user can click to enter the forward direction, and the number of arrows represents the user can click this to input the corresponding Number of frame adjustments. After the user finds the desired video image frame by clicking the frame adjustment button, the desired video image frame can be intercepted by clicking the save button.

在上述优选实施方式中,优选的将帧调整方向和帧调整数目融合到对应的按钮中以指示用户进行相应的输入,当然,本领域技术人员可以理解是,上述帧调整方向和帧调整数目还可以以输入框的形式显示给用户,以指示用户进行相应的输入,对此并不进行限制。In the above preferred implementation manner, it is preferred to integrate the frame adjustment direction and the frame adjustment number into the corresponding buttons to instruct the user to perform corresponding input. Of course, those skilled in the art can understand that the above frame adjustment direction and frame adjustment number are also It may be displayed to the user in the form of an input box to instruct the user to make a corresponding input, which is not limited.

第五实施例fifth embodiment

在图6中示出了本发明第五实施例的一种视频图像帧的定位装置的结构图。如图6所示,所述装置包括:FIG. 6 shows a structural diagram of an apparatus for locating video image frames according to a fifth embodiment of the present invention. As shown in Figure 6, the device includes:

基准时间获取单元61,用于获取视频基准时间。A reference time obtaining unit 61, configured to obtain a video reference time.

视频帧定位时间确定单元62,用于根据所述视频基准时间和由用户操作设置的相对调整时间,确定视频帧定位时间。The video frame positioning time determination unit 62 is configured to determine the video frame positioning time according to the video reference time and the relative adjustment time set by the user operation.

视频图像帧输出单元63,用于将视频中与所述视频帧定位时间对应的视频图像帧进行输出。The video image frame output unit 63 is configured to output the video image frame corresponding to the positioning time of the video frame in the video.

本发明实施例通过根据用户操作确定视频基准时间和相对调整时间;将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;将视频中与所述视频帧定位时间对应的视频图像帧提供给用户的技术手段,解决了现有的视频截取技术在多数情况下,截取的视频画面往往不是用户真正想要截取的或者效果最好的视频画面的技术问题,提高了视频截取的定位精度,优化了现有的视频截取技术,满足了人们日益增强的个性化、便捷化的视频截取需求。In the embodiment of the present invention, the video reference time and the relative adjustment time are determined according to user operations; the sum of the video reference time and the relative adjustment time is used as the video frame positioning time; The technical means provided by the video image frame to the user solves the technical problem that in most cases, the captured video picture is not what the user really wants to capture or the video picture with the best effect in the existing video interception technology, and improves the video capture technology. It optimizes the existing video interception technology and meets people's increasingly personalized and convenient video interception needs.

在上述各实施例的基础上,基准时间获取单元可以用于:On the basis of the above-mentioned embodiments, the reference time acquisition unit can be used for:

根据用户对视频播放进度条的拖动操作,确定与所述拖动操作对应的拖动位置;According to the user's drag operation on the video playback progress bar, determine the drag position corresponding to the drag operation;

获取与所述拖动位置对应的视频播放时间,作为视频基准时间。Acquiring the playing time of the video corresponding to the dragging position as the reference time of the video.

在上述各实施例的基础上,视频帧定位时间确定单元可以包括:On the basis of the above-mentioned embodiments, the video frame positioning time determination unit may include:

相对调整时间确定子单元,用于根据用户输入的帧调整数目,或者根据用户输入的帧调整数目和帧调整方向,确定相对调整时间;The relative adjustment time determination subunit is used to determine the relative adjustment time according to the number of frame adjustments input by the user, or according to the number of frame adjustments and the direction of frame adjustments input by the user;

定位时间确定子单元,用于根据所述视频基准时间和所述相对调整时间,确定视频帧定位时间。The positioning time determination subunit is configured to determine a video frame positioning time according to the video reference time and the relative adjustment time.

在上述各实施例的基础上,相对调整时间确定子单元具体可以用于:On the basis of the above-mentioned embodiments, the relative adjustment time determination subunit can be specifically used for:

在用户输入的帧调整方向为前进方向时,根据用户输入的帧调整数目M和视频的帧间隔ΔT,确定相对调整时间为M*ΔT;When the frame adjustment direction input by the user is the forward direction, according to the frame adjustment number M input by the user and the frame interval ΔT of the video, determine the relative adjustment time as M*ΔT;

在用户输入的帧调整方向为后退方向时,根据用户输入的帧调整数目N和视频的帧间隔ΔT,确定相对调整时间为-N*ΔT;其中,M、N为大于等于1的整数;When the frame adjustment direction input by the user is the backward direction, according to the frame adjustment number N and the frame interval ΔT of the video input by the user, the relative adjustment time is determined to be -N*ΔT; wherein, M and N are integers greater than or equal to 1;

定位时间确定子单元具体可以用于:The positioning time determination subunit can specifically be used for:

将所述视频基准时间与和所述相对调整时间之和,作为视频帧定位时间。The sum of the video reference time and the relative adjustment time is used as the video frame positioning time.

在上述各实施例的基础上,相对调整时间确定子单元具体可以用于:On the basis of the above-mentioned embodiments, the relative adjustment time determination subunit can be specifically used for:

根据用户输入的帧调整数目P和视频的帧间隔ΔT,确定相对调整时间为P*ΔT;其中,P为大于等于1的整数;According to the frame adjustment number P input by the user and the frame interval ΔT of the video, determine the relative adjustment time as P*ΔT; wherein, P is an integer greater than or equal to 1;

定位时间确定子单元具体可以用于:The positioning time determination subunit can specifically be used for:

在用户输入的帧调整方向为前进方向时,将所述视频基准时间和所述相对调整时间之和,作为视频帧定位时间;When the frame adjustment direction input by the user is the forward direction, the sum of the video reference time and the relative adjustment time is used as the video frame positioning time;

在用户输入的帧调整方向为后退方向时,将所述视频基准时间和所述相对调整时间之差,作为视频帧定位时间。When the frame adjustment direction input by the user is the backward direction, the difference between the video reference time and the relative adjustment time is used as the video frame positioning time.

在上述各实施例的基础上,视频图像帧输出单元可以用于:On the basis of the above-mentioned embodiments, the video image frame output unit can be used for:

将所述视频帧定位时间发送至设定的视频跳转接口,以实现将视频跳转至与所述视频帧定位时间对应的视频位置进行解码;Sending the video frame positioning time to the set video jump interface, so as to jump the video to the video position corresponding to the video frame positioning time for decoding;

获取解码结果作为视频中与所述视频帧定位时间对应的视频图像帧进行输出。The obtained decoding result is output as a video image frame corresponding to the positioning time of the video frame in the video.

本发明实施例所提供的视频图像帧的定位装置可用于执行本发明任意实施例提供的视频图像帧的定位方法,具备相应的功能模块,实现相同的有益效果。The video image frame locating device provided in the embodiments of the present invention can be used to execute the video image frame locating method provided in any embodiment of the present invention, and has corresponding functional modules to achieve the same beneficial effects.

显然,本领域技术人员应该明白,上述的本发明的各模块或各步骤可以通过如上所述的服务器实施。可选地,本发明实施例可以用计算机装置可执行的程序来实现,从而可以将它们存储在存储装置中由处理器来执行,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等;或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件的结合。Apparently, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by the above-mentioned server. Optionally, the embodiments of the present invention can be implemented by programs executable by a computer device, so that they can be stored in a storage device and executed by a processor, and the program can be stored in a computer-readable storage medium, The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.; or they may be fabricated into individual integrated circuit modules, or multiple modules or steps among them may be fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例,并不用于限制本发明,对于本领域技术人员而言,本发明可以有各种改动和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims (4)

1.一种视频图像帧的定位方法,其特征在于,包括:1. A positioning method of a video image frame, characterized in that, comprising: 在视频播放器的人机交互界面添加“截屏模式”的操作按钮;Add the operation button of "Screenshot Mode" to the human-computer interaction interface of the video player; 根据用户对视频播放器正在播放视频的视频暂停操作,获取与当前暂停位置对应的视频播放时间,作为视频基准时间;其中,视频暂停的操作为点击截屏模式的操作按钮,当点击“截屏模式”的操作按钮,进入截屏模式,所述视频基准时间用作视频图像帧的定位起点;According to the user's video pause operation on the video being played by the video player, obtain the video playback time corresponding to the current pause position as the video reference time; among them, the operation of video pause is to click the operation button of the screen capture mode, when the "screen capture mode" is clicked the operation button to enter the screenshot mode, and the video reference time is used as the positioning starting point of the video image frame; 在用户输入的帧调整方向为前进方向时,根据用户输入的帧调整数目M和视频的帧间隔ΔT,确定相对调整时间为M*ΔT;在用户输入的帧调整方向为后退方向时,根据用户输入的帧调整数目N和视频的帧间隔ΔT,确定相对调整时间为-N*ΔT;其中,M、N为大于等于1的整数;将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;或者When the frame adjustment direction input by the user is the forward direction, according to the frame adjustment number M input by the user and the frame interval ΔT of the video, the relative adjustment time is determined to be M*ΔT; when the frame adjustment direction input by the user is the backward direction, according to the user The input frame adjustment number N and the frame interval ΔT of the video determine that the relative adjustment time is-N*ΔT; wherein, M and N are integers greater than or equal to 1; the sum of the video reference time and the relative adjustment time, positioning time as a video frame; or 根据用户输入的帧调整数目P和视频的帧间隔ΔT,确定相对调整时间为P*ΔT;其中,P为大于等于1的整数;在用户输入的帧调整方向为前进方向时,将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;在用户输入的帧调整方向为后退方向时,将所述视频基准时间与所述相对调整时间之差,作为视频帧定位时间;According to the frame adjustment number P input by the user and the frame interval ΔT of the video, determine the relative adjustment time as P*ΔT; wherein, P is an integer greater than or equal to 1; when the frame adjustment direction input by the user is the forward direction, the video The sum of the reference time and the relative adjustment time is used as the video frame positioning time; when the frame adjustment direction input by the user is the backward direction, the difference between the video reference time and the relative adjustment time is used as the video frame positioning time; 其中,所述帧调整方向和帧调整数目以输入框的形式显示给用户,以指示用户进行相应的输入;Wherein, the frame adjustment direction and the number of frame adjustments are displayed to the user in the form of an input box to instruct the user to perform corresponding input; 将所述视频帧定位时间发送至设定的视频跳转接口,以实现将视频跳转至与所述视频帧定位时间对应的视频位置进行解码;Sending the video frame positioning time to the set video jump interface, so as to jump the video to the video position corresponding to the video frame positioning time for decoding; 获取解码结果作为视频中与所述视频帧定位时间对应的视频图像帧进行输出。The obtained decoding result is output as a video image frame corresponding to the positioning time of the video frame in the video. 2.根据权利要求1所述的方法,其特征在于,获取视频基准时间还包括:2. The method according to claim 1, wherein obtaining the video reference time also includes: 根据用户对视频播放进度条的拖动操作,确定与所述拖动操作对应的拖动位置;According to the user's drag operation on the video playback progress bar, determine the drag position corresponding to the drag operation; 获取与所述拖动位置对应的视频播放时间,作为视频基准时间。Acquiring the playing time of the video corresponding to the dragging position as the reference time of the video. 3.一种视频图像帧的定位装置,其特征在于,包括:3. A positioning device for a video image frame, characterized in that, comprising: 操作按钮添加单元,用于在视频播放器的人机交互界面添加“截屏模式”的操作按钮;The operation button adding unit is used to add the operation button of "screen capture mode" on the human-computer interaction interface of the video player; 基准时间获取单元,用于根据用户对视频播放器正在播放视频的视频暂停操作,获取与当前暂停位置对应的视频播放时间,作为视频基准时间;其中,视频暂停的操作为点击截屏模式的操作按钮,当点击“截屏模式”的操作按钮,进入截屏模式,所述视频基准时间用作视频图像帧的定位起点;The reference time acquisition unit is used to obtain the video playback time corresponding to the current pause position according to the video pause operation of the video player being played by the user as the video reference time; wherein, the operation of the video pause is to click the operation button of the screenshot mode , when the operation button of "screen capture mode" is clicked, the screen capture mode is entered, and the video reference time is used as the positioning starting point of the video image frame; 视频帧定位时间确定单元包括:The video frame alignment time determination unit includes: 相对调整时间确定子单元,具体用于:在用户输入的帧调整方向为前进方向时,根据用户输入的帧调整数目M和视频的帧间隔ΔT,确定相对调整时间为M*ΔT;在用户输入的帧调整方向为后退方向时,根据用户输入的帧调整数目N和视频的帧间隔ΔT,确定相对调整时间为-N*ΔT;其中,M、N为大于等于1的整数;The relative adjustment time determination subunit is specifically used for: when the frame adjustment direction input by the user is the forward direction, determine the relative adjustment time as M*ΔT according to the frame adjustment number M input by the user and the frame interval ΔT of the video; When the frame adjustment direction is the backward direction, the relative adjustment time is determined to be -N*ΔT according to the number N of frame adjustments input by the user and the frame interval ΔT of the video; wherein, M and N are integers greater than or equal to 1; 定位时间确定子单元,具体用于:将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;或者The positioning time determination subunit is specifically configured to: use the sum of the video reference time and the relative adjustment time as the video frame positioning time; or 相对调整时间确定子单元,具体用于:根据用户输入的帧调整数目P和视频的帧间隔ΔT,确定相对调整时间为P*ΔT;其中,P为大于等于1的整数;The relative adjustment time determination subunit is specifically used to: determine the relative adjustment time as P*ΔT according to the frame adjustment number P input by the user and the frame interval ΔT of the video; wherein, P is an integer greater than or equal to 1; 定位时间确定子单元,具体用于:在用户输入的帧调整方向为前进方向时,将所述视频基准时间与所述相对调整时间之和,作为视频帧定位时间;在用户输入的帧调整方向为后退方向时,将所述视频基准时间与所述相对调整时间之差,作为视频帧定位时间;The positioning time determination subunit is specifically used for: when the frame adjustment direction input by the user is the forward direction, the sum of the video reference time and the relative adjustment time is used as the video frame positioning time; When it is the backward direction, the difference between the video reference time and the relative adjustment time is used as the video frame positioning time; 其中,所述帧调整方向和帧调整数目以输入框的形式显示给用户,以指示用户进行相应的输入;Wherein, the frame adjustment direction and the number of frame adjustments are displayed to the user in the form of an input box to instruct the user to perform corresponding input; 视频图像帧输出单元用于:The video image frame output unit is used for: 将所述视频帧定位时间发送至设定的视频跳转接口,以实现将视频跳转至与所述视频帧定位时间对应的视频位置进行解码;Sending the video frame positioning time to the set video jump interface, so as to jump the video to the video position corresponding to the video frame positioning time for decoding; 获取解码结果作为视频中与所述视频帧定位时间对应的视频图像帧进行输出。The obtained decoding result is output as a video image frame corresponding to the positioning time of the video frame in the video. 4.根据权利要求3所述的装置,其特征在于,基准时间获取单元还用于:4. The device according to claim 3, wherein the reference time acquisition unit is also used for: 根据用户对视频播放进度条的拖动操作,确定与所述拖动操作对应的拖动位置;According to the user's drag operation to the video playback progress bar, determine the drag position corresponding to the drag operation; 获取与所述拖动位置对应的视频播放时间,作为视频基准时间。Acquiring the playing time of the video corresponding to the dragging position as the reference time of the video.
CN201410422473.0A 2014-08-25 2014-08-25 The localization method and device of video image frame Expired - Fee Related CN104159161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410422473.0A CN104159161B (en) 2014-08-25 2014-08-25 The localization method and device of video image frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410422473.0A CN104159161B (en) 2014-08-25 2014-08-25 The localization method and device of video image frame

Publications (2)

Publication Number Publication Date
CN104159161A CN104159161A (en) 2014-11-19
CN104159161B true CN104159161B (en) 2018-05-18

Family

ID=51884550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410422473.0A Expired - Fee Related CN104159161B (en) 2014-08-25 2014-08-25 The localization method and device of video image frame

Country Status (1)

Country Link
CN (1) CN104159161B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581436B (en) * 2015-01-28 2017-12-05 青岛海信宽带多媒体技术有限公司 A kind of frame of video localization method and device
CN104702978B (en) * 2015-03-18 2018-11-02 青岛海信宽带多媒体技术有限公司 A kind of method and netcast equipment of video data positioning
CN106412702B (en) * 2015-07-27 2020-06-05 腾讯科技(深圳)有限公司 Video clip intercepting method and device
WO2017016339A1 (en) 2015-07-27 2017-02-02 腾讯科技(深圳)有限公司 Video sharing method and device, and video playing method and device
CN106412691B (en) * 2015-07-27 2020-04-07 腾讯科技(深圳)有限公司 Video image intercepting method and device
CN105554579A (en) * 2015-11-05 2016-05-04 广州爱九游信息技术有限公司 Video frame selection auxiliary method and device and computing equipment capable of playing video
CN105828146A (en) * 2016-03-21 2016-08-03 乐视网信息技术(北京)股份有限公司 Video image interception method, terminal and server
CN105898593A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Playing progress adjusting method and device
CN105933773A (en) * 2016-05-12 2016-09-07 青岛海信传媒网络技术有限公司 Video editing method and system
CN106412708B (en) * 2016-10-21 2019-07-09 上海与德信息技术有限公司 A kind of video interception method and device
CN107566891B (en) * 2017-08-11 2019-12-27 中广热点云科技有限公司 Method and system for real-time screen capture of smart television
CN108810616B (en) * 2018-05-31 2019-06-14 广州虎牙信息科技有限公司 Object localization method, image display method, device, equipment and storage medium
CN110378251B (en) * 2019-06-28 2021-04-27 湖南华菱涟源钢铁有限公司 Control method and device for weighing system of train weighing department and readable storage medium
CN115412769B (en) * 2021-05-28 2023-12-15 福建天泉教育科技有限公司 Method and terminal for improving whole second triggering precision of video playing of browser
CN115278307B (en) * 2022-07-27 2023-08-04 天翼云科技有限公司 Video playing method, device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85106846A (en) * 1985-09-12 1987-03-11 先锋电子股份有限公司 Time-base control method
CN101106637A (en) * 2006-07-13 2008-01-16 中兴通讯股份有限公司 Method for playing media files in external storage device via STB
CN101420577A (en) * 2008-11-07 2009-04-29 武汉烽火网络有限责任公司 Storage method for multimedia data and method for accurately positioning playback position
CN102722590A (en) * 2012-06-25 2012-10-10 宇龙计算机通信科技(深圳)有限公司 Terminal and image acquisition method
CN102890601A (en) * 2012-09-07 2013-01-23 百度在线网络技术(北京)有限公司 Method and device for adjusting video playing position in mobile terminal, and mobile terminal
CN103514184A (en) * 2012-06-25 2014-01-15 浙江大华技术股份有限公司 Editing and backup method and device for recorded file
CN103780977A (en) * 2014-02-26 2014-05-07 厦门雅迅网络股份有限公司 Streaming media playing method based on frame alignment technology
CN103945156A (en) * 2014-04-16 2014-07-23 深圳英飞拓科技股份有限公司 Alarm video replaying method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7034791B1 (en) * 2000-12-14 2006-04-25 Gary Odom Digital video display employing minimal visual conveyance

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85106846A (en) * 1985-09-12 1987-03-11 先锋电子股份有限公司 Time-base control method
CN101106637A (en) * 2006-07-13 2008-01-16 中兴通讯股份有限公司 Method for playing media files in external storage device via STB
CN101420577A (en) * 2008-11-07 2009-04-29 武汉烽火网络有限责任公司 Storage method for multimedia data and method for accurately positioning playback position
CN102722590A (en) * 2012-06-25 2012-10-10 宇龙计算机通信科技(深圳)有限公司 Terminal and image acquisition method
CN103514184A (en) * 2012-06-25 2014-01-15 浙江大华技术股份有限公司 Editing and backup method and device for recorded file
CN102890601A (en) * 2012-09-07 2013-01-23 百度在线网络技术(北京)有限公司 Method and device for adjusting video playing position in mobile terminal, and mobile terminal
CN103780977A (en) * 2014-02-26 2014-05-07 厦门雅迅网络股份有限公司 Streaming media playing method based on frame alignment technology
CN103945156A (en) * 2014-04-16 2014-07-23 深圳英飞拓科技股份有限公司 Alarm video replaying method and system

Also Published As

Publication number Publication date
CN104159161A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104159161B (en) The localization method and device of video image frame
US10002642B2 (en) Methods and devices for generating media items
US12261900B2 (en) Platform-independent content generation for thin client applications
CA2975411C (en) Methods and devices for synchronizing and sharing media items
US10891044B1 (en) Automatic positioning of content items in a scrolling display for optimal viewing of the items
US10528186B2 (en) Systems and methods for controlling playback of a media asset using a touch screen
US9176658B1 (en) Navigating media playback using scrollable text
US20140279075A1 (en) Interactive advertising
WO2015027912A1 (en) Method and system for controlling process for recording media content
US20170285861A1 (en) Systems and methods for reducing jitter using a touch screen
WO2019007029A1 (en) Bullet screen information processing method and client
EP3326378A1 (en) Video-production system with social-media features
WO2018000624A1 (en) Video playing control method and device
CN108604204B (en) Selecting and distributing records of applications executing on computing devices in a network environment
US20180239524A1 (en) Methods and devices for providing effects for media content
CN104575554A (en) A method and terminal for controlling the playback progress of multimedia data
WO2023273562A1 (en) Video playback method and apparatus, electronic device, and medium
US20130143657A1 (en) Input Mapping Regions
US20170070784A1 (en) Interactive content generation for thin client applications
KR102224420B1 (en) Systems and methods for displaying annotated video content by mobile computing devices
WO2021237287A1 (en) Presentation systems and methods
Gan AUDIO-ONLY MODE FOR VIDEO STREAMING SERVICES
HK1242499B (en) Video data acquisition method, apparatus and system, and computer readable storage medium
CN105955469A (en) Control method and device of virtual image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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: 20180518