home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 March / PCWorld_2008-03_cd.bin / Audio-video / zoomplayer / zp502std.exe / MediaGraph / example_mpeg2ts_using_windvd.mediagraph < prev   
Text File  |  2003-04-20  |  2KB  |  30 lines

  1. // Graph for decoding MPEG2 Transport Streams using the WinDVD filters
  2. // and the DVHSTool filters.  Need at least WinDVD 4.5 for this.
  3.  
  4. # Create our Filters
  5. LoadFilter({79376820-07D0-11CF-A24D-0020AFD79767},Default DirectSound Device)
  6. LoadFilter({51B4ABF3-748F-4E3B-A276-C828330E926A},Video Mixing Renderer 9)
  7. LoadFilter({7E2E0DC1-31FD-11D2-9C21-00104B3801F6},InterVideo Audio Decoder)
  8. LoadFilter({0246CA20-776D-11D2-8010-00104B9B8592},InterVideo Video Decoder)
  9. LoadFilter({105808AA-413D-4F32-898B-C15457292D55},InterVideo Demux)
  10. LoadFilter({C477B5E3-7BFF-4FDB-BDDA-059BC51E5C8A},Source File)
  11.  
  12. # Assign the user selected filename to the source filter,
  13. # "<FileName>" is translated to the actual file name automatically.
  14. SetFilterFileName(Source File,<FileName>)
  15.  
  16. # Connect a source file to the WinDVD Demultiplexer (Audio/Video Splitter)
  17. ConnectPin(Source File,Output,InterVideo Demux,Input0)
  18.  
  19. # Connect the InterVideo MPEG2 Demultiplexer to the InterVideo Audio Decoder
  20. ConnectPin(InterVideo Demux,Audio,InterVideo Audio Decoder,In)
  21.  
  22. # Connect the InterVideo Audio Decoder to the Audio Renderer
  23. ConnectPin(InterVideo Audio Decoder,Out,Default DirectSound Device,Audio Input pin (rendered))
  24.  
  25. # Connect the InterVideo MPEG2 Demultiplexer to the InterVideo Video Decoder
  26. ConnectPin(InterVideo Demux,Video,InterVideo Video Decoder,Video Input)
  27.  
  28. # Connect the InterVideo Video Decoder to the Video Renderer
  29. ConnectPin(InterVideo Video Decoder,Video Output,Video Mixing Renderer 9,VMR Input0)
  30.