Get input length from metadata if demuxer failed to retrieve it