473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Playing Avi from memory

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
Nov 20 '05 #1
8 2505
"shlomi" <sh*****@hotmail.co.il> schrieb

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.
--
For-Flames-Waiting Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* sh*****@hotmail.co.il (shlomi) scripsit:
It's been long time that I'm investigating on how to play Avi file
from memory, with no success.


Is this question really related to VB.NET?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #3
Cor
Hi Armin,
--
For-Flames-Waiting 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
Nov 20 '05 #4
"Cor" <no*@non.com> schrieb
For-Flames-Waiting Armin


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. ;-)
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5
You can probably do what you want with this ocx:
http://www.shrinkwrapvb.com/ezaviocx.htm

"shlomi" <sh*****@hotmail.co.il> wrote in message
news:6d*************************@posting.google.co m...
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

Nov 20 '05 #6
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
--
[Microsoft Basic: 1976-2001, RIP]
Nov 20 '05 #7
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
Nov 20 '05 #8
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
--
[Microsoft Basic: 1976-2001, RIP]
Nov 20 '05 #9

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

Similar topics

4
by: Brian Basquille | last post by:
Hello all, What is the syntax for simply playing a WAV file in your program? Am learning VB and have two VB books but don't wanna root through them to find the code. Any help would be much...
1
by: Kiteman \(Canada\) | last post by:
Instead of a beep sound playing as an alarm or reminder I would like to be able to play a more interesting sound. On the web, I found and tried a sound routine that uses the SOUND.DRV but it does...
1
by: Peter Schmitz | last post by:
Hi, I'm just trying to play a *.wav file, making use of the unmanaged function "sndPlaySoundA" in winmm.dll, but I still got one question: How can I avoid, that the sound file itself has to be...
1
by: dianedawson_777 | last post by:
Hello, Does anyone have a working command string / usage to play audio data (WAV format) from RAM ? Basically, I have some random files that I can convert to WAV (RIFF) format very easily. I...
1
by: Lex | last post by:
I have a simple app that allows a user to record a number of sounds and save those sounds (in wave form) in a resource file. I am using mciSendString for all the recording. I have another app...
2
by: Dave | last post by:
Hi, I am writing a c# application that using a directshow to play file and display it on my C# gui, its work just fine but when i try to open another thread in my c# application the file stop...
7
by: Lee Moody | last post by:
I just want quick and easy way to play a .wav file out the standard sound device. It could even be as simple as activating a sound assigned to an existing windows sound event. Any suggestions?...
2
by: Robin Tucker | last post by:
I have a DLL that hands me an HGLOBAL handle to a blob of memory containing a WAV file (don't ask what the app is!). I figured I could play it with winmm.dll PlaySound or sndPlaySound...
3
by: Jack | last post by:
Hi, I'm writing a simple wav player (like winamp) and using the SoundPlayer class in c# 2005. Using winform buttons, I can begin playing the sound and stop half-way through the sound using:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.