BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: COMPRESS/DECOMPRESS a TBITMAP using Video For Windows

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
Peter Haas
Guest





PostPosted: Fri Aug 01, 2003 6:35 pm    Post subject: Re: COMPRESS/DECOMPRESS a TBITMAP using Video For Windows Reply with quote



Hi ?,

[email]delphi_tip (AT) yahoo (DOT) com[/email] wrote in
<bp5liv0ju4i302mteegpj5vqr9933j98pp (AT) 4ax (DOT) com>:
Quote:
I am looking for some routines in DELPHI which will
COMPRESS/DECOMPRESS a TBITMAP object using a specified codec in Video
For Windows (Video Compression Manager). These routines should be
tested with the H.263 codec and should allow for codec selection
programmatically.

This is nonsensically.

H.263 is a low bandwith video compression standard, especially for
video-conferencing and video-telephony applications. TBitmap contain a
still image only. Moreover H.263 encoding/decoding is non trivial and
there exist solutions, you don't need to write such a function.

The video compression manager can compress a video stream with H.263 if
you have installed a VfW H.263 codec. But VfW is a old interface.

You should use DirectShow, and install a DirectShow H.263 codec (simple
install MS NetMeeting). Also DirectShow support the network streaming.

You can find header translations and Delphi components on
http://www.progdigy.com

Bye Peter.
--
Why should we be interested is someone who considers us a waste basket?
Robert Marquardt (Team JEDI) in <b4mf4g$u0k$1 (AT) talkto (DOT) net> to me
regarding JEDI's disinterest on my contribution attempts.
Maybe JEDI users have more interest: http://jediplus.pjh2.de/index.php


Back to top
delphi_tip@yahoo.com
Guest





PostPosted: Fri Aug 01, 2003 10:25 pm    Post subject: Re: COMPRESS/DECOMPRESS a TBITMAP using Video For Windows Reply with quote



Hi,

Well unfortunately DSPACK is not an option for me, I have used it, I
think that Henri did a fantastic job, but I believe that it is still
somewhat unstable.
I can't really get into DirectShow programming, I need something easy
to use. If you have a sample to give me I will pay you for it.



On Fri, 01 Aug 2003 20:35:13 +0200, Peter Haas
<newsgroupfeedback (AT) pjh2 (DOT) de> wrote:

Quote:
Hi ?,

[email]delphi_tip (AT) yahoo (DOT) com[/email] wrote in
[email]bp5liv0ju4i302mteegpj5vqr9933j98pp (AT) 4ax (DOT) com[/email]>:
I am looking for some routines in DELPHI which will
COMPRESS/DECOMPRESS a TBITMAP object using a specified codec in Video
For Windows (Video Compression Manager). These routines should be
tested with the H.263 codec and should allow for codec selection
programmatically.

This is nonsensically.

H.263 is a low bandwith video compression standard, especially for
video-conferencing and video-telephony applications. TBitmap contain a
still image only. Moreover H.263 encoding/decoding is non trivial and
there exist solutions, you don't need to write such a function.

The video compression manager can compress a video stream with H.263 if
you have installed a VfW H.263 codec. But VfW is a old interface.

You should use DirectShow, and install a DirectShow H.263 codec (simple
install MS NetMeeting). Also DirectShow support the network streaming.

You can find header translations and Delphi components on
http://www.progdigy.com

Bye Peter.



Back to top
Peter Haas
Guest





PostPosted: Fri Aug 01, 2003 10:53 pm    Post subject: Re: COMPRESS/DECOMPRESS a TBITMAP using Video For Windows Reply with quote



Hi,

[email]delphi_tip (AT) yahoo (DOT) com[/email] wrote in
<m1qlivcqg3ra004m866kpncckku098dk2u (AT) 4ax (DOT) com>:
Quote:
Well unfortunately DSPACK is not an option for me, I have used it, I
think that Henri did a fantastic job, but I believe that it is still
somewhat unstable.

Could you, please, be more specific?

Of course at the DSPack forum. The DSPack developer need feedback to
improve the library. On the other side, maybe DSPack isn't the reason
for the lability, my experience is, the system (e.g. Win98) or some
drivers contribute too.

Quote:
I can't really get into DirectShow programming, I need something easy
to use.

IMHO DirectShow is the easiest way, all other ways are more complicated.

BTW: You can simple test a H.263 filter graph with graphedt.exe. This
would be pur DirectShow.

Bye Peter.
--
Why should we be interested is someone who considers us a waste basket?
Robert Marquardt (Team JEDI) in <b4mf4g$u0k$1 (AT) talkto (DOT) net> to me
regarding JEDI's disinterest on my contribution attempts.
Maybe JEDI users have more interest: http://jediplus.pjh2.de/index.php


Back to top
delphi_tip@yahoo.com
Guest





PostPosted: Sat Aug 02, 2003 9:46 pm    Post subject: Re: COMPRESS/DECOMPRESS a TBITMAP using Video For Windows Reply with quote

