Re: Compress and send video problem
From: Gusi (sergio_noquieromierda)
Date: 05/06/04
- Next message: Ulf Jaenicke-Rößler: "still image source filter and VMR9"
- Previous message: The March Hare \(MVP\): "Re: Problem in amfilter.cpp"
- In reply to: Thore Karlsen [MVP DX]: "Re: Compress and send video problem"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Ulf Jaenicke-Rößler: "still image source filter and VMR9"
- Previous message: The March Hare \(MVP\): "Re: Problem in amfilter.cpp"
- In reply to: Thore Karlsen [MVP DX]: "Re: Compress and send video problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|