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
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.