×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How can I seeking with Microsoft MPEG-2 Splitter?

How can I seeking with Microsoft MPEG-2 Splitter?

How can I seeking with Microsoft MPEG-2 Splitter?

(OP)
This Code not funktional ...

          UuidFromString( (unsigned char *)"c553f2c0-1529-11d0-b4d1-00805f6cbbea", &Uuid);
          JIF(CoCreateInstance(Uuid, NULL, CLSCTX_INPROC_SERVER,
                               IID_IBaseFilter, (void **)&pFileSrc));
          JIF(pGB->AddFilter(pFileSrc, T2W("File Source Filter")));
          JIF(pFileSrc->QueryInterface(IID_IFileSourceFilter, (void **) &pSrc));
          JIF(pSrc->Load(T2W(szFile), NULL));
          Sleep(100);
          UuidFromString( (unsigned char *)"731B8592-4001-46D4-B1A5-33EC792B4501", &Uuid);
          JIF(CoCreateInstance(CLSID_MMSPLITTER, NULL, CLSCTX_INPROC_SERVER,
                               IID_IBaseFilter, (void **)&pSplitter));
          JIF(pGB->AddFilter(pSplitter, T2W("Elecard MPEG2 Demultiplexer")));
          JIF(pFileSrc->FindPin(L"Output", &pTSOut));
          JIF(pSplitter->FindPin(L"Input", &pTSIn));
          JIF(pGB->Connect(pTSOut,pTSIn));
          JIF(pSplitter->FindPin(L"Video", &pVideoOut));
          JIF(pVideoOut->QueryInterface(IID_IMediaSeeking, (void **) &pVideoSeeking));
          LONGLONG Earliest;
          LONGLONG Latest;
          pVideoSeeking->GetAvailable(&Earliest, &Latest);
          Earliest = Latest/2; // 1/2 of Begin
          Latest = Latest/4*3; // 3/4 of Begin
          JIF(pVideoSeeking->SetPositions(&Earliest, AM_SEEKING_AbsolutePositioning, &Latest, AM_SEEKING_AbsolutePositioning));

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close