create new transcode api for file mode and stream mode.
Merge https://github.com/calabashdad/transcode_api