Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Using cDevice::GetTSBuffer, cTSBuffer



Hi,
i'm implementing a new device and for test purposes i want read from a
file cMyDevice::OpenDvr looks like

      if ((fd_pvr = open("videofile.mpg", O_RDONLY | O_NONBLOCK)) >= 0)
{
        tsBuffer = new cTSBuffer(fd_pvr, KILOBYTE(256), CardIndex() +
1);

How can i generate such a file?
I had no success by using ffmpeg, tv stays dark:
      ffmpeg -i input file -f mpegts videofile.mpg

The calls to
      r = tsBuffer->Read();
are reporting, that they are reading 188 bytes (TS size).
Do I have to check if the Packets are valid? (because of the file
header, the starting point of the ts packets does not match?) Or is
ffmpeg not able to produce the right file format?

Best regards
Erich






Home | Main Index | Thread Index