Lightweight Editing using GMFBridge
- From: "Bob" <bob@xxxxxxxxxxxxx>
- Date: 12 Sep 2006 21:24:02 -0700
I'm using GMFBridge as a lightweight alternative to DES; I couldn't
keep DES from decompressing and recompressing DV video. I've changed
the output side of Geraint Davies GMFPlay sample to write to a file.
The object is to combine clips to a standard formatted AVI. It
optionally transcodes them to WMV. I build two versions of the output
side; one for DV video in AVI files, one for WMV files.
I ran into trouble with audio/video sync. The audio stream runs right
through and winds up concentrated at the beginning of the file. I
detected this with Media Player Classic, which puts up a graphic when
the interleaving is out of whack.
I fixed this for AVI output by calling SetSyncSource on both the input
and output graphs with the System Reference Clock. The AVI MUX on the
output side seems to fix things, given a reference clock.
Here are my graphs:
The DVSD filter is an in-place transform filter that insists on DVSD
input and output. Without it, Intelligent connect inserts the DV
decompressor filter between the splitter and the Bridge Sink.
Intelligent Connect inserts the ACM wrapper. The splitter won't connect
directly to the sink filter. It's the buffering.
The input graph is the same whether I'm writing to AVI or WMV.
file reader -> AVI Splitter -> DVSD -> Bridge Sink filter
ACM Wrapper ->
Bridge Source filter -> AVI Mux -> File Writer
->
Setting the Sync Source didn't work with WMV output.
Bridge Source filter -> DV Video Decoder -> ASF File Writer
--------------------->
My question is this. How can I get audio and video back in sync when
writing to the WMV? What am I missing here?
Thanks!
Bob
.
- Follow-Ups:
- Re: Lightweight Editing using GMFBridge
- From: Bob
- Re: Lightweight Editing using GMFBridge
- Prev by Date: Re: media seeking can't work in my decoder filter
- Next by Date: Re: Lightweight Editing using GMFBridge
- Previous by thread: Using ISampleGrabber to grab frames from camera
- Next by thread: Re: Lightweight Editing using GMFBridge
- Index(es):
Relevant Pages
|