Playing Avi from memory

  • Thread starter Thread starter shlomi
  • Start date Start date
S

shlomi

Hello,


It's been long time that I'm investigating on how to play Avi file
from memory, with no success.

What I'm trying to do is to get a scrambled Avi file to memory, fix
same data and then playing it as Avi file. An alternative way is
encapsulate the binary data into the exe file with a recourse file and
than playing it.

Any one has any idea how solve the problem? Any sample code or links?

(I'm working with Windows Media Player)

Thank you very match,



Shlomi
 
shlomi said:
It's been long time that I'm investigating on how to play Avi file
from memory, with no success.

What I'm trying to do is to get a scrambled Avi file to memory,
fix same data and then playing it as Avi file. An alternative way
is encapsulate the binary data into the exe file with a recourse file
and than playing it.

Any one has any idea how solve the problem? Any sample code or
links?

(I'm working with Windows Media Player)

Thank you very match,

Please find some more groups to post this question to. The group hierarchy
is there to find the *most* appropriate group, not to find all groups that
might not be completely wrong.
 
Hi Armin,

No

:-))

I think this was the right answer, but I am always looking if there is
someone who has even on this question an answer.

Cor
 
Cor said:
No

:-))

I think this was the right answer,

*This* time it was a rather unfriendly answer. You call it "right"??? I
thought I've learned something but now I've been thrown back and have to
restart. ;-)
 
Hi Shlomi --
It's been long time that I'm investigating on how to play Avi file
from memory, with no success.

What I'm trying to do is to get a scrambled Avi file to memory, fix
same data and then playing it as Avi file. An alternative way is
encapsulate the binary data into the exe file with a recourse file and
than playing it.

See AniRes.zip on http://www.mvps.org/vb/samples.htm for a (VB4) class module that
supports playing it from a RES. Old, sure, but the ideas remain valid.
Any one has any idea how solve the problem? Any sample code or links?

(I'm working with Windows Media Player)

Hmmm, WMP? That sounds like overkill. I sure wouldn't want to burden users with
that, if at all possible to avoid.

Later... Karl
 
Thanks for the response Karl,

Why is it overkill? Is it the overhead of WMP? What control do you
suggest (with the same functionality – play, stop, pause, back,
forward, time remains…)?

And about the link, the sample project needs the MsgHook object; What
is it?

Shlomi
 
Hi Shlomi --
Thanks for the response Karl,

Why is it overkill? Is it the overhead of WMP? What control do you
suggest (with the same functionality – play, stop, pause, back,
forward, time remains…)?

Well, given those requirements, perhaps it's not overkill. If you were just
displaying an animation on a "wait awhile" dialog, it'd definitely be more than you
wanted. But you can control AVIs pretty well with source alone. Just depends how
much you want to dig in and get your hands dirty. I think the sample I pointed you
to will support most of your needs, but it's been a *long* time (VB4ish) since I
wrote it so I'm pretty fuzzy. <g>

But yeah, in general, I think WMP is a *lot* of baggage to carry along with your app.
Tough to redistribute, and even tougher to insure a common codebase. Not to mention
the ugly DRM issues that get involved with later releases, which will likely cause
many to refuse to load versions later than 7.1 or so.
And about the link, the sample project needs the MsgHook object; What
is it?

That's a message-hooking control that's freely available
(http://www.mvps.org/vb/controls.htm). You can also use your own hooking routines,
since VB5. The HookMe sample on my site is one way.

Later... Karl
 
Back
Top