Re: Forcing a Video Clip to Download before Player Starts Playing It

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi John,

Have you tried encoding your MPG files into a much more stream-friendly format such as WMV or ASF? These formats were specifically designed for streaming and they shouldn't play in a choppy manner.

Streaming means that the player will download some of the content before playing it. Once enough content is downloaded, the content will play while the rest of the it is being downloaded in the background. If not enough is downloaded during playback, the content will pause and wait for more content to download.

However, note that these formats are not cached after playback. Your site-visitors would need to re-load the videos if they are replayed.

Using Windows Media Player, you are able to define the amount of content to buffer before playback in seconds. Also, using the WMV or ASF format enables the file itself to choose the suitable bitrate to match the user's connection speed.

You can encode your media files into the WMV or ASF using the Windows Media Encoder, which is available here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=5691ba02-e496-465a-bba9-b2f1182cdf24&DisplayLang=en



Jason


John R. Dougherty wrote:
I have some .MPG files embedded in my Website. Even on high-speed Internet connections, the video clips (only about 10 seconds long) still play very choppy. Once the user watches the video one time, it can be viewed from then on without any choppiness. I am assuming the clip is downloaded into their temporary files (cached?) upon the first viewing, then subsequently it does not have to be downloaded upon every viewing, until those temp files are deleted.

Is there a way to prevent the user from having to watch the choppy video the first time, and just have them wait for it to download completely before the media player starts playing the clip? I can live with forcing my users to wait that first time - it just looks bad seeing the choppy video play. Some folks are assuming that it will play that way every time, so they never come back to try watching the video clips again.

Below is an example of my current code:
<td>
<OBJECT ID="MediaPlayer" WIDTH="400" HEIGHT="300" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="VBS01.mpg">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="VBS01.mpg"
WIDTH="400" HEIGHT="300" ShowControls="1" ShowStatusBar="1" ShowDisplay="0" autostart="0">
</EMBED>
</OBJECT>
</td>


- Thanks,

JRD
.



Relevant Pages

  • Re: Cannot get Sound with Video on Movie Maker
    ... I play on Windows Media - ie sound and vision. ... When I import from pc to Movie Maker for some reason it only imports ... Video and not audio. ... Did you download via a FireWire IEEE 1394 connection? ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: WVC1 in Windows Media Player Mobile 10.3
    ... the microsoft advanced format vc-1. ... Windows media player ... mobile 10.3 plays the audio fine but it never shows the video. ...
    (microsoft.public.pocketpc.multimedia)
  • Re: Am I nucking futs?
    ... Playing video files from a direct link without viewing the download site is ... Reading the download site for this video is better. ... WMP to install codecs, because if I search on that I get told that WMP ... Windows Media Player 11 automagically downloads Windows Media codecs but not ...
    (microsoft.public.windowsmedia.player)
  • Re: web friendly video codec choice? How to get there from ATIs mpeg2/4?
    ... > have the .vcr file which plays in ATI Multimedia Center's file player. ... > share the video with friends. ... downloaded and installed Windows Media Encoder, ... chose "Web server (progressive download)." ...
    (comp.os.linux.misc)
  • Re: What AV codecs does PPC Windows Media Player 8.6 Support?
    ... > I have been using Windows Media Encoder to produce videos in WMV8 ... > What are my options for producing video files for a Pocket PC with WMP ... What encoder should I use? ... DivX is not exactly MPEG-4, it's a hybrid format, not part of the MPEG-4 ...
    (microsoft.public.pocketpc.developer)