472,794 Members | 4,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,794 software developers and data experts.

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

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
Oct 20 '06 #1
2 7781
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!

--
"hz****@nopost.com" <hz*************@discussions.microsoft.comwrote in
message news:C0**********************************@microsof t.com...
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
Oct 20 '06 #2
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

"Ryan S. Thiele" wrote:
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!

--
"hz****@nopost.com" <hz*************@discussions.microsoft.comwrote in
message news:C0**********************************@microsof t.com...
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
Oct 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Guenter | last post by:
Hi, I need to develop an application that displays video 640x480 16-bit per pixel with 30 fps. I would prefer to do that with Python (wxPython) but don't have any experience whether it is...
1
by: Ron Provost | last post by:
Hello, I'm developing a piece of software to assist illiteraate adults to learn to read. I'm trying to figure out how, if possible, to make audio playback asynchrnous but still controllable. ...
5
by: Ian Stiles | last post by:
I have tried everything under the sun to get rid of horrible flashing and flickering that occurs on a CSharp form when the form hosts a TreeView or WebBrowser control and then you resize the form....
0
by: sengkok | last post by:
hi, i am using the directshow in C# to built a karaoke system,but i am facing a problem with the audio play in the video file (DAT format), some of the video file , i can control the music and...
5
by: Sudharsan | last post by:
Hi I have developed a Windows Control Library in VC.NET The component will play back video files and this component is used in C# applications to display multiple videos simultaneously. The...
1
by: celoftis | last post by:
BACKGROUND: I have some PPT slides that have been converted to HTM (ensuring that the show slide animations while browsing checkbox is checked). The original HTM slides have custom animations to...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
4
by: dennijr | last post by:
sry its long, questions in the last sentance if u wanna jump to it. i just decided that i would include everything that led up to the problem i made a gif video that i wanted to put...
0
by: krudonix | last post by:
Hey i've developed a call logging system that records to mono a-law wav files. now i want to add a feature to playback the audio as its being recorded an event fires when i recieve audio...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.