Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 759
    • Issues 759
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 205
    • Merge requests 205
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Merge requests
  • !6672

Adapts the changes of avcodec API. Solves fast framerate 600 fps.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Jafari requested to merge s.jafari.m/vtk:FixvtkFFMPEGWriterFrameRate into master Apr 03, 2020
  • Overview 2
  • Commits 2
  • Pipelines 2
  • Changes 1

Adapts the changes of avcodec API. Using deprecated avcodec_encode_video2() will result in FPS set to 600. avStream must also be adjusted to the correct time_base.

2016-04-21 - 7fc329e - lavc 57.37.100 - avcodec.h Add a new audio/video encoding and decoding API with decoupled input and output -- avcodec_send_packet(), avcodec_receive_frame(), avcodec_send_frame() and avcodec_receive_packet().

reference

Could be checked with an older version of 57.37.100 to see if it works fine without changes, otherwise at least frame-rate setting must still be applied on avStream and codec object AVCodecContext *cc.

This adaptation seems to be done in current version 9.0d, but I made a very quick test in it got a wrong FPS using ffmpeg-4.2.2.

Edited Apr 03, 2020 by Jafari
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: FixvtkFFMPEGWriterFrameRate