Transcoding: empty encoder buffer at the end of the process

Return bufferized framed from the encoder at the end of the transcoding process.