Get w, h and duration from metadata correctly

It wasn't working at all!