Media companies are already taking this approach using ffmpeg, AWS Lambda, and AWS Step Functions. I heard from two companies using such approaches at AWS re:Invent in October 2017, so it's definitely possible.
Rolling your own approach like this is certainly more complex to build/maintain than using Elastic Transcoder though.