Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: wmvcopy and seek

HTVi
TV Discussion Newsgroups

wmvcopy and seek
visuall 5/30/2007 7:54:01 AM
Hello,

I have an application similar to wmvcopy. It records ( copies ) wmv streams
( local and online ) to a custom sink. The samples are then written to a
custom sink using the wmv writer. So far so good.

Now I want to add seek support so the record can start at arbitrary position
in source and also the position can be changed while copying. Making the
reader seek is not a problem at all. The problem comes when I pass the
samples to the wm writer. Because of the messed timestamps the
writestreamsample method hangs. It hangs even if I start reading from middle
and pass the first sample to it.

Ideas how I can solve the problem?

Regards,
--
Nick Kichukov,
project manager,
eConsulting LLC
Re: wmvcopy and seek
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 5/30/2007 12:15:18 PM
From: "visuall"

[Quoted Text]
> Hello,
>
> I have an application similar to wmvcopy. It records (
> copies ) wmv streams ( local and online ) to a custom
> sink. The samples are then written to a custom sink using
> the wmv writer. So far so good.
>
> Now I want to add seek support so the record can start at
> arbitrary position in source and also the position can be
> changed while copying. Making the reader seek is not a
> problem at all. The problem comes when I pass the samples
> to the wm writer. Because of the messed timestamps the
> writestreamsample method hangs. It hangs even if I start
> reading from middle and pass the first sample to it.
>
> Ideas how I can solve the problem?

Correct the timestamps so that the writer sees a continuos
stream. Also, if you are copying compressed samples, either
seek to a clean point or mark the samples as discontinuities
until the next clean point.

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen