Skip to content

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

@Kazhuu

Description

@Kazhuu

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions