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
  • Merge requests
  • !816

Let user specified input audio codec and not relay on the default one

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Mauri Mustonen requested to merge github/fork/Kazhuu/user_specified_audio_codec into main Sep 26, 2021
  • Overview 1
  • Commits 10
  • Pipelines 1
  • Changes 4

This PR relates to this #702 issue I posted earlier. This let user to specify input audio codec to be used instead of relaying on FFMPEG default one. Default codec is PCM_S16LE and in one scenario I needed to specify PCM_S32LE instead.

Some questions still on my head related to this:

  • I only added PCM codecs. Is this okay? I think in the future if someone needs more they can be added quite easily.
  • Anything to improve here? I'd be happy to modify this PR if needed.

With this change av.open can for example be called with

import av
av.open('alsa_device_name', format='alsa', audio_codec='PCM_S32LE')
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Kazhuu/user_specified_audio_codec