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
  • Issues
  • #222
Closed
Open
Issue created May 08, 2017 by Mike Boers@mikeboers

AVStream.codecpar

Lots of people are opening issues and/or sending emails that contain:

Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.

Perhaps we should do that.

The warning comes from mux.c:300, called from avformat_init_output, called from avformat_write_header. It is looking at AVCodecContext.codec_type, seeing that it is set, and then issuing the warning.

My guess is that it is being set by avcodec_open2, as we are manually opening all of the streams before writing the container header. (Oops?) I'm not sure if that actually makes sense.

Assignee
Assign to
Time tracking