Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for obtaining the total time of media file

A media file and total duration technology, applied in the direction of carrier index/addressing/timing/synchronization, etc., can solve the problem of inconsistent file encoding format, the jump function of the playback device cannot be used normally, and the playback device cannot obtain the total duration of the media file And other issues

Active Publication Date: 2014-04-23
LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Currently, when a playback device is playing a media file, due to reasons such as inconsistent file encoding format or incomplete file attribute information, the playback device cannot obtain the total duration of the media file, and the fast forward and rewind of the media file, etc. The operation needs to be accurately positioned according to the total duration of the media file, so if the total duration of the media file cannot be obtained, the jump function of the playback device cannot be used normally

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 apparatus for obtaining the total time of media file
  • Method and apparatus for obtaining the total time of media file
  • Method and apparatus for obtaining the total time of media file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] An embodiment of the present invention provides a method for obtaining the total duration of media files, which is used to obtain a more accurate total duration of media files when the total duration of media files cannot be obtained through common methods. The common methods include: reading The duration information in the file header in the media file, the last timestamp of the media file minus the first timestamp, etc.; the method proposed in this embodiment is as follows: figure 1 shown, including:

[0057] 101. When playing the media file, the playback device acquires a first playback duration and a first file size.

[0058] Wherein, the first file size is the size of a media file played within the first playing duration.

[0059] Specifically, such as figure 2 The shown acquisition of the first playback duration includes:

[0060] 1011. The playback device determines whether there is a jump in the time stamp of the media file within a preset experience value.

...

Embodiment 2

[0103] The embodiment of the present invention provides a device 3 for obtaining the total duration of media files, which is used to obtain a relatively accurate total duration of media files when the total duration of media files cannot be obtained through common methods. The common methods include: reading Get the duration information in the file header in the media file, subtract the first timestamp from the last timestamp of the media file, etc.; the equipment proposed in this embodiment is as follows: image 3 shown, including:

[0104] The acquisition unit 31 is configured to acquire a first playback duration and a first file size when the media file is played, wherein the first file size is the size of the media file played within the first playback duration;

[0105] A code rate determining unit 32, configured to determine the average play code rate of the media file within the first play duration according to the first play duration and the first file size;

[0106] ...

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 invention provides a method and an apparatus for obtaining the total time of a media file and relates to consumer electronics field. The total time of a media file is obtained rapidly at the initial playing phase of the media file. Thus, a jump function, which can be executed according to the obtained total time of the media file, of a playing device can be used normally. Specifically, the average playing code rate of the media file in first time length is determined by obtained first playing time length and a file size played in the first playing time, namely a first file size. According to the determined average playing code rate in combination with the total size of the prestored media file, the total time of the media file is determined. The method and the apparatus are used for obtaining the total time of a media file.

Description

technical field [0001] The invention relates to the field of consumer electronics, in particular to a method and device for acquiring the total duration of media files. Background technique [0002] Currently, when a playback device is playing a media file, due to reasons such as inconsistent file encoding format or incomplete file attribute information, the playback device cannot obtain the total duration of the media file, and the fast forward and rewind of the media file, etc. The operation needs to be accurately positioned according to the total duration of the media file. Therefore, if the total duration of the media file cannot be obtained, the jump function of the playback device cannot be used normally. Contents of the invention [0003] Embodiments of the present invention provide a method and device for obtaining the total duration of a media file, which can enable a playback device to obtain the total duration of any media file being played, so that the jump fun...

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 Applications(China)
IPC IPC(8): G11B27/10
Inventor 平凯
Owner LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products