i've try to get file duration of mpeg1 video file like this:

int VIDEOMC_API GetFileDuration(const char* inputFileName)
{
  TaskScheduler* scheduler = BasicTaskScheduler::createNew();
  BasicUsageEnvironment* env = BasicUsageEnvironment::createNew(*scheduler);
  MPEG1or2FileServerDemux* demux =
MPEG1or2FileServerDemux::createNew(*env, inputFileName, false);
  if(demux)
    return int(demux->fileDuration());

  return 0;
}

but in VS2008 line MPEG1or2FileServerDemux::createNew rise exeption:
First-chance exception at 0x7c812afb in testvideomc.exe: Microsoft C++
exception: int at memory location 0x0011f880..
and program abnormally closed after this.

what this can mean?

-- 
See you!
---
Vityusha V. Vinokurov - programmer
mailto:vic...@dialog.su
http://www.dialog.su
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to