Add support for the duration query
Decide what encoder to use based on the duration

Be more verbose