Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyAV
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyAV
  • PyAV
  • Wiki
  • TODO time

TODO time · Changes

Page history
Updated TODO time (markdown) authored Oct 30, 2019 by Mike Boers's avatar Mike Boers
Show whitespace changes
Inline Side-by-side
TODO-time.md
View page @ 770f76e9
```
Uniform time
============
Have the default time_base be one that can work with all major time_bases, e.g.:
1/24
1/25
1/30
1/60
1001/30000 (29.97)
1001/24000 (23.98)
1001/60000
Consider making a uniform time class:
```
class Time():
# Tracks the last value set.
......@@ -28,34 +19,4 @@ class Time():
def rebase(self, new_base):
# Replace the base, and rescale i (if important)
Time
====
- What are the various rates and scales?
see: http://ffmpeg.org/pipermail/libav-user/2011-December/001041.html
see: http://stackoverflow.com/questions/12234949/ffmpeg-time-unit-explanation-and-av-seek-frame-method/16739755#16739755
- Stream.guessed_rate or AVStream.r_frame_rate:
FFmpeg's guess as to the frame rate. Often 24/1.
- Stream.average_rate or AVStream.avg_frame_rate:
Average frame rate that has been inspected in the file. This is what VLC
reports in the media information. Often near 24/1.
It may calculate this from 20 frames; see: http://ffmpeg.org/doxygen/trunk/libavformat_2utils_8c_source.html#l02768
- Stream.time_base or AVStream.time_base:
Duration of one time unit for AVStream times.
- Stream.rate or CodecContext.time_base:
The length of a single frame as reported by the file. Sometimes 1/24,
sometimes really really wrong.
possibilities for discrepencies:
- .mov supports a fixed frame rate
- .mp4 does not support a fixed frame rate?
- see: http://ffmpeg.org/doxygen/trunk/libavformat_2utils_8c_source.html#l02647
```
\ No newline at end of file
Clone repository
  • GitHub Actions
  • Home
  • TODO Filters
  • TODO HWAccel
  • TODO _unsorted
  • TODO docs
  • TODO general
  • TODO time