> $ sudo ./testMPEG2TransportStreamer /dev/video2 > > I still get data loss after a few minutes with direct read, but that > may be a problem with the device module.
I now see that overflow occurs in the encoder device module (zero free buffers). I see in ByteStreamFileSource.cpp that "fPreferredFrameSize" fits an integral number of MPEG-2 TS packets into the MTU. If I remove the the following in ByteStreamFileSource.cpp: // Try to read as many bytes as will fit in the buffer provided // (or "fPreferredFrameSize" if less) if (fPreferredFrameSize > 0 && fPreferredFrameSize < fMaxSize) { fMaxSize = fPreferredFrameSize; } and read as much data as is available, 12032 bytes (64 * 188) are read at a time instead of the usual 1316 (7 * 188). Would a larger MTU likely help? Would that be moving into new territory codewise? Thanks for any pointers, Gordon _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel