FFmpeg transcoding on Lambda results in unusable (static) audio

前端 未结 1 1371
遇见更好的自我
遇见更好的自我 2020-12-09 06:32

I\'d like to move towards serverless for audio transcoding routines in AWS. I\'ve been trying to setup a Lambda function to do just that; execute a static FFmpeg binary and

1条回答
  •  感情败类
    2020-12-09 06:59

    Alright this is a fun one.

    So it turns out the Python subprocess inherits stdin from some Lambda processes going on in the background. I was watching this AWS re:Invent keynote and he was describing some issues they were having w.r.t. this issue.

    I added stdin=subprocess.DEVNULL to the subprocess call and the audio is now fixed.

    Very interesting bug if you ask me.

    0 讨论(0)
提交回复
热议问题