Webbrowser control - buffering - audio/video playback problem...

G

Guest

Using VS2003, VB.NET,

BACKGROUND
I have a window forms based application that will be distributed and
executed directly from CD media. The app contains a TreeView control and a
WebBroswer (AxSHDocVw.AxWebBrowse) control. The TreeView is populated with
nodes that when clicked play an audio clip that is stored on the CD and
navigate the browser control to a specified web URL (also stored on the CD).
All the web URLs are html documents that were converted from individual PPT
slides (with animations turned on). Several (17) of the slides (and
subsequent html pages) have an embedded video object (wmv). The video is
played when the video object is clicked 1x. Because the video was originally
embedded in PPT and subsequently converted to html, the click event that
fires the playback of the video is handled entirely through java script that
is created by the PPT to html conversion. Thus, my app knows nothing about
the events in the web pages being loaded (i.e. my does not interrogate the
MSHTML document object during page navigation/load). The audio clip playback
starts after the html page load is complete (DocumentComplete event handler)
- handled directly by my app.

The app is relatively small (~300 kb) but the CD slide content (html, audio
and video clips) is very large (> 500 Mb).


PROBLEM - jerky audio playback on several html pages that have embedded
video objects..
For several of the pages (sequentially, the last 12 slides with video that
are accessed), the audio clip that starts playing after a node is clicked
does not play smoothly. For these slides, it sounds like the CD read head is
moving back and forth on the CD, thrashing around trying to buffer the html's
associated video into memory. My guess is that the CPU is getting tied up
looking for and buffering info from the CD and thus can't stream the audio
clip continuously. For the other slides with video that don't have the audio
problem (sequentially, the 1st 5 slides with video that are accessed), there
is no CD "thrashing" happening - I only hear smooth spinning from the CD (no
stopping and starting, or jerky read head movement).

Multiple CDs of the app and content have been burned from on several
different machines with similar results - jerky audio on these 12 slides.
There seems to be no correlation between the size of the video and/or audio
playback with the jerky playback - the largest audio and video clips
combinations on the CD playback without any jerky behavior.


CAUSE - buffering? CD writer fragmenting video files?
When the CD initially spins up, it spins for quite a while - could it be
that enough info is buffered to playback the 1st 5 videos without having the
read more from the CD?
When the problem occurs I can hear the CD drive stopping and starting and
hear the read/write hear thrashing around - could it be the as the CD is
burned some of the video files are being fragmented over the CD?
Does anyone have any ideas as the to source of the problem, and thusly how
to attack it?


I'm pretty well stumped on this problem - so any feedback would be greatly
appreciated!

Thanks for your attention

-celoftis
 
R

Ryan S. Thiele

It soulds like the CD itself. What burner software do you use? Try to set
burner option to File Optimize and not Size Optimize, this will keep your
files from being fragmented on the CD. Also, it could be the format of the
video, do you have it faster then 1Mb/s? CD max speed is 1Mb/s no matter how
fast they claim. I would try lowering bit rate of the video file first. DVD
max is much highter (3MB/s I believe).

--
Thiele Enterprises - The Power Is In Your Hands Now!

--
message Using VS2003, VB.NET,

BACKGROUND
I have a window forms based application that will be distributed and
executed directly from CD media. The app contains a TreeView control and a
WebBroswer (AxSHDocVw.AxWebBrowse) control. The TreeView is populated with
nodes that when clicked play an audio clip that is stored on the CD and
navigate the browser control to a specified web URL (also stored on the CD).
All the web URLs are html documents that were converted from individual PPT
slides (with animations turned on). Several (17) of the slides (and
subsequent html pages) have an embedded video object (wmv). The video is
played when the video object is clicked 1x. Because the video was originally
embedded in PPT and subsequently converted to html, the click event that
fires the playback of the video is handled entirely through java script that
is created by the PPT to html conversion. Thus, my app knows nothing about
the events in the web pages being loaded (i.e. my does not interrogate the
MSHTML document object during page navigation/load). The audio clip playback
starts after the html page load is complete (DocumentComplete event handler)
- handled directly by my app.

The app is relatively small (~300 kb) but the CD slide content (html, audio
and video clips) is very large (> 500 Mb).


PROBLEM - jerky audio playback on several html pages that have embedded
video objects..
For several of the pages (sequentially, the last 12 slides with video that
are accessed), the audio clip that starts playing after a node is clicked
does not play smoothly. For these slides, it sounds like the CD read head is
moving back and forth on the CD, thrashing around trying to buffer the
html's
associated video into memory. My guess is that the CPU is getting tied up
looking for and buffering info from the CD and thus can't stream the audio
clip continuously. For the other slides with video that don't have the audio
problem (sequentially, the 1st 5 slides with video that are accessed), there
is no CD "thrashing" happening - I only hear smooth spinning from the CD (no
stopping and starting, or jerky read head movement).

Multiple CDs of the app and content have been burned from on several
different machines with similar results - jerky audio on these 12 slides.
There seems to be no correlation between the size of the video and/or audio
playback with the jerky playback - the largest audio and video clips
combinations on the CD playback without any jerky behavior.


CAUSE - buffering? CD writer fragmenting video files?
When the CD initially spins up, it spins for quite a while - could it be
that enough info is buffered to playback the 1st 5 videos without having the
read more from the CD?
When the problem occurs I can hear the CD drive stopping and starting and
hear the read/write hear thrashing around - could it be the as the CD is
burned some of the video files are being fragmented over the CD?
Does anyone have any ideas as the to source of the problem, and thusly how
to attack it?


I'm pretty well stumped on this problem - so any feedback would be greatly
appreciated!

Thanks for your attention

-celoftis
 
G

Guest

Ryan, thanks for the reply.

RE: format of the video
All 17 of the videos have a different bit rate displayed in Explorer - with
only 4 > 1Mb/s. When I open the wmv files and look at the properties,
different bit rates are shown versus what was displayed in Explorer.
Regardless, this appears to be a mixed bag - one of the videos with a bit
rate > 1Mb/s (1.03) plays without any "jerky" behavior - further, other
videos with bit rates < 1.0Mb/s (like 256kb/s) exhibit the jerky behavior. My
gut tells me this has more todo with fragmented files on the CD so...

RE: What burner software do you use?
My desktop has Sonic Record Now! Business Version 7, Build: "720B80Q",
Engine: "200b72b, 1.131 IBE" - the readme calls it "IBM RecordNow!, Version
7.0".
Looking through the options for this software I don't see anyway way to
control how the disc gets burned. Do you know how to control this options via
this software?

Else can you suggest some software that allows me to control this option?

Thanks for your attention to this matter.

celoftis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top