Added video encoding to upload backend