[Live-devel] Live input MPEG4 Video input
Austin Snow (pftv)
asnow at pathfindertv.net
Tue Mar 10 11:23:21 PDT 2009
Hello All,
I'm having an issue getting a live MPEG4 video source into Live555,
any help would be great.
This is how I defined my live input;
in DeviceSource.hh;
removed
//private:
//void deliverFrame(); //ags
added
public:
void deliverFrame(void *data, int len, int dur);
in DeviceSource.cpp;
changed
//void DeviceSource::deliverFrame() {
to
void DeviceSource::deliverFrame(void *data, int len, int dur) { <--
passing my data in here
added
// Deliver the data here:
if(fMaxSize < len){
fNumTruncatedBytes = len - fMaxSize;
len = fMaxSize;
printf("Frame size truncated\n");
}
gettimeofday(&fPresentationTime, NULL);
fDurationInMicroseconds = dur;
fFrameSize = len;
memcpy(fTo, data, len);
printf("Frame sent, len=%d\n", len);
printf("dur=%d\n", dur);
printf("fPresentationTime.tv_sec=%d\n", fPresentationTime.tv_sec);
printf("fPresentationTime.tv_usec=%d\n", fPresentationTime.tv_usec);
The printfs indicate that the data is only accepted approximately
every 1 to 1.5 seconds on average.
Is this the proper way to add a live input?
Thanks
Austin
_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090310/54948904/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090310/54948904/attachment.bin>
More information about the live-devel
mailing list