can now encode
move the encoder to PhVideoEngine
add progress bar