Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Windows Media Player 12 (bundled with Windows 7 RC). I'd like to start it and play a portion of a WMV file at a particular time offset - say 3 minutes into the movie.

This is for demonstration purposes - I'd like to play a segment of the movie, but don't really want to fluff around with the media player controls while I'm in front of my audience.

Is this possible? Are there command line parameters?

Similarly, but less important, can I automatically stop playback after X minutes.

If all else fails, I guess I'll just edit the movie and playback a segment of it :-)

share|improve this question

3 Answers 3

up vote 9 down vote accepted

You can use an ASX file. Save the following content to "myfile.asx", adjusting the start time, duration and file name according to your needs. Then, open the ASX file in WMP:

  <Asx Version = "3.0"> 
  <Entry> 
     <StartTime value = "00:25:00.000" />
     <Duration value = "00:15:00.000" />
     <Ref href = "sample.avi" />
  </Entry>
  </Asx>

I don't have Windows 7 here to test it, but it works fine in XP and Vista.

share|improve this answer
    
awesome. nice work! –  Brian Jul 24 '09 at 16:56
    
Works perfectly. Thanks! –  dariom Jul 24 '09 at 17:49

I usually go for the queue-up-then-minimize approach, but out of the box I don't believe there's any other way to do it.

share|improve this answer

You can do some things with the command line But, nothing to do with timing.

There is an SDK and an API, so I'm sure you could write something, but that would possibly be more trouble than it's worth.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.