473,654 Members | 3,104 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2523
"shlomi" <sh*****@hotmai l.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*****@hotmai l.co.il> wrote in message
news:6d******** *************** **@posting.goog le.com...
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
7127
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 appreciated! Thanks in advance,
1
9296
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 not work for me. Maybe it would be best to try to play a small mp3 or wav file instead - does VB 6.0 have built-in support for sounds like that? Tom
1
2849
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 seperate file in a specific directory, but instead 'integrate' it in my application? Thanks peter
1
3711
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 can write them out to disk (eg C:\Temp\test.wav) and then play them back with MCI. No problems there.
1
2179
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 that looks up the sounds in the resource file and plays them via win32 PlaySound (from memory). My question is: is there an easy way to convert the wave byte data into WMA and save that in the resource file? Of course I'd need a way to play the...
2
4471
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 playing and i get black image!!! Why? What i should considre when i open a new thread in c# application?? Thanks
7
6450
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? Thanks in advance. -Lee
2
1661
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 (deprecated?). But how? Any ideas?
3
7808
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: myPlayer.Play() and myPlayer.Stop() methods which works great, but i want to know when the sound actually stops playing (so I can change my button's picture). If I raise a custom event after the myPlayer.Play()
0
8379
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8294
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8596
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7309
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4297
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2719
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1924
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1597
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.