do all requiring at the top of the file to more easily see what
libraries are used
use pipe() to write the data to the client
log abnormal avconv exits