add max_duration to guard against really long videos