Add start and stop seconds
change codec
make it production ready