Lightweight Editing using GMFBridge

Tech-Archive recommends: Fix windows errors by optimizing your registry



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

.



Relevant Pages

  • Re: Lightweight Editing using GMFBridge
    ... keep DES from decompressing and recompressing DV video. ... The object is to combine clips to a standard formatted AVI. ... one for DV video in AVI files, one for WMV files. ... Setting the Sync Source didn't work with WMV output. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Converting YUY2 format video to AVI
    ... Windows media encoder sdk to convert avi to wmv. ... your H.264 video decoder output in another format, ... His capture card is the following - ... filter graph instance in the "Running Object Table", ...
    (rec.video.desktop)
  • Re: Setting programmatically generated data source for Directshow
    ... > My need is to convert a powerpoint presentation into mpeg2 video.I have two ... > 1) convert the powerpoint presentation into a avi video stream at one end ... There is no point in converting to AVI and then to MPEG in one go. ... source filter, but the filter must support seeking). ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: No Video on Movie Maker Import from DV Camera in wmv format
    ... Import from DV Camera using the avi format works fine in ... but takes 13g per hour as opposed to 2g per hour for the wmv ... format, which is why I need the latter for long videos. ... here, but now it's black screen video with audio, so no go. ...
    (microsoft.public.windows.vista.music_pictures_video)
  • Re: Problems saving DV-AVI file
    ... Sounds like a AVI codec issue to me. ... You said you were able to save that middle piece as a WMV without any ... > I imported about 10 minutes of video from my video camera and saved as an ... > I took one small clip from about the middle, ...
    (microsoft.public.windowsxp.moviemaker)