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
|