Coming back to DirectShow and DSPACK, how am I supposed to apply any
kind of compression to a bitmap captured from the SampleGrabber ?
I know that compression can be applied to an AVI file (you can select
the codec) but what about a frame ?



On Fri, 01 Aug 2003 18:25:59 -0400, "delphi_tip (AT) yahoo (DOT) com"
<delphi_tip (AT) yahoo (DOT) com> wrote:

Quote:
Hi,

Well unfortunately DSPACK is not an option for me, I have used it, I
think that Henri did a fantastic job, but I believe that it is still
somewhat unstable.
I can't really get into DirectShow programming, I need something easy
to use. If you have a sample to give me I will pay you for it.



On Fri, 01 Aug 2003 20:35:13 +0200, Peter Haas
[email]newsgroupfeedback (AT) pjh2 (DOT) de[/email]> wrote:

Hi ?,

[email]delphi_tip (AT) yahoo (DOT) com[/email] wrote in
[email]bp5liv0ju4i302mteegpj5vqr9933j98pp (AT) 4ax (DOT) com[/email]>:
I am looking for some routines in DELPHI which will
COMPRESS/DECOMPRESS a TBITMAP object using a specified codec in Video
For Windows (Video Compression Manager). These routines should be
tested with the H.263 codec and should allow for codec selection
programmatically.

This is nonsensically.

H.263 is a low bandwith video compression standard, especially for
video-conferencing and video-telephony applications. TBitmap contain a
still image only. Moreover H.263 encoding/decoding is non trivial and
there exist solutions, you don't need to write such a function.

The video compression manager can compress a video stream with H.263 if
you have installed a VfW H.263 codec. But VfW is a old interface.

You should use DirectShow, and install a DirectShow H.263 codec (simple
install MS NetMeeting). Also DirectShow support the network streaming.

You can find header translations and Delphi components on
http://www.progdigy.com

Bye Peter.



Back to top
Nils Haeck
Guest





PostPosted: Sat Aug 02, 2003 11:01 pm    Post subject: Re: COMPRESS/DECOMPRESS a TBITMAP using Video For Windows Reply with quote

Hi Tipsy,

Most Video compression codecs are only good at processing *video*, not
static images. One image is not a video. For the compressors to work
properly, they need at least 2 images or even more, because they often look
at just the difference between two images.

For instance MPEG: MPEG has 3 kinds of frames, I-frame, P-frame and B-frame.
The I-frames are complete images, the P-frames are the difference between a
frame and an I-frame (so if the image stays exactly the same, the P-frame
only contains zeroes). The B-frame is the difference between an
interpolation of the I-frame and the next I+P frame, and an intermediate
frame.

In this jungle, although it is possible to just compress one frame with
MPEG, it makes no sense! (MPEG one frame would simply be a JPG, but this
holds only for the I-frames).

Kind regards,

Nils Haeck
www.simdesign.nl

You wrote in message news:4mboivsaklbep541rlf9a4pc62prepf4bm (AT) 4ax (DOT) com...

Quote:
Coming back to DirectShow and DSPACK, how am I supposed to apply any
kind of compression to a bitmap captured from the SampleGrabber ?
I know that compression can be applied to an AVI file (you can select
the codec) but what about a frame ?





Back to top
Peter Haas
Guest





PostPosted: Sun Aug 03, 2003 1:21 am    Post subject: Re: COMPRESS/DECOMPRESS a TBITMAP using Video For Windows Reply with quote

Hi,

[email]delphi_tip (AT) yahoo (DOT) com[/email] wrote in
<4mboivsaklbep541rlf9a4pc62prepf4bm (AT) 4ax (DOT) com>:
Quote:
Coming back to DirectShow and DSPACK, how am I supposed to apply any
kind of compression to a bitmap captured from the SampleGrabber ?

This is a wrong imagining of DirectShow. You don't need to do this, you
don't need the SampleGrabber.

The keyword is streaming: On the one end you have a video source filter,
e.g. a video file, a capture card or a webcam. Then you have the H.263
encoder filter. On the other end you have a sink filter, e.g. a video
window, a file, a network connection.

You only need to connect the input of the H.263 encoder filter with the
output of the video source filter and his output with the input of the
sink filter.

How I wrote, you can test this with graphedt.exe, a graphical
application for DirectShow.

In a application you connect the filters with the method RenderStream.


Furthermore information over DirectShow you can find by Microsoft:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/htm/directshow.asp?frame=true

A good startpoint would be:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/htm/directshowsystemoverview.asp?frame=true

Bye Peter.

p.s. Please optimize your quoting, read
http://info.borland.com/newsgroups/netiquette.html
--
Why should we be interested is someone who considers us a waste basket?
Robert Marquardt (Team JEDI) in <b4mf4g$u0k$1 (AT) talkto (DOT) net> to me
regarding JEDI's disinterest on my contribution attempts.
Maybe JEDI users have more interest: http://jediplus.pjh2.de/index.php


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.