Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for estimating video duration

A technology of time length and video, which is applied in the field of video processing, can solve the problems of time stamp error in segmental cycle change, inability to obtain accurate video time length, and video time length are far apart, etc., to achieve the effect of improving accuracy

Active Publication Date: 2018-06-01
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] However, in practical applications, many videos cannot obtain accurate video time length through Ffmpeg. This is because the timestamp of these videos is not monotonically increasing, but the segment cycle changes or there are some errors in the timestamp itself. These videos use Ffmpeg The acquired video time length is often far from the actual video time length, seriously affecting other video services

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for estimating video duration
  • Method and device for estimating video duration
  • Method and device for estimating video duration

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0042] If the time stamp of the video file is monotonically increasing, then the existing estimation method only needs to subtract the start position time stamp from the end position time stamp of the video file to accurately obtain the video time length. For example, if a video file has 10 video frames, if their timestamps are monotonically increasing, for example, in Example 1, the PTS (Presentation Timestamp) values ​​are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, then, the video time length 10-1=9 obtained by the above estimation method is accurate.

[0043] However, if the PTS is not monotonically increasing, for example, the PTS values ​​​​in Example 2 are 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, then the video time length obtained by the above es...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a method and device for estimating the time span of a video. The method specifically includes the steps that a video file to be estimated is divided into a plurality of video fragments, wherein each video fragment comprises a plurality of video packaging units; the timestamp information and the file location information of all the video packaging units in each video fragment are read; the timestamp information and the file location information of the first video packaging unit in each video fragment are recorded, and the maximum timestamp information and the position of the video packaging unit corresponding to the maximum timestamp information are also recorded; the time span of the video which corresponds to the video file to be estimated can be calculated according to the recorded timestamp information and the file location information of the first video packaging unit in each video fragment and the maximum timestamp information and the file position information of the video packaging unit corresponding to the maximum timestamp information. By the adoption of the method and device, the time span of the video can be estimated quickly and accurately.

Description

technical field [0001] The present invention relates to the technical field of video processing, in particular to a method and device for estimating the time length of a video. Background technique [0002] With the development of multimedia technology, network technology and cable TV, video has become the main carrier for people to obtain information and enjoy entertainment in their daily life. The video processing can increase the special effect of the video and enhance the viewability of the video, so it plays an important role. [0003] Video processing tasks such as video playback, editing, screenshots, and transcoding require the accurate video duration to be known in advance. Usually, the video duration can be obtained directly from the information contained in the video file. However, for various reasons, many video files do not contain duration information. Therefore, the method for estimating the video time length becomes an urgent matter to be solved. [0004]...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N21/8547H04N21/845H04N21/435
CPCH04N21/26233H04N21/8456H04N21/8547
Inventor 黄剑飞
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD