FFmpeg transcoding on Lambda results in unusable (static) audio

与世无争的帅哥 提交于 2019-11-29 05:13:24

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!