Re: Compress and send video problem

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Gusi (sergio_noquieromierda)
Date: 05/06/04


Date: Thu, 6 May 2004 17:31:58 +0200

Thanks for the quick reply.
I'll try to implement this filter... I understand it has to be like a File
Writer Filter, but able to stream the data through TCP instead of writing to
a file... is that right?

I'll take a look to the samples because it's going to be my first filter
implementation.

Best regards and thanks again.

GUSi

"Thore Karlsen [MVP DX]" <sid@6581.com> escribió en el mensaje
news:dvlk905cshkrjq7bu5sbd50fdloc83470v@4ax.com...
> On Thu, 6 May 2004 16:53:57 +0200, "Gusi" <sergio_noquieromierda AT
> geninfor_aquitampoco DOT com> wrote:
>
> >Hi,
> >We're developing an application that needs to send via TCP a compressed
> >video as soon as possible.
> >The first approach was to compress the video and then send using standard
> >socket connections, but we need to send videos of 1 hour compressed in
MPEG4
> >(xvid) with high quality, so we have to wait for the whole compression,
and
> >then send it, so it's a long time waiting.
> >
> >So we need to compress and send simultaneously... first we tried to
access
> >the output file while it's being compressed and monitoring the file with
a
> >hook, but the manner directshow writes to the disk, makes the hook not
work
> >(it only notifies when closing the file)
> >
> >Then we tried compressing the video in small files, to send them as being
> >completed. We tried to implement IMediaSeeking->SetPositions, to compress
> >only one specific part of the video, but the call returns an E_NOTIMPL
> >(method not implemented), and it seems that any graph with compression
> >filters lacks this interface.
> >
> >We also look for a filter that can access the compressed data through
TCP,
> >but we didn't find anything...
>
> You can make one yourself easily. Make a CBaseRenderer-derived filter
> that sends the samples it gets across the network, and hook that up
> directly to the compressor. Something like this:
>
> Video Source -> XviD Compressor -> Network Filter
>
> On the client side you could have a CSource or CBaseFilter-derived
> filter that gets the samples from the network, and feeds them downstream
> to e.g. an AVI mux:
>
> Network Source -> AVI Mux -> File Writer
>
> This way you send every frame over immediately after being compressed,
> so there's no delay.
>
> --
> Be seeing you.



Relevant Pages

  • Re: Examples of Anti-Anti-Alias Requirements
    ... EEG is much more random than ECG, and you can't really learn as much even from a perfectly recorded signal. ... I'm laughing right now because right before I read your post I found out that if I filter it at about 400Hz it looks pretty good... ... I would add to that that should I be tasked with storing an EKG recording in some storage-sensitive way I'd probably look at some adaptive compression scheme. ... I'm really not sure if I'd consider lossy compression without lots of research behind me, but one could probably do some sort of lossless compression that would vary the compression rate depending on the signal. ...
    (comp.dsp)
  • Re: Differential intra-interchannel filters for RGB images lossless compression
    ... > if I were designing png myself, I would have likely had all the filter type ... This is one of the reasons why the 48 MB demo image linked on PNG site ... mainstream multichannel image compression, so I implemented it in dif ... if U prediction is inaccurate, ...
    (comp.compression)
  • Re: Small engine rebuild update.
    ...     It runs like a charm with absolutely no carb tuning... ... if it is just that the compression is not adequate. ... When I took the engine apart it did not have ... Are you trying to run it without an air filter?. ...
    (rec.crafts.metalworking)
  • Re: screen capture is slow
    ... > What exactly you mean by compression on the fly? ... > is taking few snap shots. ... >From your filter graph below it appears the answer is no. ... It will give you an idea of how well a professional product can capture ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Cannot connect input to ACM Wrapper
    ... after adding the filter to the graph and before connecting ... If you want to compress the stream, add an audio compressor, ... If you use the WMASFWriter and want to compress to WMA, ... profile and not configure it to bypass compression. ...
    (microsoft.public.win32.programmer.directx.audio)