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
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel


Austin

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to