Skip to content

Conversation

@amcquilkin
Copy link

Summary

Add env parameter to FFmpegPCMAudio and FFmpegOpusAudio so that the FFmpeg subprocess can run with custom environment variables.
This is useful for uniquely defining environment variables for each ffmpeg subprocess, such as FFREPORT, which controls the file that FFmpeg logs to (relevant docs).

Example:

source = discord.FFmpegPCMAudio(
    "audio.mp3",
    env={"FFREPORT": "file=ffmpeg.log:level=32"}
)

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant