Add functions to convert frame to buffer and write frame
Init the functions to output the module result
Add option to output the module frames into a file. write frame is not complete yet
Complete the output of the module processed frames