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
  • #702
Closed
Open
Issue created Aug 28, 2020 by Mauri Mustonen@Kazhuu

Allow user to force audio codec to be used instead of relying the default one

Overview

Regarding this issue of mine earlier. Would it be possible to expose field AvFormatContext::audio_codec_id for user to force specific audio codec?

Existing FFmpeg API

Documentation of the field here.

Expected PyAV API

Maybe add this to av.open() to be optional argument.

Example:

av.open('alsa-device', format='alsa', audio_codec='pcm_s32le')

I could also take this one and make contribution to this awesome library if this is considered something needed in general. Any thoughts?

Assignee
Assign to
Time tracking