refactor, taking decoder from media->decoder if not set via cli